Skip to content

feat: /retro global — cross-project AI coding retrospective (v0.10.2.0)#316

Merged
garrytan merged 15 commits intomainfrom
garrytan/retro-global-all
Mar 22, 2026
Merged

feat: /retro global — cross-project AI coding retrospective (v0.10.2.0)#316
garrytan merged 15 commits intomainfrom
garrytan/retro-global-all

Conversation

@garrytan
Copy link
Owner

@garrytan garrytan commented Mar 22, 2026

Summary

  • /retro global — see everything you shipped across every project in one report. Scans Claude Code, Codex CLI, and Gemini CLI sessions, traces each back to its git repo, deduplicates by remote, then runs a full retro across all of them. Global shipping streak, context-switching metrics, per-project breakdowns with personal contributions, and cross-tool usage patterns.
  • Per-project personal contributions. Each project shows YOUR commits, LOC, key work, commit type mix, and biggest ship — separate from team totals.
  • gstack-global-discover — the engine behind global retro. Standalone discovery script that finds all AI coding sessions, resolves working directories to git repos, normalizes SSH/HTTPS remotes for dedup, and outputs structured JSON.
  • Discovery perf fixes. Reads only first few KB of session files (no OOM), accurate session counts, midnight-aligned week windows.

Test Coverage

  • test/global-discover.test.ts — 187 lines covering discovery, remote normalization, dedup, time windows
  • All skill validation tests pass
  • Gen-skill-docs freshness verified

Pre-Landing Review

No issues found.

Test plan

  • All bun tests pass (1 pre-existing Supabase timeout, unrelated)
  • Gen-skill-docs freshness verified for all hosts (default, codex, agents)
  • /retro global tested live — discovered 6 real repos, 955 commits, 40+ day streak

🤖 Generated with Claude Code

garrytan and others added 9 commits March 22, 2026 02:04
Standalone script that scans Claude Code, Codex CLI, and Gemini CLI
session directories, resolves each session's working directory to a git
repo, deduplicates by normalized remote URL, and outputs structured JSON.

- Reads only first 4-8KB of session files (avoids OOM on large transcripts)
- Only counts JSONL files modified within the time window (accurate counts)
- Week windows midnight-aligned like day windows for consistency
- 16 tests covering URL normalization, CLI behavior, and output structure
Adds Global Retrospective Mode to the /retro skill. When invoked as
`/retro global`, skips the repo-scoped retro and instead uses
gstack-global-discover to find all AI coding sessions across all tools,
then runs git log on each discovered repo for a unified cross-project
retrospective with global shipping streak and context-switching metrics.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Update README /retro description to mention global mode.
Add bin/ directory to CLAUDE.md project structure.
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
@garrytan garrytan changed the title feat: /retro global — cross-project AI coding retrospective (v0.9.9.0) feat: /retro global — cross-project AI coding retrospective (v0.10.2.0) Mar 22, 2026
garrytan and others added 6 commits March 22, 2026 13:41
…0.10.1.0) (#259)

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@garrytan garrytan merged commit cc9e6f8 into main Mar 22, 2026
2 checks passed
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