{
  "id": 23107789,
  "title": "Network off for an agent's test runs: which tasks need the network and which do not",
  "url": "https://urgent.news/2026/12/02/network-off-for-an-agents-test-runs-which-tasks-need-the-network-and",
  "topic": "tech",
  "section": "Tech",
  "published": "2026-12-02T11:06:46.000Z",
  "source": {
    "name": "Dev.to",
    "slug": "dev-to",
    "url": "https://dev.to/sandscale/network-off-for-an-agents-test-runs-which-tasks-need-the-network-and-which-do-not-3ggh"
  },
  "original_language": null,
  "account": "Network access is a crucial setting that can turn a minor mistake in an agent's run into a serious issue. With open access, an agent can send data to any location and cause damage. Most of what an agent does does not require the internet. Unit tests, linters, type checkers, and formatters work on local files. This post explains how to sort tasks into groups to manage network access effectively.\n\nGroup 1 consists of tasks that do not need the network. These include working on files already on the machine, running unit tests, linting, formatting, type checking, compiling code, reading logs, and using local dependencies. Most commands fall into this category.\n\nGroup 2 contains tasks that need a short allowlist. These include installing dependencies from a package registry, cloning the repository, and downloading a toolchain. Access can be limited to specific hosts rather than the entire internet.\n\nGroup 3 comprises tasks that require human intervention. These involve tasks that talk to services not pre-defined by the team, such as tests calling third-party APIs or agents using curl or other methods to fetch data from unknown sources. Only these tasks should be granted network access.\n\nSandscale sandboxes start with the network off. The CLI offers options for network configuration, such as \"--network none\" (default) and \"--network allowlist\" to access only the organization's egress allowlist and package registry presets.\n\nA workspace, a longer-lived machine for an agent, follows the plan and policy of the organization. It requires network access for the agent to reach its model provider, making it unsuitable for \"no network at all\".\n\nTo determine which group a task belongs to, run the task once with the network off and observe the failure. If it passes, the task is in Group 1. If it fails, examine the error message for signs of network calls, such as name resolution failures or connection errors. Decide whether the host is a package registry (Group 2) or a third-party service (Group 3).",
  "summary": "Network access is the setting that turns a mistake in an agent's run from contained to serious. A command that misbehaves with no network can only damage the machine it is on. With open access, it can send what it can read to anywhere. Most of what an agent does while working does not need the internet at all. Running unit tests, a linter, a type checker or a formatter works on local files. This…",
  "summary_source": "publisher",
  "key_points": [
    "Group 1 tasks require no network access, including local file manipulation and local dependency use.",
    "Group 3 tasks demand human intervention, like third-party API calls or unknown data fetching."
  ],
  "editors_take": null,
  "opinion": false,
  "illustration": null,
  "coverage": {
    "outlets": 1,
    "outlets_capped": false,
    "also_reported_by": []
  },
  "machine_translated": false,
  "ai_generated": true,
  "disclaimer": "Accounts, briefs, key points, the editor’s take and translations are written by software from other outlets’ reporting and may contain errors. A summary whose summary_source is \"publisher\" is the outlet’s own feed text. Always check the linked original."
}