Skip to content

Pin the agents your repository works with ​

Last updated Nov 30, 2026 View as Markdown

Declare the agents a repository works with in its guild file, pin each one, and commit both files. At the end, everyone who clones the repository payments fetches, approves, and runs the same three agents by short names, such as pandra guild run reviewer.

The example starts from the code-review agent that Share a code-review agent with your team releases as github.com/acme/reviewer@v1.2.0. It adds two more agents: an implementer that payments keeps in agents/implementer, and a release-note writer from the team's repository github.com/acme/agents.

Declare the members ​

The agents a repository declares are its guild's members, each under a short name. In the checkout of payments, add each one with its name and its source, a path in the repository or a Git reference:

terminal
sh
pandra guild add implementer agents/implementer
pandra guild add reviewer github.com/acme/reviewer@v1.2.0
pandra guild add release-notes github.com/acme/agents//release-notes@v0.3.0

agents/implementer is an agent project with its own pandra.toml, as Build an agent makes one. The first guild add creates pandra-guild.toml at the root of the repository, and each guild add writes one member:

toml
#:schema https://pandra.io/schemas/guild/v0.schema.json

[members.implementer]
path = "agents/implementer"

[members.reviewer]
git = "https://github.com/acme/reviewer"
tag = "v1.2.0"

[members.release-notes]
git = "https://github.com/acme/agents"
path = "release-notes"
tag = "v0.3.0"

Learn more about declaring members →

Pin them and commit ​

Each guild add of a member from a Git repository pins it in pandra-guild.lock, beside the guild file, to the commit its tag points at. It prints what each pinned agent contains, as here for the third guild add (output abridged). The samples on this page shorten commits and digests, and show the checkout as /home/me/payments:

text
Added release-notes to pandra-guild.toml
...

Pinned release-notes
  Reference:             github.com/acme/agents//release-notes@a6ae9d58ea3b...
  Digest:                sha256:fcaa1b5d4334...
  Description:           Writes release notes

Needs approval:
  To approve:
    pandra agent trust github.com/acme/agents//release-notes@a6ae9d58ea3b...

A path member such as implementer is not pinned: it runs as it is in each checkout.

Commit the guild file, its lockfile, and the implementer's project, and push them:

terminal
sh
git add pandra-guild.toml pandra-guild.lock agents \
    && git commit -m "Declare the repository's agents"
git push

Fetch and approve on each teammate's machine ​

After a teammate clones payments, pandra guild list shows which members are ready to run:

terminal
sh
pandra guild list

The remote members are not in their store yet:

text
MEMBER         AGENT                                  DESCRIPTION          READY  BLOCKERS
implementer    /home/me/payments/agents/implementer   Implements a change  ?      -
reviewer       github.com/acme/reviewer               -                    no     agent_not_found
release-notes  github.com/acme/agents//release-notes  -                    no     agent_not_found
?: a local project is built only when it runs; to check it now:
  pandra guild run NAME --dry-run

To fetch the packages the lockfile pins and approve them:

terminal
sh
pandra guild pull
pandra guild trust

guild trust shows what each remote member contains, such as the reviewer's MCP server, and asks one question for all of them (output abridged):

text
implementer is a local project, which needs no approval

reviewer needs approval
  Reference:             github.com/acme/reviewer@ea2b5d5b7816...
  Digest:                sha256:bef384517279...
  Description:           Reviews pull requests for correctness and style
  Skills:                review, test-driven-development
  MCP servers:
    github
      Server:            io.github.github/github-mcp-server 1.4.0 (MCP Registry, registry.modelcontextprotocol.io)
...

release-notes needs approval
  Reference:             github.com/acme/agents//release-notes@a6ae9d58ea3b...
  Digest:                sha256:fcaa1b5d4334...
  Description:           Writes release notes
  Runs on:               the host as you; --backend vm runs it in a VM

Approving also covers later revisions of these sources that add no MCP server,
change none, and pre-approve no new tool.
? Approve reviewer and release-notes? [y/N]

A teammate who approved the reviewer's release before, as step 5 of the sharing example does, sees reviewer is approved already and is asked about release-notes alone.

Learn more about pinning and approving →

Run a member by name ​

In their checkout of payments, each teammate runs a member by its name; the review goes to stdout:

terminal
sh
pandra guild run reviewer --prompt "Review my uncommitted changes." > review.md

Stderr starts with the commit the name stands for and the guild file it came from:

text
reviewer: github.com/acme/reviewer@ea2b5d5b7816... (pandra-guild.toml)
Session:  5d99431675ea (reviewer)

The commit is the one the lockfile pins, so everyone runs the same release. The harness and the model are each person's own choice for the agent github.com/acme/reviewer (a member runs as its agent).

Learn more about running members →

Move a member to a new release ​

When github.com/acme/reviewer releases v1.3.0, change the member's tag in pandra-guild.toml:

toml
[members.reviewer]
git = "https://github.com/acme/reviewer"
tag = "v1.3.0"

Then pin it again, and commit and push the change:

terminal
sh
pandra guild lock
git commit -am "Move reviewer to v1.3.0" && git push

guild lock pins the changed member again and keeps the other pins:

text
implementer is a local project
  Path:  /home/me/payments/agents/implementer

Pinned reviewer
  Reference:             github.com/acme/reviewer@88e2160e13ae...
  Digest:                sha256:dc4f3613a851...
  Description:           Reviews pull requests for correctness and style
  Skills:                review, test-driven-development
...

Pinned release-notes (unchanged)
  Reference:  github.com/acme/agents//release-notes@a6ae9d58ea3b...
  Digest:     sha256:fcaa1b5d4334...

Once a teammate pulls that commit, their next pandra guild run reviewer fetches the new release and runs it. It asks for approval again only when the release adds or changes an MCP server or lets a skill run a new tool without asking. v1.3.0 changes only the instructions, so the approval of step 3 covers it.

The members can also carry out work in turn, such as an implementation that the reviewer checks: Agent workflows.

Released under the Apache License 2.0