agent_rename
Change a worker's display name while preserving their ID and all past activity, and update their live session title.
Instructions
Change a worker's display name. Its actor_id (agent:N) does not change, so every pad write, todo comment and lease it has already made stays attributable. A live claude worker is also told to retitle its own session, which shows up in its pane; that arrives as a user turn, so rename between assignments rather than mid-task. Refuses a lead target outright.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | No | The worker's name, e.g. "impl" or "DEVX-123". Prefer passing this rather than agent_id, but pass only one: if both arrive, agent_id wins and this is ignored. A partial name works when it matches exactly one running worker, so "123" finds DEVX-123. | |
| agent_id | No | Numeric agent id. Use name instead unless you have the id to hand. | |
| new_name | Yes | The new display name. No other running worker may have it, case aside. | |
| project_id | No | Different project override. Use ONLY when the user explicitly asks for another project by name; otherwise stay in the current scope, even when results are empty. |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| name | Yes | ||
| note | No | ||
| tail | No | ||
| actor_id | Yes | ||
| agent_id | Yes | ||
| retitled | Yes | ||
| previous_name | Yes |