# 13. Members

> **Status: partly implemented.** The `#authority` member tool-pack registry
> and permission policy ([`openagents/core/members.coax`](../../openagents/core/members.coax),
> `#14057`) alongside [`openagents/core/tool.coax`](../../openagents/core/tool.coax)
> and [`openagents/core/extensions.coax`](../../openagents/core/extensions.coax)
> pass on `cpu` (0 surviving mutants on `members.coax`), mounting `OA_PACK_COAX_INTEL`,
> `OA_PACK_WALLET`, `OA_PACK_CLI`, `OA_PACK_METAVERSE`, and `OA_PACK_AGENTS`
> into [`coder/tui/oa-worker.coax`](../../openagents/runtime/oa-worker.coax). Remaining:
> dynamic NIP-CAP `DiscoveryHead` catalog syncing and mobile/web member-list
> surfaces (`openagents/agent/members.coax`).

## Premise

The loop so far has one thing behind it, a model. This chapter gives it a list
of members, each a specialized thing it can hand a request to. The agent
becomes a composition.

## Draft

The thesis of this book comes from the general-agent essay: a general agent is
a composition. A general front decides what each request needs. A growing set
of specialized members does the work. Specialization lives in the members, and
generality lives in the composition.

A member is anything the front can hand a request to: a prepared answer, a
general model for conversation, Coder, another vendor's coding agent, a plugin
someone wrote, a wallet, another computer. Each member has a name, a short
description, typed input and output, a list of the effects it can have, and a
status that says what evidence stands behind it.

The idea is old in this project. [Episode 36](../../docs/transcripts/036.md)
organizes agents into reusable modules, [Episode
38](../../docs/transcripts/038.md) draws them as a graph, and [Episode
242](../../docs/transcripts/242.md) describes programs that can each be
improved on their own. What those attempts lacked was a cheap, reliable way to
choose among members (chapter 15) and a way to know that adding one made the
agent better (the evidence chapters, 43 to 52).

Members are visible. Episode 289 shows the list on screen: here are the tools,
here are the subagents. You can always ask the agent what it has, and the
answer is the same list the front chooses from.

This chapter starts with three members: conversation, answers and Coder. Two
of them are stubs until their own chapters.

## What we build

A plan for what this chapter ships once the draft is approved:

- A member descriptor type: name, summary, input, output, effects and claim
  status.
- A members list the front reads and every surface can show.
- Three first members, two of them stubs.

It builds on what exists today:

- [`openagents/core/members.coax`](../../openagents/core/members.coax) (`#authority` member packs: Wallet, OpenAgents CLI, Metaverse/GameBuilder, Agents, `#14057`)
- [`openagents/core/tool.coax`](../../openagents/core/tool.coax) and [`openagents/core/extensions.coax`](../../openagents/core/extensions.coax)
- [`coax/lib/nostr/cap`](../../coax/lib/nostr/cap)
- [`coax/lib/nostr/agent`](../../coax/lib/nostr/agent)

On the protocol ([chapter 65](ch065-one-schema-three-carriages.md)):

| Record | Schema | Carriage | Today |
| --- | --- | --- | --- |
| Member descriptor | `openagents.capability.v1` `Definition`, listed by a `DiscoveryHead` ([spec 19.3](../../docs/protocol/openagents-protocol-spec.md#193-openagentscapabilityv1)) | Nostr kind 30180, public (NIP-CAP) | Spec sketch; no `.proto` file. The NIP's JSON, read and written by `coax/lib/nostr/cap`, is the definition today |
| An agent's public definition | `openagents.agent.v1` `AgentDefinition`, `PublicDefinition` ([spec 18.1](../../docs/protocol/openagents-protocol-spec.md#181-openagentsagentv1)) | Nostr kind 30187; HTTP `/v1/agents` | Spec sketch; no `.proto` file. `coax/lib/nostr/agent` handles the NIP's JSON |

### The chapter's check

- **Source:** the members list in `openagents/agent/members.coax`, with the
  three first members: conversation, answers and Coder.
- **Trace:** `state members` prints three rows. Each row has the member's
  name, summary, effects and claim status, and the two stubs read `stub`.
  Asking the agent "what can you do?" through the fixture loop prints the
  same three names in the same order.
- **Refusal:** a descriptor with no effects list fails to load with
  `member descriptor: missing effects`. The list keeps the other members,
  and the front never sees the broken one.
- **Independent check:** each descriptor is written as NIP-CAP JSON and
  read back by the existing reader in `coax/lib/nostr/cap`. The name,
  summary and effects match the hand-written fields of the three members.

Planned paths: `openagents/agent/members.coax`.

## Sources

- **Episodes:**
  - [Episode 289, *OpenAgents*](../../docs/transcripts/289.md): 0:30, tools and subagents on screen
  - [Episode 36, *Agent Modules 101*](../../docs/transcripts/036.md): agents as reusable modules
  - [Episode 38, *Agent Node Graphs*](../../docs/transcripts/038.md): node graphs
  - [Episode 40, *Agent Brain Design*](../../docs/transcripts/040.md): a modular brain
  - [Episode 242, *Khala, Collective Intelligence*](../../docs/transcripts/242.md): independently improvable programs
- **Old code at `coder-v1.0.0`, crates:** `route-contract`, `capability`, `openagents-chat`
- **NIPs:** [NIP-CAP](../../nostr/nips/openagents/NIP-CAP.md), [NIP-AGENT](../../nostr/nips/openagents/NIP-AGENT.md)
- **Also:**
  - *The Return of the General Agent* (`git show coder-v1.0.0:docs/essays/2026-10-01-the-return-of-the-general-agent.md`), Part II: a general agent is a composition
- **Promises covered** ([audit](../../docs/audits/2026-11-10-episode-289-port-audit.md#1-what-episode-289-promised)): P3, P4

## Open questions for the owner

1. What does the product call these? The essays say "members"; Episode 289
   says tools, subagents and plugins.
