aigent-os

Claude Code harness and alternative to context compaction: at 80% context it writes a verified capsule, runs /clear and resumes with persistent memory in git.

View the Project on GitHub wrg32786/aigent-os

How do I run multiple Claude Code agents with persistent memory?

Give each agent its own install, its own memory and its own checkpoints. In aigent-os each seat has its own memory vault and its own capsules, and the maintainers run four seats (Titus, Pheme, Davinci and Metis) on one business, The AIgent newsletter.

How aigent-os does it

Running four seats is operating experience, not a measured result. The README does not claim aigent-os grew the newsletter or cut operator effort.

Install

Full install (needs Claude Code, Node.js 18+ with npm, and bash; on Windows use Git Bash):

git clone https://github.com/wrg32786/aigent-os.git && cd aigent-os && bash install.sh --dry-run

The dry run prints the planned changes and writes nothing. When it looks right, run bash install.sh, open a new terminal and run aigent.

Just want the manual capsule commands? Install the context-capsule plugin inside Claude Code:

/plugin marketplace add wrg32786/aigent-os
/plugin install context-capsule@aigent-os

Limits

Full list: the Known limits section of the v1.1.0 release notes.

FAQ

Can I run Claude Code as a multi-agent system with separate memory?

Yes. Each aigent-os seat has its own memory vault and capsules. The maintainers run four seats on one business.

Does it work with Codex or other models?

Claude Code is the host. A Codex adapter routes one bounded task class to codex exec, review gated and never auto merged. Other CLIs are on the roadmap, not shipped.

Is it free?

aigent-os is free and MIT licensed. You pay for Claude Code as usual, and each refresh uses some tokens to write and read the capsule.

More