Repository navigation
Closed
Description
Xum created this issue on behalf of @ibetitsmike.
Part of #4. UI wave for W1 (#7), custom agent types.
W10 · Agent definitions UI · mike/agent-definitions-ui
Task. Let users and admins manage stored agent definitions in the UI at the personal, organization and project tiers, with sharing, and show definition problems where users look for them.
Background.
- API (owned by W1): personal
/api/v2/chats/fork/organizations/{organization}/members/{user}/agent-definitions[/{agentDefinition}](feat: serve user-tier agent definitions behind fork-agent-definitions #65, on main); organization/api/v2/chats/fork/organizations/{organization}/agent-definitions[/{name}](feat: serve organization agent definitions behind fork-agent-definitions #66); sharing ACL routes (feat: share organization agent definitions behind fork-agent-definitions #71); project tier storage and routes (feat(coderd/database): add project-tier agent definition queries #72 and its follow-up). Stored definitions becomespawn_agenttypes once feat(coderd/x/chatd): offer stored personal and organization agent types to spawn_agent #69 merges. Per-definition tool policy fields come from feat(coderd): enforce custom agent tool policy on child chats #58. - Upstream already has the same three tiers for skills, with sharing; mirror them:
site/src/pages/AgentsPage/AgentSettingsPage/AgentSettingsSkillsPage/, the personal-skills route,site/src/pages/AISettingsPage/SkillsPage/(OrganizationSkillSharingDialog.tsx),SkillsTable*.tsx,SkillEditor.tsx,ProjectSkillsDialog.tsx.
Scope.
- Personal definitions page under
/agents/settings: list, create, edit (body plus front-matter fields: name, description, model, tool policy), delete, inline validation errors from the API. - Organization definitions in AI settings for org admins.
- Sharing dialog after feat: share organization agent definitions behind fork-agent-definitions #71 merges.
- Project tier after the project routes merge.
- Workspace-discovered definition warnings (parse errors, name collisions) in the context popup, next to where upstream shows skill problems. This was item 5 of W1's brief.
Acceptance.
- A member creates a personal definition in the UI, and a new chat's
spawn_agentoffers it (after feat(coderd/x/chatd): offer stored personal and organization agent types to spawn_agent #69). - An org admin creates an org definition and shares it with a group; a member of that group sees it; a non-admin sees no admin controls.
- With the experiment off, no entry point is visible.
Constraints. Experiment fork-agent-definitions. Build on merged API only; ask W1 for contract details and API gaps.
Metadata
Metadata
Assignees
Labels
No labels
Activity
ibetitsmike commentedon Nov 9, 2026
W10 status: #84 is open (read-only personal agent definitions list, 456 lines). I split the original PR1 to stay near the 500-line limit. Next in the stack: toggle and delete (branch ready, opens after #84 merges), then the create and edit dialog, then tool policy fields. The organization page waits for #66, and the context popup rows wait for #83.
ibetitsmike commentedon Nov 10, 2026
Item 5 of this issue (workspace-discovered definition warnings in the context popup) moves to a W1 PR (#7), so W10 can skip it. The W1 audit in #7 (comment) lists the gap. I'll link the PR here when it opens.
ibetitsmike commentedon Nov 10, 2026
Item 5 is in #137.
ibetitsmike commentedon Nov 11, 2026
All five scope items are on main and deployed on the fork's daily deployment (
896f09d757):Daily checks after the last two deploys passed: sharing for #175 on
e661171d15, and the project tier for #178 on896f09d757(owner creates and deletes a project definition from the project pane; a member sees it read-only with no write controls).Limits:
Using a definition from the UI (starting a chat as an agent,
@mentions, an available agents page) wasn't in this issue's scope. #187 tracks it.