refactor: unify agent API to Codex v4 across all skills

Migrate all .codex/skills from old agent API (wait/send_input/ids) to
Codex v4 API (wait_agent/assign_task/targets) across 31 files in 10
skills: spec-generator, brainstorm, clean, issue-discover,
parallel-dev-cycle, review-cycle, roadmap-with-file, workflow-plan,
workflow-tdd-plan, workflow-test-fix-cycle, and spec-setup.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
catlog22
2026-03-30 15:25:22 +08:00
parent 2ca87087f1
commit b88bf5e0f6
31 changed files with 377 additions and 275 deletions

View File

@@ -43,8 +43,8 @@ for (let i = 0; i < batches.length; i += MAX_PARALLEL) {
console.log(`Spawned ${agentIds.length} planning agents...`);
// Step 2: Batch wait for all agents in this chunk
const chunkResults = wait({
ids: agentIds.map(a => a.agentId),
const chunkResults = wait_agent({
targets: agentIds.map(a => a.agentId),
timeout_ms: 600000 // 10 minutes
});
@@ -204,8 +204,8 @@ Before finalizing outputs:
});
// Wait for completion
const result = wait({
ids: [agentId],
const result = wait_agent({
targets: [agentId],
timeout_ms: 600000 // 10 minutes
});