---
url: /guilds/members.md
---
# 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:

```sh
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-notes
```

The 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](/build/base.md):

```toml
#: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`](/guilds/pinning.md#pinning-the-members) 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](/guilds/pinning.md)). 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`:

```sh
pandra guild remove release-notes
```

`guild 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](/configure/instructions-and-skills.md#preload-the-skills-every-run-needs) 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:

```toml
[members.implementer]
path = "agents/implementer"
preload-skills = ["simplify"]
```

When more than one place sets `preload-skills` for the agent, the first of these wins:

1. Your own `preload-skills` for the agent, in your configuration.
2. The member's `preload-skills`.
3. `preload-skills` in `[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 resume` runs where this search finds the guild file the quest was carried out from ([resume a quest](/quests/resuming.md#resume-a-quest)).
* `pandra quest wait`, `inspect`, `stop`, `logs`, and `remove` find a quest by its ID from any directory. `pandra quest inspect` reads 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-guilds` lists the quests of every guild without looking for a guild file.
* `pandra run reviewer` runs the local name `reviewer` in 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:

```text
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](/reference/pandra-guild-toml.md) lists every key.
