Skip to main content

claude-automata — runs for days, remembers only what's verified

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; one verified gate decides what gets remembered.

▶ Watch the memory circuit run

PyPI MIT

English | 한국어


Claude Code ends its turn the moment it believes it's finished, and forgets everything at the next compaction. claude-automata rebuilds it around the way memory actually works:

Plugin Memory role
ploop working memory — a loop for work spanning days; every stop is audited by an independent advisor until nothing is left to surface
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
version-up-alert update notice — one line at session start when a plugin is behind; alert-only, never swaps a running plugin; ships with the others

Long-term memory isn't a database. It's the repository's own git-tracked text — 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 actually 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 context
  • alwaysThinkingEnabled: true · autoCompactEnabled: true · autoMemoryEnabled: false
  • registers the clomia/claude-automata marketplace and enables all four plugins
  • installs missing gh, Node.js ≥ 20, repomix into your user area — no sudo, present tools skipped, gh auth login stays yours

Run a loop

/ploop:define-mission          # write the anchor — your intent, interviewed 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 was missed. It ends only when the advisor has nothing left to say — not when the agent feels finished.

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 multi-day runs spend it accordingly.

Pause, resume, observe
  • Auto-Compact must be set to True. For unattended runs, set askUserQuestionTimeout — an unanswered question then never parks the loop forever.
  • /ploop:off pauses; /ploop:on resumes — a universal wake button that also 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:docent in 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 can only close once the implementation and its recorded intent are both verified. 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 (hours per run, 3–12h) that eliminate accumulated debt: code architecture, documentation truth, integrity boundaries. Findings settle through cross-examination into consensus; only the highest-ROI plans execute. The docs pass never modifies code — defects are reported. Empty focus targets the whole codebase; watch with /workflows.


▶ Watch the memory circuit run

MIT License · An independent open-source project, unaffiliated with Anthropic. By design, every contribution to this repository is authored by Claude Code agents.

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

claude_automata-0.1.5.tar.gz (8.8 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

claude_automata-0.1.5-py3-none-any.whl (10.8 kB view details)

Uploaded Python 3

File details

Details for the file claude_automata-0.1.5.tar.gz.

File metadata

  • Download URL: claude_automata-0.1.5.tar.gz
  • Upload date:
  • Size: 8.8 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

Hashes for claude_automata-0.1.5.tar.gz
Algorithm Hash digest
SHA256 8e597b8dfbe7acfa5386b6b7dd25b207d7426a4587b98b789b905d915e4ddb50
MD5 c6f834c53c940ab2819a3dcfcf9c960a
BLAKE2b-256 4789f71ae8ae2aa3fb0006f786c962c973da0d37510b68f8922bd703ea0d9325

See more details on using hashes here.

File details

Details for the file claude_automata-0.1.5-py3-none-any.whl.

File metadata

  • Download URL: claude_automata-0.1.5-py3-none-any.whl
  • Upload date:
  • Size: 10.8 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

Hashes for claude_automata-0.1.5-py3-none-any.whl
Algorithm Hash digest
SHA256 084130c1b68a548cae255ad79feac7487945f38e4d5fe37e1330df70ea0e9054
MD5 ef98603135fd51ec5f3658c7ec7e44e3
BLAKE2b-256 f923f290e89a0e4243dc0d2b0faf82e0147b3e93c7528139abfe244112137818

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page