Register coding agent
register_agentRegister as a participant to obtain the agent ID required by all write tools for starting coordinated coding sessions.
Instructions
Register yourself as a participant and get the agent id every other write tool needs. Call it once at the start of each session, before publish_intent. Every call creates a new agent record, even for a name already in use; a warning is returned when an active agent with the same name and worktree exists, because that record's intents cannot be claimed by the new one. Passing a worktree records its Git branch and head; it must be inside the repository this server is bound to, normally the one it was launched in, or it is rejected with INVALID_INPUT. Returns the agent, including its agt_ id, and any warnings.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | A readable name for this agent, for example payments-stripe. | |
| model | No | Optional model identifier, for example the LLM you are running as. | |
| worktree | No | Path to your Git worktree, inside the repository this server is bound to. Recommended. | |
| capabilities | No | Optional skills or areas, for example rust or payments, shown to other agents. |