Search docs

Templates

AI Agent

Generate an agent scaffold with a supported framework and provider.

Best for: task automation, research assistants, tool-calling workflows.

Prompts:

text
? Choose a framework (Use arrow keys)
 » pydantic-ai
   openai-agents

? Choose a provider (Use arrow keys)
 » openai
   anthropic
   gemini
   openrouter
   ollama
   groq

? Choose extras (space to toggle, enter to confirm)
 ● ruff
 ● pytest
 ○ github-actions
 ○ pre-commit
 ○ mypy

If you pick openai-agents, only openai and openrouter appear as provider choices — the list is filtered per framework.

Available extras: ruff pytest github-actions pre-commit mypy

Run it:

bash
cd my-agent
# Add your provider's API key to .env
uv run python -m src.main

Every generated AI Agent project ships with one working tool (a calculator), so you can see tool-calling work immediately — no external services or extra setup beyond your chosen provider's API key.

Captured project structure#

These paths come from the verified Spawn v1.2.0 agent capture (20 files). This recorded run used --no-git --no-uv; selecting setup tools can add files.

text
ledger-agent/
├── .env.example
├── .gitignore
├── .spawn/
│   └── meta.json
├── AGENTS.md
├── CHANGELOG.md
├── LICENSE
├── README.md
├── src/
│   ├── __init__.py
│   ├── agent/
│   │   ├── __init__.py
│   │   └── run.py
│   ├── config/
│   │   ├── __init__.py
│   │   └── settings.py
│   ├── main.py
│   ├── prompts/
│   │   ├── __init__.py
│   │   └── agent_prompt.txt
│   └── tools/
│       ├── __init__.py
│       └── calculator.py
└── tests/
    ├── __init__.py
    ├── conftest.py
    └── test_agent.py
ESC