Add instructions and skills to the agents you run
Pandra-level instructions and skills are files you keep on your machine beside config.toml: an AGENTS.md and a skills/ directory. Pandra adds them to the agents you choose, on every harness, without changing any package. To give every agent Pandra-level instructions, such as the language to answer in, write them in AGENTS.md, and turn the file on for every agent:
$ mkdir -p ~/.config/pandra
$ echo 'Keep answers short.' > ~/.config/pandra/AGENTS.md
$ pandra config set defaults.instruction-sources '["pandra"]'
set defaults.instruction-sources = ["pandra"]config set replaces the whole list, so if pandra config show already lists sources, give them as well, such as '["home", "pandra"]'. Every run then gets the Pandra-level instructions before the agent's own. A dry run says yes beside the file, with defaults as the place that turned it on (the samples on this page leave out progress lines, and their paths are examples):
$ cd ~/src/reviewer
$ pandra run . --prompt "Review the diff." --dry-run
Run plan for . (nothing was started)
Agent /home/me/src/reviewer (sha256:2a0123b71802)
Harness claude-code
Backend host
Permission auto
Mode tui terminal
Prompt --prompt
Workspace /home/me/src/reviewer
Added
instructions pandra yes /home/me/.config/pandra/AGENTS.md defaults
home no /home/me/.claude/CLAUDE.md defaults
repo no no files found defaults
skills pandra no skills not found
home no not supported by claude-code
Checked when the run starts: model and effort support, secret values, harness version support
Ready to run.Without the list, no run gets the file, so an agent runs the same whatever files lie beside the configuration. The files live beside the configuration file in use, so a --config-file elsewhere has its own, and --no-config has none. AGENTS.md, skills/, and each skill can be symbolic links, such as ln -s ~/.claude/CLAUDE.md ~/.config/pandra/AGENTS.md. A run reads the files when it starts, so an edit during a run reaches only later runs. An AGENTS.md that is not UTF-8 stops every run that gets it (an instructions file cannot be read).
Add a Pandra-level skill
A Pandra-level skill is a directory under skills/ beside the configuration file, with a SKILL.md that follows the rules of a package's skill. The directory's name is the skill's name:
~/.config/pandra/
├── config.toml your configuration
├── AGENTS.md the Pandra-level instructions
└── skills/
└── decide/ the Pandra-level skill named decide
└── SKILL.md its instructions and front matterTo turn the Pandra-level skills on for every agent, add skill-sources:
[defaults]
instruction-sources = ["pandra"]
skill-sources = ["pandra"]Every run then installs them beside the agent's skills, and a Pandra-level skill replaces an agent's skill of the same name. Pandra does not ask you to approve Pandra-level skills or list the tools they pre-approve, so read a skill you copy from someone else before you put it here. Pandra removes from Pandra-level skills what it removes from a package's (what to check), and leaves out a skill it cannot install, such as one named pandra, with a warning that gives the reason. The dry run lists both:
warning: Pandra-level skill pandra was left out: its name is Pandra's own skill's
Run plan for . (nothing was started)
...
Added
instructions pandra yes /home/me/.config/pandra/AGENTS.md defaults
home no /home/me/.claude/CLAUDE.md defaults
repo no no files found defaults
skills pandra yes decide defaults
home no not supported by claude-code defaults
removed decide: hooksAdd the instructions your harness reads
A run does not read the instructions your harness reads without Pandra, such as ~/.claude/CLAUDE.md or a repository's AGENTS.md, so an agent runs the same in every repository. To add them, put home, repo, or both in instruction-sources:
[defaults]
instruction-sources = ["home", "pandra"]
[agents."/home/me/src/reviewer"]
instruction-sources = ["home", "pandra", "repo"]The dry run lists the files of each source, and the files it left out with the reason:
$ cd ~/src/app/web
$ pandra run ~/src/reviewer --prompt "Review the diff." --dry-run
warning: repo instructions file /home/me/src/app/.claude/rules/notes.md was left out: its link leads outside the repository root
Run plan for /home/me/src/reviewer (nothing was started)
...
Added
instructions pandra yes /home/me/.config/pandra/AGENTS.md agent settings
home yes /home/me/.claude/CLAUDE.md agent settings
repo yes /home/me/src/app/CLAUDE.md, /home/me/src/app/AGENTS.md, /home/me/src/app/web/AGENTS.md agent settings
left out /home/me/src/app/.claude/rules/notes.md (its link leads outside the repository root)
skills pandra no skills not found
home no not supported by claude-codeEach harness gets the files that harness reads itself, which its page lists: Claude Code, Codex, and Pi.
reporeads each directory from the Git repository's root down to the workspace. A workspace outside a repository, or in a directory the repository does not track, is read alone.- The instructions come in this order:
skill-guide,home,pandra,repo, the agent's own, then its preloaded skills. - Neither source needs approval. The repository's files reach the agent as text, as any file in the workspace does, and its settings, hooks, MCP servers, and skills are never read. Pandra leaves out, with a warning, a repository file larger than 1 MiB, files past 4 MiB in all, and a file whose link leads outside the repository root.
Let the harness load the skills in ~/.agents/skills
Codex and Pi load the skills in ~/.agents/skills/ when you run them without Pandra. To let them do the same in a run, add home to skill-sources. The harness then loads those skills itself, so Pandra does not check them or remove anything from them as it does for Pandra-level skills. Claude Code reads no such directory (Claude Code).
Choose which agents get them
instruction-sources and skill-sources are lists of these sources, empty by default:
| Source | In | Adds |
|---|---|---|
pandra | both | the Pandra-level AGENTS.md, or the Pandra-level skills under skills/ |
home | both | the instructions your harness reads in your home, or the skills in ~/.agents/skills/ |
repo | instruction-sources | the repository's instructions |
skill-guide | instruction-sources | Pandra's short text on when to load a skill (below) |
The keys go in [defaults] for every agent, or in an agent's table, which replaces [defaults] for that agent. To keep the Pandra-level instructions out of one agent, such as one that only answers other agents, give it an empty list:
[defaults]
instruction-sources = ["pandra"]
[agents."github.com/acme/agents/reviewer"]
instruction-sources = []For one invocation, --instruction-sources and --skill-sources on run and resume replace the configured list, and none stands for the empty list. The dry run names the key or flag that chose each list:
pandra run . --prompt "Review the diff." --skill-sources none --dry-run...
Added
instructions pandra yes /home/me/.config/pandra/AGENTS.md defaults
home no /home/me/.claude/CLAUDE.md defaults
repo no no files found defaults
skills pandra no decide --skill-sources
home no not supported by claude-code --skill-sources
...Have the agent load matching skills
An agent sees each skill's name and description, and decides itself when to load one. On some harnesses, such as Claude Code and Pi, agents often skip a skill that matches their task. To have the agent load a matching skill more readily, add skill-guide to instruction-sources:
[defaults]
instruction-sources = ["skill-guide", "pandra"]Every run then starts with a short text built into Pandra, which tells the agent to load a skill whose description matches its task, or a step of it, before it acts. Codex already tells its agent so, and gets no guide.
Preload the skills every run needs
To put a skill's whole SKILL.md into the agent's instructions from the start, so the agent does not have to decide to load it, name it in preload-skills:
[agents."/home/me/src/reviewer"]
preload-skills = ["review"]$ pandra run . --prompt "Review the diff." --dry-run
Run plan for . (nothing was started)
...
Preload review (4.7 KiB) agent settingsAn entry names a skill the run installs, by its name or as superpowers:brainstorming for a plugin's skill: one of the agent's, a Pandra-level skill, or Pandra's own pandra. An agent's list replaces a guild member's, which replaces the one in [defaults]. An entry in the agent's or the member's table that the run does not install is skipped with the warning preload_skill_not_found.
Every request of the run carries the preloaded skills, at about one token for every 4 bytes, so review adds about 1,200 tokens to each request. Preload only what every run needs from its start, and let the skill guide bring in the others.
On Claude Code in read-only, the agent can read a skill's other files, such as its references/*.md (let an agent only read). A session keeps the preloaded text it started with. At the end of a headless or TUI run, fields on stderr name the skills the agent loaded and those it did not (see which skills the agent loaded).
Resume a session
A resume reads the instructions files again and installs the skills again. Whether the resumed conversation sees an edit to an instructions file at once depends on the harness: Claude Code, Codex, and Pi each say when. pandra session inspect shows the instructions of each launch by digest, with those of the first launch where the conversation keeps them.