---
url: /examples/override-a-base-agent.md
---
# Build on another agent and change part of it

Make `house-reviewer`, the example agent `reviewer` with one house rule added and its `context7` MCP server left out. Your agent builds on `reviewer` as its [base](/build/base.md), so it keeps everything else that `reviewer` has.

## 1. Name the base

Create the project and add `reviewer` as its base:

```sh
mkdir house-reviewer && cd house-reviewer
pandra init
pandra add --base github.com/pandra-io/pandra/examples/reviewer
```

`pandra add --base` prints what your agent inherits from `reviewer`: its `inherited:` list names the instructions, the prompt, the skill `ponytail-review`, and the MCP server `context7`.

::: details What `pandra add --base` prints

```text
Added `[base]` to pandra.toml and updated pandra.lock.
  pinned base from https://github.com/pandra-io/pandra/examples/reviewer (commit 2d5c8b550d65)

Base https://github.com/pandra-io/pandra/examples/reviewer
  inherited:
    instructions         followed by this project's 1 entry
    prompt
    skills               ponytail-review
    MCP servers          context7

MCP servers the base brings:
  context7 (new)
    Server:  io.github.upstash/context7 4.7.0 (MCP Registry, registry.modelcontextprotocol.io)
             the registry serves this entry (checked when fetched)
    URL:     https://mcp.context7.com/mcp
```

:::

## 2. Change what differs

Your `instructions.md` follows the base's instructions, so write the house rule there:

```sh
echo 'Flag every SQL query built with string formatting.' > instructions.md
```

To leave out the server, add `exclude-mcp-servers` to `[base]` in `pandra.toml`:

```toml
# pandra.toml
[base]
git = "https://github.com/pandra-io/pandra"
path = "examples/reviewer"
exclude-mcp-servers = ["context7"]

[[instructions]]
path = "instructions.md"
```

## 3. Check the result

`pandra agent inspect .` ends with what the base gives and what your project leaves out (shortened here):

```sh
pandra agent inspect .
```

```text
Base https://github.com/pandra-io/pandra/examples/reviewer (sha256:52c8e3b28569)
  inherited:
    instructions         followed by this project's 1 entry
    prompt
    skills               ponytail-review
  left out:
    MCP server context7   exclude-mcp-servers (pandra.toml:9)
```

`pandra run .` now runs the reviewer with your rule. The base follows the default branch, so `pandra lock --upgrade --base` takes its newest commit.

[Learn more about building on another agent →](/build/base.md)
