feat: personal Claude Code usage tracking#13
Merged
Conversation
Add per-user Claude Code metrics (cost, sessions, lines accepted) using the platform.claude.com /api/claude_code/metrics_aggs/users endpoint. Includes user identity picker in API settings and "My Claude Code" card in popover. Centralize platform.claude.com URLs via Constants. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… popups When a session has active subagents, PostToolUse/PostToolUseFailure events likely originate from child agents rather than the parent. Skip auto-close for these events to avoid dismissing the parent session's pending permission popup prematurely. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
… pipe ACL fix - Fix user picker hidden after API setup (move outside ApiSetupPanel) - Auto-load user picker for already-configured profiles - Fix status line showing "Waiting for usage data" for API-only users - Fetch org spend threshold from rate_limits endpoint for correct budget display - Add daily personal metrics (today's cost/sessions/lines) alongside monthly - Throttle API/personal metrics fetches to 5-min intervals to avoid rate limits - Redesign floating panel for API-only users: "Org Budget" with $used/$total, "My Usage" with Month/Today sub-rows in bordered cards - Fix named pipe ACL: grant current user explicit FullControl to resolve UnauthorizedAccessException when HookBridge connects from different security context Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
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
rate_limitsendpoint — fixes "Left: $0.00" for orgs with monthly spend limitsFiles Changed (18)
SpendLimitCents,LastUpdatedinAPIUsage.cs;OrganizationRateLimitsResponseinApiResponseModels.cs;DailyMetricsinProfile.csrate_limitsendpoint + 3-way parallel requests inClaudeApiService; pipe ACL fix inHookIpcService; 5-min throttle + daily metrics parallel fetch inUsageRefreshCoordinator;LoadClaudeCodeUserscommand inApiBillingViewModelApiTotalTextproperties inPopoverViewModel; user picker auto-load inApiBillingViewModelHasApiUsage/HasPersonalMetricsFetchClaudeCodeUserMetricsTest plan
dotnet test— all passdotnet build --configuration Release— 0 errors, 0 warnings🤖 Generated with Claude Code