Skip to content

Surface cost driver notes and Claude cwd metadata#252

Merged
luoyuctl merged 1 commit into
masterfrom
improve/cwd-cost-driver-notes
May 24, 2026
Merged

Surface cost driver notes and Claude cwd metadata#252
luoyuctl merged 1 commit into
masterfrom
improve/cwd-cost-driver-notes

Conversation

@luoyuctl
Copy link
Copy Markdown
Owner

Summary

  • surface conservative possible_cost_driver notes in overview JSON, text, Markdown, and HTML using existing local evidence only
  • preserve Claude Code JSONL cwd metadata from log body records and expose it on recent overview sessions
  • document the new overview JSON fields and tighten CI contract checks

Fixes #249.
Fixes #251.

Verification

  • go test ./...
  • go vet ./...
  • go build -o /tmp/agenttrace ./cmd/agenttrace
  • scripts/ci/check-output-contract.sh /tmp/agenttrace
  • scripts/ci/check-report-semantics.sh /tmp/agenttrace
  • scripts/ci/check-deterministic-output.sh /tmp/agenttrace
  • scripts/ci/check-docs-commands.sh /tmp/agenttrace
  • scripts/ci/check-release-surfaces.sh
  • scripts/ci/check-pages-artifact.sh site

@luoyuctl
Copy link
Copy Markdown
Owner Author

Self-review: checked the PR diff, local validation, and CI. The implementation keeps cost-driver language conservative, uses only existing local evidence, and adds a regression test proving Claude Code cwd metadata comes from JSONL body records rather than encoded project paths.

@luoyuctl luoyuctl merged commit 687a51a into master May 24, 2026
1 check passed
@luoyuctl luoyuctl deleted the improve/cwd-cost-driver-notes branch May 24, 2026 16:05
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[Product] Surface local cost-driver notes for token/context waste Verify Claude Code cwd metadata comes from JSONL body

1 participant