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.
aigent-os is an open-source (MIT) Claude Code harness. When context reaches a threshold (80% by default) it saves a verified capsule, runs /clear, and resumes the work in a fresh session, with memory kept as markdown in git. It runs on your machine and has no server of its own.
git clone https://github.com/wrg32786/aigent-os.git && cd aigent-os && bash install.sh --dry-run
Or just the manual capsule plugin:
/plugin marketplace add wrg32786/aigent-os
/plugin install context-capsule@aigent-os