Your agent stops when it thinks it's done. This one stops when it's actually done.
An autonomous agent environment for Claude Code, modeled on human memory.
An advisor audits every stop; nothing becomes memory without passing one verified gate.
▶ Watch the memory circuit run
English | 한국어
Claude Code ends its turn the moment it believes it's finished, and loses the detail at the next compaction. claude-automata rebuilds it around the way human memory works:
| Plugin | Memory role |
|---|---|
| ploop | working memory: a loop for work spanning days; an independent advisor audits every stop until it finds nothing more |
| tx | consolidation: the only gate into memory (plan, independent verify, CI, squash merge) |
| refine | re-grounding: hours-long workflows that re-verify old memory against the code |
Long-term memory is the repository's own git-tracked text, not a database. Recall is grep. Whatever never passes the gate dies with the loop, on purpose.
Install
Needs Claude Code and uv on POSIX (macOS / Linux / WSL). One command, from your project root:
uvx claude-automata init
Re-running is safe (idempotent). uvx claude-automata@latest init forces the newest release.
What init writes. This environment assumes unattended operation. Review the diff before you commit it:
permissions.defaultMode: "bypassPermissions": no approval prompts. The agent runs shell commands on your machine without asking first; the trust is host-level, not repo-level.model: "opus[1m]": pinned model, 1M contextalwaysThinkingEnabled: true·autoCompactEnabled: true·autoMemoryEnabled: false- registers the
clomia/claude-automatamarketplace and enables its plugins - installs missing
gh, Node.js ≥ 20,repomixinto your user area: no sudo, present tools skipped,gh auth loginstays yours
Run a loop
/ploop:define-mission # write the anchor: an agent interviews your intent out of you
/ploop:launch [anchor text] # hand it to the loop in a fresh session
The loop rides the Stop hook: whenever the agent stops, an independent advisor with a clean context inspects the round and surfaces what the agent missed. It ends when the advisor has nothing left to say.
agent › Mission accomplished. Stopping.
hook › Stop blocked. Summoning the advisor.
advisor › Not yet. The mobile layout was never measured. Two claims cite no source.
agent › …resuming.
⟲ six rounds later
advisor › I have no further advice. Ending the turn.
An illustrative exchange. The mechanics are real. The anchor survives every auto-compaction. Safe on subscription plans (safe in mechanism, not in price): the loop shares your plan's quota, and a multi-day run spends days of it.
Pause, resume, observe
- init sets Auto-Compact; keep it on. For unattended runs, set
askUserQuestionTimeoutso an unanswered question can't park the loop. /ploop:offpauses;/ploop:onresumes, and doubles as a wake button: it revives a loop stalled by an accidental ESC, an API error, or a session limit (interrupt with ESC first if a turn is running). Nothing else stops the loop./ploop:docentin a separate session, same directory answers your questions from the loop's records without touching the loop. Questions go to the docent; interventions go straight to the loop session.
Change as transactions
/tx:open [description] # cut a tx-* branch off base
...work... # tx:plan → tx:apply → tx:verify
/tx:close # verify, docs gate, CI, then squash-merge
A transaction is an integrity boundary: it closes only after the verifier passes both the implementation and its recorded intent. Guard hooks keep the base branch protected in between. This is the gate everything above flows through.
Keep memory true
/refine:code [focus] · /refine:docs [focus] · /refine:integrity [focus]
Heavyweight multi-agent workflows (3–12 hours per run) that eliminate accumulated debt: code architecture, documentation truth, integrity boundaries. Agents cross-examine findings into consensus and execute only the highest-ROI plans. The docs pass reports defects and never modifies code. Empty focus targets the whole codebase; watch with /workflows.
▶ Watch the memory circuit run
Apache-2.0 · claude-automata develops claude-automata. A Claude Code agent running this environment authored every contribution in this repository. Recursive self-improvement in production.
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
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 claude_automata-0.1.13.tar.gz.
File metadata
- Download URL: claude_automata-0.1.13.tar.gz
- Upload date:
- Size: 12.1 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
e70a5c75b287e57847d7b3decc4ed39ddbb262ebc936ca83d4e06755522b434d
|
|
| MD5 |
cd28b0bc77f12503a42f16adfb3ee169
|
|
| BLAKE2b-256 |
79819107f16e82ff1101fa0c3616e8edd91a8f916d1f41d41d008eb0055ac057
|
File details
Details for the file claude_automata-0.1.13-py3-none-any.whl.
File metadata
- Download URL: claude_automata-0.1.13-py3-none-any.whl
- Upload date:
- Size: 14.4 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: uv/0.11.29 {"installer":{"name":"uv","version":"0.11.29","subcommand":["publish"]},"python":null,"implementation":{"name":null,"version":null},"distro":{"name":"Ubuntu","version":"24.04","id":"noble","libc":null},"system":{"name":null,"release":null},"cpu":null,"openssl_version":null,"setuptools_version":null,"rustc_version":null,"ci":true}
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
9beef72df00103e8942e7992663529c122770d7cc78d6db3ef259e9d2a1c6493
|
|
| MD5 |
84ab8593191180831410f53feca26671
|
|
| BLAKE2b-256 |
6e361f8c96f95437da24955149c17fd6e1d74bb181bea0d64a0dbae997e75ef3
|