Let people rename their agents #139

Merged
CrowderSoup merged 1 commit from claude/agent-rename into main 2026-11-26 04:52:13 +00:00
Owner

Agent names couldn't be changed after the agent was made. Azure made one called "Brush:" by accident, and the only way to fix it was to delete the agent and hand out a new token.

  • Each agent row under Settings → API now has a Rename form, built the same way as the custom-field Edit form.
  • rename_agent uses the same name rules as create_agent (trimmed, not blank, at most 255 characters). The token, tasks and history don't change.
  • Only the agent's own parent can rename it; anyone else gets a 404.
  • Rotating a token was already there: it's the New token button.

Tests: three new tests in apps/users/tests/test_agent_settings.py. The full suite passes apart from tests/test_observability.py::test_an_api_error_names_the_user_the_api_authenticated, which fails locally and isn't touched by this change.

🤖 Generated with Claude Code

Agent names couldn't be changed after the agent was made. Azure made one called "Brush:" by accident, and the only way to fix it was to delete the agent and hand out a new token. - Each agent row under Settings → API now has a **Rename** form, built the same way as the custom-field Edit form. - `rename_agent` uses the same name rules as `create_agent` (trimmed, not blank, at most 255 characters). The token, tasks and history don't change. - Only the agent's own parent can rename it; anyone else gets a 404. - Rotating a token was already there: it's the **New token** button. Tests: three new tests in `apps/users/tests/test_agent_settings.py`. The full suite passes apart from `tests/test_observability.py::test_an_api_error_names_the_user_the_api_authenticated`, which fails locally and isn't touched by this change. 🤖 Generated with [Claude Code](https://claude.com/claude-code)
Let people rename their agents
All checks were successful
tests / pytest (push) Successful in 1m11s
78554f933b
An agent's name was fixed once it was made, so a typo ("Brush:") meant
deleting the agent and handing out a new token. Each agent on the API
settings page now has a Rename form. The token, tasks and history stay.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
CrowderSoup deleted branch claude/agent-rename 2026-11-26 04:52:14 +00:00
Sign in to join this conversation.
No description provided.