aigent-OS

A Claude Code harness that saves a verified capsule and clears its own context before the window fills, instead of compacting.

Stars
★ 23
Last updated
today
License
MIT
Primary language
JavaScript

At a glance

How it runs
Agent plugin / skillCLIDesktop app
Works with
Portable with changesClaude CodeCodex (Partial support)
Cost
Free software; you pay for model usage
Setup effort
Medium · a few setup steps
You'll need
Node.js 18+npmbash (Git Bash on Windows)Claude Codenode-pty@xenova/transformersShell / CLINetwork accessLocal filesystem
Typical use
Claude Code users running one long task who want to cross the context limit without re-briefing the model each time.
Not a fit if
  • Teams needing unattended long sessions on v1.1.0-rc.1, where the clear step can stall
  • Windows users without Git Bash who rely on PowerShell alone
  • Teams that want memory in a hosted database rather than local Markdown files
Source review
75/100 · Good

What does this agent do, and when should you use it?

aigent-OS is an MIT-licensed harness layered onto Claude Code. Its centerpiece, Managed Auto-Refresh, watches context pressure (80% by default, tunable with AIGENT_PRESSURE_THRESHOLD_PCT), asks Claude to write a resume-ready capsule, waits for the exact acknowledgement "Capsule Complete, Ready For Clear", submits exactly one /clear, verifies a fresh SessionStart identity, then sends one resume wake so the new session loads the capsule and keeps working. Around that loop sits an operator layer: a 16-document markdown kernel under system/, Caddy skill routing, nine named sub-agents with declared model tiers, three-tier memory, and a vault of plain markdown committed to git each capsule cycle so memory is auditable with git log. It runs locally on Node.js 18+ with Claude Code as the host; semantic search uses all-MiniLM-L6-v2 on your machine, and an optional Codex adapter delegates one bounded task class to codex exec as a review-only diff. There is no server of its own and installation is one install.sh script on macOS, Linux, and Windows via Git Bash. The README is explicit that Managed Auto-Refresh is a v1.1.0-rc.1 pre-release feature and that public evidence is 11 of 11 refresh transactions on one Windows seat.

install.sh writes or merges <target>/.claude/settings.json, attaching hooks to seven Claude Code events (SessionStart, UserPromptSubmit, PreToolUse, PostToolUse, PreCompact, Stop, SessionEnd), a statusLine command, and the AIGENT_ROOT / AIGENT_VAULT env values, then copies skills/ into .claude/skills/ and vault/agents/ into .claude/agents/ and installs node-pty plus the semantic-search dependencies. At runtime daemons/ctx-telemetry.mjs records the current context percentage, daemons/auto-clear-transport.mjs owns the one-cycle clear authorization, and daemons/pty-runner.mjs is the sole PTY writer, submitting command text and Enter separately and clearing stale composer text before /clear. skills/context-capsule/SKILL.md writes and verifies the capsule and emits the acknowledgement literal; daemons/boot-receipt.mjs and daemons/sessionstart-reinject.mjs produce the fresh SessionStart receipt; daemons/resume-verb.mjs loads the newest valid capsule as historical work state. Beyond the boundary: a Caddy UserPromptSubmit hook matches each prompt against the skill catalog, daemons/model-tier-guard.mjs checks every Agent-tool dispatch against its declared tier, and daemons/semantic-search/search-vault.js does local semantic search over the vault. When a capsule cycle closes and the install folder is a git repo with a remote, it commits the memory folder and pushes.

  1. Claude Code users running one long task who want to cross the context limit without re-briefing the model each time.
  2. Solo founders or technical leads juggling several workstreams who need yesterday's open threads and priorities surfaced at session start.
  3. Teams that need to audit what an agent remembers: every checkpoint is a diffable, revertible git commit rather than an opaque vector store.
  4. Obsidian users who want their agent's knowledge graph as a browsable vault/ folder of markdown notes.
  5. Developers who want to hand one bounded, mechanical task to a non-Claude executor: the Codex adapter runs codex exec and writes a working-tree diff for review.
  6. Local-first operators on macOS, Linux, or Windows (Git Bash) who want a single installed aigent command and desktop shortcut instead of deploying infrastructure.

How do you install or deploy this agent?

Prerequisites: Claude Code, Node.js 18+ with npm, and bash (on Windows install Git for Windows first; PowerShell alone cannot run the script). Preview the plan with a dry run, then install for real:

What are this agent's strengths and limitations?

Pros
  • The context boundary is an explicit protocol: one capsule request, one exact acknowledgement, one /clear, one fresh session, one resume wake. No acknowledgement means no clear.
  • Memory lives as plain markdown in git, one commit per capsule cycle, so it is readable with git log, diffable, revertible, and openable directly in Obsidian.
  • The installer is previewable with --dry-run, backs up files it merges into, and quarantines conflicting framework files under .aigent/quarantine/ instead of overwriting silently.
  • There is a working operator layer beyond the refresh loop: skill routing, model-tier dispatch checks, three-tier memory, nine specialist sub-agents, and local semantic search.
  • Runs on macOS, Linux, and Windows (Git Bash) with CI covering the installer on all three, and it does not touch your user-level ~/.claude/settings.json.
Limitations
  • Managed Auto-Refresh ships only in the v1.1.0-rc.1 pre-release; GitHub's Latest tag (v1.0.0) predates it, and on rc.1 a long session can stall at the clear step and need a manual /clear.
  • Public evidence is 11 of 11 transactions on a single Windows seat in one live run, which the README says is not a fleet or reliability claim and not a claim of beating compaction.
  • Every refresh spends extra tokens writing and re-reading the capsule, and Claude Code remains a hard host dependency.
  • The default install needs native dependencies such as node-pty; --no-deps falls back to an unmanaged launch without automatic clear.
  • Installing inside the cloned folder leaves origin pointed at the public repository, so capsule cycles would push your memory there unless you repoint or remove the remote.
  • Several listed capabilities (Hindsight/Jev memory bridge, fleet-band, fleet-delivery) exist only on master, not in a release, and fleet-delivery depends on a message room and job source not included in this repo.

How does this agent compare with similar options?

The README positions aigent-OS against named alternatives. claude-mem captures what the agent did, compresses it with AI, and injects it into later sessions, with storage (SQLite + Chroma) outside version control. mksglu/context-mode reduces context consumed by tool output and keeps session events in SQLite for re-search after compaction. tigerless-labs/agent-memory offers a shared markdown long-term store with a local ranked search index for Claude Code and Codex. vectorize-io/hindsight is a memory service that learns across agents, which aigent-OS can bridge to optionally. mvschwarz/openrig targets persistent multi-agent teams. Its own framing: session continuity and cross-session memory are a populated category, git-native auditability is where this repo is currently ahead, and it does not claim to beat compaction.

Key facts side by side with the most closely related agents.

Agent Source review Form / cost Stars Updated Language Full support on
aigent-OS This agent 75 · Good Agent plugin / skillFree + model costs ★ 23 today JavaScript Claude Code
Vibe Coding Chinese Guide 38 · Major gaps CLIFree ★ 18k 2d ago Makefile Codex · Claude Code
Claude Codex Settings 48 · Major gaps Agent plugin / skillFree + model costs ★ 1.2k today Python Codex · Claude Code
RecallLoom Project Memory Insufficient evidence Agent plugin / skillFree ★ 153 2mo ago Python Codex · Claude Code

How does FollowAgents rate this agent?

FollowAgents source review · FARS-2.1
Good
75/ 100 5-point scale 3.8 / 5
Trust 21/29
Reliability 9/14
Adaptability 14/18
Convention 16/18
Effectiveness 9/13
Verifiability 6/8
Why each dimension lost points
Trust21 / 29 · 3.6/5

Least privilege is documented: the installer avoids sudo, does not touch user-level ~/.claude config, refuses writes through symlinks, and confines writes to the target (2). Not full marks because hooks run with user OS permissions and the authority matrix is explicitly doctrine, not enforcement. User confirmation exists via --dry-run and backups, but a default install appends to ~/.bashrc, edits PATH and creates shortcuts, so consent granularity is coarse (2). Data-flow transparency is the strongest area: README and install-security enumerate npm, Hugging Face model download, vault git push, optional bridge and Codex, and warn that a cloned-folder origin points at the public repo (3). Sensitive data handling includes credential redaction, a confidential deny list and a persisted-text render boundary, but all are self-described defense in depth over plaintext markdown (2). Dependency security uses npm ci --ignore-scripts with lockfiles, but no SBOM or vulnerability-scan evidence is present (2). External effects include automatic /clear, git commit/push and PATH wiring, all documented with rollback, but auto-push and auto-clear are high-impact (2). Rollback is thorough: backups, quarantine, uninstall steps, doctor diagnostics (3). Source attribution: MIT names Will Gwyn and README links theaigent.xyz and a companion paper, but publisher identity is unverified by the registry and releases are unsigned, so 1.

Reliability9 / 14 · 3.2/5

Self-consistency: docs proactively disclose the rc.1 clear-step defect, a known ACTIVE_STATE path split, and a corrected earlier doc error, which is honest but shows live inconsistencies (2). Dependency availability: Node 18+, bash, optional Python3, lockfiles and three-OS CI install tests support it, but node-pty needs local rebuild and the embedding model downloads on first run (2). Failure messages: doctor.sh, --dry-run, [quarantine]/[skip] lines and DEGRADED/UNKNOWN exit semantics are documented, but DEGRADED exits 0 and requires parsing the terminal string, an easy misuse trap (2).

Adaptability14 / 18 · 3.9/5

Audience and scenarios: aimed at single-seat long-running Claude Code users, with FAQ covering compaction comparison, Windows, cost and data egress (2). Capability boundaries: a table marks each capability On by default / Opt-in / Experimental / Roadmap and states plainly that the authority matrix is not enforced and the injection scan does not block, which is unusually clear (3). Trigger precision: configurable 80% threshold and an exact acknowledgement gate, but rc.1 ack edge cases (#90/#91 fixed on master, unreleased) leave a gap (2). Environment fit: Windows needs Git Bash, macOS has the least live mileage, CI covers three platforms, so breadth is good but maturity is uneven (2).

Convention16 / 18 · 4.4/5

Information architecture: README sections are clear and docs/ splits getting-started, install-security and security with a full state-layout diagram (3). Install notes: dry-run, --target, --no-deps, --trust-existing, operator-owned declarations and checksum-pinned install are all detailed (3). Naming stability: /open and /close are retired but files remain, and the ACTIVE_STATE path split shows legacy naming debt (2). Examples and FAQ: rich FAQ with a runnable injection-scan test and full uninstall steps (3). Known limitations: a dedicated Evidence and limits section lists single-seat evidence, rc.1 defects and unverified bridge (3). License: full MIT text in repo (3). Versioning/changelog: README cites v1.1.0-rc.1 and v1.0.0, but no CHANGELOG is in the evidence and the Latest tag lags the rc, which is confusing (2). Maintenance responsibility: SECURITY.md states individual maintenance, non-SLA targets and a not-yet-enabled private channel, clear but thin (2).

Effectiveness9 / 13 · 3.5/5

Output usability: capsules are readable, diffable markdown in git, operator-friendly (2). Marginal value: explicit checkpoint instead of model summary is a real trade-off, but the author declines to claim superiority over compaction and 11/11 single-seat evidence is thin (2). Cost-benefit: free MIT, but each cycle spends tokens writing and reading a capsule and requires Node/npm/node-pty plus a first-run model download, so value depends on long sessions (2).

Verifiability6 / 8 · 3.8/5

Claim traceability: README ties 11/11 evidence to a companion paper and case study and cites specific PR/issue numbers (2). Cross-source corroboration: CI workflows match documented install and daemon tests, but core Auto-Refresh behavior has no public reproducible test evidence beyond a single-seat self-report (2). Fact/inference separation: docs repeatedly distinguish shown, not-claimed and roadmap, and label the demo as a scripted illustration rather than a recording, which is done well (3).

Risks and how to mitigate them
  • A default install appends to ~/.bashrc, edits PATH and creates shortcuts, and vault sync auto-commits and pushes when a remote exists; a cloned-folder origin points at the public repo, so repoint or remove it before use.
  • v1.1.0-rc.1 has a known defect where long sessions stop at the clear step; fixes are on master but unreleased, so keep a manual /clear fallback.
  • The authority matrix and injection scan are advisory, not enforced controls; real enforcement must come from Claude Code permissions and OS-level controls.
  • Publisher identity is unverified by FollowAgents and releases are unsigned; prefer pinned-commit or checksum-pinned install and review install.sh yourself.
  • Docs admit ACTIVE_STATE.json is written and read from different paths, which can leave runtime state empty; verify with doctor and --print-vault.
Evidence confidence: Low Reviewed Oct 26, 2026 Reviewed revision 4d753348297c
See the full review method →

FAQ

Is this actually better than Claude Code's built-in auto-compaction?
The README says no such claim is made. It is a different trade-off: an explicit, inspectable checkpoint plus a clean window, versus a model-written summary of the conversation. Try both on your own work.
What data leaves my machine after install?
aigent-OS has no server of its own. Network use covers npm during install, a one-time download of the all-MiniLM-L6-v2 model from Hugging Face for semantic search, and pushing memory commits to the install folder's git remote at each capsule cycle. The optional memory bridge and Codex adapter only call out when you configure or invoke them, and Claude Code itself still sends your conversation to Anthropic.
Should I install in the cloned folder or into my project with --target?
--target copies framework files into an existing project, appends only a marked block to CLAUDE.md, and keeps your text outside the markers, which suits working inside an existing codebase. Installing in the clone is simplest, but that folder's origin is the public repo, so repoint or remove the remote before you start.
How do I remove it cleanly?
There is no uninstall script; removal mirrors the install. Restore settings.json, CLAUDE.md, and .gitignore from .aigent/backups/, delete the skills and agents aigent-OS added, delete the framework folders it created, remove ~/.local/bin/aigent and the added lines in ~/.bashrc (on Windows, %USERPROFILE%\.aigent\bin, the user Path entry, and the AIGENT_HOME variable). Back up vault/ and memory/ first.
Is it production-ready?
Not yet, by the README's own account: Managed Auto-Refresh is a v1.1 release candidate, and the clear-step fixes are merged on master but not in a tagged release. Four maintainer seats do run The AIgent newsletter on it, which the README frames as operating experience rather than a measured result.
View on GitHub ↗ Install ↓

Compare agents like this one

The same FARS review applied across the shortlist this agent qualifies for.

Related agents