Skip to content

Trusting agents ​

Last updated Nov 30, 2026 View as Markdown

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:

terminal
sh
pandra pull github.com/pandra-io/pandra/examples/reviewer

It prints the summary, whose exact layout can change between releases. Your run shows another digest and commit:

text
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@49137d4f28e99092679461f1050ff1b2156e1832

A 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 inspect and the source show what each skill contains. Pandra removes hooks from a skill's front matter, its agents/openai.yaml, and plugin directories such as .claude-plugin, because they would run commands the agent does not declare, and lists them per skill under Removed from skills:.
  • MCP servers. For each server, what it is (Server:), then the program and arguments it runs on your machine (Command: and Args:), or the URL it connects to (URL:). A server from the MCP Registry shows the registry's host on its Server: 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), or not checked when the registry could not be asked. A package file was never fetched, so each of its servers with a registry entry shows not 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:

    text
    Approving 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]

    y answers it at once, without Enter, and Enter alone answers no. Without a terminal, the run fails with package_not_approved before anything starts.

  • Pass --yes to 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 --yes does).

  • Run pandra agent trust on a package in your store or a package file, for example after pandra pull showed you the summary:

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

text
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/reviewer

Pulling 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 revisionAsks again
Adds an MCP serverYes
Changes what a server runs (its package, command, or fixed arguments), or the origin it connects toYes
Lets a skill pre-approve a new tool, such as Bash(git diff:*) widened to Bash(git:*)Yes
Changes a server's version onlyNo
Changes instructions, or skills and their scripts, without new pre-approved toolsNo
Removes a server, a skill, or an allowed-tools entryNo
Asks for a new secretNo: 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:

text
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@355646afef4f9d23761b74db16956f606a17ecb9

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

Released under the Apache License 2.0