Skip to content

100+ AI Agents, Agent Skills and RAG Apps - Free and Open Source.

fix(advisor-executor-worker): per-worker scratch files for parallel output

Shubhamsaboo7f59c62c7760
diff --git a/awesome_agent_skills/advisor-executor-worker/SKILL.md b/awesome_agent_skills/advisor-executor-worker/SKILL.md
index 1d38c74c..3305d1bd 100644
--- a/awesome_agent_skills/advisor-executor-worker/SKILL.md
+++ b/awesome_agent_skills/advisor-executor-worker/SKILL.md
@@ -41,15 +41,21 @@ verification.
a CLI. Workers are stateless generation units; the API call is
faster, cheaper, and leaks zero context:
`curl -s "https://generativelanguage.googleapis.com/v1beta/models/gemini-3.5-flash:generateContent" -H "x-goog-api-key: $GEMINI_API_KEY" -H "Content-Type: application/json" -d '{"contents":[{"parts":[{"text":"<brief>"}]}]}'`
- Run wave calls in parallel as background processes. Each worker sees
- only its brief. Exception: if a subtask genuinely needs tools (web
+ Run wave calls in parallel as background processes, each redirected
+ to its own scratch file so outputs never interleave:
+ `out=$(mktemp); curl -s ... > "$out" & pids+=($!); outs+=("$out")`
+ then `wait "${pids[@]}"` and read each scratch file in dispatch
+ order. A wave sharing one stdout hands the verify step interleaved
+ JSON and the run dies at the first parse. Each worker sees only its
+ brief. Exception: if a subtask genuinely needs tools (web
search, file work), dispatch via Antigravity CLI from an EMPTY temp
dir so no .antigravity.md or project context leaks into the worker:
`cd $(mktemp -d) && agy --dangerously-skip-permissions -p "<brief>"`
(Flash is agy's default model; the permissions flag is required in
non-TTY shells or the call hangs, and is safe here only because the
temp dir is empty. Cap agy workers at 3 parallel, since Antigravity
- quota is shared across its app, CLI, and SDK.)
+ quota is shared across its app, CLI, and SDK — enforce it by chunking
+ tool-using waves into batches of 3 and waiting between batches.)
- **Advisor (default: Claude Fable 5)**, consulted via
`claude --model claude-fable-5 -p "<consult>"` in print mode, which
reads the pasted material and returns a verdict without touching
diff --git a/awesome_agent_skills/evals/advisor-executor-worker/evals.json b/awesome_agent_skills/evals/advisor-executor-worker/evals.json
index 3f9c03c0..7f066d2c 100644
--- a/awesome_agent_skills/evals/advisor-executor-worker/evals.json
+++ b/awesome_agent_skills/evals/advisor-executor-worker/evals.json
@@ -10,7 +10,9 @@
"The plan is sent to the advisor for review BEFORE workers run, and changes/rejections are stated",
"Worker briefs contain all inputs inline and acceptance criteria; no brief references unseen context",
"Every worker result gets a PASS/FIX/ESCALATE verdict against its own criteria",
- "The final report includes a verification ledger and advisor notes applied or rebutted"
+ "The final report includes a verification ledger and advisor notes applied or rebutted",
+ "Parallel worker outputs are collected from per-worker scratch files (mktemp + redirect, wait, read in dispatch order), never from a shared interleaved stdout",
+ "Tool-using (agy) waves are chunked into batches of at most 3 with a wait between batches"
]
},
{