blender-motion-state-inspection
AFaffaan-m/ECC314k近 7 天新增 3,503 个 star
Smart context compaction with state preservation. Saves critical files, task progress, and working state before compaction, restores after. Use before manual compact or when auto-compact triggers.
Protect important context through compaction cycles. Based on Claude Code internals: compaction restores max 5 files with 5K tokens each, within a 50K total budget.
Use before /compact or when auto-compact warning appears.
POST_COMPACT_MAX_FILES_TO_RESTORE = 5 — only 5 files survivePOST_COMPACT_TOKEN_BUDGET = 50K — total restore budgetPOST_COMPACT_MAX_TOKENS_PER_FILE = 5K — per-file limitcontext_window - 13K bufferBefore compacting, save these to memory or a scratch file:
Before full compaction, try microcompact:
After compaction, immediately:
| Strategy | Token Savings | When |
|---|---|---|
| Delegate grep/search to subagent | 30-60% per search | Always for broad searches |
Read only needed lines (offset/limit) | 50-90% per read | Large files |
| Compact at task boundaries | Preserves coherence | Between logical steps |
Use /resume for fresh start | 100% | Unrelated new task |
After running compact-guard:
COMPACT GUARD
Files to preserve: [list top 5]
Task state: [one sentence]
Decisions: [key choices]
Next step: [immediate action after compact]
Ready to compact. Run /compact now.
AFaffaan-m/ECC314k近 7 天新增 3,503 个 star
ANanthropics/skills203k近 7 天新增 2,822 个 star
HAharry0703/MoneyPrinterTurbo147k近 7 天新增 1,401 个 star
SHShubhamsaboo/awesome-llm-apps146k近 7 天新增 818 个 star
GAgarrytan/gstack143k近 7 天新增 524 个 star