Repository navigation
Description
Xum created this issue on behalf of @ibetitsmike.
Tracking issue for the pstack parity plan: Coder Agents features that let the pstack skill pack run on this fork. Each workstream has its own issue and Xum workspace.
Workstreams
| Workstream | Issue | Workspace | State |
|---|---|---|---|
| W0a forkdb foundation | #5 | Pstack W0a | Done: #25 (forkdb, chat_subagents node), #26 (InsertChatSubagent), #27 (fork hooks), #28 (fork-ci agent-sdk and site jobs) and #30 (frontend hooks) merged |
| W0b upstream stack merges | #6 | Pstack W0b | Done: #16 version guard, #17 question stack and #23 queue stack merged |
| W1 custom agent types | #7 | Pstack W1 | Wave 1: #31 (agent definition parser), #38 (discovery) and #44 (context error cap, closed #40) merged; #51 (custom types in spawn_agent, experiment fork-agent-definitions) merged and deployed; #58 (tool policy) merged and deployed (b457b3f); #62 (stored agent definitions, node 01a1c18d) merged and deployed (f8c5493); #65 (user-tier routes) merged and deployed (e155b42); #66 (org-tier routes) merged and deployed (e8069ca); #69 (stored types in spawn_agent) merged and deployed (e6cd44a); #71 (sharing, member-removal cleanup, node 9) merged and deployed (ec6cdd6 with docs #80); #72 (project tier storage, node 10) merged and deployed (8ddd673); #85 (stored types in subagent tool results) merged and deployed (873db0e); #77 (project routes) merged and deployed (d02b59e); #90 (project definitions in spawn_agent) merged and deployed (1ef5ccc); #83 (agent definition files in chat context) merged and deployed (190ad7b with docs #96); poteto-agent UAT PASS (#7 comment 6757113583); #112 (agent type badge in the chat sidebar and top bar) merged (5decda1); #95 (R12.1 computer_use model and reasoning overrides) merged (2d635ea); #100 (R12.2 model aliases) merged (17ef343); acceptance audit (#7 comment 6766281265) gaps closed: #137 (agent definition warnings in the context popup) merged (5a47dc7) and comment-sicko spawn-by-name UAT PASS (#7 comment 6766722425); #7 closed |
| W2 nested subagents | #8 | Pstack W2 | Wave 1: #33 (depth and limit) and #37 (tools for non-root chats) merged; #42 (interrupt cascade) merged and deployed; #45 (organization limits) merged and deployed (106a935); #47 (concurrency caps) merged and deployed (277d423); #49 (live cap) merged and deployed (b96ada7); #57 (capacity wait) merged and deployed (0b00d9f), server stack complete; bug #79 (archiving an active family can deadlock) fixed by #89, merged and deployed (d559632); UI wave in progress: #104 (nested agent tree in the sidebar) merged (4b124f4, deployed); #99 (list and root GET embed descendants) merged (26c1e02); #109 (family capacity API) merged (bfac64b); #116 (family capacity in the sidebar: waiting hourglass and live-limit chip) merged (4c0cf8c); #127 (waiting-for-a-slot badge in the child chat top bar) merged (7161027); PRD 6.3 and R2.6 audit: all items done |
| W3 per-subagent isolation | #9 | Pstack W3 | Wave 2: started 2026-11-09; 8-PR split approved (agent worktree routes, isolation arg, worktree binding, archive cleanup, wait_agent details, workspace mode, UI, definition default); PR1 agent worktree routes merged (#81); PR2 isolation arg merged (#108, behind experiment fork-subagent-isolation, since enabled on the daily server); PR3 worktree binding merged (#135, ee5b159, since enabled on the daily server); PR4 archive cleanup merged (#138, 77b2073); PR5 wait_agent details merged (#141, 64965c9); PR6a workspace mode merged (#144, 9705e5a); PR6b stop subagent workspaces on archive merged (#147, bef9c59); PR7 UI merged (#152, 73169c3); PR8 definition default merged (#151, 14d31fa); the experiment is on the daily server since the 8-experiment gate |
| W4 todo list and transcripts | #10 | Pstack W4 | Done: #32 (chat_todos node and queries) and #34 (todo_write, todo_read, list_agents todos) merged; #35 (todo after compaction), #36 (todo routes), #43 (todo UI) and #48 (read_chat_transcript) merged; #52 (search_chats) and #55 (API docs regen and fork-ci drift check, closed #54) merged; #53 (wait_agent tool calls) merged; #60 (R12.3 inline MP4 playback for agent attachments, byte-range chat files) merged and deployed (15c1852); flag-on smoke PASS at 68fbdea; #10 closed; followup #64 (MP4 in the Attachments menu): #68 merged (d528cdb) |
| W5 loops and wake-ups | #11 | Pstack W5 | Wave 2: started 2026-11-09; 7-PR split approved (schema, worker, schedule_wakeup and /loop, wait_for_events, caps and notify, API, UI); #82 (wake-up tables and queries, node 11) merged and deployed (0298da5 with docs #98); #121 (gitprovider.FetchPullRequestActivity for GitHub wake-ups, no callers yet) merged (3d4b5f5); #91 (wake-up worker, experiment fork-chat-wakeups, since enabled on the daily server) merged (f924e36); #93 (schedule_wakeup and /loop, behind fork-chat-wakeups) merged (32bbba5); #106 (wait_for_events) merged (976f8fc); #115 (daily run and spend caps, notify_user) merged (271acf9); #131 (wait_for_events pull request wake-ups) merged (18aec9e); #133 (archive cancels wake-ups, invalid /loop returns 400) merged (15cfeed); #134 (chat wake-ups API: list, pause, resume and cancel, audited) merged (4b0b4a0); #146 (list, pause and cancel wake-ups in the composer) merged (3839333); #149 (wake-up tool cards) merged (cd0ba56); stack complete; #11 acceptance met and closed 2026-11-11 (restart check on the daily server) |
| W6 plugin packs | #12 | Pstack W6 | Wave 3: started 2026-11-10 (W1 and W4 done); 5-PR split approved (pack manifests and discovery, install from Git with pinned commit, enable per project and chat, rule directories, pinned skills; behind experiment fork-plugin-packs); PR1 merged (#156, cd278dc); PR2 install from Git split into #200 (fetch and storage, merged 5b3e7ca) and #201 (allowlist and API, merged 0c32663); PR3 (enable per project and chat): #203 enablement data and API merged (e7de95c); #204 chatd gating merged (6862ebc); #205 materialization merged (86d8fd2); PR3 done; #207 hidden pack skill invocation test merged (fed0208); org selection refactor #209 merged (6bbce42); pack admin page #210 merged (6ec32d7); install, update and delete UI #211 merged (dee4ae3); project toggles #212 merged (75af0d1); Claude cache layout #223 merged (114f59d); chat pack pill #213 merged (da15998); member pack list #224 merged (52c2534, Fixes #215); final UI UAT PASS 6/6 on 52c2534 (2026-11-12); source hosts editor #229 merged (7972bcd); pack MCP servers #230 (be4c670) and #231 (260675c, live UAT PASS) merged; pack cleanup #233 merged (6592830, live recheck PASS); rules dirs #232 merged (fcd3d20, live check PASS, ungated); glob rules #235 merged (00e1260, UAT-235 PASS); root-only slashless globs #239 merged (ffd55a8); pinned skills backend #237 merged (013ef4b, gated fork-pinned-skills); pin UI #240 merged (5149a9e, UAT-240 PASS); W6 pinned skills R10.1 done; PRD 6.7 UI e2e acceptance UAT-ACC PASS 6/6 at 5149; R7.3 per-chat pack disable backend #241 merged (6f54e78), UI #243 merged (048baf5, UAT 5/5), subagent fix #245 merged (fcbfd67) |
| W7 adapter and end-to-end checks | #13 | Pstack W7 | Wave 0, M0 adapter doc docs/fork/pstack-adapter.md merged (#29); G0 passed at 7a2cba5071 (evidence on #13); now gate keeper; #41 (fork-ci swagger tests, closes #39), #50 (adapter rows for #37 and #43), #56 (adapter rows for #48) #59 (custom agent types, cascade, search_chats, tool policy), #63 (attachments), #70 (subagent concurrency and live limits) #80 (stored agent types, org definitions, Qwen to GLM setup) #92 (project and shared definitions, custom type names), #96 (todo checklist cards), #98 (org subagent limits settings), #103 (agent definition files in chat context) and #107 (personal agent definitions page) merged; #111 (search_chats and read_chat_transcript cards) merged; #117 (nested subagent trees, descendant questions and agent type badges) merged (175f2a7); #128 (subagent card fields and sidebar family capacity) merged (a9438bd); #130 (root chat question dock) merged (273daf0); #132 (#108, #127 and #100 rows, pinned to 17ef343) merged (b4dfdb9); #139 (#93 wake-up and #135 worktree rows, pinned to 5a47dc7) merged (1be1a17); #145 (#137 agent definition warnings, #138 worktree removal on archive, #119/#125 re-pin) merged (e44a0a2); #148 (#106 wait_for_events and #141 wait_agent worktree summary rows) merged (5f6b636); #150 (#144 workspace isolation rows, cite re-pins) merged (d1bb658); #154 (#115 notify_user and daily wake-up limits, #147 archive stops workspace subagents) merged (5654571); #157 (#152 branch, worktree and workspace lines on subagent cards) merged (df1ef73); #161 (#131 pull request wake-ups and #153 secret questions) merged (6b1757f); #163 (#133 /loop errors and archive cancel, #134 wake-ups API) merged (50e9121); #166 (#151 definition isolation, #162 secret wording, #102 definition editor, #146 and #149 wake-ups pill and cards, #158/#159 cites) merged (ce90b5b); #173 (#170 chatdmig README, the one upstream query edit) merged (e661171); #174 (#160, #175 and #178 adapter rows) merged (d523eb1); #193 (composer @ menu evidence re-pin) merged (5e28d8f); #198 (setup, PR, model, Available agents and composer picker adapter rows) merged (0fc46ce); final gate PASS on the UAT server at d559632, including archiving a working nested family (evidence on #13) |
| W8 descendant questions | #73 | Pstack W8 | UI wave: #86 (descendant chats ask the user blocking questions) merged (96d44ec); #114 (family pending questions route) merged (ee693dd); #118 (R8.2 question dock in the root chat page) merged (8f7fdb0); R8.3 secret answers: #119 (secret answer storage) merged (3036142); #125 (24 hour secret answer TTL) merged (ad10107); #126 (descendant tools get secret answers without the model seeing them) merged (df22c72); #136 (keep secret answers out of shell code, media and fragments) merged (af6e275); #153 (descendant chats ask secret questions) merged (dfc24a4); #162 (parent agents never ask for a secret answer in chat) merged (87f8e1f); stack complete, #73 acceptance check next |
| W9 tool cards | #74 | Pstack W4 | UI wave: #87 (todo tool calls as checklist cards) merged and deployed (54351e1); #97 (search_chats and read_chat_transcript cards) merged; #105 (todo watcher log fix) merged and deployed (24fcb84); #120 (fork fields on subagent cards: agent type, recent tool calls, todo progress) merged and deployed (c5d79e0, deployed at 3d4b5f5); done, #74 closed |
| W10 agent definitions UI | #75 | Pstack W10 | UI wave: #84 (personal definitions list page) merged and deployed (741fc8a with docs #92); #94 (toggle and delete) merged (dad3acc); #113 (keyboard access to context resource descriptions) merged (748bdf7); #101 (agent definition editor dialog) merged (cd80cd1); #102 (create and edit) merged (bbf776d); #158 (scope definition queries to a user or organization) merged (4bb7562); #159 (hide actions the user cannot take) merged (73f9bfa); #160 (organization definitions page) merged (9b0cc8c); context popup definition warnings already shipped in #137 (5a47dc7); #175 (sharing dialog and principal search) merged (7accbb4); #178 (project tier) merged (896f09d); #75 closed after daily checks passed. Usage UI tracked in #187: #182 (sidebar entry and empty state) merged (857d342); #183 (@ agent mention) merged (cc347a2); #184 (start a root chat as an agent type) merged (94cd032); #185 (start a root chat as an agent type through the API) merged (5ec99fb); #188 (list the agent types of new chats and spawn_agent) merged (afb8dac); #189 (composer agent type picker) merged (1a88b7c); #190 (available agents page) merged (b3c4911); U1-U4 stack complete; deployed on daily, the M1-M3 UI checks passed, #187 closed |
| W11 organization agent settings UI | #76 | Pstack W11 | Done: #78 (limits API returns organization, deployment and effective values) merged and deployed (25f19f6); #88 (subagent limits section in Coder Agents settings) merged and deployed (c43627a) |
| W12 Starlark workflows and saved workflows | #226 | Pstack W12 | Started 2026-11-12 on Mike's request: port coder#31189's Starlark runs, Xum workflow parity, saved workflows (experiment fork-workflows); PR1a #228 merged (5b0c0c3, gated, no live UAT); PR1b run engine #238 merged (6507316, gated, UAT-238 PASS S0-S3); owner gate #242 merged (d2a7450, NEG PASS); fork-workflows now owner-only; PR2a journal + PR2b run API passed ops r8 4/4 (2a ed97f41, 2b 1242fe8); PR2a journal #257 merged (349969c; sweep assumes one replica); PR2b run API #258 merged (704d820); follow-up #259 (workflow_report from a recovered step chat after a restart is now journaled; merged 70e38b3); 2026-11-12 Mike: W12 moves to Opus 5.5 medium and opens workflows to members (replaces the #242 owner gate): PR #261 merged 2026-11-13 as 0896529 (ops go7 PASS, Codex clean on aaccdd8, member UAT-261 PASS 5/5 on :3100); fork-ci postgres:16 digest pin #262 merged (f9fdadb) |
| W13 workflows UI | #246 | Pstack W13 | Started 2026-11-12 on Mike's request: Xum-style workflow UI (PR1 tool cards #246 merged (7fde60f, UAT 5/5); PR2 Workflows panel #256 merged (1878b7c, UAT 7/7); PR3 Stop button + live cards #260 merged (3358430, UAT 6/6); 5 edge-path follow-ups listed in the merge comment, started 2026-11-12 on Mike's go; PR #264 merged 2026-11-13 as 4dc6817, UAT-264 PASS 6/6) |
| Lead move to Coder Agents | #255 | Pstack W14, W15 | Filed 2026-11-12 by workspace 444e3cdfc8: gaps #247-#254; #253 decisions 1 (lead runs on the Mac as an external-agent workspace) and 3 (resize Colima at cutover) answered; decision 2 answered 2026-11-12 (merges use Mike's gh login); Mike's go-ahead 2026-11-12 opened W14 (#247 family messages, 4-PR split approved; PR1 #265 merged as 5ff45d4; PR2 #266 merged as 30a2533; PR3 #273 merged as b98d50d; PR4 #274 merged as 2bf9127; all 4 deployed, PAIRED A PASS; #247 closed 2026-11-13; 6 edge-path follow-ups listed in #247 comment 6857665911, not filed) and W15 (#248 process wake-ups, 3-PR split approved; PR1 #263 merged 2026-11-13 as addead5; PR2 #269 merged as 72d8af0; PR3 #270 merged as 0d8bea4; #248 complete, follow-ups listed on #248) |
Outside the plan: #2 (chat plugins, now on forkdb) merged on 2026-11-09; #124 (upstream coder/coder sync to 99fb0da864) merged on 2026-11-10 (1aef789). #271 (upstream sync to f610e9ab19) merged on 2026-11-13 (57c991b). #272 (fork ARCHITECTURE.md prose for all fork TODOs, per Mike) merged on 2026-11-13 (0449955). #275 (W7: family messages section in the pstack adapter doc) merged on 2026-11-13 (525bb3d). #276 (W7: Cursor rules and process wake-ups rows in the adapter doc) merged on 2026-11-13 (9dbe879). #277 (W7: pinned skills row in the adapter doc) merged on 2026-11-13 (c980fb8).
Follow-ups: #14 (upstream workflows run between fork-sync passes; fixed by #18, README follow-up #19, both merged), #15 (FORK_SYNC_TOKEN; superseded, upstream sync now runs on Mike's Mac), #20, #21 and #22 (route hardening, Codex scope creep and upstream relay; all dropped under Mike's rule), #39 (fork-ci swagger tests; fixed by #41), #40 (context push error cap; fixed by #44), #46 (source path over coderd's 1024-byte cap rejects the whole push; closed as not planned, unrealistic reach), #54 (API docs miss the todo routes; fixed by #55). F1 plugin and forkdb follow-ups: #186 (strip Coder credentials before plugin webhook forwarding) merged (e27d825); #194 (remove three unused forkdb queries) merged (c12b491); #199 (keep polling for a new link after a failed fetch) merged (58ebf1b); #197 (plugin events to the active link) merged (7fda649). #202 (R1.5: readonly custom agents lose execute) merged (e7f55da). #206 (R8.1: API root chats get the async ask_user_question) merged (7b56ab6); #208 (R4.6: admin-configurable wake-up caps) merged (76f5829). Fork audit follow-ups #214-#220 triaged: #217 (late Codex threads on #183) fixed by #221 (c02ab7a); #214 fixed by #225 (d53043d); #215 with W6; #216, #218 and #220 need Mike; #219 repo docs fixed by #222 (b62d239), closing #5/#6/#8/#9 left to Mike. Flake #61 fixed by #236 (73d4827, fork-ci skips the upstream test; #234 closed because it patched upstream code).
Codex reviews work on this repository (first clean verdict on #19, 2026-11-08). Gate G0b waits for the first green local upstream sync.
Operating model
| Workspace | Role |
|---|---|
Pstack General (8ac7791132, pinned) |
Lead. Owns the briefs and the tracking issue, opens each wave at its gate, reviews ready PRs and merges them. |
| Fork ops (pinned) | Watches the daily server: autodeploy, health, server log, fork-ci on main, fork-sync. Files followup issues in ibetitsmike/coder, triages them, and runs implement-flow for the accepted ones in their own workspaces. Sends their PRs to the lead to merge. |
| Pstack W0a, W0b, W1 to W7 (pinned while active) | One workstream each, from its GitHub issue. Unpinned and archived when its last PR merges. |
Models: coordinators run anthropic:claude-opus-5-5 at high. Exec and explore sub-agents and workflow agents run omlx:GLM-5.3-Flash-oQ4e-mtp; pass it as model when you spawn one, and do not rely on defaults. Opus plans, reads diffs, decides and validates; Qwen does the bulk reading and writing. Every workspace shares the one local Qwen server, so at most 3 workflow runs go at the same time.
Waves and gates
Wave 0 W0a forkdb foundation W0b upstream stacks W7 adapter v0 (M0, docs only)
Wave 1 W1 agents W2 tree W4 memory (after W0a; WIP limit: 3 feature workspaces)
Wave 2 W3 isolation (after W2's spawn PRs) W5 loops (after W2 and W0b's queue-stack merge)
Wave 3 W6 packs (after W1 and W4)
Always W7 lead: adapter rows, milestone exits, E2E metrics
| Gate | Opens | Exit check (W7 runs it) |
|---|---|---|
| G0 | Wave 1 | W0a merged, fork-ci green with the new jobs, daily server unchanged with all fork flags off. W2 item 6 also waits for W0b's question-stack merge |
| G0b | Wave 2 | One upstream sync PR from the local sync (coder-local-sync, LaunchAgent at 06:00) merged with fork-ci green. The Actions fork-sync workflow stays disabled (2026-11-08, #15) |
| M1 | Wave 2 | Orchestrate runs on a shared checkout with real agent types (W1 + W2), todo list visible (W4) |
| M2 | - | Swarm runs ten parallel workers on separate branches (W3 worktree + W2 capacity). Run it on a dev instance with a subagent cap of at least 11: the default is 10 across the whole deployment (agentadmission.go:13), and a coordinator plus ten workers is 11 |
| M3 | Wave 3 | Babysit drive and an overnight Autopilot run finish unattended (W5 + W4 transcripts) |
| M4 | Done | pstack installs in one action; adapter shrinks to edge cases (W6) |
Merge order inside a wave: the PR that merges second rebases. Shared hot spots and their owner of the first change:
| Area | First owner | Then |
|---|---|---|
subagent_catalog.go resolveSubagentDefinition |
W1 | W2, W3 |
subagent_catalog.go validateSubagentSpawnParent, turn_environment.go root gating |
W2 | W3 |
subagent_operations.go createChildSubagentChatWithOptions |
W2 (depth) | W1 (prompt), W3 (binding) |
agent/agentcontext resolver and watcher |
W1 | W6 |
Composer slot, toolRenderers |
W0 hook | W4, W5, W6 add entries only |
subagent.go waitAgentResult (:710) |
W3 (R2.5 branch, path) | W4 (R5.5 tool calls) |
subagent.go list_agents |
W2 (direct children, capacity) | W4 (R6.4 child todo list) |
generation.go re-injection next to syncMemoryIndex (:639-644) |
W4 (todo list) | W6 (pinned skills) |
chat_mutations.go archive path (:497-536) |
W2 (interrupt, then archive) | W3 (worktree cleanup) |
Open questions after the plan
| PRD question | Plan answer | Still open |
|---|---|---|
| 1. Why coder#30412 removed automations | Unknown; W5 asks before its schema PR | Yes |
2. readonly execute |
Superseded: #202 removed execute and process_output from readonly custom agents; the R1.5 sandbox option is still Mike's call |
No |
| 3. Worktree location and cleanup | ~/.coder/worktrees/<repo>/<chat> (Mike, decision wtloc); the agent cleans on archive |
Cleanup on workspace stop |
| 4. Workspace children and quota | They use the user's quota through create_workspace |
Separate agent quota |
| 5. Default depth | 2, configurable | No |
| 6. Premium plugins | Not decided; fork has no licensing need | Yes, for upstream |
| 7. Inbound webhooks | Out of this plan (R11.2) | Separate plan |
| 8. Polling or webhooks for PR/CI | Polling in v1 | No |
Activity
ibetitsmike commentedon Nov 9, 2026
G0 exit check: PASS at
7a2cba5071(2026-11-09, 06:35 to 06:50 UTC)Run by W7 after the lead reported
7a2cba5071(#29 and #30) deployed healthy on the daily server at 06:46:53Z.b1f5f23ffe, #26d4e1dfc991, #27cac7ca575c, #2872525d25d3, #302d28793f49(gh pr view <n> --json state,mergeCommit)mainpush, with the new jobs7a2cba5071):graph,schema,chat-tests,build,forkdb,agent-sdk,siteall succeededGET /api/v2/buildinfogivesv2.39.0-devel+7a2cba5071GET /api/v2/experimentsand theexperimentsdeployment option both give["chat-virtual-desktop","mcp-server-http"]: 0fork-entries.codersdk.ForkExperimentsis empty onmainGET /api/v2/chats/fork/x: 401 anonymous, 404 as an owner, 404 as a memberGET /api/v2/chats/15eeeae6-.../messages?limit=200(chat created at 03:27 UTC on8c183ed4f8, before #27) is byte-identical to its 03:40 export: sha25696b03a66e9ca7d79.... Chat1891e839(created on72525d25d3) is also byte-identical to its export,017013d972e4c3f5.../agentsand the chat page/agentsand/agents/15eeeae6-...render the composer with upstream controls only and no fork text. Screenshots from before (72525d25d3) and after (7a2cba5071) the deploy match, except one read marker. The only failed requests are 410s for that chat's workspace, which was deleted after M0 UAT. Both fork UI hooks from #30 are empty (ForkComposerSlotreturnsnull,forkToolRenderersis{})31a235e8(member user, oMLX Qwen3.8 Flash Next, no workspace): "Reply with exactly: G0 OK" gotG0 OK, no tool calls,last_errornull, statuswaitingNote: the
mainpush run for #30 (2d28793f49, run 42571989957) failed onesitetest,AgentsPageLayout.test.tsx"handles the saved draft on New chat after a prompt link" (expected the saved draft, gotnull). #30's PR run and the7a2cba5071push run, which contains #30, both passed it, so I treat it as a flake. If it recurs, it becomes afollowup.The temporary admin session and member API token used for these checks are revoked.
ibetitsmike commentedon Nov 11, 2026
F1: opened #202 (R1.5, readonly custom agents drop execute).
ibetitsmike commentedon Nov 11, 2026
F1: #202 READY at c02e5a3 (fork-ci green, Codex no P1, UAT pass).
ibetitsmike commentedon Nov 11, 2026
F1: #202 merged (R1.5).
ibetitsmike commentedon Nov 15, 2026
Pstack parity reconcile, 2026-11-15. Every PR listed below shows MERGED on GitHub (checked with
gh pr view).TestNestedSubagentHookPayloadis on main. Item 6 moved to #73.fork-plugin-packsstays off until it is fixed.#219 says closing #5, #6, #8 and #9 is Mike's decision, so they stay open until he answers. Recommendation: close all four as done.