v0.2.3
dsx v0.2.3: analytics cross-tabs and scoped TUI stats
This release turns dsx stats from mostly one-dimensional totals into a proper usage analysis surface. It is especially useful for answering questions like “which model drove that spike?”, “which project is burning credits this week?”, and “which tools are failing most often in this window?”
Highlights
- Added multi-axis stats views:
day-modelandday-projectfor daily usage split by model or project.project-modelfor model mix inside each project.day-tool,project-tool, andmodel-toolfor tool call/error analysis.segmentto compare main, subagent, and droid-exec sessions.distfor percentile and histogram views.
- Added
stats --model,stats --metric, andstats --all. - Updated the Stats TUI with filter controls:
wwindow,vmetric,amain/all scope,pproject,mmodel,tabdimension.
- Corrected stats scoping so subagent and droid-exec sessions are excluded by default, matching
dsx list/dsx insightssemantics. Use--allwhen you want the full raw picture. - Split the dsx skill references into focused docs for usage semantics, stats analytics, and insights interpretation.
Examples
dsx stats --by day-model --metric totalTokens --since 30d
dsx stats --by day-project --metric credits --since 7d
dsx stats --by day-tool --since 7d
dsx stats --by project-model --project droid-session-explorer
dsx stats --by segment --json
dsx stats --by dist --metric tokensInterpretation notes
Daily token/credit cross-tabs use the same assistant-message pro-rating as stats --by day: session-level totals are split across active days by assistant-message count, then grouped by model or project. This is good for trend attribution, not exact per-message billing.
Tool cross-tabs use actual tool-use timestamps and joined tool results, so their call and error rates are more direct.
Forked sessions can still inherit cumulative usage from their parent chain. Before attributing an expensive fork, inspect dsx tree <id>.
Verification
Validated locally with:
bun test
bunx tsc --noEmit
bun run build
bun run compile
./dist/dsx-linux-x64 --no-refresh list -n 2The Stats TUI was also exercised with droid-control/tctl, including dimension cycling, metric cycling, scope toggling, and project/model filter input.