Astral
Manages context budget within Claude Code, preventing silent auto-compaction and improving accuracy by offering control over session content.
Claude Code and similar tools have a fixed context window that, when full, auto-compacts sessions silently, often dropping crucial information. Even before filling, accuracy can degrade due to 'context rot.' Astral addresses this by proactively monitoring context usage, warning users before auto-compaction, and enabling selective pruning of completed work. It also delegates large file reads to subagents and helps clean up unused tools, ensuring developers maintain control over their session's content, optimize context footprint, and enhance the model's accuracy.
主な機能
01Context Window Watcher: Actively monitors context usage and warns before auto-compaction at configurable thresholds.
02Read-gate for Large Files: Intercepts large file reads, offering delegation to subagents to prevent context overload in the main session.
03Tooling Audit: Scans and flags unused or stale agents/skills for pruning, providing commands to reclaim context tokens.
04Session Switch-guard: Nudges users to clear or checkpoint when a new prompt indicates a shift to unrelated work.
050 GitHub stars
06Checkpoint Manager: Enables selective dropping of completed work, generating a summary and a steered compact command to preserve live threads.
07Recall Store: Snapshots about-to-be-evicted turns, allowing Claude to re-fetch context on demand after compaction.
ユースケース
01Proactively managing context in Claude Code to prevent unexpected auto-compaction and data loss.
02Streamlining development sessions by shedding completed tasks and maintaining a focused, lean context.
03Optimizing LLM interactions by delegating large document analysis to subagents, avoiding main context window saturation.
04Cleaning up and optimizing the Claude Code environment by auditing and pruning unused agents and skills.