CodeBudget
Optimize token usage and manage context for AI coding agents by reducing noisy command outputs and preserving structured diagnostics.
CodeBudget is a local-first CLI, Claude Code plugin, and MCP server designed to give AI coding agents the context they need while staying within predefined token budgets. By archiving verbose command outputs (such as tests, linting, and Git operations) into a retrievable local SQLite evidence archive, it preserves vital diagnostic information without flooding agent context windows. CodeBudget also extracts focused source ranges, tracks import relationships, and provides local session tracking, reporting, and a browser-based dashboard without requiring external accounts or remote services.
주요 기능
01Preserves raw diagnostics in a retrievable, repository-scoped local SQLite evidence archive
020 GitHub stars
03Reduces noisy terminal outputs across nine categories including tests, typechecks, lint, Git, and logs
04Generates task-focused source context with precise ranges, imports, and explicit budget limits
05Offers native Claude Code plugin support alongside three standard MCP tools
06Includes a zero-telemetry local browser dashboard with light and dark theme support
사용 사례
01Preventing agent context exhaustion during verbose test suites and CI command runs
02Constructing budget-constrained, task-specific source code context for coding assistants
03Auditing and tracking token usage, changes, and repeated failures across local development sessions