---
url: /examples/update-an-agent.md
---
# Get the new version of an agent you run

You run the example agent `reviewer` from its repository's default branch. After its first run, Pandra runs the copy in your [store](/share/pulling.md#managing-your-store) and fetches nothing, so a change its author pushes reaches you only when you pull again.

## 1. Pull again

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

When the branch has not moved, the first line says `(unchanged)`:

```text
Pulled reviewer 0.1.0 (unchanged)
  Reference:             github.com/pandra-io/pandra/examples/reviewer
  Digest:                sha256:52c8e3b2856980c2baeb2b4772ae13f1beeb79b4c9f257109468ee50563c7f6d
  ...

Approved (approved on 2026-11-25)
```

## 2. See whether your approval still holds

When the branch has moved, the pull shows the new revision's contents, and its last block says whether your approval still holds:

* `Covered by the approval of ...`: the new revision adds no MCP server, changes none, and pre-approves no new tool, so it runs without asking.
* `Needs approval:` followed by the changes and the `pandra agent trust` command: the next run asks you again, so check what changed before you approve it.

The next `pandra run github.com/pandra-io/pandra/examples/reviewer` runs the new revision.

## 3. Stay on one revision instead

To stay on a revision until you choose to move, run the agent by a tag or a full commit, such as `github.com/pandra-io/pandra/examples/reviewer@<full-commit>`. `pandra agent list` shows each reference in your store with the digest of its package.

[Learn more about pulling agents →](/share/pulling.md)
