feat(agents): create an agent and change its permissions from the client
Maintainers usually reply within 1 day
Nobody has claimed this yet.
Assessment
- Difficulty
- 5/5
- Estimated time
- Over a week
- Newbie friendliness
- 25/100
Research direction
Read plans/261202-0003-client-bootstrap/design-feature-matrix.md for rows K03 and K08, then review the Agents screen dialogs under screens/agents/** and the listed dependencies #111 and #135. The work depends on upstream agent write routes and relay integration; begin by checking whether those routes are available. Done requires a real wired path behind the agent-admin capability, tests for the listed states, and staging verification once the route exists.
Written by the indexing model from the issue text.
Description
Design: board 12, rows K03 (new agent), K08 (change permissions)
Both operations exist in the Gateway and are approval-gated. Creating an agent needs an owner or admin with a second owner's or admin's approval. Tool policy changes are mandatory-control. The client must not shortcut either.
Acceptance criteria
- New agent: a typed form with only the fields the Gateway allows, validate-only preview, and an idempotency key. The approval shows as pending until another owner or admin decides.
- Change permissions: the allowed, asks-first and never tiers map to the tool allow and deny lists and to human oversight. Validate-only shows the current and resulting lists. Expected-version prevents lost updates.
- Members see read-only tiers (K07).
- Tests cover a member, a version conflict, approval denied, and approval pending across a restart.
- Wired, not fixtures. This issue closes only on a slice wired to the real route it depends on, behind its dark capability id (or its local switch for a client-only feature), and verified on staging once the route exists. A fixture-backed screen satisfies none of the boxes above.
Capability
Client id agent-admin; server group agents, child write (upstream, tracked privately).
Denied, pending and recovery states
Denied: not owner or admin. Pending: waiting for a second approver. Recovery: reread after a version conflict.
Parity
| Surface | Evidence |
|---|---|
| Gateway API/RPC | Existing agents_create, agents_tools_write, agents_human_oversight_write; relay via an upstream item (tracked privately) (comment) |
| CLI | Existing dewee agent commands |
| MCP | The same workspace operations |
| CCP / RGD / ACP | CCP agent settings |
| Dewee client | Agents screen dialogs |
| Conversation | 'Create a support agent': approval handoff, private outcome |
| Docs | Agents help |
| Traces | Approval and change traced upstream |
Dependencies
An upstream item (tracked privately) (agent create and permission writes), an upstream item (tracked privately), #111, #135. #102 has merged. Admin lane (screens/agents/**).
Rules for this issue
- The owner kept this feature on 2026-12-02 (DECISIONS.md D23, recorded by the keep-all docs PR #132). Design rows and states are in
plans/261202-0003-client-bootstrap/design-feature-matrix.md. The plan isplans/261202-0806-keep-all-design-features/plan.md. - Done means wired. This issue closes only with a slice wired to the real route it depends on: the relay route through the web BFF and the desktop host command, or, for a client-only feature, the real native or browser path. The slice runs behind its dark capability id and is verified on staging once the route exists. Fixtures are for tests only. A fixture-backed screen never closes this issue and is never listed in
plans/EVIDENCE.md. Until the route merges, the feature renders its gated or dark state. - One relay integrator. Only the relay-integrator lane adds
ClientMethodentries toCLIENT_METHODSinpackages/core/src/protocol.ts, one route at a time in merge order, together with the BFF allowlist entry and the desktop host command. A feature lane does not editprotocol.tsorcapabilities.ts. The desktop host's shared files (lib.rs,capabilities/default.json,Cargo.toml,Cargo.lock,build.rs,apps/desktop/src/desktop-session.ts) have one owner at a time, in the order the plan names; a lane puts its commands in its own module and adds only a registration line. - Ships dark. The client id below resolves from the server's capability read through the capability map (#135). A feature without both renders its gated or dark state, never sample data presented as real. Where the route belongs to a domain that still awaits server-side relay parity, its relay child flag stays off until that domain's upstream parity work lands (tracked privately).
- Both hosts. Web/PWA and desktop, en/vi, light/dark, 390/768/1024/1440, keyboard-only.
- Checks. Typecheck, Biome and focused tests. Tests cover flag off, denied, pending, revocation and recovery.
- Review. An independent review runs before the PR leaves draft. No auto-merge.
- Dominant language
- No language data
- Stars
- 1
- Forks
- 2
- Avg merge
- 1h 51m
- Merged PRs (30d)
- 103
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from nextlevelbuilder/dewee-desktop-app
-
Difficulty 1/5 Under an hour Newbie friendliness 90/100
nextlevelbuilder/dewee-desktop-app#277 · 1 comment ·
Maintainers usually reply within 1 day
-
bug in progress
Difficulty 3/5 1-2 days Newbie friendliness 72/100
nextlevelbuilder/dewee-desktop-app#271 · 1 comment ·
Maintainers usually reply within 1 day
-
PWA update: navigations and precached files can still hold activation after SKIP_WAITINGPossibly taken @mrgoonie claimed this today. Open
nextlevelbuilder/dewee-desktop-app#270 · 2 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
PWA update: ordinary fetches during SKIP_WAITING can still delay activation past the fallbackPossibly taken @mrgoonie claimed this today. Open
nextlevelbuilder/dewee-desktop-app#261 · 3 comments · 1 assignee ·
Maintainers usually reply within 1 day
-
enhancement
Difficulty 4/5 3-5 days Newbie friendliness 39/100
nextlevelbuilder/dewee-desktop-app#256 ·
Maintainers usually reply within 1 day
All issues in nextlevelbuilder/dewee-desktop-app
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 74/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
storytold/photocraft#20048 ·
Maintainers usually reply within 1 day
-
lane:collections todo:ticket
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 82/100
Maintainers usually reply within 3 days
-
good first issue
Difficulty 2/5 1-3 hours Newbie friendliness 88/100
omarelshamy25x/shamy-arabic-nlp#110 ·
Maintainers usually reply within 1 day