---
name: "Bot assign command to assign a specific agent to a story"
---

# Story 332: Bot assign command to assign a specific agent to a story

## User Story

As a project owner in a chat room, I want to type "{bot_name} assign {story_number} {agent_name}" to assign a specific agent to a story, so that I can control which agent works on which story from chat.

## Acceptance Criteria

- [ ] '{bot_name} assign {number} {agent}' assigns the specified agent to the story (e.g. 'timmy assign 315 coder-opus')
- [ ] Stops any currently running agent on that story before assigning the new one
- [ ] Updates the story's front matter with agent: {agent_name}
- [ ] Starts the agent immediately
- [ ] Returns confirmation with agent name and story title
- [ ] Returns error if agent name is not valid or story not found
- [ ] Registered in the command registry so it appears in help output
- [ ] Handled at bot level without LLM invocation

## Out of Scope

- TBD
