Who it is forA developer who uses Claude Code, Codex or Pi daily and wants to know which features or bugs cost the most when the agent did the work.
The problemUsage tools only report cost per session, and one session can cover weeks of unrelated work, so the spend cannot be tied to things you recognise.
The outcomeA browser view of your projects with time at the keyboard and cost for each, where you can open a project and see the cost of each task and each prompt.
What you need first
- A Claude Code, OpenAI Codex CLI or Pi installation with existing session history on this machine
- Homebrew on macOS, or the install script on Linux or Windows, or Go installed
- A terminal to run bough in
Steps
- Install Bough with
brew install nickelsec/tap/boughon macOS, or use the install script for your platform from the README. - Run
boughto open your projects in the browser. - Open a project and hover a task to see its token and dollar breakdown.
- Click a task to open the full prompt record beside the drawing.
Prompt for your agent
Using the bough repo at github.com/nickelsec/bough, run `bough <project-name> --text` for the project at <project-name> and list the three most expensive tasks with their dollar figures. Verify that each figure is labelled as API-rate cost, not a bill.
Caveat. Costs are priced at published API rates for the model used, so a flat-rate subscription will not match these figures.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for nickelsec/bough and "Price each feature built with an AI coding agent"
Add Deduped to Claude Code once
claude mcp add --transport http deduped https://dedupedai.com/mcp
Every Monday: the 5 hottest repos and exactly how to use them. Free, one email a week, unsubscribe anytime.
Get them freeShare: X LinkedIn Hacker News Email Copy link
Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer