---
url: /examples.md
---
# Examples

The examples cover the tasks that come after the [quickstart](/quickstart.md). A recipe shows the shortest path to one task, with a few commands and what they print, and links the guide page with the details. A walk-through follows one larger goal from start to finish. Where a recipe needs an agent from the network, it uses the example agent `github.com/pandra-io/pandra/examples/reviewer`, which reviews the changes in your workspace. The names `acme` and `example` are placeholders for a repository or registry of your own or your team's.

## Recipes

### Build an agent

* [Turn a Claude Code setup into an agent](/examples/claude-code-setup-to-agent.md): package a repository's `CLAUDE.md`, skills, and `.mcp.json` servers as one agent.
* [Add a skill from GitHub and update it](/examples/update-a-skill.md): move a skill to a new release, or follow a branch and take its newest commit.
* [Take some skills from a plugin](/examples/skills-from-a-plugin.md): choose which skills of a Claude Code plugin, such as superpowers, your agent takes.
* [Build on another agent and change part of it](/examples/override-a-base-agent.md): add your own rule to an agent and leave out one of its MCP servers.

### Run an agent

* [Give an MCP server a token](/examples/mcp-server-token.md): keep an API key in the keychain and give it to one server.
* [Run an agent from a script](/examples/run-from-a-script.md): read the answer and the session ID from the JSON event stream.
* [Continue a conversation later](/examples/continue-a-conversation.md): name a session, find it, and resume it with a new prompt.
* [Run an agent in a VM with your own image](/examples/vm-image.md): build an image with your project's tools and boot it in a microVM, through a registry on your Mac.

### Set up the harness

* [Give the harness an API key](/examples/harness-api-key.md): keep your Anthropic API key in the keychain, and give it to Claude Code without the agent seeing it.
* [Pin the harness version](/examples/pin-a-harness.md): keep every run on the version of Claude Code you tested.

### Share and maintain agents

* [Share an agent on GitHub](/examples/share-on-github.md): push your agent to a GitHub repository, tag a release, and run it by its tag.
* [Publish an agent to ghcr.io](/examples/publish-to-ghcr.md): push a version of your agent to a registry and run it by its tag.
* [Get the new version of an agent you run](/examples/update-an-agent.md): pull again, and see whether your approval covers the new revision.
* [Remove what you no longer use](/examples/remove-unused.md): remove sessions, agents, and the files nothing needs.

## Walk-throughs

### Teams and sharing

* [Share a code-review agent with your team](/examples/share-a-team-agent.md): a platform team shares one code-review agent through a private Git repository, and every engineer runs the same release the same way.
* [Pin the agents your repository works with](/examples/pin-repository-agents.md): a repository declares three agents in a guild file and pins them, and every teammate who clones it fetches, approves, and runs the same agents by short names.

### Trying agents

* [Try an agent someone published on GitHub](/examples/try-an-agent-from-github.md): see what an agent that someone else published on GitHub does before trusting it with your repository or your tokens.
* [Run one agent on Claude Code and Codex](/examples/one-agent-on-two-harnesses.md): run an agent on Claude Code by default and compare it with Codex now and then.

### CI and production

* [Run your own agent in a container](/examples/your-agent-in-a-container.md): build an image of an agent you wrote, with no MCP servers, that prepares everything at build time and starts the agent offline.
* [Run a published agent with an MCP server in a container](/examples/agent-in-a-container.md): pull and approve someone else's agent at build time, configure its MCP server, and supply its token only when the container starts.
* [Review every pull request in CI](/examples/review-pull-requests-in-ci.md): run a reviewer on every pull request in GitHub Actions and show its review in the job summary.

### Setup

* [Set up an MCP server from a template](/examples/mcp-server-from-a-template.md): set up an agent without prompts, with its MCP server's values written in a file that one command applies, from a provisioning script or with an AI agent filling in the file.
