register_agent
Register or update an agent identity in a project, creating the project if needed and generating a name when omitted.
Instructions
Register or update an agent identity in a project, creating the project if needed. Omit name to get a generated adjective+noun name, unless task_description starts with a session tag an eligible or lifecycle-bound agent already has; then that agent is updated. Re-registering an existing name replaces its program, model and task and clears inactivity retirement. Authoritative lifecycle closure requires a verified reopen. If the register hook already told you your name, pass it as name, or start task_description with the session tag it gave you. To also reserve paths and read your inbox in one call, use macro_start_session.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | Adjective+noun such as GreenLake. Omit to get one generated. | |
| model | Yes | Model id the session runs. | |
| program | Yes | Agent host, such as claude-code, codex or cursor. | |
| worktree | No | Absolute path of the checkout being edited, in this project. Omit to keep its recorded location. | |
| project_key | Yes | Absolute path of the repository's primary checkout. | |
| task_description | No | What you are working on. Keep the leading [host:session ...] tag the register hook gave you. |