Skip to content

Aigent Os

Claude Code harness that refreshes its own context instead of compacting: at a threshold it writes a verified capsule, runs /clear, and resumes in a fresh session. Memory is…

Install: git clone https://github.com/wrg32786/aigent-os

Works with Claude Code, Codex · 23 GitHub stars

Install

$git clone https://github.com/wrg32786/aigent-os

Install command taken from the project's README or registry entry. Always review code before running it.

Claude Code that refreshes its own context instead of compacting.

Open-source (MIT) harness for one long-running Claude Code session. With Managed Auto-Refresh, when context reaches a threshold it saves a verified capsule, runs /clear, and resumes the work in a fresh session. No summary of a summary, no re-briefing. Around that loop sits an operator layer: skill routing, guarded memory and specialist sub-agents that help with the work itself.

Install · Demo · Evidence and limits · Operator · What it changes · Uninstall · FAQ · Alternatives · Docs

Stop re-briefing your AI every morning.

From the team behind The AIgent, a free media project for people building with AI.


What it does, in plain English

Claude Code has a fixed context window. When it fills, the usual options are to let it auto-compact (the model summarizes the conversation and keeps going on the summary) or to /clear and re-explain everything yourself. aigent-OS takes a third path. Before the window fills (default 80%, configurable with AIGENT_PRESSURE_THRESHOLD_PCT), it asks Claude to write a resume-ready checkpoint file (a "capsule"). It waits for Claude to confirm the capsule is complete, sends exactly one /clear, checks that a fresh session started, and tells that new session to load the capsule and carry on. No confirmation, no clear. Your notes, decisions and open threads live in plain markdown files you keep in git (aigent-OS commits and pushes them at each capsule cycle when the install folder has a git remote), so you can read, diff and roll back exactly what your agent remembers. It runs on your machine; aigent-OS has no server of its own.

Install

Requires Claude Code, Node.js 18+ with npm, and bash (on Windows, Git Bash from Git for Windows).

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 the plan looks right, run bash install.sh in the same folder, open a new terminal, and run aigent. The first launch runs guided setup.

To install into an existing project instead of the cloned folder, run bash install.sh --target <dir> from the clone (preview it with --dry-run first). Before you start working, read What this changes on your machine, including the note on vault sync and git remotes. More options: Quick Start.

Evidence and limits

Similar plugs

Turn any codebase, with its docs, SQL schemas, configs, and PDFs, into a queryable knowledge graph. A /graphify skill for Claude Code, Cursor, Codex, and Gemini CLI: local…

Why use many token when few token do trick. Viral skill + proxy for coding agents that cuts 65% of tokens by talking like a caveman.

Persistent Context Across Sessions for Every Agent, Captures everything your agent does during sessions, compresses it with AI, and injects relevant context back into future…

Explore related