Skip to content

Agent components ​

Last updated Nov 30, 2026 View as Markdown

Every part of an agent beyond its name and metadata is a component. pandra add adds one, writes its table in pandra.toml, and pins an external source in pandra.lock, and pandra remove takes it out:

terminal
sh
pandra add ./skills/review
pandra add --plugin https://github.com/obra/superpowers@v7.0.2
pandra add --mcp io.github.github/github-mcp-server
pandra remove review
ComponentTable in pandra.tomlAdded with
Instructions[[instructions]], an ordered listpandra add --instructions SOURCE
Prompt[prompt]pandra add --prompt SOURCE
Skills[skills.<name>]pandra add SOURCE
Plugins[plugins.<name>]pandra add --plugin SOURCE
MCP servers[mcp-servers.<name>]pandra add --mcp NAME
Environment variables[env.<NAME>]Your editor

A base, a whole agent that yours builds on, is a component of its own kind. The agent package reference shows where each component lands in the package.

pandra remove takes a skill by its name, the key in pandra.toml, or by the source you added it from. The other kinds take an option: --mcp NAME, --plugin NAME (needed only when a skill has the same name), --instructions SOURCE, --prompt, and --base. It leaves source files in place, and without arguments on a terminal, it shows a picker.

Where components come from ​

Each source is a table whose keys say its kind. pandra add writes the table from what you have at hand, such as a path or the URL your browser shows:

KindKeysExample
Localpathpath = "skills/review", relative to pandra.toml; ../ lets agents in one repository share files.
Gitgit, optional path, and at most one of tag, branch, revgit = "https://github.com/acme/shared-prompts", path = "review-base.md", tag = "v2.0.0". Without a ref, the default branch; rev is a full commit hash.
HTTPSurl, optional path, optional sha256 that the download must matchurl = "https://example.com/skills.tar.gz", path = "skills/review": a single file, or the entry at path in a .tar.gz, .tgz, .tar, or .zip archive. Not for the base.
OCIocioci = "ghcr.io/acme/reviewer:1.2.0". Only the base takes it.

pandra.lock pins the Git, HTTPS, and OCI sources, and Pandra reads local files when it builds the package. For an HTTPS source:

  • path names the entry as the archive stores it, top-level directory included, so a path into a GitHub release archive (repo-1.2.0/skills/review) changes with each version.
  • Never use a signed URL with a token in it: Pandra records the query string in pandra.toml, pandra.lock, and the package. Credentials for a private server come from ~/.netrc, or the file NETRC names, and go only to the host they match.

Instructions ​

Instructions are the agent's standing guidance, the role that AGENTS.md or CLAUDE.md plays in a project: the harness loads them at the start of every session. Pandra adds them to the harness's built-in instructions, the system prompt that the harness gives its model. Each [[instructions]] entry is one Markdown file or inline text, and Pandra joins the entries in order with a blank line between them:

pandra.toml
toml
[[instructions]]
path = "instructions.md"

[[instructions]]
git = "https://github.com/acme/shared-prompts"
path = "review-base.md"
tag = "v2.0.0"

[[instructions]]
text = "Point to the exact lines and suggest concrete fixes."

To add a shared instructions file from another repository:

terminal
sh
pandra add \
    --instructions https://github.com/acme/shared-prompts/blob/v2.0.0/review-base.md

Name the file instructions.md, not AGENTS.md or CLAUDE.md. Claude Code reads CLAUDE.md, Codex reads AGENTS.md, and Pi reads either from the directory it works in, so when you work on the project with one of them, it would load the agent's instructions into your own session.

Your package cannot remove the harness's built-in instructions. Only the person who runs the agent can have your instructions replace them, with instructions-mode (settings of one agent).

Prompt ​

The prompt is a task that the package supplies, so that the agent can start without a prompt from whoever runs it. Pandra sends it as the first message of a new session, both in a headless run, which prints the agent's answer and exits, and in the TUI, the harness's own interface on your terminal. It is one source or inline text:

terminal
sh
pandra add --prompt ./prompts/weekly.md
pandra.toml
toml
[prompt]
path = "prompts/weekly.md"

An agent has one prompt, so to replace it, run pandra remove --prompt first. Whoever runs the agent can replace it, as pandra run . --prompt TEXT does, or add to it with --prompt-append (prompts). Without a prompt, a headless run needs a message from --prompt or --prompt-append.

Skills ​

Each [skills.<name>] table is the source of one skill: a directory in the Agent Skills format with a SKILL.md. pandra add takes the forms you have at hand:

terminal
sh
# a local directory with SKILL.md
pandra add ./skills/review
# a page your browser shows on GitHub, GitLab, Bitbucket, or Codeberg
pandra add https://github.com/obra/superpowers/tree/v7.0.2/skills/test-driven-development
pandra add https://github.com/obra/superpowers/releases/tag/v7.0.2 --skill brainstorming
# a repository and path, with an optional @ref: a tag, branch, or commit
pandra add github.com/obra/superpowers/skills/test-driven-development@v7.0.2
pandra add https://github.com/obra/superpowers@v7.0.2 --skill brainstorming
# an archive
pandra add https://example.com/skills.tar.gz --path review
# the explicit forms
pandra add --git https://github.com/acme/skills --path review --tag v1.0.0
pandra add --url https://example.com/skills.zip --path review

pandra add ./skills/review writes [skills.review] with path = "skills/review". The key is the name in the skill's SKILL.md. Pandra never renames a skill, and a key that differs is an error (skill_name_mismatch) that shows the table to write. Pandra asks the remote whether a ref is a tag or a branch and writes tag or branch; a 40-character commit hash becomes rev. Without a ref, the skill follows the default branch: pandra.lock pins the commit it resolved to, and pandra lock --upgrade updates the skill to the branch's newest commit.

When the path you give holds no SKILL.md, every directory below it with a SKILL.md is a skill. Pandra searches a Git source in the files its commit tracks, so an uncommitted skill is not found, and a local source without the files Git ignores. When it finds several skills and runs on a terminal, pandra add lists them and you choose which to add: the arrow keys move, Space checks a skill, and Enter adds the checked ones. In this sample, ... stands for rows left out:

text
$ pandra add github.com/obra/superpowers@v7.0.2
? Which skills of https://github.com/obra/superpowers to add? (arrows move,
space toggles, enter confirms, q cancels)
      NAME                            PATH
  [ ] brainstorming                   skills/brainstorming
  [ ] diagnosing-superpowers          skills/diagnosing-superpowers
  ...
  [ ] subagent-driven-development     skills/subagent-driven-development
  [x] systematic-debugging            skills/systematic-debugging
> [x] test-driven-development         skills/test-driven-development
  [ ] using-git-worktrees             skills/using-git-worktrees
  ...
text
✓ Which skills of https://github.com/obra/superpowers to add?
systematic-debugging, test-driven-development
✓ Fetched https://github.com/obra/superpowers · 0.3s
Added `[skills.systematic-debugging]` to pandra.toml and updated pandra.lock.
Added `[skills.test-driven-development]` to pandra.toml and updated pandra.lock.
  pinned skill systematic-debugging from https://github.com/obra/superpowers/skills/systematic-debugging (commit 22f0b463e7a5)
  pinned skill test-driven-development from https://github.com/obra/superpowers/skills/test-driven-development (commit 22f0b463e7a5)

To add the whole plugin instead, following its skills when it is upgraded:
  pandra remove systematic-debugging
  pandra remove test-driven-development
  pandra add --plugin github.com/obra/superpowers@v7.0.2

Without a terminal, such as in a script, name the skills with --skill, which is repeatable, or add all of them with a quoted '*':

terminal
sh
pandra add github.com/obra/superpowers@v7.0.2 \
    --skill test-driven-development --skill systematic-debugging
pandra add github.com/obra/superpowers@v7.0.2 --skill '*'

--skill '*' adds each skill the source has now as a table of its own and does not follow skills added upstream later. To follow them, add the source as a plugin.

For each skill they add or pin, pandra add and pandra lock print two fields of its SKILL.md, each entry marked (new) when the previous pin did not have it:

  • allowed-tools, the tools that Claude Code then uses without asking while the skill is active (Agent Skills).
  • hooks, commands that Claude Code runs on events while the skill is active (hooks in skills). Pandra removes them, because they run commands the agent does not declare.

Only the skill's own directory goes into the agent, so a link in the skill's Markdown to a file outside that directory points nowhere once the agent runs. pandra add and pandra lock list such links:

text
These skills refer to files outside their own directory, which are not in the agent:
  review  SKILL.md:5                 ../../docs/style.md
  review  references/checklist.md:1  ../../../CONTRIBUTING.md
    Copy such a file into the skill, or name it by its path from the repository root.

Plugins ​

A plugin is an extension for a harness that someone else maintains, such as superpowers for Claude Code. Pandra takes only its skills, so for an agent a plugin is a set of skills that you take and update together. In an agent that already has the test-driven-development skill of superpowers, as the agent of the quickstart does:

terminal
sh
pandra add --plugin https://github.com/obra/superpowers/tree/v7.0.2 \
    --exclude-skill test-driven-development

It prints the plugin's skills, the parts of the plugin the agent does not take, and the links of its skills that point outside their skill:

What pandra add --plugin prints
text
Added `[plugins.superpowers]` to pandra.toml and updated pandra.lock.
  pinned plugin superpowers from https://github.com/obra/superpowers (commit 22f0b463e7a5)

Plugin superpowers 7.0.2 (tag v7.0.2, commit 22f0b463e7a5)
  skills (14): superpowers:brainstorming, superpowers:diagnosing-superpowers, superpowers:dispatching-parallel-agents, superpowers:executing-plans, superpowers:finishing-a-development-branch, superpowers:receiving-code-review, superpowers:requesting-code-review, superpowers:subagent-driven-development, superpowers:systematic-debugging, superpowers:using-git-worktrees, superpowers:using-superpowers, superpowers:verification-before-completion, superpowers:writing-plans, superpowers:writing-skills
  left out by exclude-skills: superpowers:test-driven-development

Pandra takes only the skills of a plugin. These parts of superpowers are not in the agent:
  hooks    hooks/hooks-cursor.json, hooks/hooks.json, hooks/run-hook.cmd, hooks/session-start

These skills refer to files outside their own directory, which are not in the agent:
  superpowers:executing-plans              SKILL.md:245                   ../requesting-code-review/code-reviewer.md
  superpowers:subagent-driven-development  references/final-review.md:14  ../../requesting-code-review/code-reviewer.md
  superpowers:writing-skills               SKILL.md:12                    ../using-superpowers/references/codex-tools.md
  superpowers:writing-skills               SKILL.md:12                    ../using-superpowers/references/gemini-tools.md
    Copy such a file into the skill, or name it by its path from the repository root.

The command writes this table:

pandra.toml
toml
[plugins.superpowers]
git = "https://github.com/obra/superpowers"
tag = "v7.0.2"
exclude-skills = ["test-driven-development"]

The agent takes every skill the plugin has at the locked revision, except those in exclude-skills. A skill the plugin adds later arrives with the next pandra lock --upgrade, and a skill it drops leaves the agent then. To take only some skills, list them in skills instead, as skills = ["brainstorming", "writing-plans"]. A skill the plugin adds later is then not taken, and pandra lock --upgrade lists it as not taken, new since the previous pin. A [plugins.<name>] table has either skills or exclude-skills, never both.

On a terminal, pandra add --plugin lists the plugin's skills, and you uncheck the ones to leave out with Space; a skill the table leaves out, or whose name the agent already uses, starts unchecked. Elsewhere, nothing is asked: --exclude-skill writes exclude-skills, and --skill writes skills. Both flags are repeatable, cannot be given together, and replace a list of the other kind in the table.

Pandra leaves out the plugin's other parts, such as hooks, commands, and MCP servers, because they exist on one harness only or start commands the agent does not declare. It lists them, each MCP server with the command it runs or the URL it connects to, so you can add a server the agent needs with pandra add --mcp. A skill that uses files outside its own directory, such as ${CLAUDE_PLUGIN_ROOT}/scripts/, does not find them, and Pandra lists those uses with the skill's other links. Pandra reads Agent Plugins plugins and Claude Code plugins.

Each skill keeps the plugin's name as its namespace, shown as superpowers:brainstorming. Claude Code and Codex present it under that name, while Pi, which has no namespaces, gets brainstorming (what every harness gets). So that an agent runs on every harness, its skill names must be unique, whatever their namespace. pandra add --plugin finds a clash before it writes anything and, when it can, shows the command that leaves the clashing skill out. Two skills with one name fail pandra lock and pandra build:

text
error: two skills are named `test-driven-development`
  test-driven-development               from [skills.test-driven-development] (pandra.toml:9)
  superpowers:test-driven-development   from [plugins.superpowers] (pandra.toml:14)

An agent's skill names must be unique, so that the agent runs on harnesses without skill namespaces.

To leave it out of superpowers, change that table in pandra.toml to:
  [plugins.superpowers]
  git = "https://github.com/obra/superpowers"
  tag = "v7.0.2"
  exclude-skills = ["test-driven-development"]

pandra add --plugin names the plugin as Plugin superpowers 7.0.2 (tag v7.0.2, commit 22f0b463e7a5). The 7.0.2 in it is the version that the plugin's manifest declares at the pinned commit, and the tag and the commit in parentheses are what Pandra pinned. The version need not match a tag of the repository, and Pandra never uses it to choose a revision. A plugin on its default branch shows the last release's version until the next release, so pin the tag to take the release itself. To move the plugin, add it again with another ref, or run pandra lock --upgrade --plugin superpowers for a plugin that follows a branch, or a tag that its publisher moved. Both print the change, with the skills it added, changed, and removed.

MCP servers ​

Each [mcp-servers.<name>] table is one MCP server, and <name> is the name the harness sees. So that people can check what a server is before they run your agent, every server is one of these: an entry of the MCP Registry, the official catalog of MCP servers; a published npm, PyPI, or OCI package with an exact version; or a remote URL. An agent cannot declare a server that runs a program of its own: publish such a server to npm, PyPI, or an OCI registry, or serve it at a URL. pandra add --mcp selects the form by the prefix:

InputForm
pandra add --mcp io.github.github/github-mcp-server[@<version>]An MCP Registry entry, which declares its own inputs.
pandra add --mcp npm:<package>[@<version>]An npm package, run with npx.
pandra add --mcp pypi:<package>[@<version>]A PyPI package, run with uvx.
pandra add --mcp oci:<image>:<tag> or oci:<image>@sha256:<digest>An OCI image, run with docker. The tag is an exact SemVer version, such as 1.0.0.
pandra add --mcp https://search.example.com/mcp --name searchA remote server.

To find a server's full name in the MCP Registry:

terminal
sh
pandra search --mcp github

On a terminal, it prints the matches with each description shortened to fit; in this sample, ... stands for rows left out:

text
✓ Fetched MCP Registry servers matching github · 0.7s
NAME                                VERSION  METHODS    DESCRIPTION
io.github.github/github-mcp-server  2.3.0    remote     Connect AI assistants to GitHub - ...
locker.github/catalog               1.1.1    remote     Find open-source GitHub projects by task, ...
...
More servers match; narrow the term or raise --limit.
To add one:
  pandra add --mcp NAME

The order does not vouch for a server, so check its namespace before you add it. pandra add --mcp github, a word without /, searches too: on a terminal it lets you pick from the matches, and elsewhere it fails with mcp_server_not_named and lists them.

terminal
sh
pandra add --mcp io.github.github/github-mcp-server
text
Method: remote, https://api.githubcopilot.com/mcp/ (requests go to api.githubcopilot.com), the only supported method
  Unsupported: oci ghcr.io/github/github-mcp-server (runtime arguments are not supported; secret input `token` is used in an argument)
Added `[mcp-servers.github]` to pandra.toml and updated pandra.lock.
  pinned MCP server github from io.github.github/github-mcp-server 2.3.0

pandra add --mcp fills in what you leave out:

  • Version: the newest exact version.
  • Table name: the identifier's last segment without affixes such as mcp and server (github-mcp-server becomes github). A URL ending in /mcp needs --name.
  • Method: when a registry entry offers several supported ways to run the server, pandra add asks which is the default; without a terminal, choose one with --method.

Adding a server that pandra.toml already has, by the same registry name, package, or URL, updates its table in place and prints the change as a diff, the old value on a - line and the new one on a + line. For a server added at 1.3.0, pandra add --mcp io.github.github/github-mcp-server prints (output abridged; the newest version you get differs):

text
Updated `[mcp-servers.github]`
    source   io.github.github/github-mcp-server
  - version  1.3.0
  + version  1.4.0
Updated pandra.lock

A registry entry declares its inputs, so when a package is also in the MCP Registry, add its registry entry. For a package or a remote URL, write args, env, headers, and inputs in the table yourself:

pandra.toml
toml
[mcp-servers.time]
package = "pypi"
name = "mcp-server-time"
version = "2026.8.18"
args = ["--local-timezone={timezone}"]

[mcp-servers.time.inputs.timezone]
description = "IANA time zone name"
default = "UTC"

[mcp-servers.search]
url = "https://search.example.com/mcp"

[mcp-servers.search.headers]
Authorization = "Bearer {token}"

[mcp-servers.search.inputs.token]
description = "Search API token"
secret = true
required = true
  • An input takes description, required, secret, default (not with secret), choices, and format (string, number, boolean, or filepath). For a registry entry, you can set an input's description, or the default of one that is not secret, but you cannot add inputs.
  • {name} refers to an input in the server's args, env, url, or headers. Write a flag and its value as one argument, as in "--local-timezone={timezone}", so that both are left out when an optional input has no value.
  • A secret input can appear only in env and headers, never in arguments or URLs.
  • ${WORKSPACE} stands for the session's workspace in arguments and environment variables. pandra build refuses it in a remote's URL and headers, and inside an input's default it stays literal text.
  • required = true marks a server the agent cannot do its job without: a headless run in which it does not connect fails before the prompt is sent (servers that do not connect).
  • A package server's env cannot set a variable that its runner reads as configuration, such as NODE_OPTIONS for npx or UV_INDEX_URL for uvx, because it could run a command that the server's identity does not show. pandra build refuses such a server.

Whoever runs your agent supplies the input values in their own configuration (MCP servers).

Environment variables ​

Declare the environment variables your agent relies on. A declaration has no value: values come only from the user's configuration and environment variables.

pandra.toml
toml
[env.GITHUB_REPOSITORY]
required = true
description = "Repository to review, as owner/name"

[env.SENTRY_TOKEN]
secret = true
description = "Token for reading Sentry issues"

A required variable fails the run when it has no value, and an empty value counts as a value. A secret one is redacted in output and must come from the user's configuration or environment variables. The description appears in errors and in pandra agent inspect. A build refuses names that Pandra or a harness sets in every run, such as PANDRA_BIN or anything under CLAUDE_*. Users set values with pandra config set (environment variables for agents).

Released under the Apache License 2.0