Skip to content

feat: add self-review quality loop to implement node - #287

Merged
bamdadd merged 1 commit into
mainfrom
feat/self-review-quality-loop
Apr 7, 2026
Merged

feat: add self-review quality loop to implement node#287
bamdadd merged 1 commit into
mainfrom
feat/self-review-quality-loop

Conversation

@bamdadd

@bamdadd bamdadd commented Apr 7, 2026

Copy link
Copy Markdown
Owner

Summary

  • Adds a self-review quality loop (proud + world-class checks) between code generation and test/lint phases in the structured implement strategy
  • After writing files, the agent reviews its own diff and fixes issues before proceeding (max 3 iterations)
  • Inspired by claude-roadhouse-plugin

Changes

  • New module: packages/workflows/src/lintel/workflows/nodes/_self_review.py_extract_verdict(), run_self_review_loop()
  • Modified: _impl_structured.py — calls self-review loop between Phase 2 (write files) and Phase 3 (test/fix)
  • Updated: test_impl_retry.py — patches self-review in existing structured impl tests

Test plan

  • 16 new tests in test_self_review_loop.py covering verdict parsing, loop iterations, exhaustion, prompt content, and token accumulation
  • All 709 workflow tests pass
  • make lint passes
  • make typecheck passes

Closes work item 7aa85aed-636a-44b4-a014-90d3a907644e

🤖 Generated with Claude Code

After code generation (Phase 2) and before tests/lint (Phase 3), the
implement node now runs a proud + world-class self-review loop (max 3
iterations). The agent reviews its own diff, and if either check returns
needs-work, it fixes the issues before proceeding.

Inspired by https://github.com/robertbagge/claude-roadhouse-plugin

Co-Authored-By: Claude Opus 4.6 <[email protected]>
@bamdadd
bamdadd merged commit 5ac2f76 into main Apr 7, 2026
3 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