Repository navigation
v0.6.0
What's New
stag optimize command
Compress large configs to reduce token usage in Claude's context window.
# Analyze merged config (informational)
stag optimize
# Show before/after diff
stag optimize --diff
# Optimize and save personal config
stag optimize --layer personal --apply
# Fast mode: deterministic cleanup only (no API calls)
stag optimize --deterministicFeatures:
- LLM-powered optimization preserves semantic meaning while reducing size
- Anchor validation ensures critical content (tool names, file paths, commands) is preserved
--deterministicmode for fast cleanup without API calls- Caching layer avoids re-optimizing unchanged content
Token usage visibility
stag infonow displays merged config size in tokens- Warning when config exceeds 3,000 tokens
stag syncsuggests optimization for large configs
Full Changelog: v0.5.0...v0.6.0