Repository navigation
docs: map wake-ups and worktree binding in the pstack adapter - #139
Conversation
@codex review |
Codex Review Summary: ✅ CompletedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
@codex review |
There was a problem hiding this comment.
💡 Codex Review
Here are some automated review suggestions for this pull request.
Reviewed commit: fea930523d
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
@codex review |
|
Codex Review: Didn't find any major issues. Keep it up! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
Closing and reopening only to make GitHub recompute the merge ref against current main ( |
The merge ref now points at current main ( |
Merge evidence for head
|
Part of #13 and #8.
Updates
docs/fork/pstack-adapter.mdfor #93 (theschedule_wakeuptool and the/loopcommand) and #135 (a subagent spawned withisolation: "worktree"is bound to its worktree). The page now says what forkmainat5a47dc7beddoes.Wake-ups (feat(coderd/x/chatd): add the schedule_wakeup tool and the /loop command #93). A new Wake-ups section covers
schedule_wakeupbehindfork-chat-wakeups:/loop [interval] <prompt>message;The
/loop, watchers, and PR and CI row now maps a pstack/loop 1hor watcher to running the step once and thenschedule_wakeupwithinterval_seconds. It says to always setmax_runsorexpires_in_seconds, and keeps the in-turn wait as the fallback. TheAGENTS.mdblock gets the same mapping, and the Questions section notes that a wake-up also continues a chat whose turn ended.Worktree binding (feat(coderd/x/chatd): bind isolated subagents to their worktree #135). The Worktree isolation section drops the old workaround, where the parent sent the child its path with
message_agent. It now covers:executewith noworkdir, and file tools resolving relative paths against it;workdirresolving against the worktree, and absolute paths and an absoluteworkdirstill reaching the rest of the workspace;sharedgrandchild working in the same worktree;repo_pathnow defaulting to the worktree that the parent works in, and the nested worktree path;--forcefor removing a worktree with untracked files.The
environment: "cloud"row matches.Evidence. New entries cite
fork_schedule_wakeup.go,fork_loop_command.go,fork_wakeups.go, andfork_isolation_binding.go. feat(coderd/x/chatd): bind isolated subagents to their worktree #135 moved ranges infork_isolation.go,fork_subagents.go,fork_tools.go, andturn_environment.go, and they are updated. The Evidence line about the busymessage_agentsteer is gone with the workaround that needed it. The header names5a47dc7bed. feat(site/src): show agent definition warnings in the context popup #137, merged after feat(coderd/x/chatd): bind isolated subagents to their worktree #135, changes onlyContextUsageIndicatorfiles that the page doesn't cite.Validation
17ef3432d9tob4dfdb922c: the moved ranges are updated, and the three changed ranges (fork_isolation.go:163-200,fork_subagents.go:193-202,fork_tools.go:47-49) were re-read and re-cited. No other cited file changed between the two commits.markdownlint-cli20.16.0 on the page: 0 errors. The added lines have no em dashes, en dashes, spaced double hyphens, or semicolons outside .32bbba5265withfork-chat-wakeupsenabled only for this check, as a member:schedule_wakeuprejected two schedules, a 30-second interval, a 4-field cron,timezonewithoutcron, a prompt starting with/loop, and a cron wake-up that expires before its first run, each with the documented error.max_runs: 2waited while the chat was busy, ran twice, and completed with reasonmax_runs./loop 1m <prompt>stored only<prompt>, answered at once, and ran again every minute./loopand/loop 5mfailed withusage: /loop [interval] <prompt>, and/loop 31d xand/loop 30s xfailed with the interval error./loopwake-up was canceled with reasonarchivedat its next run.b4dfdb922cwithfork-subagent-isolationandfork-nested-subagents, as a member, in a scratch repo:executewith noworkdirran in~/.coder/worktrees/w7-q10-repo/<child chat ID>onagent/w7-q10-child-<8 hex>.write_filewith the relative pathnote.txtwrote into the worktree, asgit statusthere showed.executewithworkdir: "/tmp"ran in/tmp.This chat works in its own git worktree at ... on branch ....sharedgrandchild ran in the same worktree and branch, readnote.txtby its relative path, and quotedThis chat shares its parent chat's git worktree at ....worktreegrandchild with norepo_pathgot~/.coder/worktrees/<child chat ID>/<grandchild chat ID>, branched from the child'sHEAD.--forcebecause of the untracked file.