Skip to content

v0.6.0

Choose a tag to compare

@HartBrook HartBrook released this 19 Jan 21:18
· 11 commits to main since this release
d7ef9b6

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 --deterministic

Features:

  • LLM-powered optimization preserves semantic meaning while reducing size
  • Anchor validation ensures critical content (tool names, file paths, commands) is preserved
  • --deterministic mode for fast cleanup without API calls
  • Caching layer avoids re-optimizing unchanged content

Token usage visibility

  • stag info now displays merged config size in tokens
  • Warning when config exceeds 3,000 tokens
  • stag sync suggests optimization for large configs

Full Changelog: v0.5.0...v0.6.0