zdenham/anvil/orchestrate
Claude Code and agent skill by zdenham/anvil
Trust tier 2
- community
Source check pending
Checking that the SKILL.md file is still in the repository.
Orchestrate multiple agents programmatically using anvil-repl
Install
npx vskill@latest install zdenham/anvil/orchestrateSKILL.md
Agent Orchestration
You can programmatically spawn and coordinate child agents using the anvil-repl command. This runs TypeScript/JavaScript code with an injected anvil SDK object.
Usage
Call the Bash tool with a anvil-repl heredoc:
API Reference
anvil.spawn({ prompt, contextShortCircuit? }) — Spawn a child agent
Spawns a new agent process and waits for it to complete. Returns the child's last assistant message as a string.
Optional: contextShortCircuit nudges the child to save progress when context pressure gets high:
anvil.log(message) — Log a message
anvil.context — Parent context (read-only)
Patterns
Parallel spawning
Sequential with conditional logic
Loop over items
Notes
- Do NOT use `run_in_background: true` when invoking
anvil-repl. The REPL manages long-running execution internally. Always run in the foreground. - The result of your code is returned as the Bash tool output. Use
returnto send data back. anvil.spawn()returns a string — the child's last assistant message content.- Spawned agents appear in the sidebar immediately and stream output in real-time.
- Each spawned agent is a fully independent process with its own conversation.
anvil.spawn()blocks until the child completes — usePromise.allfor parallelism.- Results over 50KB are truncated. The child's threadId is logged for full output.
- TypeScript type annotations are supported (stripped at runtime via
ts.transpileModule). - Keep REPL code minimal. REPL scripts should be thin orchestration glue — primarily
anvil.spawn()calls withPromise.all. Avoid writing business logic, file parsing, or complex algorithms in REPL code. If you need to read files, reason about data, or edit files, do that as the agent using your normal tools (Read/Edit/Write), not programmatically in the REPL.
Security
- Security scanPassed, 96 of 100Pattern checks on the skill's files.
- Model reviewNot runA model review is scheduled for the next rescan.
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingplugins/anvil/skills/orchestrate/SKILL.md
Popularity
- 7-day trend score
- 0
Not refreshed yet.
Works with
Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.
- Claude Code
- Cursor
- GitHub Copilot
- Windsurf
- Codex
- Gemini CLI
- Cline
- Amp
- Roo Code
- Goose
- Continue
- Kilo Code
- Junie
- Trae
- OpenHands
- Qwen Code
- AI Agent
- Tabnine Chat
- Sourcegraph Cody
- Amazon Q
- Firebase Genkit
- Sweep
- Devin
- Phind
- Mentat
- Claude Desktop
- Aider
- GPT Pilot
- Plandex
- bolt.new
- v0
- Replit Agent
- Anse
- TypingMind
- BetterChatGPT
- LibreChat
- Warp AI
- Pieces
- Fig AI
Embed badge
[](https://verified-skill.com/skills/zdenham/anvil/orchestrate)