Share an agent on GitHub
Push the my-agent project of the quickstart, with its description set to Writes code test first, to a GitHub repository, tag a release, and run that release from another machine. Anyone who can read the repository runs it the same way. you stands for your GitHub account. The sample comes from a test Git server, with its address replaced by github.com/you/my-agent, and your digests differ.
Push the project
If you pushed the project in step 5 of the quickstart, go to step 2. Otherwise, commit pandra.toml, pandra.lock, and instructions.md, and push them to a new repository, here with the GitHub CLI:
cd my-agent
git init
git add pandra.toml pandra.lock instructions.md
git commit -m "Add my-agent"
gh repo create my-agent --private --source . --pushpandra.lock pins the commit of each skill, so every machine that runs the agent gets the same skills. A private repository works with the Git credentials you already have: Pandra fetches with your git command, as git clone does.
Tag a release
Tag the commit with the version in pandra.toml, so others can run this release by its tag:
git tag v0.1.0
git push origin v0.1.0For the next release, change version to 0.2.0, commit, and tag v0.2.0.
Run it from another machine
Name the repository and the tag. The first run asks you to approve the agent, even your own, and shows what it contains (shortened here):
pandra run github.com/you/my-agent@v0.1.0 --headless \
--prompt "Write a failing test for an add function." Source: github.com/you/my-agent
Digest: sha256:20ef69d97ced5733a1495624044b4ee69a7222745ad8df4b5573519bc2577b9a
Description: Writes code test first
Skills: test-driven-development
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 my-agent 0.1.0
...So pandra run github.com/you/my-agent@v0.2.0 starts without asking, as long as that release adds no MCP server, changes none, and pre-approves no new tool.
A repository can also hold several agents, each in its own directory. Others then name the directory after the repository, such as github.com/you/agents/my-agent@v0.1.0 for the agent in my-agent/ of the repository you/agents.