[WIP] Inspired by https://github.com/robertbagge/claude-roadhouse-plugin Afte - #285
Closed
bamdadd wants to merge 1 commit into
Closed
[WIP] Inspired by https://github.com/robertbagge/claude-roadhouse-plugin
Afte#285bamdadd wants to merge 1 commit into
bamdadd wants to merge 1 commit into
Conversation
bamdadd
force-pushed
the
lintel/fix/7aa85aed-inspired-by-https-github-com-robertbagge
branch
from
April 7, 2026 16:53
124cd47 to
ad60961
Compare
Owner
Author
|
Closing to re-implement from scratch |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Add a self-review quality loop (proud check + world-class check, max 3 iterations) between Phase 2 write-files and Phase 3 test/fix in the implement_structured workflow node, implemented as helper functions in _impl_structured_helpers.py and wired in _impl_structured.py, with full test coverage in a new test file and updated existing tests.
Changes
Context
After the agent completes code generation (Phase 2 — write files) and BEFORE running tests/lint/typecheck (Phase 3), add a self-review quality loop.
The Loop
The agent asks itself two questions in sequence. If either returns needs-work, it fixes the issues and re-asks both. Loop continues until both return roadhouse! (max 3 iterations).
Question 1 — Proud Check
Question 2 — World-Class Check
Implementation Details
Where
packages/workflows/src/lintel/workflows/nodes/_impl_structured.pyMAX_SELF_REVIEW_ITERATIONS = 3,PROUD_REVIEW_PROMPT,WORLD_CLASS_REVIEW_PROMPTHow
_extract_verdict(response: str) -> str— parse<verdict>...</verdict>tag from LLM response_run_self_review_loop(...)async function that:git diffof changes for review contextagent_runtime.execute_step()withtools=[]for each review question (read-only)agent_runtime.execute_step()withsandbox_read_file+sandbox_write_filetools to fixtotal_usageStageTracker.append_log()_run_self_review_loop()only whenfiles_to_writeis non-emptyTests
packages/workflows/tests/test_self_review_loop.py_extract_verdictwith various inputs (roadhouse, needs-work, missing tag, case insensitive)Raised by Lintel 🤖