Skip to content

feat: bucket thinking by effort level, group file attachments by extension#20

Merged
jverre merged 1 commit into
mainfrom
jacques/sankey-breakdown-improvements
Jun 9, 2026
Merged

feat: bucket thinking by effort level, group file attachments by extension#20
jverre merged 1 commit into
mainfrom
jacques/sankey-breakdown-improvements

Conversation

@jverre

@jverre jverre commented Jun 9, 2026

Copy link
Copy Markdown
Collaborator

Summary

  • cc.thinking: replace by_model with by_level (minimal / light / medium / heavy) bucketed by actual thinking tokens per LLM call. The transcript doesn't expose budget_tokens so level is inferred from output.
  • cc.file_attachments: replace files[] (individual paths) with by_type[] grouped by lowercased file extension. Removes file paths from trace metadata (privacy) and gives org admins an actionable breakdown — e.g. .md files dominating suggests trimming rule files.

Bucket thresholds

Level Tokens per LLM call
minimal ≤ 500
light 501 – 3 000
medium 3 001 – 10 000
heavy > 10 000

Tests

Added TestExtractThinkingSnapshotByLevel and TestExtractFileAttachmentsSnapshotByType. All existing tests pass.

🤖 Generated with Claude Code

…nsion

- cc.thinking: replace by_model with by_level (minimal/light/medium/heavy)
  based on actual thinking tokens per LLM call. budget_tokens is not in
  the transcript so level is inferred from output.
- cc.file_attachments: replace files[] with by_type[] grouped by file
  extension. Removes individual file paths (privacy) and gives CTLs an
  actionable breakdown (e.g. .md files dominating → trim rule files).

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
@jverre jverre merged commit 50b75b9 into main Jun 9, 2026
1 check passed
@jverre jverre deleted the jacques/sankey-breakdown-improvements branch June 12, 2026 21:15
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.

1 participant