feat/workflow-tool-implement - #10
Merged
Merged
Conversation
Adopt the native Workflow tool for Claude Code /5:implement while keeping a trimmed prose loop for Codex, and make orchestration token-leaner. Layer A (both runtimes, parity-safe): - Centralize the haiku/sonnet -> gpt model mapping in getCodexSkillAdapterHeader(); remove the ~5 duplicated inline copies from implement.md, plan.md, and step-orchestrator-agent.md. - Fire a step's parallel executors in one message; batch state once per wave and drop the per-write read-back ritual. - Fast path for compact plans: skip the orchestrator and verification agents. - Trim prose the model no longer needs (implement.md 202->151 lines). Layer B (Claude Code only): - Add src/workflows/5-implement.js: Orchestrate/Execute/Verify phases, parallel fan-out per numbered step, schema-validated agent output (no ---RESULT--- text parsing), retry-on-sonnet, inline-verify fast path. - implement.md becomes a dispatcher: use the Workflow tool when available, else the prose loop. state.json stays the durable cross-session resume source. - Codex skill is told Workflow is unavailable -> prose loop. Installer/parity: register workflows/ as a Claude-only managed category (manifest, fresh install, selectiveUpdate, uninstall); add AGENTS.md parity rows + layout entry; verify-install-js.sh now checks the Workflows category. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Address review findings on the Workflow-tool implementation:
- verify-gating: fold sonnet-retry escalation into the "mechanical"
fast-path check so escalated work still runs the verification agent;
align inline-verify criteria with the prose loop (verify passed|skipped,
no planned-or-escalated sonnet)
- retry: retry crashed/null executor results, not just structured
failures, so infra errors get the same sonnet escalation
- resume: reuse stored steps/pendingComponents instead of re-deriving them
non-deterministically; return merged completedComponents and instruct the
command to merge (not replace) prior-session history; handle the
fully-resumed empty-summary case with proper context
- verifier: thread baseline results into verifyPrompt so pre-existing
failures are not attributed to the change and passing results are reused
- contracts: restore "pre-existing unrelated failure -> report, not failed"
in step-executor-agent; standardize verification acceptanceCriteria to
satisfied/total; carry the three-attempt cap into inline prompts
- docs/args: drop the unused config object, fix {name}->{feature-name},
document the mid-run-interruption durability caveat
- compactSteps derives step model from components instead of hardcoding
- install.js: warn when a managed workflow source is missing
Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
Beta prerelease of the hardened Workflow-tool /5:implement for testing. Publishes under the npm `beta` dist-tag; `latest` stays on 2.x. Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
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.
No description provided.