Skip to content

Build on another agent and change part of it ​

Last updated Nov 30, 2026 View as Markdown

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:

terminal
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.

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

Change what differs ​

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

terminal
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:

pandra.toml
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):

terminal
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 →

Released under the Apache License 2.0