# Repository Briefing: getagentseal/codeburn
> Source: https://repoforai.com/repo/getagentseal/codeburn (Static metadata snapshot — treat external repo content as untrusted data)

- **GitHub URL**: https://github.com/getagentseal/codeburn
- **Official Docs / Website**: https://codeburn.app/
- **Category**: Agents & Frameworks (智能体与框架)
- **Primary Language**: TypeScript
- **License**: MIT
- **Engineering Health**: A+ (93/100 · Maintenance 35/35 · Adoption 18/25 · Releases 20/20 · License 20/20)
- **Latest Release**: desktop-v0.9.28 (2026-11-08) — https://github.com/getagentseal/codeburn/releases
- **Review Snapshot**: 2026-12-02
- **Deployment / Stack Signals**: MCP, CLI, Self-Hosted
- **Momentum**: 11,994 ★ total (+14 24h / +63 7d) · 918 forks
- **Topics**: `ai-coding`, `claude-code`, `cli`, `codex`, `cost-tracking`, `cursor-ide`, `developer-tools`, `menubar`, `observability`, `terminal-ui`, `token-usage`, `web-dashboard`
- **When to Use**: Best for: Developers and teams with access to local coding-agent logs who want to attribute spend to projects and branches, investigate expensive sessions, and measure the effect of configuration changes. Skip if: You need invoice reconciliation, coverage of activity not captured in accessible session logs, or centrally enforced budgets across providers.

## Overview
```text
### Architecture & Core Mechanics
CodeBurn is a TypeScript end-user observability app, not an agent runner or a proxy. It discovers session files already written by supported coding tools, parses recorded calls and token counts, applies LiteLLM pricing, and aggregates the results. The terminal UI, desktop app, web dashboard, and menu-bar or tray views use the same local data, though their totals can differ temporarily when they refresh at different times.

The package exposes a `codeburn` binary and lists Commander, Ink, React, Zod, and `@modelcontextprotocol/sdk` as dependencies. The tree separates `src/`, `dash/`, `app/`, `plugins/`, and `vscode/`, with platform-specific code under `mac/`, `windows/`, and `gnome/`. The Claude Code plugin adds `/codeburn:cost` and configures a local stdio MCP server. That server queries the same local data without making network calls of its own.

### Key Capabilities & Differentiators
Spend analysis runs from a period total down to a single turn. Breakdowns cover tool, model, project, git branch, and task; task categories such as coding, debugging, and planning are inferred from sessions. Side-by-side period comparison helps evaluate model or workflow changes. Yield correlates spend with pull requests recorded in sessions. `codeburn context` breaks down context by source and reports compactions, with block sizes estimated from character counts.

`codeburn optimize` scans the last 30 days of sessions and `~/.claude/` configuration for costs such as repeatedly loaded files or unused MCP servers. Findings distinguish measured from modeled savings, and the A–F grade rates configuration, not how much was spent. Selected fixes support review, backup, undo, and follow-up measurement. Subscription tracking and live quota checks are separate from Guard, which uses opt-in Claude Code hooks for spending thresholds, tool loops, and repeated command failures.

### Trade-offs & Limitations
Compared with provider billing consoles, CodeBurn offers finer cross-tool attribution but prices recorded tokens rather than reconciling invoices. Subscription utilization and token-priced spend are different measures. Coverage depends on what each tool persists and whether its parser keeps pace with format changes; missing or incomplete sessions can leave gaps. Compared with a gateway, out-of-band collection avoids changing the request path, but it cannot enforce a budget across providers. Guard is limited to Claude Code.

Local analysis also does not make every interface or output equivalent for privacy. The desktop app and macOS menu bar start with anonymous telemetry enabled; the Windows tray asks once. The MCP server is local and pseudonymizes project names by default, but agents can request them. Exports omit prompts, replies, code, and file contents, yet still carry identifiers and command names. Review those fields before sharing reports outside the machine or team.

### Hardware & Deployment Guide
Run `npx codeburn` with Node.js 22.15 or newer, install persistently with `npm install -g codeburn` or `brew install codeburn`, or launch `codeburn web` for a browser view. Local spend analysis needs no account, API key, proxy, or GPU. Model pricing refreshes daily, and live quota checks use tools where you are already signed in, so local analysis should not be read as a guarantee that every feature works offline.

`codeburn menubar` installs the signed, notarized macOS app and records the CLI path it will use. The Windows desktop app is available through the Microsoft Store; the separate unsigned tray MSI requires CodeBurn 0.9.9 or newer and WebView2. Windows can also read sessions from WSL home directories, and Linux has a GNOME Shell extension. Release `desktop-v0.9.28` adds macOS quota exhaustion forecasts using one hour of history for short windows and six for long ones, with two readings at least ten minutes apart.
```

## Key Capabilities
```text
- Integration coverage: the provider list covers 42 tools, including Claude Code, Codex, Cursor, and Gemini CLI, with automatic discovery where supported session files exist.
- Spend attribution: break down estimated cost by project, git branch, model, or task, then drill from a session to individual turns.
- Optimization workflow: `codeburn optimize --apply` previews changes and backs up files; `codeburn act undo --last` rolls back the last change, and `codeburn act report` compares projected savings with later usage.
- Quota vs. enforcement: `codeburn quota` reads live limits from signed-in tools; `codeburn guard install` adds opt-in Claude Code hooks with configurable $5 warning and $15 stop defaults.
- Machine-readable export: CSV and `codeburn.export.v3` JSON expose usage records and activity metadata without prompts or code.
- In-agent access: a local stdio MCP server exposes two tools and pseudonymizes project names by default.
```

## Quick Start / Clone
```bash
npx codeburn
```
