Trusting agents
An agent is code: its instructions steer a model that can use your tools, its skills can ship scripts, and its MCP servers run programs or receive your values. So a remote agent, or a package file, runs only after you approve it. Agents built from your own local projects never need approval.
The first time you run an agent from a new source, Pandra fetches it, builds it without running any of its code, and shows what it contains before it asks. pandra pull and pandra agent trust show the same summary, a run shows it under Source: and Digest: lines, and pandra agent inspect shows each part in more detail. To pull the example agent reviewer:
pandra pull github.com/pandra-io/pandra/examples/reviewerIt prints the summary, whose exact layout can change between releases. Your run shows another digest and commit:
Pulled reviewer 0.1.0
Reference: github.com/pandra-io/pandra/examples/reviewer
Digest: sha256:c7b15d3fee631aa12b57ae25aa7432b1130ed4778f054cf5a1016ebdf3817e3f
Description: Reviews the changes in your workspace for correctness and safety first, then needless complexity
Skills: ponytail-review
MCP servers:
context7
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
Secrets: Authorization (API key for authentication. Accepts \"Bearer <key>\" or the raw key.)
Runs on: the host as you; --backend vm runs it in a VM
Needs approval:
To approve:
pandra agent trust github.com/pandra-io/pandra/examples/reviewer@49137d4f28e99092679461f1050ff1b2156e1832A row with nothing to show is left out. This package declares no secret environment variable of its own, so it has no Secrets requested: row; each server's secrets are under that server. The Runs on: row says where the agent will run: on your computer as you, unless you run it with --backend vm (running in a microVM). When your configuration sets a network policy for the agent, a Policy: row after it says that the host does not enforce it.
What to check
- Where it comes from. A digest proves what a package contains, not who published it. Pandra does not verify signatures, so rely on where you got the reference. For a Git agent, you can read the source at the commit Pandra reports.
- Skills. Each skill is listed with the tools it pre-approves through
allowed-tools, which Claude Code then uses without asking while the skill is active. A skill can ship scripts;pandra agent inspectand the source show what each skill contains. Pandra removeshooksfrom a skill's front matter, itsagents/openai.yaml, and plugin directories such as.claude-plugin, because they would run commands the agent does not declare, and lists them per skill underRemoved from skills:. - MCP servers. For each server, what it is (
Server:), then the program and arguments it runs on your machine (Command:andArgs:), or the URL it connects to (URL:). A server from the MCP Registry shows the registry's host on itsServer:row, and below it the status of the check Pandra makes when it fetches the package: the registry serves the same entry, the registry did not serve it (with a warning first when Pandra asks the registry, as a pull that fetches does), ornot checkedwhen the registry could not be asked. A package file was never fetched, so each of its servers with a registry entry showsnot checked. The check asks only the registry the package names, so check that host as well. - Secrets. Which values the agent's servers and environment variables ask for. Nothing reaches a server until you assign a value and allow that server.
If you decide against an agent, leave it unapproved, or remove it with pandra agent remove.
Approving an agent
You approve an agent in one of three ways:
Answer the question its first run asks on a terminal:
textApproving also covers later revisions of this source that add no MCP server, change none, and pre-approve no new tool. ? Approve this agent? [y/N]yanswers it at once, without Enter, and Enter alone answers no. Without a terminal, the run fails withpackage_not_approvedbefore anything starts.Pass
--yesto the run, with or without a terminal. The run then asks nothing: it approves the agent, prints the summary on stderr after the approval, and starts (what--yesdoes).Run
pandra agent truston a package in your store or a package file, for example afterpandra pullshowed you the summary:terminalshpandra pull github.com/pandra-io/pandra/examples/reviewer pandra agent trust github.com/pandra-io/pandra/examples/reviewer
Security
--yes approves an agent before you see what it contains. Pass it to a run only for a reference you have already reviewed, pinned to a commit or a digest, or approve with pandra pull and pandra agent trust ahead of time.
Each way prints the approval with the command that withdraws it. pandra agent trust and a run with --yes print the whole summary in it too, shortened here after its digest:
Approved reviewer 0.1.0
Source: github.com/pandra-io/pandra/examples/reviewer
Digest: sha256:c7b15d3fee631aa12b57ae25aa7432b1130ed4778f054cf5a1016ebdf3817e3f
...
To remove the approval:
pandra agent untrust github.com/pandra-io/pandra/examples/reviewerPulling never approves, so an AI agent can pull an agent for you to look at; approving is yours. A run that an agent starts never approves a package, even with --yes: it fails with the pandra agent trust command for you to run (agents that run agents).
pandra agent untrust AGENT withdraws the approval, and the next run asks again. AGENT can be the source alone, such as github.com/pandra-io/pandra/examples/reviewer, or sha256:<digest> for a package file, so it works after the package or the file is gone.
pandra agent remove withdraws the approval too when it removes the last reference of the source in your store, or the last local name that pandra agent load gave the package file, and prints Removed the approval after what it removed. While another reference of the source stays, such as @v2 after @v1 is removed, the approval stays. A tag that moves on a pull, a package that goes with its last session, and pandra system prune keep it.
When Pandra asks again
An approval belongs to the agent's source: the Git repository and directory, or the OCI repository, not one commit or tag. A later revision from the same source runs without a question unless it adds or changes one of the parts that act without the harness's permission review:
| Change in a new revision | Asks again |
|---|---|
| Adds an MCP server | Yes |
| Changes what a server runs (its package, command, or fixed arguments), or the origin it connects to | Yes |
Lets a skill pre-approve a new tool, such as Bash(git diff:*) widened to Bash(git:*) | Yes |
| Changes a server's version only | No |
| Changes instructions, or skills and their scripts, without new pre-approved tools | No |
Removes a server, a skill, or an allowed-tools entry | No |
| Asks for a new secret | No: the input has no value until you supply one |
Everything else in skills and instructions, scripts included, acts only through tool calls, under the permission mode you run the agent with. When an update asks again, Pandra says why first, one line per change; without a terminal, the run fails with package_changed. pandra pull prints the same lines:
Needs approval:
server search was added (connects to https://search.acme.example)
this update lets skill review run Bash(curl:*) without asking
To approve:
pandra agent trust github.com/acme/reviewer@355646afef4f9d23761b74db16956f606a17ecb9A package file is approved for its exact digest only, and identical bytes from another source are approved separately.
Security
Carrying an approval over means trusting the source: whoever controls the repository can change the agent's instructions or scripts without a new question. Approve sources you trust, and pin what matters.
Try an agent you do not know
To try an agent you do not know, give it a new, empty workspace (--workspace new) or a Git worktree (--worktree), keep the harness's automatic permission review (the default), supply values for one run only, and pass --rm to clean up (try an agent someone published on GitHub).
Security
Pandra runs agents as you, on your machine, and is not a sandbox: an agent can read and change whatever you can, also outside its workspace (security).
To run exactly what you reviewed, pin it: github.com/acme/agents/reviewer@<full-commit> for Git, or ghcr.io/acme/reviewer@sha256:<digest> for OCI.