Overview of code-on-incus (coi) features
mastercode-on-incus (coi) provides isolated system containers (using Incus) for AI coding agents.
Key Capabilities
- Isolation: Each agent gets a full system container with root access, systemd, and Docker, preventing them from touching your host system.
- Security: Protects host credentials (SSH keys, env vars, Git tokens) by default. Includes real-time threat detection (reverse shells, data exfiltration) that can auto-pause or kill containers.
- Persistence: Workspace files persist even in ephemeral mode. Containers can be kept alive between sessions to preserve installed tools.
- Host Integration:
- SSH Agent Forwarding: Use
[ssh] forward_agent = trueto use git-over-SSH without copying keys. - Port Publishing: Map container TCP ports to
localhostusing[ports] poolor[[ports.map]]. - Socket Forwarding: Forward host Unix sockets using
[[sockets]]. - Credential Catalog: Inject specific credentials via
[[credentials]]entries. - Environment Variables: Forward specific host variables via
forward_envor inject secrets via[defaults.env_commands].
- SSH Agent Forwarding: Use
- Context Injection: Automatically injects
~/SANDBOX_CONTEXT.mdinto the agent's environment to inform them of their network mode, workspace path, and persistence status.