---
url: /examples/try-an-agent-from-github.md
---
# Try an agent someone published on GitHub

Someone recommends `github.com/example/agents/issue-triage`. See what it does before trusting it with your repository or your tokens. You end with the agent run once in a throwaway worktree, and then either kept as an approved package or removed.

## 1. Look at what it contains

Pull a tagged release and inspect it. Pulling builds the agent without running any of its code and approves nothing.

```sh
pandra pull github.com/example/agents/issue-triage@v0.3.0
pandra agent inspect github.com/example/agents/issue-triage@v0.3.0
```

The pull prints a summary of the package, and `inspect` adds its source and approval state:

```text
Pulled issue-triage 0.3.0
  Reference:             github.com/example/agents/issue-triage@v0.3.0
  Digest:                sha256:73b7c932a3978ac972665b7dfea17459b97155398aa6d6e86fb40ca212a779c8
  Description:           Triages open issues
  Skills:                triage
  Pre-approved tools:    triage: Bash(gh issue list:*)
  Runs on:               the host as you; --backend vm runs it in a VM

Needs approval:
  To approve:
    pandra agent trust github.com/example/agents/issue-triage@3c5c5ffede282a68f62ac1459fe8819e3d435bd2
```

Question a skill with scripts you did not expect, a server on a host you do not recognize, or secrets that do not match what the agent claims to do. [Trusting agents](/run/trust.md) lists what to check.

## 2. Commit what it reads

The agent will start in a new Git worktree at your current `HEAD`, which does not carry uncommitted changes, so commit its input first:

```sh
git add docs/issues.md && git commit -m "List the open issues to triage"
```

## 3. Run it in a throwaway worktree

Run it in its own worktree and remove the session when it ends:

```sh
pandra run github.com/example/agents/issue-triage@v0.3.0 --worktree --rm \
    --prompt "Triage the open issues listed in docs/issues.md."
```

Pandra shows the same summary again and asks you to approve the agent before anything starts:

```text
✓ Approve this agent? Yes
Approved issue-triage 0.3.0
  Source:                github.com/example/agents/issue-triage
  Digest:                sha256:73b7c932a3978ac972665b7dfea17459b97155398aa6d6e86fb40ca212a779c8

To remove the approval:
  pandra agent untrust github.com/example/agents/issue-triage
```

`--rm` keeps the worktree and its branch when the agent left work in them.

::: security
The worktree limits what the agent starts with and what it leaves behind, not what it can reach. The agent runs as you and can read and change the rest of your files.
:::

[Learn more about workspaces →](/run/workspaces.md)

## 4. Keep it, or remove it

The run approved the agent and left the package in your store. `pandra agent list --json` reports the full commit you reviewed as the package's `reference`; run that from now on:

```sh
pandra agent list --json
```

If the agent has MCP servers or variables to configure, set them up once with `pandra config setup github.com/example/agents/issue-triage@v0.3.0` ([setting up an agent](/configure/setup.md)); an agent with neither, like this one, has nothing to set up.

To drop it, remove it from your store. The approval goes with the last reference to the source in your store:

```sh
pandra agent remove github.com/example/agents/issue-triage@v0.3.0
```

Later releases run without asking unless they add an MCP server, change what one runs or connects to, or let a skill run a new tool without asking. `pandra pull` says whether your approval covers a release.

[Learn more about managing your store →](/share/pulling.md#managing-your-store)
