Repository navigation
feat(upload): add agent, skill and file-extension breakdowns to session stats - #374
Merged
Merged
Conversation
…on stats Session stats now carry four optional per-session maps the analysis reports group by, matching what the worker used to derive from uploaded markdown: - agents: assistant messages per agent (build, plan, ...) in the top-level session - skills: skill uses by name (skill tool calls and SKILL.md reads) - skills_created: skills whose SKILL.md the session wrote - file_extensions: distinct files read or modified, by extension Subagent sessions contribute to skills and files, not to agents. The fields are additive to payload v1; backends that predate them ignore them. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This was referenced Sep 25, 2026
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
Follow-up to #373. The analysis web app is switching its reports from log-derived analytics to the session stats pushed at launch (oadtq/z8l-ai-hub#9, plus the reports PR). Four report breakdowns relied on fields the stats didn't carry, so each
SessionStatsrecord now includes them as optional{ name: count }maps:agentsbuild,plan, …), top-level session onlyskillsskilltool calls, plus reads of<name>/SKILL.mdskills_createdSKILL.mdthe session wrote (completed writes only)file_extensionsskills/file_paths/model_modeenrichers derived from markdown.DIVERGENCES.mdrow:packages/codev-uploadis fork-only. No CHANGELOG entry, matching feat(upload): push session usage metrics at launch; logs upload only via codev upload --logs #373.Test plan
bun testinpackages/codev-upload(58 tests, including a new one covering all four maps: subagent handling, denied writes, case-folded and extensionless files)bun typecheckinpackages/codev-uploadcodev_sessionsview exposes them asmode,skills_invoked,file_extensions🤖 Generated with Claude Code