agentproto/ts/ap-spawn-agent
Claude Code and agent skill by agentproto/ts
- community
Checking that the SKILL.md file is still in the repository.
Spawn a new agentproto agent session (claude-code, hermes, ...) with a model, cwd, prompt, and optional MCP tool access. Use when the user says "spawn an agent", "start a session", "launch claude-code on this task", "run hermes in the background", or "kick off a worker". Also covers listing already-running sessions before spawning a duplicate.
Install
npx vskill@latest install agentproto/ts/ap-spawn-agentSKILL.md
The same SKILL.md was published earlier as agentproto/ts/ap-spawn-agent.
Spawn an Agent
When to use
The user wants a new, independent agent session doing bounded work in a directory — a worker to delegate to, a background task runner, or a fresh session for a subtask. Check agent_sessions_list first if there's any chance a matching session is already running; spawning a second one on the same cwd/task wastes a process.
MCP tool: agent_start
Only adapter, cwd, and prompt are typically required; the rest are tuning knobs. Use agent_sessions_list to see what's already running before you spawn:
CLI
HTTP
None. Spawning a session is MCP-tool/CLI-only — there is no daemon HTTP route for agent_start.
Gotchas
- hermes has no built-in file/shell tools. Unlike
claude-codeor
claude-sdk, hermes ships with nothing but chat. If the task needs to read/write files or run commands, you MUST pass mcpServers:[{name:'agentproto',transport:'http',ref:'http://127.0.0.1:18790/mcp'}] at spawn time, or the agent can only talk, not act.
cwdmust be an absolute host path — a relative path fails the spawn
outright.
- Give children authentic, bounded tasks. Sentinel prompts like "just
repeat this token back to me" get refused by capable models as prompt injection — write a real task with a real goal and scope.
- Always set a distinct
labelso the session is identifiable later in
agent_sessions_list / session_list — unlabeled sessions are hard to tell apart once several are running. When you list them back, narrow server-side (session_list {q:'<label>', excludeNoise:true, limit:10}) instead of reading every session on the daemon.
dedupe+idempotencyKey: callingagent_startagain with the same
key + adapter + cwd within ~10 minutes returns the same session (deduped:true) instead of forking a second process — safe to retry a spawn call without fear of duplicates.
Pointers
- agentproto — general daemon driving reference
- pb-new-agent-session — session-creation playbook
- ap-prompt-agent — sending follow-ups to the session you just spawned
- ap-read-output — reading what the spawned agent did
- ap-wait-fanin — waiting on multiple spawned sessions to finish
- drive-agents — routing agent-driving tasks to the right primitive
Security
- Security scanPassed, 90 of 100Pattern checks on the skill's files.
- Model reviewPassed
Quality evaluation
- Task evaluationNot runNo evaluation yet. Run one in Skill Studio.
Source
- SKILL.md in the repositoryCheckingpackages/skill-pack-agentproto/src/skills/ap-spawn-agent/SKILL.md
Popularity
- Repository stars
- 10
- Repository forks
- 1
- 7-day trend score
- 0
Stars and forks are for the whole GitHub repository, not this skill alone. 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/agentproto/ts/ap-spawn-agent)