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 TUI the full agent, as a live dashboard |
the CLI the full agent, in any terminal |
the web UI the full agent, desktop or phone |
Features
- Jailed commands: Landlock + seccomp, and under
strict(what the defaultautopicks when the host allows it) user namespaces,pivot_root, read-only.git, no route off the box (Security) - Providers: Anthropic and any OpenAI-compatible endpoint (OpenAI, OpenRouter, Ollama, vLLM, llama.cpp, LM Studio); model + thinking level per role (Config)
- Clean checkout: per-step commits on a detached ref,
sessions mergeto land them, snapshot resume, fork at any turn - Verify gate: inferred when unset, pinned for the run, green/red on every surface; a worker can propose a replacement gate instead of reverting
- Budget: hard
max_usdcap, token cap for calls the provider does not price - Sessions: run, plan, ask (plan and ask never edit);
--from <id>seeds from another, cross-session reads,/btwasks beside a live run - Four front-ends, one engine: CLI, TUI, browser (stdlib server, no JS deps, phone), and editor over ACP;
attach,exec,forward,history - Background commands:
background: truehands back a handle,read_backgroundpolls,/shellslists them; none outlive the run - Context control: compaction visible on every surface,
/compact [focus],/pin, repo memory injected per run - State machines: LLM-drafted, operator-reviewed, journaled, replayable; they pause for input, take events, steer from any front-end (State machines)
- Code review:
agent6 reviewon any diff, plus an in-loop panel of adversarial reviewers where only blocking-category findings gate - Parallel fan-out:
--parallel N|model-a,model-bclone-based lanes, auto-compared into a ranked report;sessions comparefor past runs,/parallelmid-run (Architecture) - Skills: SKILL.md packs (Claude Code / Pi format) index into the prompt, load on demand, fire as
/nameor--skill; repo instructions fromAGENTS.md - Fixed tool surface: extended only by operator-configured MCP servers, off by default, jailed by default
- Eight runtime dependencies, no telemetry, no auto-update
Install
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
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.
Config is layered, lowest precedence first: built-in defaults, the global ~/.config/agent6/config.toml, the per-repo config (in the state dir, out of the workspace, per-machine, never committed), then --config FILE.
agent6 config show prints every effective value with the layer that set it.
Every field has a default, and security-sensitive fields default to the safe value: isolation = "auto", network = "auto", run_commands = "ask", protect_git = true.
Under "auto" the sandbox picks the most secure option available on the host and warns if it cannot enforce the full policy; an explicitly set value it cannot enforce refuses to run.
protect_git = true re-binds .git read-only, which needs strict; on hardened the default warns and an explicitly set true refuses to run.
agent6 itself does not push, rewrite history, or reset --hard, and no config key can enable them.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distributions
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file agent6-0.0.25.tar.gz.
File metadata
- Download URL: agent6-0.0.25.tar.gz
- Upload date:
- Size: 1.2 MB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e460fd682e2a2e66e77b5c7025af5d9e0f1822ad72f77ca0d5a132d0ae68ed74
|
|
| MD5 |
186e88162dfb62630897224aec5e309c
|
|
| BLAKE2b-256 |
7e09af8374a05b946c88658f4474d738a4b5f40b2589672cb567a5e82263bd07
|
Provenance
The following attestation bundles were made for agent6-0.0.25.tar.gz:
Publisher:
pypi.yml on agent6-dev/agent6
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent6-0.0.25.tar.gz -
Subject digest:
e460fd682e2a2e66e77b5c7025af5d9e0f1822ad72f77ca0d5a132d0ae68ed74 - Sigstore transparency entry: 2490013484
- Sigstore integration time:
-
Permalink:
agent6-dev/agent6@950caf405ee53cac0705feaf2164a4054c9f9a67 -
Branch / Tag:
refs/tags/v0.0.25 - Owner: https://github.com/agent6-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@950caf405ee53cac0705feaf2164a4054c9f9a67 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agent6-0.0.25-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl.
File metadata
- Download URL: agent6-0.0.25-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl
- Upload date:
- Size: 1.7 MB
- Tags: Python 3, manylinux: glibc 2.17+ x86-64, musllinux: musl 1.2+ x86-64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
c7075a0dccd9efae0d607799e3e40e41a2faf0b796e93711e72aba590d58347e
|
|
| MD5 |
a9583209e095233f938b0d32f775e3d9
|
|
| BLAKE2b-256 |
736ad843452189b393743b4b20a45a55e7048bd75735b0c542da6f24247cc93f
|
Provenance
The following attestation bundles were made for agent6-0.0.25-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl:
Publisher:
pypi.yml on agent6-dev/agent6
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent6-0.0.25-py3-none-manylinux_2_17_x86_64.musllinux_1_2_x86_64.whl -
Subject digest:
c7075a0dccd9efae0d607799e3e40e41a2faf0b796e93711e72aba590d58347e - Sigstore transparency entry: 2490013515
- Sigstore integration time:
-
Permalink:
agent6-dev/agent6@950caf405ee53cac0705feaf2164a4054c9f9a67 -
Branch / Tag:
refs/tags/v0.0.25 - Owner: https://github.com/agent6-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@950caf405ee53cac0705feaf2164a4054c9f9a67 -
Trigger Event:
release
-
Statement type:
File details
Details for the file agent6-0.0.25-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl.
File metadata
- Download URL: agent6-0.0.25-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl
- Upload date:
- Size: 1.6 MB
- Tags: Python 3, manylinux: glibc 2.17+ ARM64, musllinux: musl 1.2+ ARM64
- Uploaded using Trusted Publishing? Yes
- Uploaded via:
twine/7.0.0 CPython/3.13.14
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
6a08c475dfe1a260eefe09435268605d58785da9fbba5d0250bd3141fa586bd9
|
|
| MD5 |
8bdace9c16cec6bf416ab55c4ae6aa2e
|
|
| BLAKE2b-256 |
0c66b817698b3d4480acc4489a00ede0b8171d3e79068c06f0eccbc71963708f
|
Provenance
The following attestation bundles were made for agent6-0.0.25-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl:
Publisher:
pypi.yml on agent6-dev/agent6
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
agent6-0.0.25-py3-none-manylinux_2_17_aarch64.musllinux_1_2_aarch64.whl -
Subject digest:
6a08c475dfe1a260eefe09435268605d58785da9fbba5d0250bd3141fa586bd9 - Sigstore transparency entry: 2490013556
- Sigstore integration time:
-
Permalink:
agent6-dev/agent6@950caf405ee53cac0705feaf2164a4054c9f9a67 -
Branch / Tag:
refs/tags/v0.0.25 - Owner: https://github.com/agent6-dev
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
pypi.yml@950caf405ee53cac0705feaf2164a4054c9f9a67 -
Trigger Event:
release
-
Statement type: