---
url: /build.md
---
# Build an agent

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:

```sh
mkdir my-agent && cd my-agent
pandra init
pandra add https://github.com/obra/superpowers/tree/v7.0.2/skills/test-driven-development
```

```text
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](/quickstart.md#4-try-it)). 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](/configure/targets.md#targets). The [`pandra.toml` reference](/reference/pandra-toml.md) lists every key, such as `name`, `version`, and `license`.

* [Agent components](/build/components.md): instructions, the prompt, skills, plugins, MCP servers, and environment variables, and where each comes from.
* [Building on another agent](/build/base.md): start from another agent's package and change what differs.
* [Locking and building](/build/packages.md): pin sources in `pandra.lock`, build a package, and inspect it.
