Skip to content

v0.4.0

Latest

Choose a tag to compare

@github-actions github-actions released this 16 Jun 22:49
b35088b

What's new in v0.4.0

Claude Cowork usage now counts on the leaderboard.

Claude Cowork tracking

Claude Cowork — the Claude Desktop app's agentic "local agent mode" — runs in a local sandbox and writes the same session JSONL as the Claude Code CLI, just under the Desktop app's own data dir, where the daemon never looked. So Cowork token burn was invisible to the leaderboard. Now it's captured.

  • The daemon discovers Cowork session transcripts under the Claude Desktop data dir (~/Library/Application Support/Claude/{local-agent-mode-sessions,claude-code-sessions}/…/.claude/projects/…) and parses them through the same Claude Code parser — full token counts (input / output / cache), per model, with the same de-duplication.
  • Reported as a distinct claude_cowork source, so Cowork shows up separately from CLI usage (its sandbox project paths would otherwise mislabel the per-project view).
  • On by default. Set TOKENLEADER_CLAUDE_COWORK=0 to disable, or point TOKENLEADER_CLAUDE_COWORK_DIR at a non-default Desktop data dir (Linux ~/.config/Claude, Windows %APPDATA%/Claude).
  • Tolerates both the local-agent-mode-sessions and migrated claude-code-sessions layouts, and is scoped so the scan never descends into the multi-GB local VM bundle.

Scope

Cloud / remote Cowork sessions execute on Anthropic's servers and leave nothing on disk, so a local daemon can't see them — they're out of scope; only local Cowork is captured. Privacy is unchanged: token counts, model names, and timestamps — never message content.

Upgrade note

On by default means existing daemons backfill historical Cowork sessions from byte 0 on the first tick after upgrade. This is intended and de-dup-safe (keyed on message IDs), so re-reading never double-counts.

Quality

The new source reuses the existing Claude Code parser unchanged — parameterized only by its source tag — with discovery, parsing, tick routing, and ingest all covered by new tests. Shipped after a simplify / deslop / thermo-nuclear review pass; 581 tests, typecheck, and lint green.

Full diff: v0.3.0...v0.4.0