Skip to content

feat(#179): Add --reflect flag for post-run analysis - #333

Merged
admarble merged 1 commit into
mainfrom
feature/179-run-reflect-flag
Feb 22, 2026
Merged

admarble merged 1 commit into
mainfrom
feature/179-run-reflect-flag

Conversation

@admarble

Copy link
Copy Markdown
Contributor

Summary

  • Add optional --reflect flag to sequant run that analyzes completed run data and surfaces timing patterns, phase mismatches, and workflow improvement suggestions
  • New run-reflect.ts module with analyzeRun() and formatReflection() functions
  • 15 unit tests covering all analysis paths

AC Coverage

AC Description Status
AC-1 Add --reflect flag to sequant run ✅ MET
AC-2 Analyze phase timing patterns across issues ✅ MET
AC-3 Detect potential phase mismatches (.tsx without /test) ✅ MET
AC-4 Suggest workflow improvements based on patterns ✅ MET
AC-5 Output is concise (max 10 lines of suggestions) ✅ MET

Test plan

  • npm run build passes
  • npm run lint passes (0 errors, 0 warnings)
  • 15 dedicated unit tests pass (run-reflect.test.ts)
  • 94 run command tests pass (run.test.ts)

Closes #179

🤖 Generated with Claude Code

Add optional --reflect flag to `sequant run` that analyzes completed
run data and surfaces timing patterns, phase mismatches, and workflow
improvement suggestions.

- Add run-reflect module with analyzeRun() and formatReflection()
- Wire --reflect flag into RunOptions and CLI
- Detect .tsx changes without browser test phase
- Compare phase durations across issues for anomalies
- Suggest quality loop, /solve, and label improvements
- Enforce max 10 output lines with truncation
- Add 15 unit tests covering all analysis paths

Closes #179
@admarble
admarble merged commit 1d9aa1d into main Feb 22, 2026
6 checks passed
@admarble
admarble deleted the feature/179-run-reflect-flag branch February 22, 2026 15:29
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.

feat(run): Add optional self-reflection summary after run completion

1 participant