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, so it keeps everything else that reviewer has.
Name the base
Create the project and add reviewer as its base:
mkdir house-reviewer && cd house-reviewer
pandra init
pandra add --base github.com/pandra-io/pandra/examples/reviewerpandra 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.
What pandra add --base prints
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/mcpChange what differs
Your instructions.md follows the base's instructions, so write the house rule there:
echo 'Flag every SQL query built with string formatting.' > instructions.mdTo leave out the server, add exclude-mcp-servers to [base] in pandra.toml:
[base]
git = "https://github.com/pandra-io/pandra"
path = "examples/reviewer"
exclude-mcp-servers = ["context7"]
[[instructions]]
path = "instructions.md"Check the result
pandra agent inspect . ends with what the base gives and what your project leaves out (shortened here):
pandra agent inspect .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.