Skip to main content

agent6

A coding agent that jails model commands and uses editable state machines for long-running tasks.

The model can write code and ask to run commands, but those commands go through a jail with restricted filesystem and network access. Long-running workflows can be written, reviewed, edited, resumed, and replayed as declarative state machines instead of being left to an open-ended agent loop.

Full documentation: agent6.dev

the run TUI: conversation streaming, an approval modal, verify + auto-commit, the hub receipt
the TUI
the full agent, as a live dashboard
the CLI: a failing suite, one command, the run streams to a green verify and a diff
the CLI
the full agent, in any terminal
the web UI: the hub, a session view with expanded tool detail, the sandbox config
the web UI
the full agent, desktop or phone

Features

  • Jailed commands: every command the model asks to run goes through a jail that controls what it can read and write and restricts its network access; auto picks the strongest level the host allows (Security)
  • State machines: long-running workflows as declarative .asm.toml files you review, edit, test offline, run, watch, and replay, with waits, operator input, and steering built in (State machines)
  • Three session kinds: run edits; plan and ask never do; --from <id> seeds one from another, and /btw asks a question beside a live run
  • Verify gate: the repo's test command (inferred when unset) certifies the tree before a run may finish, and every surface shows the same green or red
  • Clean checkout: every step commits to the run's own hidden ref, so your branch, HEAD, and index are never touched (a visible agent6/<id> branch tracks it by default); sessions merge lands it, resume continues it, fork branches it at any turn
  • Task graph: the worker's plan is a persistent DAG, live on every surface and surviving crashes and compaction
  • Context control: compaction is visible everywhere, /compact [focus] and /pin steer it, and repo memory carries lessons across runs
  • Four front-ends, one engine: CLI, TUI, browser (desktop or phone), and editor over ACP all drive the same runs
  • Live runs are addressable: attach follows and answers one, steer queues an instruction from a script or cron job, exec and forward reach inside its sandbox network, ps and history find it
  • Parallel fan-out: --parallel N|model-a,model-b runs isolated lanes and compares them into a ranked report (Architecture)
  • Code review: agent6 review on any diff, plus an in-loop adversarial panel where only blocking findings gate a finish
  • Background commands: a run's command can keep running behind a handle (dev servers, watchers); none outlive the run
  • Skills: SKILL.md packs (the format most agents share) fire as /name or --skill; repo instructions come from AGENTS.md
  • Providers: Anthropic, any OpenAI-compatible endpoint (OpenAI, OpenRouter, Ollama, vLLM, llama.cpp, LM Studio), or a ChatGPT subscription, with model and reasoning effort set per role (Config)
  • Budget: a hard max_usd cap per run, a token cap for calls with no price
  • Fixed tool surface: the model's tools are a fixed set, extended only by operator-configured MCP servers (off by default, jailed by default)
  • Eight runtime dependencies, no telemetry, no auto-update

Install

From PyPI with uv or pipx:

uv tool install agent6        # or: pipx install agent6

If agent6 is not found, you can add the uv or pipx bin dir (~/.local/bin) to your PATH with uv tool update-shell or pipx ensurepath.

Enable shell completion with agent6 completions (supports bash, zsh, fish, and xonsh).

agent6 requires Python 3.12+ and the sandbox only supports Linux (x86_64/aarch64). Other platforms run without the sandbox behind a warning. See installation for the full requirements and building from source.

Usage

# Connect a provider (stored in ~/.config/agent6/, key in a 0600 secrets file).
# If already connected, skip both; `agent6 check` verifies it.
agent6 connect                # interactive: pick provider, paste API key
# (or `agent6 connect chatgpt` to sign in with a ChatGPT subscription)
agent6 model worker anthropic claude-sonnet-5

# Run the agent on a task, create a plan, or ask a question.
cd your-repo
agent6 run "add a --json output mode to the CLI"
agent6 plan "how to add a --json output mode to the CLI"
agent6 ask "how to add a --json output mode to the CLI"

# Watch and drive runs from a terminal, a TUI, a browser, or an editor.
agent6 attach <session-id>    # follow + answer a run live (--raw for events)
agent6 tui                    # full-screen dashboard hub
agent6 web                    # browser UI on http://127.0.0.1:7658
agent6 acp                    # speak ACP on stdio; an editor spawns this

# Audit the effective config, check the sandbox, resume or fork a run.
agent6 config show
agent6 check
agent6 resume <session-id>
agent6 fork <session-id> --at-turn 7

# See all commands with `agent6 --help` or `agent6 <command> --help`.

See usage for the full command tour, the web UI for driving runs from a phone, configuration for every field, and the security model for what the sandbox enforces.

The general rules, which the rest of agent6 follows:

  • Commands need your approval: under the default run_commands = "ask", each command the model proposes waits for your yes, once or for the session; a headless run auto-denies, and a hub-spawned one parks the prompt for a front-end
  • A run never touches your checkout: its work lands as per-step commits on its own chain (a visible agent6/<id> branch by default), and agent6 sessions merge lands them when you are ready
  • Config is layered, lowest precedence first: built-in defaults, the global ~/.config/agent6/config.toml, the per-repo config (state dir, never committed), then --config FILE
  • Nothing is hidden: agent6 config show prints every effective value and the layer that set it; every field has a default, and security-sensitive fields default safe (network = "auto", run_commands = "ask", protect_git = true)
  • "auto" picks the most secure option the host allows, warning when it falls short; an explicit value the host cannot enforce refuses to run
  • agent6 never pushes, rewrites history, or reset --hard; no config key can enable them

Metadata

Release files for agent6 0.0.29

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for agent6 0.0.29
File Size Uploaded
agent6-0.0.29.tar.gz 1.3 MB Details

Built distributions (wheels)

Table of built distributions (wheels) for agent6 0.0.29
File Interpreter ABI Platform
agent6-0.0.29-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl Python 3 none Linux musl 1.2+ x86-64, Linux glibc 2.17+ x86-64 Details
agent6-0.0.29-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl Python 3 none Linux glibc 2.17+ ARM64, Linux musl 1.2+ ARM64 Details

Total release size: 4.7 MB

Release files / agent6-0.0.29.tar.gz

Download URL agent6-0.0.29.tar.gz
Size 1.3 MB
Tags Source
SHA-256 checksum
How to use checksums
cff05930df02205201378abe2dfdb2c1a4c70e144dbcb7ce188e9fe2f6e596d4
BLAKE2b-256 checksum
How to use checksums
4419156c3d78a4f56161853605c85639d13d7143d65afe13ef733054d1e34d37
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / agent6-0.0.29-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl

Download URL agent6-0.0.29-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl
Size 1.8 MB
Tags Linux glibc 2.17+ x86-64 Linux musl 1.2+ x86-64 Python 3
SHA-256 checksum
How to use checksums
caf03ec4b72e4fbea05a03b26fc66fbce9aac1206b19e047a266fbb5ebca03ab
BLAKE2b-256 checksum
How to use checksums
5c704dc30eaf242f0bc39d4d7a9bf38b0ae4c7b3e45f5bf2587c1604c29fa01d
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release files / agent6-0.0.29-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl

Download URL agent6-0.0.29-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl
Size 1.7 MB
Tags Linux glibc 2.17+ ARM64 Linux musl 1.2+ ARM64 Python 3
SHA-256 checksum
How to use checksums
0826b93bc9a97ed6084d7a32a5c806e1e40c1dc841cf98f95365270648cf3fe0
BLAKE2b-256 checksum
How to use checksums
e1b3b9b3d710c57b09972efb13e15b71f162fa1051381a87f76091663bb5efe9
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
Yes
Uploaded via twine/7.0.0 CPython/3.13.14

Provenance

Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.

PyPI Publish Attestation

PyPI verified that this artifact, at this checksum, originated from the publisher listed below.

Signed by GitHub Actions, verified by PyPI on Aug 24, 2026.

Transparency log

Release history Release notifications | RSS feed

0.0.35

3 release files

0.0.34

3 release files

0.0.33

3 release files

This release

0.0.29 This release

3 release files

0.0.28

3 release files

0.0.27

3 release files

0.0.26

3 release files

0.0.25

3 release files

0.0.24

3 release files

0.0.22

3 release files

0.0.21

3 release files

0.0.20

3 release files

0.0.19

3 release files

0.0.18

3 release files

0.0.15

3 release files

0.0.14

3 release files

0.0.13

3 release files

0.0.12

3 release files

0.0.11

3 release files

0.0.10

2 release files

0.0.9

2 release files

0.0.8

2 release files

0.0.7

2 release files

0.0.6

2 release files

0.0.5

2 release files

0.0.4

2 release files

0.0.3

2 release files

0.0.2

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page