Skip to content

Add vigilante report --repo for closed-issue analytics#387

Merged
nicobistolfi merged 1 commit intomainfrom
vigilante/issue-385-add-vigilante-report-repo-owner-name-for-closed-issue-performance-and-coding-agent-analytics
Apr 2, 2026
Merged

Add vigilante report --repo for closed-issue analytics#387
nicobistolfi merged 1 commit intomainfrom
vigilante/issue-385-add-vigilante-report-repo-owner-name-for-closed-issue-performance-and-coding-agent-analytics

Conversation

@nicobistolfi
Copy link
Copy Markdown
Collaborator

Summary

  • Adds vigilante report --repo <owner/name> command that analyzes closed issues and outputs a CSV with execution timing, coding-agent attribution, linked PR metadata, and operator interaction volume
  • Measures elapsed time from first Vigilante Session Start comment to first PR Opened comment for each closed issue
  • Resolves coding agent from issue labels (deterministic precedence) with fallback to the repo's default configured provider
  • Finds linked PRs via timeline cross-references, fetches commit count, files changed, and lines added
  • Counts @vigilanteai first-word comments as operator interaction volume
  • CSV output goes to stdout for shell pipeline and spreadsheet import compatibility

Implementation

  • internal/app/report.go — report command, CSV generation, GitHub API calls for closed issues/comments/timeline/PR stats
  • internal/app/report_test.go — 19 unit tests covering timing markers (both/missing/absent), coding agent precedence, comment counting, PR linking, CSV shape, command help/validation
  • internal/app/app.go — command dispatch, usage text, bash/zsh/fish shell completions

Test plan

  • All 19 report-specific tests pass
  • Full go test ./... passes (all packages)
  • go vet ./... clean
  • gofmt clean
  • CI passes

Closes #385

Add a read-only CLI command that analyzes closed issues in a repository
and outputs a CSV report with execution timing, coding-agent attribution,
linked PR metadata (commits, files, lines added), and operator interaction
volume (@vigilanteai comment counts).

The command uses GitHub issue comments as the source of truth for timing
metrics (Vigilante Session Start → PR Opened), resolves coding agent from
issue labels with fallback to the repo default provider, and finds linked
PRs via timeline cross-references.

Closes #385
@nicobistolfi nicobistolfi merged commit 5ce62ca into main Apr 2, 2026
1 check passed
@nicobistolfi nicobistolfi deleted the vigilante/issue-385-add-vigilante-report-repo-owner-name-for-closed-issue-performance-and-coding-agent-analytics branch April 2, 2026 18:46
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.

Add vigilante report --repo <owner/name> for closed-issue performance and coding-agent analytics

1 participant