Skip to main content

Isag — Isolated Agent. Strict containerized sandboxes for coding agents.

Project description

Isag

Isag (/aɪˈzɑɡ/, "Isolated Agent") — sandboxes coding agents in containers with hard limits on what it can read, write, and reach.

Why

Isag gives the agent full freedom inside a container, while keeping your machine safe outside it. You get:

  • A filesystem scoped to what you mount. The agent sees only the directories you explicitly add. Your home directory, your SSH keys, the rest of your host — invisible.
  • Read-only mounts when you want them. Mount your project :ro to let the agent analyze without editing. Mount datasets :ro. Mount a scratch directory :rw. The kernel rejects writes to a read-only bind mount regardless of file permissions.
  • A network firewall. Outbound traffic is locked to a domain allowlist enforced at the kernel level. Anything else fails to connect — the agent can't lift the rule from inside.
  • Optional GPU passthrough. Flip one flag in the config to give the container CUDA + the NVIDIA toolkit.
  • Disposable container. Try experimental tooling without consequence — pip at runtime, system packages via extra_packages + rebuild. If something breaks, the host is untouched and Isag brings up a clean one.

Requirements

  • Linux host with Docker.
  • GPU mode needs the NVIDIA Container Toolkit.
  • Tested on Linux and WSL2. macOS (Docker Desktop / Rancher Desktop) and native Windows Docker should work but are untested.

Try it

Install:

pip install isag

Run:

isag init
isag run

You're inside the agent CLI now, in a container that can reach github.com, pypi.org, npm, and the vendor's API — and nothing else.

Grant access to SSH or Jupyter on the host machine:

isag ssh -L 2222:localhost:22 -L 8888:localhost:8888

The config file

isag init writes a starter isag.yaml. The lines you'll actually touch:

project: ~/code/my-project:/workspace/project:rw   # use :ro for analysis-only runs
agent:
  vendor: claude                                   # claude or codex
  host_home: ~/agents                              # vendors persist here as host_home/.claude, host_home/.codex; set to ~ to share history + credentials with your host install
container:
  python: 3.14                                     # container system-wide Python
  image: ubuntu24.04                               # or e.g. nvidia/cuda:12.8.1-runtime-ubuntu24.04 if gpu:true
  gpu: false                                       # true for CUDA + NVIDIA toolkit
  host_cache_dir: ~/isag-cache                     # mounting pip, npm, and other caches          
limit_network:
  domains:                                         # everything else is blocked
    - github.com
    - pypi.org
    - registry.npmjs.org
mounts:
  - ~/datasets:/workspace/datasets:ro              # add more mounts; :ro makes them read-only
exclude:                                           # hide paths inside any mount (set to null to disable)
  files:
    - .env
  folders:
    - .git
  • Set limit_network: null to turn the firewall off entirely. Useful on trusted networks; not the default for a reason.
  • Excluded paths are host paths; if they fall under project or any mounts entry, the corresponding container path is overlaid with an empty mount.
  • Both absolute and relative paths on the host are permitted for all fields. If a field path is relative, it is resolved relative to the project host path. If the project host path is also relative, it is first resolved relative to the YAML file path.

What it doesn't protect

  • Anything you mount writable — the agent has full access there.
  • Sibling containers, if you opt into external_networks.
  • Anything the agent can do at an allowlisted endpoint with credentials you gave it.

License

Apache-2.0.

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

isag-0.2.0.tar.gz (28.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

isag-0.2.0-py3-none-any.whl (28.7 kB view details)

Uploaded Python 3

File details

Details for the file isag-0.2.0.tar.gz.

File metadata

  • Download URL: isag-0.2.0.tar.gz
  • Upload date:
  • Size: 28.8 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for isag-0.2.0.tar.gz
Algorithm Hash digest
SHA256 181aeaea6290bfe97d396f77ee1ca25c9f6b84c8254495a326750f9177837160
MD5 fd43fd18fa9724f09290104ef11229b6
BLAKE2b-256 93e4e350cf3f45dc817e5eccf6dd54f489d2dc41fce45bd0d3b1cce00a076668

See more details on using hashes here.

File details

Details for the file isag-0.2.0-py3-none-any.whl.

File metadata

  • Download URL: isag-0.2.0-py3-none-any.whl
  • Upload date:
  • Size: 28.7 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.11.13

File hashes

Hashes for isag-0.2.0-py3-none-any.whl
Algorithm Hash digest
SHA256 749f3f3d717ed7d37ea36c0636a9a701144852ef9b3560a3d7d125bb8a42846f
MD5 ac5075e76f9b09786b5e4ef6cc72f431
BLAKE2b-256 373c22c0d9c91251835828fb666e99ec09da561f6e56dfe0036e3d6c9d3b0012

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page