Skip to content

feat: session token metrics, claude-code hooks, and session panel in …#57

Merged
kentwynn merged 1 commit into
mainfrom
feat/session-token-metrics
May 27, 2026
Merged

feat: session token metrics, claude-code hooks, and session panel in …#57
kentwynn merged 1 commit into
mainfrom
feat/session-token-metrics

Conversation

@kentwynn

Copy link
Copy Markdown
Owner

…visualize

  • Record packUsedTokens/packOmittedTokens on context events (moved recordSessionEvent call to after buildContextPack so token data exists)
  • Add pack stats aggregation to SessionReport (packCallCount, totalPackUsedTokens, totalPackOmittedTokens)
  • Show Pack Usage section in kgraph session output with filter rate %
  • Register claude-code hooks in .claude/settings.json on integrate add (UserPromptSubmit, PreToolUse/Read, PostToolUse/Write, Stop) so sessions fire automatically without AI cooperation
  • Add configFiles extension point to IntegrationAdapter for JSON config merging/removal on integrate add/remove
  • Fix manual mode instruction to include --agent flag in pack command
  • Add lazy Session panel to kgraph visualize toolbar: click to render pack call metrics, per-call token bars, and I/O counts on demand

…visualize

- Record packUsedTokens/packOmittedTokens on context events (moved
  recordSessionEvent call to after buildContextPack so token data exists)
- Add pack stats aggregation to SessionReport (packCallCount,
  totalPackUsedTokens, totalPackOmittedTokens)
- Show Pack Usage section in kgraph session output with filter rate %
- Register claude-code hooks in .claude/settings.json on integrate add
  (UserPromptSubmit, PreToolUse/Read, PostToolUse/Write, Stop) so
  sessions fire automatically without AI cooperation
- Add configFiles extension point to IntegrationAdapter for JSON config
  merging/removal on integrate add/remove
- Fix manual mode instruction to include --agent flag in pack command
- Add lazy Session panel to kgraph visualize toolbar: click to render
  pack call metrics, per-call token bars, and I/O counts on demand
@kentwynn kentwynn merged commit 53fb554 into main May 27, 2026
2 checks passed
@kentwynn kentwynn deleted the feat/session-token-metrics branch May 27, 2026 11:57
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