Skip to content

feat/workflow-tool-implement - #10

Merged
mrsthl merged 5 commits into
mainfrom
feat/workflow-tool-implement
Jun 26, 2026
Merged

feat/workflow-tool-implement#10
mrsthl merged 5 commits into
mainfrom
feat/workflow-tool-implement

Conversation

@mrsthl

@mrsthl mrsthl commented Jun 26, 2026

Copy link
Copy Markdown
Owner

No description provided.

mstehle and others added 5 commits June 26, 2026 10:27
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>
@chatgpt-codex-connector

Copy link
Copy Markdown

You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard.

@mrsthl
mrsthl merged commit 8070795 into main Jun 26, 2026
1 check 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