Who it is forA developer or analyst who wants to feed agent session costs into a spreadsheet, script or dashboard.
The problemThe browser and text views cannot be processed by other programs, so the structure of the work stays locked in the tool.
The outcomeA JSON file holding the sittings, tasks and prompts for a project, with facts about the work and no layout data.
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 as described in the README.
- Run
bough <project-name> --json -o work.jsonto write the graph to a file. (inferred, check the README) - Open work.json in a script or spreadsheet and total the cost fields per task.
- Run
bough <project-name> --json --no-repo -o work.jsonif you do not want Bough to read the project's git history. (inferred, check the README)
Prompt for your agent
Using the bough repo at github.com/nickelsec/bough, run `bough <project-name> --json -o work.json` for the project <project-name>. Check that work.json parses as valid JSON and that it contains task entries with cost fields.
Caveat. The JSON carries no colours, sizes or positions, only what Bough judges true about the work, so a consumer must do its own layout.
Use this in your AI agent
Ask your agent
Using the Deduped MCP, get the setup steps for nickelsec/bough and "Export agent work history as JSON for other tools"
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