Conversation
This branch has not been deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Claude Desktop Cowork on current macOS 3p builds stores usage under
~/Library/Application Support/Claude-3p/local-agent-mode-sessions/. The path override only selects a directory; it does not make CodeBurn understand the Cowork usage-ledger format.Findings
.claude/projects/**/*.jsonlby the existing Claude transcript parser insrc/parser.ts.usage-ledger/*.ndjsonfiles withsurface,models, token counts, and nestedmodels.*.cost.usdvalues.CODEBURN_DESKTOP_SESSIONS_DIRalone produced no Cowork usage records.parseApiCall()function cannot be reused directly without misreading the records.Changes
Claude-3proot.usage-ledger/*.ndjsonfiles beneath either root.src/providers/claude.tsthat reuses the existing streaming line reader, date filtering, token accounting, cost calculation fallback, parsed-call model, cache, aggregation, and reporting pipeline.cost.usdwhen present and estimate cost with the existing Claude pricing helper when it is absent.Verification
~/Library/Application Support/Claude-3p/local-agent-mode-sessions: 5 Cowork ledger records, 2 sessions, and$1.0454102recorded cost were parsed successfully. The built CLI reportedClaude Cowork: Cost (USD) 1.05, API Calls 5, Sessions 2.npx tsc --noEmitpassed.npm run build:clipassed.git init -b main; 4,666 tests passed, 13 failed for the same unrelated issue.