Skip to content

Pulling agents ​

Last updated Nov 26, 2026 View as Markdown

Pulling an agent ​

pandra pull brings a remote agent into your store, from a Git repository or an OCI registry, and prints what it fetched with the approval summary that Pandra also shows before the agent first runs (trusting agents):

text
$ pandra pull github.com/acme/reviewer@v1.2.0
Pulled reviewer 1.2.0
  Reference:             github.com/acme/reviewer@v1.2.0
  Digest:                sha256:4f2a9c1e7b3d...
  Description:           Reviews pull requests
  ...

Needs approval:
  To approve:
    pandra agent trust github.com/acme/reviewer@355646afef4f9d23761b74db16956f606a17ecb9

The last block says where the package stands, in one of three forms:

  • The package is approved:

    text
    Approved (approved on 2026-11-02)
  • The package is a new revision of an approved source that adds no MCP server, changes none, and pre-approves no new tool, so the earlier approval covers it:

    text
    Covered by the approval of github.com/acme/reviewer (approved 4f2a9c1e7b3d on 2026-11-02)
  • The package is not approved yet, or changed in a way that asks again. The block starts with Needs approval:, lists the changes, and ends with the command that approves, as in the sample above.

Pulling only fetches: it never asks a question and never approves, so pulling an agent to look at it is safe, and an AI agent can do it for you. pandra agent inspect, pandra config setup, pandra run --dry-run, and pandra sync work on a pulled package before you approve it. After a pull, pandra run uses the stored package without fetching again; pull again to pick up new commits or tags.

Managing your store ​

terminal
sh
# one row per reference or local name, with whether its package is ready to run
pandra agent list
# what it contains, and whether it is approved
pandra agent inspect github.com/acme/reviewer@v1.2.0
# approve it, and later revisions that add nothing
pandra agent trust github.com/acme/reviewer@v1.2.0
# withdraw the approval of the source
pandra agent untrust github.com/acme/reviewer
# remove that reference from the store, and the approval with the source's last reference
pandra agent remove github.com/acme/reviewer@v1.2.0
# unused environments, caches, and cached downloads
pandra system prune

The BLOCKERS column of pandra agent list names what stops a package from running, such as package_not_approved or input_missing (what a run checks).

Your store keeps a package while a local name, a reference you pulled it under, or a session refers to it. A tag or branch pulled again moves to the new revision, and Pandra deletes the old one unless something else keeps it. To keep a revision, pull it by its full commit or digest.

pandra agent remove removes a reference or a local name, as docker image rm removes a tag, and the package goes with the last of them. A digest, or a reference pinned to a digest or commit, removes the package with all its references and names, and needs --force when it has several. Removing the last reference or local name of a package that sessions use needs --force too, and the package then stays until its last session is removed. Your agent settings stay. The approval goes with the last reference of its source, or with the last local name that pandra agent load gave the package file, so the next run asks again. A resume of a session that keeps the package asks again too when no approval that remains covers the package (approving an agent).

Released under the Apache License 2.0