partly implementedProfilecpuQualifiedcpu

13. Members

Status: partly implemented. The #authority member tool-pack registry and permission policy (`openagents/core/members.coax`, #14057) alongside `openagents/core/tool.coax` and `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`. 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 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:

On the protocol (chapter 65):

RecordSchemaCarriageToday
Member descriptoropenagents.capability.v1 Definition, listed by a DiscoveryHead (spec 19.3)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 definitionopenagents.agent.v1 AgentDefinition, PublicDefinition (spec 18.1)Nostr kind 30187; HTTP /v1/agentsSpec 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

Open questions for the owner

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