Bough Work and Cost Explorer
Turn Claude Code, Codex CLI, and Pi histories into a browsable work map with per-task API-rate estimates.
- Source repo
- nickelsec/bough
- Stars
- ★ 133
- Last updated
- 5d ago
- License
- MIT
- Primary language
- Go
- FA score
- 78/100 · Good
At a glance
- How it runs
- Works with
- Portable with changesCodex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A Claude Code user who wants to review prompts, failures, and estimated spend for a feature or afternoon of work.
- Not a fit if
- Teams that need costs to match subscription invoices
- Users who need extensively validated Codex or Pi metrics
- Website
- bough.run ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-11latest release v0.8.0 (2026-10-02)
- Source review
- 78/100 · Good
What does this agent do, and when should you use it?
Bough is a Go CLI that reads local session histories from Claude Code, OpenAI Codex CLI, and Pi, then organizes prompts into tasks and sittings. Running bough opens a local browser view bound to 127.0.0.1, with a work diagram, full prompt records, estimated task costs, and Git commit details. It can also print a terminal list with --text or export the work structure without visual layout using --json. The single binary works offline by default, makes no model calls, and sends no data; it reads histories and project Git history without modifying them. Costs use published API rates and are not subscription invoices; the project is early, and its grouping thresholds were fitted to one developer's history.
When invoked, bough discovers histories for Claude Code, Codex CLI, and Pi and reads prompts, tools, files, commits, and token counts by project. It groups prompts into tasks and tasks into sittings; the browser view draws those levels, and selecting a node opens the corresponding untrimmed prompt record. Bough reads local Git history at paths named in the transcripts to check commits; --no-repo disables that read. It estimates task and project cost using published rates built into the binary. Models with no published rate or request-size pricing show token counts with NA for the amount. Use --agent to select a history source and --text, --json, or -o to choose an output path; --rename assigns a display name to a project.
- A Claude Code user who wants to review prompts, failures, and estimated spend for a feature or afternoon of work.
- A developer switching among Claude Code, Codex CLI, and Pi who wants those local project histories in one list.
- A user who needs to feed work records into another script or analysis flow can export the structure with
--json. - A terminal-focused developer can inspect task summaries with
--textor write output to a file. - A developer checking which commits appear in a session history can compare them with the local project Git history, or turn that read off.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
brew install nickelsec/tap/boughcurl -fsSL https://www.bough.run/install.sh | shirm https://www.bough.run/install.ps1 | iexgo install github.com/nickelsec/bough/cmd/bough@latest
- Install notes cover
- Windows · macOS · Linux
How do you install or deploy this agent?
On macOS, install with Homebrew:
brew install nickelsec/tap/boughOn Linux or macOS without Homebrew, run:
curl -fsSL https://www.bough.run/install.sh | shOn Windows, run:
irm https://www.bough.run/install.ps1 | iexGo users can install with:
go install github.com/nickelsec/bough/cmd/bough@latestTo build from source:
git clone https://github.com/nickelsec/bough
cd bough
go build ./cmd/boughThe README says the install scripts check published checksums. No API key or model service is required. Building from source requires Go; the project lists one dependency, golang.org/x/term.
How do you use this agent?
First run:
boughBough discovers projects and opens its local browser view. Common options:
bough --text
bough --json
bough --agent=pi
bough --no-repo
bough --root DIR
bough project-one --rename "Portfolio site"--text prints a terminal list, --json exports the work structure, and --agent accepts claude, codex, pi, or all. Set --root to read histories from a different directory. Open a named project with bough project-one, or write output to a file with bough -o notes.txt.
What are this agent's strengths and limitations?
- Its prompts-to-tasks-to-sittings view makes individual pieces of work inspectable instead of treating a multiweek session as one unit.
- It automatically reads Claude Code, Codex CLI, and Pi histories and lets users filter by agent.
- Published rates are built into the binary for offline estimates; models it cannot price are marked NA.
- Users can inspect results in a local browser, as terminal text, or as JSON.
- Task-grouping thresholds were fitted to one developer's history and may place boundaries poorly for other workflows.
- The README describes Codex and Pi support as newer and less exposed, so their metrics warrant extra scrutiny.
- Cost figures use published API rates and do not represent a user's actual subscription or invoice.
- Models without published rates or with request-size pricing get token counts but no cost figure.
How does this agent compare with similar options?
The README distinguishes Bough from Claude Code's /stats: /stats covers usage statistics, while Bough groups work into tasks and estimates their costs. It also notes that usage tools generally stop at the session level; Bough attempts to split sessions into tasks.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| Bough Work and Cost Explorer This agent | 78 · Good | CLIFree | ★ 133 | 5d ago | Go | Codex · Claude Code |
| ChatLab — Chat History Analyzer | 70 · Some gaps | Desktop appFree + model costs | ★ 7.7k | 2d ago | TypeScript | — |
| Principia | 66 · Some gaps | CLIFree + model costs | ★ 1.1k | 1mo ago | Rich Text Format | — |
| Open Science Workbench | 81 · Good | Desktop appFree + model costs | ★ 5.5k | today | TypeScript | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
The README and SECURITY.md limit the described inputs to local agent histories and optional Git history, and say the page binds to 127.0.0.1 without needing a network. The rate generator uses the network only when someone explicitly refreshes rates, not during history reading. Writes are described as limited to names.json when renaming, while ordinary reads are read-only; there is no per-use confirmation for sensitive transcripts, so confirmation is not full marks. The tool displays untrimmed prompts, and the supplied material shows no dedicated redaction or protection mechanism. The dependency set is small and CI includes security scans, but no audit results are supplied.
The README discloses grouping thresholds, cost-estimate caveats, and differences from Git counts; the main command reports partially unreadable history and missing history. However, the privacy claims are supported here mainly by README statements and partial code/comments, without the full server and parser sources for corroboration. The dependency count is low, but toolchain and dependency availability still matter; release and change-history evidence is limited.
The product targets local history analysis for Claude Code, Codex CLI, and Pi, with project selection, text and JSON output, agent filtering, custom roots, and an option to skip Git reads. Its boundaries are clear: it is not a bill, it does not cover other agents, and it identifies local Pi models. Thresholds are fitted to one developer's history and Codex/Pi have less exposure, limiting fit and confidence across users.
The README clearly organizes features, commands, layout, format notes, and limitations. Installation covers major platforms and offers checksum and non-script alternatives, though the install scripts themselves are not in the supplied packet for inspection. Naming and commands appear stable; examples are concrete, but no FAQ evidence is supplied. The MIT license text is complete. Security reporting and maintenance guidance are clear, but SECURITY.md says there are no releases yet and the packet contains no formal changelog or stable-version commitment.
The browser, text, and JSON outputs expose projects, sittings, tasks, prompts, files, commits, and task-level cost. The README explains the value of going beyond session-level grouping. Costs use published API rates rather than actual billing, and long-context rereading can dominate; thresholds are fitted to one person's history, limiting the value of estimates and grouping for other users.
The README links major behavior to commands, internal modules, and agent-format notes, and distinguishes recorded facts from inferred grouping and API-rate estimates. The README, main-command excerpt, rate generator, license, and CI configuration provide partial corroboration. The source sample is incomplete, so all privacy and parser claims cannot be checked from the supplied static evidence; cross-source corroboration is therefore not full marks.
- Costs are estimates at published API rates, not subscription or actual bills; unpriceable models may show token counts without a price.
- Task and sitting boundaries are tuned on one developer's history, and the README says Codex and Pi have had less exposure.
- The tool displays untrimmed prompts. Check for sensitive content before screen sharing or exporting text or JSON.
Recent releases
Latest entries from the project's GitHub Releases. Notes are quoted from upstream as written, not rewritten or tested by FollowAgents.
-
Release notes excerpt
Full Changelog: https://github.com/nickelsec/bough/compare/v0.7.1...v0.8.0View on GitHub ↗ -
Release notes excerpt
Full Changelog: https://github.com/nickelsec/bough/compare/v0.7.0...v0.7.1View on GitHub ↗ -
Release notes excerpt
Full Changelog: https://github.com/nickelsec/bough/compare/v0.6.1...v0.7.0View on GitHub ↗
FAQ
Is the displayed cost what I was billed?
Does it upload session history or repository contents?
names.json in Bough's own settings directory.Which coding assistants can it read?
--agent=claude, --agent=codex, --agent=pi, or --agent=all.Will it still work if a project moved or is not a Git repository?
--no-repo also disables repository reading.Are task and sitting boundaries guaranteed to fit my work?
Does Bough Work and Cost Explorer work on Windows?
irm https://www.bough.run/install.ps1 | iex.Is Bough Work and Cost Explorer open source?
Is Bough Work and Cost Explorer safe to use?
Is Bough Work and Cost Explorer still maintained?
Who makes Bough Work and Cost Explorer?
What is Bough Work and Cost Explorer's official website?
Thanks — we use this to improve the page.