AI coding agents can now do substantial work autonomously. Spinning up a few is easy; operating many safely, persistently, and concurrently is an infrastructure problem.
Agentworks is a toolkit for that infrastructure: VMs, workspaces, agents, sessions, harnesses, configuration, secrets, and the systems that connect them.
Create and manage an agentic fleet from your own workstation. Durable agents run as separate Linux users in VMs on infrastructure you choose and control. They retain their own tools, git credentials, and accumulated application state (a coding assistant's context and memory, interactive logins). Disposable sessions spin up against them for a single piece of work and are thrown away when done. One agw CLI drives all of it declaratively via an SSH-over-Tailscale control plane .
Architecture at a Glance
The operator runs the agw CLI on their workstation. VMs are created at declared vm-sites (configured places to create VMs), each backed by a vm-platform that knows how to work with a given provider (Lima, WSL2, Proxmox, Azure VMs, AWS EC2, and Google Compute Engine today). Regardless of the platform, every managed VM runs Debian, joins the same Tailscale tailnet, and is accessible over SSH at its Tailscale IP address using the operator's keys. New VMs use the current Debian stable release, Trixie; existing Bookworm VMs remain operable, and operators can upgrade them in place using Debian's procedure.
Beyond the VMs themselves, Agentworks provides several layered primitives for organizing agentic workloads:
Project files and repositories can be organized into workspaces (as filesystem subtrees).
Agents each have their own Linux user, which provides a strong isolation boundary for capabilities and access.
Agentic workloads (simple shell, Claude Code, Codex, etc.) can be run as sessions via tmux, which provides for both persistence and the ability to attach to and detach as needed.
Each session invokes a harness integration that knows how to run a particular workload (e.g. a full agentic harness such as Claude Code, Codex, etc. or just a plain login shell). The harness integration owns launch and continuation semantics (e.g. resuming a Claude Code or Codex conversation right where it left off) as well as validating the target environment for its workload. It also owns workload-specific configuration and integration behavior.
Sessions can be organized into named consoles : curated tmux views that organize active sessions along with optional extra shell panes.
Both config and secrets (together with configured secret sources ) can be managed and securely injected at any level (VM, workspace, agent, session) to control access and behavior.
All of this is managed through a declarative, idempotent configuration system for defining and evolving infrastructure over time.
Zooming in on a single VM, the diagram below shows how these primitives fit together inside one machine: sessions invoke a harness integration to launch a harness or shell workload inside tmux, with injected secrets/config. Sessions run as dedicated Linux users, work in workspaces, and can be grouped into named consoles, all reachable over the tailnet.
The Agentworks control plane currently runs on a single machine, called the “workstation.” This is the machine you use to manage and access your Agentworks system. The workstation can also host Agentworks VMs, but it does not have to: where the control plane runs is independent of where you place the VMs that host your workloads.
Or, if you prefer to run from source:
The everyday command is agw (the longer agentworks is installed too). Set up your config, then stand up a VM and drive your first session:
That is the whole loop: create a VM once, then spin sessions up and down against it. See cli/README.md for a guided first session, the full command reference, configuration schema, and tmux architecture.
Agentworks organizes work into a handful of layered concepts.
A single human operator is in control of all agentic workloads: they create VMs, workspaces, agents, and sessions, and orchestrate how the pieces interact, all through the agw CLI on their workstation. In Agentworks terminology, "user" refers to a Linux user on a VM: either the admin user or an agent identity.
VMs - The Compute Environment
Agentworks uses shared, full-featured Linux VMs as its compute primitive. A VM provides standard software, system services, package installation, containers, and multi-user collaboration between agents. Platforms that support nested virtualization can run nested VMs too. The VM is the strong isolation boundary; Linux users, groups, and permissioned filesystem subtrees provide further separation between workloads inside it. See ADR 0001 for the decision record.
Every newly created managed VM uses Debian Trixie, the same admin-user setup, and the same Tailscale network model. See ADR 0025 for the release lifecycle decision. VMs are long-lived, backed by declarative templates, and can be idempotently reinitialized to pick up changes without being replaced. Existing VMs record their last verified Debian release. Distribution upgrades and provider recovery remain operator-led; after either one, vm confirm-release explicitly adopts the live release before a separate vm reinit .
VMs record running, stopped, or on-demand runtime intent. Creation and explicit start select running; dependency activation preserves on-demand. Stopping a VM preserves its child targets and blocks their activation. VM start restores the VM alone; use a separate agw vm reconcile NAME to restore its desired-running children.
Workspaces - The Project
A workspace is the project scope : a root directory, optionally cloned from a git repository, mapped to a Linux group whose permissions and ACLs give every member collaborative access. Workspace-level configuration (e.g. Claude Code's project settings) shapes how harnesses behave inside it. Any number of workspaces can map to the same repository; each is a full independent clone.
An agent is a security identity : its own full Linux user, with the isolation and permissions that entails (its own processes, private files, shell environment, and credentials). The boundary is the standard Unix one, discretionary access control between users sharing a kernel: it keeps one agent's mistakes and compromises away from another's state. It is deliberately not a sandbox that restricts what the agent's own user may do, which is why the VM is the boundary that does the heavy lifting when a stronger one is needed. Agents are mapped to workspaces (explicitly via grants or implicitly via sessions), and that mapping drives the group and filesystem permissions that bound what they can reach.
Agentworks does not constrain outbound network access, so an agent exposed to untrusted content can reach the network with anything its Linux user can read. Network containment is tracked in #224 .
An agent may be durable and reused across sessions, or created with --new-agent for one session. Interactive session deletion offers to remove an unused agent. --yes removes one automatically only when that session created it and no remaining session or workspace grant needs it. Reproducible agent setup belongs in its template and can be converged with agw agent reinit ; harness state, application memory, and interactive logins persist in the agent's .
Sessions and Harness Integrations - The Workloads
A session runs an agentic workload in a persistent tmux session as a target user (agent or admin) in a workspace on a VM. Every session invokes a harness integration : Agentworks code that knows how to launch a particular agentic harness (e.g. Claude Code or Codex) or a plain shell, continue its prior conversation when possible, and check whether the target environment can support the workload. A unique name, persistent tmux session, and integration-specific continuation semantics let the operator create, start, restart, stop, attach to, and delete any number of concurrent workloads. Tmux always owns the pane and its tty; the harness integration only decides what runs inside it.
Session exit does not complete or retire its recorded running intent. Explicit stop selects stopped intent while retaining the session definition. agw vm reconcile NAME restores the VM and its desired-running sessions and named consoles after an outage, preserving healthy runtimes. Use --dry-run to preview and the owning set-desired-state NAME STATE command to adopt intent without runtime work. This is explicit recovery, with no background controller. See Desired runtime state and recovery for adoption and the shared workload-secret failure boundary.
Session templates make workload configuration reusable. Harness integrations keep workload-specific logic outside the core session lifecycle.
Named Consoles - Organizing Active Work
Once more than a handful of sessions are running, a named console is a curated tmux view that groups the sessions (on a VM) you are actively working across, optionally with extra shell panes pre-opened. Each console is its own persistent tmux session, built once and attached to and detached from independently of the underlying sessions' lifecycles. Consoles reference sessions without owning them: a session can appear in any number of consoles (or none), and adding or removing it never affects the session itself, so you can slice the same pool of running work into whatever task-focused views make sense (one per feature, incident, or review). See Named Consoles in the CLI reference for the command surface.
Agentworks Is Not a Harness
Agentworks is not an agentic harness. It provides infrastructure for running harnesses such as Claude Code, Codex, OpenCode, Aider, and plain shells. A harness integration supplies the workload-specific launch, validation, and continuation behavior; Agentworks owns the environment and session around it.
The project's values, assumptions agentic engineering, and reasoning behind these design choices are collected in the Manifesto .
Tightly Integrated Software
Agentworks standardizes on a small set of integrated tools rather than abstracting over interchangeable alternatives.
SSH is the control plane after provisioning: initialization, agent and session management, file transfer, and command execution. Provisioning uses the platform's own channel (Lima shell, SSH over a scoped Azure, EC2, or GCE public route, WSL2 exec, or Proxmox guest agent). The operator's key (configured in [operator] ) is deployed during provisioning and is the sole SSH authentication mechanism thereafter. Once Tailscale is joined, routine access goes over the tailnet, and ~/.ssh/config entries are managed automatically so standard clients (scp, ssh, VS Code Remote) work seamlessly.
Tailscale is the network fabric. VMs join a tailnet during provisioning and routine SSH access rides it. Azure, EC2, and GCE temporarily open TCP/22 on their public interfaces to the operator's detected public IPv4 address (as a /32 ), plus configured allow-list CIDRs, during bootstrap or explicit native-platform access, then close it again. The tailscale-auth-key secret resolves through the configured source chain on vm create , vm rekey and vm recover . Ephemeral keys (append ?ephemeral=true ) are supported, with the node removed from the tailnet when the VM goes offline: vm start does not rejoin, so such a VM fails its start with a hint, and agw vm recover rejoins it. Generate auth keys at the Tailscale admin console .
tmux is the persistence layer. Every session maps 1:1 to a tmux session on the VM with the same lifecycle (agent sessions on per-agent sockets for isolation), and consoles layer over them for multitasking. See tmux Architecture for the full picture.
A few other integrations are useful but not fundamental: Git (workspace templates around repositories, plus scoped git credential management for GitHub, Azure DevOps, and more), VS Code (auto-generated Remote - SSH workspaces), Mise en Place (software installation with checksum validation), and dotfiles (consistent shell/editor setup for the admin user and agents).
The repository contains two operator-facing components:
cli/ is the Python CLI and the operator's primary interface.
website/ is the package-free static source and builder for agentworks.build .
They permanent product and security documentation without maintaining independent copies of the same claims.
See CONTRIBUTING.md . The project follows Conventional Commits , applies consistent conventions across the repository, and includes shared configuration for AI coding assistants.
Found a vulnerability? Please report it privately. See SECURITY.md for scope and the reporting channel.
The full story
This article is one source in a clustered incident — the cluster page carries the summary, timeline and every other outlet covering it.
