Repository navigation
refactor(aidd-dev): lean the implement skill for small models - #1126
Merged
Merged
Conversation
Router with the paths in its boxes, three linear actions, and a script that says what comes next, validates the run record and refuses a commit holding a file the user had already modified. The plan skill gets a contributor-checks finding, a runtime check, a rewritten validator and the same router shape. Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01XeK3mFt8TGPAoKbzZAsaNf
Comment on lines
+271
to
+273
| fs | ||
| .readFileSync(RUN_TEMPLATE, "utf8") | ||
| .replace(/<!--[\s\S]*?-->\n*/g, "") |
| }); | ||
|
|
||
| describe("validate-implement: files and folders as real machines write them", () => { | ||
| const withBom = (text) => "\uFEFF" + text; |
3 tasks
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.
🎯 What & why
Lean
aidd-dev:02-implementthe way brainstorm and plan were, so it runs on Mistral medium under opencode as well as on Claude models, and give it a script that keeps a run on track. The plan skill gets three small additions the implement side relies on.🛠️ How it works
run.md, lists the files left uncommitted, and printsNEXT: take phase 2. Medium follows what a script prints far better than a rule it has to remember.--baseline. Run once inprepare, it records the files the user had already modified; a later commit holding one of them is refused with the command to undo it. It records only while the plan ispending, so a later call cannot take the run's own work for the past.run.md. One row per task (scenario, observed outcome), the head the run validated, and what was left. The script refuses a missing row, an unfilled template, or a head that is not a commit. This is what the review skill will read.AI should auto commit: neverproduces none. stop.md: blocked and replan needed, each a one-line row; "stop at once" so no other task or phase is taken first.validate-plan.cjsrewritten without loops (same output on the 73 plans of this repo), and the plan router without a table.🧪 How to verify
pnpm exec lefthook run pre-commitnode scripts/check-tests-leave-git-alone.js -- node --test 'scripts/__tests__/**/*.test.js'(694 tests)/separates previous / new):mistral-medium-2604)neverin project memorydirty, 3never, 1 rejected hook) all endedimplementedwith the script onOK. The 3 runs on the 3-phase plan, the longest, are the unstable ones: one clean, one implemented but ended on a script error (an invented head sha and a baseline re-run, both closed since without a new full run), one stopped mid-phase on a truncated reply. The previous skill was run once on that plan. So far the failures follow the length of the run, not the skill text.pass: not applicableon a criterion that cannot hold and marks the plan implemented, with both versions.mistral-small-2603never reads an action, with both versions.plan, Medium skipped the last action in one of 3 runs without the table and in 0 of 3 with it. Too few runs to tell.🔗 Linked issue
Closes #1076
Differs from its text on purpose: more words overall (790 against 732, though the part read on every run is 18% shorter), a commit per validated task by default, and no result on
mistral-small-2603. Refs #927, #896, #928, #955.✅ I certify
🤖 Generated with Claude Code
https://claude.ai/code/session_01XeK3mFt8TGPAoKbzZAsaNf