◦ Prompt · Factory

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.

May 27, 2026agentagent-factoryspawningclaude-apianthropic-sdktutorial
◦ 5,907 builders waiting

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.

I'll send a one-time link to confirm your email. Nothing else.

◦ Next prompt
Give Your AI Agent a Browser of Its Own: The Safe Browsing Helper Behind Trillion →

Paste this into Claude Code, Cursor, or any coding agent. It walks your agent through building the browser Trillion uses to look things up, click through sites and come back with an answer while you do something else: a separate Chromium that is never your own browser, pages read as text so even a small local model can browse, a broker outside the page that decides what every click really does, a proxy that keeps it off your computer and your network, one-tap chips for sites the model typed itself, host-written cards for anything that sends, a 'your step' handover for sign-ins and CAPTCHAs, saved sign-ins that stay on their own site, a quarantined helper with nothing private in reach, and a live view you can watch and take over. It interviews you first about your agent, your users and what they want looked up, then builds one layer at a time, each one something you can see working before the next begins.