Skip to content

0.9.177

Latest

Choose a tag to compare

@michael-denyer michael-denyer released this 05 Dec 15:16
12c3120

With session hook: off in the Antigravity sheet, or PSTACK_SESSION_HOOK=off in its environment, the SessionStart hook now leaves out only the poteto-mode mandate and still injects the sheet's checked role lines and the names of any roles whose line it ignored. Before, it printed {}, and the saved tiers were lost with the mandate: agy-tools.md tells the agent not to read the sheet, which sits behind Antigravity's system protection boundary, so on a plugin install the hook is its only reader. The sheet's own header already said that off stops the hook from injecting the mandate, and on Claude Code and Codex the role lines reach the session through the include line or AGENTS.md with the hook off. When the sheet has no line to inject, the hook still prints {}, which Antigravity parses as JSON. #640

Autonomous run now checks whether the session can wake itself after the turn ends before its first iteration, as Shipping and Autopilot-full do. When it cannot, the run picks no wake mechanism, says so, and runs only while the turn is active. Before, it went straight to Claude Code's loop skill, so on Codex a run started with nothing to say that no wake-up would follow. #658 The Codex loop mapping in codex-tools.md also says that where admin requirements disallow approval_policy = "never", a scheduled task falls back to the approvals of the permission mode, so it is a wake-up only when none of the step's commands would wait for an approval. #665

benchmark-checklist's description now also covers a perf number or ratio that a subagent or anyone else measured, when the session relays it or argues a plan from it. Before, it named only a benchmark the session ran and a speedup or regression the session measured, and a coordinator that argued a plan from a subagent's ratio did not load the checklist. A new body line says to rerun such a number or ask the measurer for its run count, range, limiter, error count, tuning, and whether the work ran inside the timed region, and to report it as unvetted otherwise. In a trigger check on sonnet, numbers relayed from a subagent or a teammate loaded the skill in 12 of 12 runs, up from 1 of 12. A number the user said they measured loaded it in 0 of 6 runs under either description. #656 Thanks to @emayor-at-turingdream for the report.

On Codex, the loop row in codex-tools.md now sends a prompt that contains a literal /loop and asks for unattended work, such as poteto-help's overnight recipe, through step 2 of Autonomous run, whichever playbook or skill runs it. So when the session cannot wake itself after the turn ends, the agent says so before the first iteration. An agent that hands such a prompt to the user now says which Codex clients can wake it. Before, the overnight recipe reached that check only when the agent ran it as Autonomous run or Hillclimb. Whether a Codex goal (create_goal) is a closer translation of /loop until done is still open in #658.

The Codex loop mapping now covers two uses of /loop beside the wake-up. A check whose stop condition the agent's own work can reach within the turn, such as Visual Parity's per-component diff, repeats in that turn until it holds, while any other step, such as one that waits on CI, a reviewer, or a merge queue, is re-run on a cadence. A recipe or prompt that contains a literal /loop, such as poteto-help's overnight recipe, drops only the command and keeps the rest of the prompt, since Codex has no such command. #535 Thanks to @oliver-mee (#550).

Shipping and Autopilot-full now check whether the session can wake itself after the turn ends before they start work that outlasts the turn. When it cannot, Shipping requests no merge that can outlast the turn, queued or automatic, starts no unattended work, and stops a PR that would need such a merge at merge-ready with the limit reported. That limit alone cancels no gated merge already pending on entry, and if one is still pending when the turn ends, Shipping reports that nothing watches it. Autopilot-full arms no audit tick, starts no unattended work, and tells the operator before the first owner starts. The Codex loop mapping now says where a wake-up comes from: a scheduled task in the chat, armed from the ChatGPT desktop app, which runs while the computer is on and the app is running. It is a wake-up only when the default sandbox lets the step's commands run. On the web a scheduled task keeps no local folder or worktree between runs, so it is a wake-up only when the step needs no local checkout and its commands run there. An agent that can't tell counts it as no wake-up. On the Codex CLI and IDE extension, which have no Scheduled view, the session counts as unable to wake itself, since the docs don't say that a scheduled task can return to one. In the tools Codex CLI 0.173.0-alpha.4.1 offers, clock.sleep is a pause inside the active turn and a Codex goal takes no wake-up time, so without a wake-up the step is re-run only while the turn is active. Before, both playbooks assumed Claude Code's /loop, and the Codex mapping offered "a Codex scheduled task if available" without saying when one is. #535 Thanks to @oliver-mee (#536).

On GitHub Copilot and Muse, session hook: off in the sheet, or PSTACK_SESSION_HOOK=off, now leaves out only the poteto-mode mandate, as it has on Antigravity since #640. Before, both hooks, session-start.sh and session-start.ps1, exited before they built the role lines, so the saved model choices went out with the mandate. On Muse nothing told the agent to read the sheet instead. On Copilot the agent fell back to reading the sheet, which asks for path access each time and is denied in a copilot -p run without --allow-all-paths. Muse now injects the sheet's usable role lines under the same note as when the hook is on. Copilot injects a valid sheet's role lines under the same note, without the mandate or the Copilot notes, and nothing for an invalid sheet or no sheet, where copilot-tools.md still has the agent read the sheet itself. #653

figure-it-out gains four lines from a six-week coordinator run. Framing names each external gate that later units depend on, and one you park becomes a unit with an owner and a local stand-in rather than a note. A gate result counts only once the gate's first run shows what it bound to, how many items ran against how many were expected, each step's own exit code, and a planted failure turning it red. Before fanning out, list the runtime resources workers share, separate each per worker before adding a lock, and size fan-out and landing batches by the slowest exclusive gate left. When a gate stops a second time on a shape the human already ruled on, ask once for the class rule and a control that proves membership, then gate at that level and keep the stricter comparison as a diagnostic. #567 Thanks to @emayor-at-turingdream for the report.

The Grok Build mapping's Subagent row named spawn_subagent's background flag run_in_background. Grok Build 1.0.70's tool schema calls it background, still defaulting to true. Its bundled docs keep the old name.

The wake-up rows in the Grok Build, DeepSeek Harness, and OpenCode mappings now answer the question the Shipping and Autopilot-full playbooks ask of them: can the session wake itself after the turn ends? Each named a scheduler without saying whether its run returns to the session, which left the answer to judgement. Grok Build 1.0.70's tool descriptions and bundled docs say that a scheduled fire, a finished background subagent, or a finished background command can wake the agent for a new turn, and a headless run woke for a finished background command, so the Grok row counts an interactive session as able to wake itself while it stays open, and a headless grok -p run as unable. For a single wake-up it gives a background sleep command, since scheduler_create is recurring-only and refuses recurring: false, although the bundled docs list that form. OpenCode 2.4.4 has no schedule_create. Its experimental automation_create sends its prompt to the session that created it by default, and its tool group's description says to use these tools when the user asks to check back on something instead of polling. So the OpenCode row counts a local session as able to wake itself while the server runs and automations are on. With only schedule_create, it counts the session as unable. Nothing shows that a DeepSeek Harness schedule returns to the session, so that row counts it as unable. #659

The NOTICE.md and NOTICE-skills.md shipped in the open-pstack tarball name repository paths in backticks, among them plugins/pstack/.codex-plugin/plugin.json and .agents/plugins/marketplace.json. The package holds plugins/pstack/ as plugin/. Paths outside the plugin, such as the root .agents/plugins/marketplace.json, are not in it at all, so rewriting plugins/pstack/ to plugin/ would not cover every path. installer/scripts/stage.mjs now starts each staged notice with one line that says the backticked paths are repository paths at that release's tag and that the package holds plugins/pstack/ as plugin/. The repository's own notices stay as written. #644 Thanks to @adembilge (#651).

On omo, the Pi extension no longer leaves a timer for omo to close after session_shutdown once its agents have exited, and omo --print-prompt-sizes runs with pstack installed. omo 5.1.92 closes every timer an extension armed and still holds once its shutdown handlers return, and it warned that pstack had left one after each print session that ran an agent: the 30-second timer that ends a child pi that has not exited after its run, which stayed armed when the child exited on its own. That timer, the grace timer before a stopped agent's SIGKILL, the grace before a stopped T3 Code agent stops waiting for its thread, and the 50 ms poll a print run keeps while it holds its settle now stop as soon as they have nothing left to do, including when the wait for an agent fails (child.ts, hc-child.ts, orca-child.ts, t3-child.ts, one-shot.ts). The SIGKILL grace also ends when a 50 ms check finds the stopped process gone, which covers a restored orphan, whose exit nothing reports. The stop of a restored orphan therefore reports it gone once its own process has exited rather than after the 5-second grace, on Pi too, while other processes in its group may still be handling the SIGTERM. On Pi as well, a steer still waiting on a stopped T3 Code agent's run returns when the run ends rather than when the grace runs out. A session that shuts down while a stopped process is still alive inside its grace still leaves that grace timer and its 50 ms check armed, since the timer is what sends the SIGKILL. Otherwise nothing observable changes on Pi: the timers it kept armed were unref'd and did nothing when they fired. The before_agent_start handler in prompt.ts is now registered with { previewSafe: true }. omo composes a preview of the next turn's system prompt only when every such handler opts in, and --print-prompt-sizes and omo's prompt-cache prewarm need that preview. The handler reads the models sheet and the session-start mandate, asks git for the project root, and returns what the turn gets, so it is safe to call for a preview. Pi ignores the option.

On Pi, a pi agent host: rex sheet line now runs each new agent as an interactive pi in its own Rex tab when the session runs in a Rex terminal, where REX_BLOCK is set. The tab is titled with the agent's description and its id, opens without taking focus after the parent's tab, and closes when the run ends, so you can watch an agent and type into it. In Rex every agent used to run as a hidden RPC child. send_message pastes into the tab, and refuses a message while the agent's pi reports through OSC 7501 that it waits on a dialog. The run, stop, and restore rules follow pi agent host: orca, and the new rex-child.ts reuses its transcript settle rule. hc wins over rex, and rex over orca. Outside a Rex terminal the line has no effect. Thanks to @srod (#650).

For contributors: tests/poteto-mode-compaction-cut.test.mjs fails when the body of poteto-mode/SKILL.md grows past the point where Claude Code cuts it after a compaction. After a compaction, Claude Code re-attaches each invoked skill and keeps the first 5,000 tokens of each, as the skills documentation says. The bundled code of Claude Code 2.1.325 and 2.1.334 estimates a token as four characters, so a longer text keeps its first 19,900 characters and a truncation marker. At 0.9.139 the body was 28,754 characters, so the Playbooks index and the Models section fell past the cut. 0.9.140, the sync to upstream 2f87c85, cut it to 18,197, and the body is 18,564 now. The test allows 300 characters for the Base directory for this skill: line that Claude Code puts first, which was 116 on the install measured, and leaves 1,036 characters of room. No shipped file changes. #569 Thanks to @emayor-at-turingdream for the report.

A new test checks the Tool actions table of grok.md, codex-tools.md, and agy-tools.md against the tools Grok Build 1.0.70, Codex 0.173.0-alpha.4.1, and Antigravity 1.5.25 send their model. A probe, tools/runtime-schema-probe.mjs, runs each CLI headless against a loopback stub model and records every tool with its parameters, so a mapping row that names a tool or parameter the runtime lacks fails the test instead of waiting for a reviewer to probe the runtime by hand, as #676 needed. Tokens that are not meant as tools, such as shell commands, are declared with a reason in declared.json, and the nine runtimes with no probe yet are declared unknown there.

Every runtime now declares what session hook: off does, and a test runs its hook to check it. The new sessionHookOff obligation in tools/runtimes.mjs sits beside windowsHook, sheetReaders and reflect: keeps-roles on Pi, GitHub Copilot, Muse and Antigravity, silent on Claude Code, Codex, MiniMax Code, OpenCode 2 and Vibe, drops-mandate on OMP, and none, with the reason, on Kimi Code CLI, Grok Build and DeepSeek Harness. tests/session-hook-off.mjs asks every hook the same question with the hook on and off, and a hook that injects the sheet's role lines fails unless it keeps them with the hook off, whatever form its row declares. The Windows commands of Codex, GitHub Copilot, Muse, Antigravity and Vibe get the same cases in tests/session-hook-windows.test.mjs. Run against the trees before #654 and #670, the cases fail Antigravity, GitHub Copilot and Muse, the runtimes those two changes fixed.

Every runtime mapping now answers the same list of Claude-specific terms. tests/mapping-coverage.test.mjs holds one list of the 20 terms the skills use and runs it over every RUNTIMES row, Pi included, where each runtime's test file used to pass its own list of 2 to 21 terms. A mapping with no row for a term has to say why, in the same file, and the test prints each of those as an unmapped: line and pins them by name: 28 on this list, most of them the Autopilot program store under ~/.claude/orchestrate/ and the one mcp__ tool the skills name, which only the Claude desktop app has. Thirteen gaps got a row from what the mapping already said or from Grok Build 1.0.70's recorded tool schema: readonly on Codex and Grok Build, isolation on GitHub Copilot, pstack:comment-sicko on OMP, Kimi, and Grok Build, general-purpose on DeepSeek Harness and Vibe, Claude Code's transcript folder on Muse, Grok Build, and Vibe, and run_in_background and the loop skill on Grok Build.

show-me-your-work gains three lines from a six-week run. Call log.sh directly or through a shell function. zsh does not word-split an unquoted variable, so a command string held in one, as in $L ..., fails there with "no such file or directory". Anything a later step or a rerun needs, such as a guard, a wrapper, or a gate input, lives in a committed or out-of-session location rather than session scratch, and the second logged slip against a rule the run set itself makes the next row a built guard. A run that goes on past a landing instead of handing back runs the trail audit, over the rows written since the last one, and the cross-model review at that landing. The reviewed by line names the model that read the trail, not a unit's code reviewer. #568 Thanks to @emayor-at-turingdream for the report.

The Vibe session_start hook now runs in a sandboxed agent-server session on Windows. Vibe 3.2.1 runs a hook there through asyncio.create_subprocess_shell, which starts cmd.exe, and cmd.exe could read neither half of the sh and PowerShell command in hooks.toml: it stopped with '.' is not recognized and exit 1, so the session started without the mandate. The command now ends in a third half that sh and PowerShell read as a comment and cmd.exe runs: it starts session-start.ps1 in Windows PowerShell by its full path. PowerShell runs its half without the & call operator, which cmd.exe would have read as a command separator. On a Windows 11 machine the command injected the mandate under cmd.exe started as CPython starts it, under Windows PowerShell and under Git Bash, and cmd.exe and Windows PowerShell exited non-zero when session-start.ps1 was missing or did not parse. No sandboxed Vibe session has run it yet. #648

Every runtime's mapping now says whether a session can wake itself after the turn ends, the question Shipping, Autopilot and Autonomous run turn on, and a fifth obligation in tools/runtimes.mjs, wakeUp, holds each row to it. A row lists each kind of session with its answer, able, unable, or unknown with the reason, and the words of its wake-up or loop row that give that answer; bun tools/generate.mjs --check fails a row whose mapping stops saying them, and prints each unknown. An unknown answer still counts the session as unable. The Pi, GitHub Copilot, Muse, MiniMax Code, Antigravity, OMP, Kimi Code CLI and Vibe rows got the sentence. Pi's interactive sessions, a GitHub Copilot session whose tool list has save_session_automation, and MiniMax Code count as able to wake themselves. Muse, Antigravity and Kimi Code CLI count as unable, since nothing in their mappings shows their schedulers returning to the session. Run against the tree before #667, the check fails the Grok Build, DeepSeek Harness and OpenCode 2 rows that #667 gave an answer.

watch-pr still read a head clean in two shapes of #649's race, where a workflow's first jobs are created between the gh pr checks read and the check-suites read: a first stage where a runner had already picked up one job while another was still queued, and a first job held by an environment or a concurrency group, which GitHub reports as waiting or pending. betweenJobsCheck now counts a suite with no finished run while any of its runs has not started, not only while all of them are queued. Copilot's code review is also an Actions job that gh pr checks does not list. It is created queued and started 4 to 6 s later on 8 grafana/grafana reviews, so its suite held the head pending for those seconds. When a suite counts, the reader now reads the head's workflow runs once and drops the suites whose workflow path starts with dynamic/agents/, as the cloud-session reader already leaves Copilot's agent out. A workflow whose single first job has already started inside the gap still reads clean, because status alone cannot tell it from Copilot's running review.

watch-pr could read a head as clean when a workflow's first job was created between the gh pr checks read and the check-suites read. The suite then held only queued runs, and a suite with no finished run was left to the reported checks, which did not list that job yet. betweenJobsCheck now keeps such a suite pending while its newest start is inside the two-minute window. A suite whose only run is already in progress still stays off the head. #649 Thanks to @adembilge (#660).