Skip to main content
prompt GP ChatGPT

spawn_agent — Claude Code prompt: research and install

The spawn_agent Claude Code prompt sends a child agent to investigate a bounded question. It returns a short observation; that result alone does not finish the main task.

Apache-2.0 ★ 9,488 updated 2026-11-16

Install into Claude Code · Manually: put the files in place All methods and platforms ↓
.claude/commands/spawn_agent.md
Open on GitHub

What spawn_agent does

The prompt delegates a narrowly scoped research question to a child agent. The agent can read web pages and use sandbox tools, but cannot ask the user questions or send messages outward. Its response comes back as an observation.

The child has a step limit, and its response is cut off after a character limit. For work involving several pages or sources, pass maxSteps and maxResultChars and request a compact response. A truncated marker means the end of the result was cut off. The child’s answer does not complete the parent task.

For Claude Code, install the prompt as .claude/commands/spawn_agent.md.

What it helps with

  • research one narrowly scoped question using web sources
  • gather concise findings from several pages
  • get a separate observation from a child agent

Example prompts for the agent

  • Research how this API works and return a brief observation with source links.
  • Compare the information on these pages against this question and report the main findings only.
  • Investigate this question in the sandbox and return the result without sending messages outward.

How to install spawn_agent

Manually: put the files in place

.claude/commands/spawn_agent.md

Questions about spawn_agent

How do I install spawn_agent in Claude Code?

Add the prompt file at .claude/commands/spawn_agent.md.

What does spawn_agent do?

It assigns a bounded research question to a child agent that can read web pages and use sandbox tools. The returned observation does not finish the parent task.

What tools can the spawn_agent child use?

It can read the web and use sandbox tools. It cannot ask the user questions or send anything outward.

Source text

spawn_agent.md · Apache-2.0
Ask a child agent to research a bounded question. The child has read only web and sandbox tools, cannot ask the user or send anything outward, and returns one limited result as an observation. The child result alone does not complete your task. By default it gets {{steps}} steps and its result is cut at {{chars}} characters; for a question that needs more reading (several sources or pages) pass maxSteps up to {{maxSteps}} and maxResultChars up to {{maxChars}}, and ask for a compact result. truncated in the result means the end was cut off.

© wangzan101 · Apache-2.0 · wangzan101/Mika

Similar prompts

All prompts for Agent setup: memory, context, orchestration →

From the same set132

The whole set →
web_keep_open The web_keep_open Claude Code prompt keeps the current tab open after a task ends. Use it when a video, course, or audio should keep playing after the agent replies. GP ChatGPT ★ 9,488repo stars web_run_site_command The web_run_site_command Claude Code prompt runs a named command for the current site to extract structured data from an open page. Open the target page first. GP ChatGPT ★ 9,488repo stars press_key press_key — a prompt for Claude Code presses navigation and editing keys on the current screen. Its result describes the interface change and reports a new location when the screen changes. GP ChatGPT ★ 9,488repo stars task_memory_search The task_memory_search prompt for Claude Code finds summaries of earlier tasks across conversations. Search by task wording, then narrow results by app package or start date. GP ChatGPT ★ 9,488repo stars phone_wait The phone_wait Claude Code prompt waits for text, an activity screen, or a settled phone display. Its Android port responds to accessibility events. GP ChatGPT ★ 9,488repo stars phone_scroll The phone_scroll Claude Code prompt scrolls an Android app screen. Set a direction, gesture amount, or scroll region. GP ChatGPT ★ 9,488repo stars phone_open_link The phone_open_link Claude Code prompt opens an Android page on the virtual display from a settings action or URI. Request a target page directly instead of navigating through the app. GP ChatGPT ★ 9,488repo stars phone_observe The phone_observe Claude Code prompt reads a phone’s virtual display and its accessibility tree. The agent can locate a control or dialog before tapping it. GP ChatGPT ★ 9,488repo stars

Project sponsors

Companies that keep this analytics open