Declaring members
To add a member, give pandra guild add its name and its source: the path of an agent project in this repository, an OCI reference, a Git reference, or the URL a browser shows for one:
pandra guild add implementer agents/implementer
pandra guild add reviewer ghcr.io/acme/reviewer:1.2.0
pandra guild add security-reviewer agents/security-reviewer
pandra guild add release-notes https://github.com/acme/agents/tree/v0.3.0/release-notesThe first guild add creates pandra-guild.toml at the root of the repository. Each [members.<name>] table names one member and its source, with the keys of a base:
#:schema https://pandra.io/schemas/guild/v0.schema.json
[members.implementer]
path = "agents/implementer"
[members.reviewer]
oci = "ghcr.io/acme/reviewer:1.2.0"
[members.security-reviewer]
path = "agents/security-reviewer"
[members.release-notes]
git = "https://github.com/acme/agents"
path = "release-notes"
tag = "v0.3.0"Each guild add also pins a remote member in pandra-guild.lock and prints what it contains, as pandra guild lock does. Commit both files.
Kinds of member
| Member | Keys | Runs |
|---|---|---|
| A package in a registry | oci, with a tag, a digest, or both | The package the lockfile pins. |
| An agent project in a Git repository | git, an optional path, and at most one of tag, branch, or rev | The project at the commit the lockfile pins. |
| An agent project in this repository | path alone, relative to the guild file | The project as it is in your checkout. |
Members from a registry or a Git repository are remote members: the lockfile pins each one, and each person approves it before it runs (pinning and approving). A path member is not pinned and needs no approval.
Change or remove a member
To point a member at another source, run pandra guild add again with its name; its other keys and their comments stay. To remove a member and its pin, first change or remove each profile entry and quest step that names it, such as the step release-note of the quest change, then run pandra guild remove:
pandra guild remove release-notesguild remove refuses a member that a profile or a quest still names, and lists each profile and quest that names it. The stored package and its approval stay.
Preload skills for a member
preload-skills puts the whole SKILL.md of each preloaded skill in the agent's instructions from the start of every run of the member, guild run and each quest step and check it carries out:
[members.implementer]
path = "agents/implementer"
preload-skills = ["simplify"]When more than one place sets preload-skills for the agent, the first of these wins:
- Your own
preload-skillsfor the agent, in your configuration. - The member's
preload-skills. preload-skillsin[defaults]of your configuration.
A skill the run does not install is skipped with a warning.
Where Pandra finds the guild file
pandra guild commands, pandra quest run, and pandra quest list use the nearest pandra-guild.toml: in the current directory, or in a parent directory up to the root of the repository, never above it. Guild files in several directories are never merged. Paths in the guild file are relative to its directory, and pandra-guild.lock sits beside it.
When there is no guild file, the command fails and names the directories it searched. pandra guild add instead creates the file where the search stops.
Other commands find the guild file, or do without it, as follows:
pandra quest resumeruns where this search finds the guild file the quest was carried out from (resume a quest).pandra quest wait,inspect,stop,logs, andremovefind a quest by its ID from any directory.pandra quest inspectreads the guild file only when its argument is no quest's ID, to say that it is the name of one of the guild's quests.pandra quest list --all-guildslists the quests of every guild without looking for a guild file.pandra run reviewerruns the local namereviewerin your store, not the member.
Edit the file by hand
No command writes profiles, quests, or preload-skills, so you write those by hand, and members too if you like; after you change a remote member, run pandra guild lock. An editor that reads the #:schema line checks the file as you write it, and a mistake fails every guild command with an error that names the line and key:
error: invalid /home/me/app/pandra-guild.toml: 15:1: unknown key `members.release-notes.brnch`; did you mean `branch`?
pandra-guild.toml:15:1: unknown key `members.release-notes.brnch`; did you mean `branch`?The pandra-guild.toml reference lists every key.