Skip to content
Hacker News · AI·· 44 min agoAI score48

Build a Basic AI Agent from Scratch: Adding Specialist Agents and Sub-Agents

Build a Basic AI Agent from Scratch: Agents and Sub-Agents

AI summary

The "Build a Basic AI Agent From Scratch" series adds specialist agents and sub-agents to its harness, letting users switch the active top-level agent mid-session or delegate scoped tasks to a child agent that works in its own context. The harness ships five built-in agents — general, plan, explore, build and review — each defined by an AgentDefinition dataclass with system prompt, tool allowlist, permission mode, model and temperature. Custom agents can be declared via SOUL.md files in a project's .agents directory, and a sub-agent returns only a concise result to its parent.

Source:Hacker News · AI · ruxu.dev