Give Your AI Agent a Sub-Agent Spawner — From Hand-Coded Specialists to a Self-Extending Agent Factory in One Session
Paste this into Claude Code, Cursor, or Aider and it'll walk your agent codebase through building a sub-agent whose only job is to design, prompt-write, and register new specialist sub-agents on demand: a research helper that produces a structured skills report with citations, a meta-prompt that drafts the new agent's system prompt, a staged human-approval gate, a hot-reloading config-driven runtime that picks up freshly-approved agents without a restart, and a tool-wishlist mechanism that captures what the new agent wants but you don't have yet. Interview first, then build tier by tier. Each tier ships independently with verification.
Want the agent behind these prompts?
These prompts came out of building Trillion. The whole thing is going open-source on GitHub. Drop your email and I'll ping you the moment the repo drops.