---
url: /quickstart.md
---
# Quickstart

Run an agent someone else wrote, then create, try, and share your own. The commands assume Pandra is [installed](/installation.md) and use Claude Code, installed and signed in; [other harnesses](/harnesses.md) work the same way. Your digests, session IDs, paths, versions, answers, and loaded skills differ from the samples; step 4's sample leaves out the answer.

## 1. Check the installation

`pandra harness list` shows the harnesses Pandra found, the coding agent programs that run your agents:

```sh
pandra harness list
```

```text
HARNESS      VERSION  SOURCE  PANDRA SUPPORT  IN USE
claude-code  2.1.285  PATH    yes             yes
```

## 2. Run someone's agent

Run the `hello-world` agent straight from GitHub; Pandra asks you once to approve it, and `--headless` prints its answer instead of opening Claude Code's interface:

```sh
pandra run github.com/pandra-io/pandra/examples/hello-world \
    --harness claude-code --headless
```

::: details Pandra's output before the answer

```text
✓ Fetched github.com/pandra-io/pandra/examples/hello-world · 2.5s
  Source:                github.com/pandra-io/pandra/examples/hello-world
  Digest:                sha256:8fe477cb5adc0c9add5544ba71c2fabc3f16d60607b746f2faa5d733f51ca5aa
  Description:           Greets you with a card that shows Pandra delivered its instructions, skill, and prompt
  Skills:                greet
  Runs on:               the host as you; --backend vm runs it in a VM
Approving also covers later revisions of this source that add no MCP server,
change none, and pre-approve no new tool.
✓ Approve this agent? Yes
Approved hello-world 0.1.0
  Source:                github.com/pandra-io/pandra/examples/hello-world
  Digest:                sha256:8fe477cb5adc0c9add5544ba71c2fabc3f16d60607b746f2faa5d733f51ca5aa

To remove the approval:
  pandra agent untrust github.com/pandra-io/pandra/examples/hello-world
✓ Built hello-world 0.1.0 · 0.0s
✓ Prepared · 0.0s
  Session:  bd316fc9f9ac (hello-world)
✓ Started claude-code 2.1.285 · 0.0s
✓ Ran hello-world · 0.0s
```

:::

The agent prints its answer, and Pandra then names [the skills the agent loaded](/run/workspaces.md#see-which-skills-the-agent-loaded) and those it did not load, such as `pandra`, Pandra's own skill, which the run added:

```text
+----------------------------------+
|  Beep from Pandra!               |
+----------------------------------+
Workspace: my-project
Harness:   Claude Code

Hope my-project is treating you well today, Boop!

-- hello-world agent
  Skills loaded:      greet
  Skills not loaded:  pandra
```

::: security
An agent runs as you, with your files and credentials, and Pandra is not a sandbox ([security](/reference/security.md)). Before you run an agent you do not know, read [try an agent someone published on GitHub](/examples/try-an-agent-from-github.md).
:::

## 3. Create your own

Create an agent project, a directory with a `pandra.toml`, add a skill by the URL your browser shows for it, and then write the agent's guidance in `instructions.md`:

```sh
mkdir my-agent && cd my-agent
pandra init
pandra add https://github.com/obra/superpowers/tree/v7.0.2/skills/test-driven-development
```

```text
Created pandra.toml for agent my-agent (name derived from the directory name; use --name to choose another)
Added `[skills.test-driven-development]` to pandra.toml and updated pandra.lock.
  pinned skill test-driven-development from https://github.com/obra/superpowers/skills/test-driven-development (commit 22f0b463e7a5)
```

```toml
# pandra.toml
#:schema https://pandra.io/schemas/agent-definition/v0.schema.json
name = "my-agent"
version = "0.1.0"
description = "Add your description here"

[[instructions]]
path = "instructions.md"

[skills.test-driven-development]
git = "https://github.com/obra/superpowers"
path = "skills/test-driven-development"
tag = "v7.0.2"
```

## 4. Try it

`.` runs the project in the current directory, which needs no approval because it is your own, and without `--headless` it opens Claude Code's interface instead:

```sh
pandra run . --harness claude-code --headless \
    --prompt "Write a failing test for an add function."
```

```text
✓ Built my-agent 0.1.0 · 0.0s
✓ Prepared · 0.0s
  Session:  5095f9992374 (my-agent)
✓ Started claude-code 2.1.285 · 0.0s
✓ Ran my-agent · 0.0s
...
  Skills loaded:      test-driven-development
  Skills not loaded:  pandra
```

## 5. Share it

Commit the project and push it to a new GitHub repository, here with the [GitHub CLI](https://cli.github.com), and anyone who can read the repository runs your agent and approves it once, as in step 2:

```sh
git init
git add pandra.toml pandra.lock instructions.md
git commit -m "Add my-agent"
gh repo create my-agent --private --source . --push
# anyone who can read the repository, from any project:
pandra run github.com/you/my-agent --harness claude-code
```

## Next steps

* [Overview](/overview.md): one agent from your files to a teammate's run, on one diagram.
* [Build an agent](/build.md): instructions, skills, MCP servers, and the lockfile.
* [Run an agent](/run.md): prompts, sessions, and workspaces.
* [Share an agent](/share.md): Git repositories, packages in OCI registries, and pulling.
* [Examples](/examples.md): short recipes for what comes next, such as turning a Claude Code setup into an agent, and whole stories, such as reviewing pull requests in CI.
