Build an agent
Last updated Nov 30, 2026 View as Markdown
An agent project is a directory with a pandra.toml, the agent definition file, which lists the agent's instructions, skills, MCP servers, and other components. To create a project and add a skill to it:
terminal
shmkdir my-agent && cd my-agent
pandra init
pandra add https://github.com/obra/superpowers/tree/v7.0.2/skills/test-driven-developmenttext
Created pandra.toml for agent my-agent (name derived from the directory name; use --name to choose another)
Added `[skills.test-driven-development]` to pandra.toml and updated pandra.lock.
pinned skill test-driven-development from https://github.com/obra/superpowers/skills/test-driven-development (commit 22f0b463e7a5)pandra run . then runs the project (quickstart). The project holds these files:
| File | Who writes it |
|---|---|
pandra.toml | pandra init, pandra add, and you by hand. Pandra keeps your comments and formatting when it edits the file. |
pandra.lock | Only Pandra. Commit it with pandra.toml, and never edit it. |
instructions.md, skills/, prompts | You. Local files that pandra.toml refers to. |
A repository can hold several agent projects, each in its own directory, and a command names the one it uses, such as pandra run ./agents/reviewer or pandra build ./agents/reviewer. The definition does not choose the harness or the model: whoever runs the agent chooses them in their configuration. The pandra.toml reference lists every key, such as name, version, and license.
- Agent components: instructions, the prompt, skills, plugins, MCP servers, and environment variables, and where each comes from.
- Building on another agent: start from another agent's package and change what differs.
- Locking and building: pin sources in
pandra.lock, build a package, and inspect it.