wrg32786/aigent-os/capsule-compact
Claude Code and agent skill by wrg32786/aigent-os
Trust tier 3
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Compact capsule chains by summarizing older capsules. Use when manually compacting capsules or a context chain grows too long.
Install
npx vskill@latest install wrg32786/aigent-os/capsule-compactSKILL.md
The same SKILL.md was published earlier as wrg32786/aigent-os/capsule-compact.
/capsule-compact
Run python3 daemons/capsule-compact.py <head_capsule_id> from the vault root.
The script:
- Walks
parent_capsule_idchain backward from the head - If chain length >= 5, summarizes the oldest 3 capsules into a single
chain-summary-<head>-<date>.mdcapsule - Updates pointers: boundary capsule's parent → summary; summary's parent → original chain root's parent
- Marks each compacted capsule with
compacted_into: <summary_id>(they stay on disk for archeology)
When to run
- /close Step 0.5 PART E (v0.4.5) reports the capsule chain length when the threshold is hit
- Manually before a session-heavy week to keep /open Step 2.5 fast
- After narrative-reconstruction archeology when the chain has grown unwieldy
Defaults
- Threshold: 5 capsules
- Summarize-count: 3 oldest
Override via --threshold N and --summarize-count N flags.
What it does NOT do
- Does not auto-compact at /close. Hints, you decide.
- Does not delete compacted capsules. Each gets
compacted_into:marker. - Does not LLM-summarize. Concatenates structured fields (objective, open_threads still live, held decisions).
- Does not walk forks. parent_capsule_id is strictly linear.
Cross-links
- [[concepts/Somatic v0.4.5 Chain Compaction]] — spec
- [[concepts/context-capsule]] — base capsule schema
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingskills/capsule-compact/SKILL.md
Popularity
- Repository stars
- 18
- Repository forks
- 5
- 7-day trend score
- 15
Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/wrg32786/aigent-os/capsule-compact)