Purpose
aigent-OS is an open-source (MIT) Claude Code harness for long-running and multi-agent sessions. The core problem it addresses is that Claude Code's context window is fixed; once full, it typically only allows the model to compact automatically (continue working from a summary) or to manually /clear and then restate everything. aigent-OS offers a third path: save a structured checkpoint before the window fills, clear the session, and then restore from the checkpoint in a new session, thereby avoiding "summaries of summaries" and repeatedly re-establishing context.
Key capabilities
- Managed Auto-Refresh: When context reaches a threshold (80% by default, configurable with AIGENT_PRESSURE_THRESHOLD_PCT), request that Claude write a recoverable "capsule" file, wait for its confirmation of completion, send a single /clear, confirm the new session has started, and then have the new session load the capsule to continue work. No confirmation means no clearing.
- Persistent memory: Notes, decisions, and unfinished items are stored as plain Markdown in git; when the installation directory has a git remote, each capsule cycle commits and pushes the memory folder, so you can read, diff, and roll back what the agent remembers.
- Operator layer: Includes skill routing (each prompt points to a matching skill in the skills directory), protected memory (limits resident memory size and reviews injected instructions), and specialized subagents.
- Skills and subagents: The repository ships with 73 skills and 9 specialized subagents; skills follow the Agent Skills open standard and can be loaded by compatible agents such as Claude Code, Cursor, and Codex.
- context-capsule plugin: A portable manually triggered version of auto-refresh, used as an ordinary Claude Code plugin; run /capsule or /refresh to write a recoverable capsule, perform /clear yourself, and in the next session a short pointer lets /resume continue. Pure Node scripts, zero npm dependencies, no network.
- Codex adapter: Optional; runs the Codex CLI only when invoked.
- Local operation: aigent-OS has no server of its own; semantic search on first run will from Hugging Face download the all-MiniLM-L6-v2 model files, after which embedding and search run locally.
Usage
Requires Claude Code, Node.js 18+ and npm, and bash (on Windows, use Git Bash from Git for Windows).
- First run
bash install.sh --dry-runto preview planned changes; this command writes nothing. - After confirming the plan, run
bash install.sh, open a new terminal and runaigent, and on first launch it enters guided setup. - To install into an existing project rather than the cloned folder, run in the clone directory
bash install.sh --target <dir>(You can first use--dry-runto preview). - Before starting work, you should read "What will change on this machine", especially the notes about vault sync and git remotes.
The installer does not edit user-level ~/.claude/settings.json or ~/.claude/CLAUDE.md. If installed in a cloned folder whose origin points to that public GitHub repository, you should first change origin to your own private repository (git remote set-url origin <your-private-repo>) or remove it (git remote remove origin).
Using skills in other agents: skills underskills/ follow the Agent Skills open standard, and a full installation has wired them into Claude Code; even without installing the framework, the skill instructions can be used in other compatible agents. Some skills depend on aigent-OS's vault, capsules, or hooks, while general workflow skills can work independently. The managed auto-refresh loop still belongs to the Claude Code installation. Setup for each agent (Cursor, Codex, OpenCode, and the Cursor rules example) is in docs/agent-skills.md.
When to use
Suitable for users who need a Claude Code agent to keep working across days and do not want to re-explain the context every day; also suitable for multi-agent workflows that want agent memory to be auditable and version-managed. The actual usage example given in the project description is four aigent-OS seats (Titus in charge of oversight, Pheme in charge of communications business, Davinci in charge of building and architecture, Metis in charge of task allocation and paperwork) operating an AI newsletter with more than 9k subscribers.
Limitations and evidence
- The public evidence is only 11 auto-refresh loops observed by a single Windows reference seat during one release test run (each loop: one capsule request, one confirmation, one /clear, one new session, with no stuck confirmations and no duplicate clears). This is single-seat evidence, not a cluster or reliability claim, and it does not claim the method is better than compaction; it is a different trade-off: explicit, inspectable checkpoints plus a clean window, rather than model-written summaries.
- Known limitations (v1.1.0-rc.1): long sessions on managed installations may stall at the clear step and require a manual /clear; the related fix has been merged into master and ships with v1.1.0. Two narrower confirmation edge cases (#90, #91) have also been fixed. Before manually clearing, confirm that the latest capsule and in-progress work have been saved.
- Release status: managed auto-refresh was first offered as a pre-release with v1.1.0-rc.1 and became stable in v1.1.0; the current latest version is v1.2.0, which includes native skill matching, Caddy retirement, and more robust refresh.
- The project does not claim that aigent-OS brought newsletter growth, reduced operator workload, or improved business outcomes; the accompanying paper lists these as unestablished limitations and non-claims.
- There is no uninstall script; removal must be done manually, and you should first save what you want to keep in
vault/andmemory/. - Network use: npm downloads packages during installation; semantic search downloads a model from Hugging Face on first run; vault sync commits and pushes the memory folder at the end of a capsule cycle (no push if there is no remote); the optional Hindsight and Jev memory bridges do nothing until
.aigent/memory-bridge.jsonis configured, and after configuration they only call the configured provider; the optional Codex adapter runs the Codex CLI only when invoked; Claude Code itself sends conversations to Anthropic as usual.