Back to Marketplace
30-day free campaign

Run this helper free β€” no credit card

Every helper is free for 30 days. Answer 3 questions and get the full result in 2 minutes.

Start free β†’
FREE
Scanned
Grow Business

Spawn Agent

Spawn worker agents (Gemini CLI or Codex CLI) to keep main context clean. Use for implementation, codebase research, context gathering, or any scoped work that would pollute the orchestrator's context.

πŸ‘ 2 views Β· πŸ“¦ 0 installs

Install in one line

$Β mfkvault install spawn-agent

Requires the MFKVault CLI. Prefer MCP?

No reviews yet
πŸ’» Codex
This helper was discovered by MFKVault crawlers from public sources. Original author retains all rights. To request removal: [email protected]
Community helper
This helper was discovered by MFKVault crawlers from public sources. MFKVault does not create, maintain, or guarantee the output of this helper. Results are AI-generated and may be incomplete, inaccurate, or outdated. Use at your own risk. Original author retains all rights. Request removal
FREE

Free to install β€” no account needed

Copy the command below and paste into your agent.

Instant access β€’ No coding needed β€’ No account needed

What you get in 5 minutes

  • Full skill code ready to install
  • Works with 2 AI agents
  • Lifetime updates included
SecureBe the first
Ready to run

Run this helper

Answer a few questions and let this helper do the work.

β–ΈAdvanced: use with your AI agent

Description

--- name: spawn-agent description: Spawn worker agents (Gemini CLI or Codex CLI) to keep main context clean. Use for implementation, codebase research, context gathering, or any scoped work that would pollute the orchestrator's context. --- # Spawn Agent Orchestration & Delegation pattern: The main agent acts as the orchestrator (plan, delegate, review). Worker agents (Gemini/Codex) execute specific tasks and report results. ## When to Use **Use when:** - Implementation task has a clear scope (fix bug, add function, refactor file) - You need to research/query the codebase without polluting the main context - The task is independent and doesn't need intermediate human review - You want to keep the main context clean for high-level reasoning **Do NOT use when:** - Task requires interactive discussion with the user - Scope is too broad (refactoring an entire module) - Multiple files with complex inter-dependencies need coordination - Task needs browser interaction or external API calls ## Choosing an Agent | Agent | CLI | Strengths | Best for | |-------|-----|-----------|----------| | **Gemini** | `gemini` | Fast, good at codebase understanding, reads project context | Research, context gathering, quick implementations | | **Codex** | `codex exec` | Strong reasoning, sandboxed execution, code review capability | Complex implementation, refactoring, bug fixing | > [!TIP] > Choose the agent based on the task β€” don't stick to one CLI. Each has its own strengths. ## Delegation Protocol ### Step 1: DEFINE β€” Clearly define the task Before spawning, the orchestrator must determine: - **Goal**: What should the task achieve? - **Scope**: Which files/directories are involved? - **Agent**: Is Gemini or Codex more suitable? - **Constraints**: What must NOT be modified? - **Expected output**: What result is expected (code changes, summary, list)? ### Step 2: COMPOSE β€” Write the prompt file using a template Choose the appropriate template and fill it in. Save to `.agent/spawn_agent_tasks/<name>.md`. > [!NOTE] > Create the directory if it doesn't exist: `mkdir -p .agent/spawn_agent_tasks` > Add `.agent/spawn_agent_tasks/` to `.gitignore` if you don't want to track task files. #### Template Selection Guide | Task type | Template | Key sections | |-----------|----------|-------------| | **Complex implementation** | `templates/implementation-task.md` | Architecture context, File Map, Step-by-step, Conventions, Acceptance criteria | | **Codebase research** | `templates/research-task.md` | Where to look, Questions to answer, Output format | | **Bug fix** | `templates/bugfix-task.md` | Bug description, Suspected location, Fix approach | > [!IMPORTANT] > **Headless worker = no Q&A.** The worker agent cannot ask clarifying questions. > The more detailed the template, the more accurate the output. Each missing section = one point where the agent may go wrong. #### Quick inline prompt (for simple tasks) ```markdown # Task: <short name> ## Goal: <one sentence describing the objective> ## Files: <files to modify> ## Constraints: DO NOT modify files outside <scope> ## When done: Summarize changes made and any issues found. ``` ### Step 3: SPAWN β€” Call the worker agent ```bash # Gemini β€” implementation task spawn-agent.sh --gemini --auto-edit --timeout 300 \ -f .agent/spawn_agent_tasks/<name>.md # Codex β€” implementation task spawn-agent.sh --codex --auto-edit --timeout 300 \ -f .agent/spawn_agent_tasks/<name>.md # Gemini β€” research (yolo is fine for read-only research) spawn-agent.sh --gemini --yolo --timeout 120 \ -f .agent/spawn_agent_tasks/<name>.md # Quick task β€” any agent spawn-agent.sh --codex --yolo --timeout 60 \ -p "Fix typo 'recieve' -> 'receive' in auth.service.ts" ``` **Approval modes (mapped per agent):** | Mode | Flag | Gemini | Codex | |------|------|--------|-------| | Auto-edit | `--auto-edit` | `auto_edit` | `auto-edit` | | Full auto | `--yolo` | `yolo` | `full-auto` | | Safest | `--safe` | `default` | `suggest` | ### Step 4: REVIEW β€” Read the output Output is saved to `.agent/spawn_agent_tasks/output-<timestamp>.log`. ```bash cat .agent/spawn_agent_tasks/output-*.log | tail -100 ``` Verify: - Did the task achieve the goal? - Are there changes outside the defined scope? - Are there errors/warnings that need handling? ### Step 5: REPORT β€” Summarize for the user - βœ… Success: summarize changes - ❌ Failure: root cause + next steps - ⚠️ Partial: what was completed, what still needs to be done ## Anti-Patterns ❌ **Delegating too broadly**: "Refactor the entire backend" βœ… **Specific scope**: "Refactor auth.service.ts to extract token logic into token.service.ts" ❌ **No constraints**: Agent may modify files outside scope βœ… **Set boundaries**: "DO NOT modify files outside packages/backend/src/auth/" ❌ **Not reading output**: Spawning and assuming success βœ… **Always review**: Read output, verify changes, check errors ❌ **Delegation chain**: Spawn A β†’ output feeds spawn B β†’ ... βœ… **Orchestrator controls flow**: Read result A, decide next step, then spawn B if needed

Preview in:

Security Status

Scanned

Passed automated security checks

Time saved
How much time did this skill save you?

Related AI Tools

More Grow Business tools you might like

codex-collab

Free

Use when the user asks to invoke, delegate to, or collaborate with Codex on any task. Also use PROACTIVELY when an independent, non-Claude perspective from Codex would add value β€” second opinions on code, plans, architecture, or design decisions.

Run free

Rails Upgrade Analyzer

Free

Analyze Rails application upgrade path. Checks current version, finds latest release, fetches upgrade notes and diffs, then performs selective upgrade preserving local customizations.

Run free

Asta MCP β€” Academic Paper Search

Free

Domain expertise for Ai2 Asta MCP tools (Semantic Scholar corpus). Intent-to-tool routing, safe defaults, workflow patterns, and pitfall warnings for academic paper search, citation traversal, and author discovery.

Run free

Hand Drawn Diagrams

Free

Create hand-drawn Excalidraw diagrams, flows, explainers, wireframes, and page mockups. Default to monochrome sketch output; allow restrained color only for page mockups when the user explicitly wants webpage-like fidelity.

Run free

Move Code Quality Checker

Free

Analyzes Move language packages against the official Move Book Code Quality Checklist. Use this skill when reviewing Move code, checking Move 2024 Edition compliance, or analyzing Move packages for best practices. Activates automatically when working

Run free

Claude Memory Kit

Free

"Persistent memory system for Claude Code. Your agent remembers everything across sessions and projects. Two-layer architecture: hot cache (MEMORY.md) + knowledge wiki. Safety hooks prevent context loss. /close-day captures your day in one command. Z

Run free