From a8d62cb2b8f10c69f6429498c3e08ece2e742c21 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Pawe=C5=82=20M=2E=20Wo=C5=BAniak?= Date: Wed, 18 Nov 2026 09:21:22 +0100 Subject: [PATCH] Adopt the issue tools in the adapter Link worked issues with link_issue, read the project's tracker with list_issues and read_issue, and map benny's issue-tracker adapter to T3's issue tools. Bump to 0.15.2. --- .claude-plugin/marketplace.json | 2 +- package.json | 2 +- plugins/pstack/.claude-plugin/plugin.json | 2 +- plugins/pstack/.codex-plugin/plugin.json | 2 +- plugins/pstack/skills/poteto-mode/references/t3-adapter.md | 4 +++- 5 files changed, 7 insertions(+), 5 deletions(-) diff --git a/.claude-plugin/marketplace.json b/.claude-plugin/marketplace.json index 4b697f0..1b35c10 100644 --- a/.claude-plugin/marketplace.json +++ b/.claude-plugin/marketplace.json @@ -9,7 +9,7 @@ "name": "pstack", "source": "./plugins/pstack", "description": "Cursor pstack for T3 Code: poteto-mode, principles, and the verified agent workflows, adapted to T3 orchestration for Claude and Codex.", - "version": "0.15.1", + "version": "0.15.2", "author": { "name": "Lauren Tan (pstack), pmwoz (T3 Code port)" }, diff --git a/package.json b/package.json index f7e767f..5b5ecf9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "t3-pstack", - "version": "0.15.1", + "version": "0.15.2", "private": true, "type": "module", "scripts": { diff --git a/plugins/pstack/.claude-plugin/plugin.json b/plugins/pstack/.claude-plugin/plugin.json index 5b5f824..87ccdd0 100644 --- a/plugins/pstack/.claude-plugin/plugin.json +++ b/plugins/pstack/.claude-plugin/plugin.json @@ -1,7 +1,7 @@ { "name": "pstack", "displayName": "pstack", - "version": "0.15.1", + "version": "0.15.2", "description": "Cursor pstack for T3 Code: poteto-mode, principles, and the verified agent workflows, adapted to T3 orchestration for Claude and Codex.", "author": { "name": "Lauren Tan (pstack), pmwoz (T3 Code port)" diff --git a/plugins/pstack/.codex-plugin/plugin.json b/plugins/pstack/.codex-plugin/plugin.json index b41c851..52a523d 100644 --- a/plugins/pstack/.codex-plugin/plugin.json +++ b/plugins/pstack/.codex-plugin/plugin.json @@ -1,6 +1,6 @@ { "name": "pstack", - "version": "0.15.1", + "version": "0.15.2", "description": "Cursor pstack for T3 Code: poteto-mode, principles, and the verified agent workflows, adapted to T3 orchestration for Claude and Codex.", "author": { "name": "Lauren Tan (pstack), pmwoz (T3 Code port)" diff --git a/plugins/pstack/skills/poteto-mode/references/t3-adapter.md b/plugins/pstack/skills/poteto-mode/references/t3-adapter.md index b35e5e9..dafc87f 100644 --- a/plugins/pstack/skills/poteto-mode/references/t3-adapter.md +++ b/plugins/pstack/skills/poteto-mode/references/t3-adapter.md @@ -90,6 +90,7 @@ T3 has no cloud agents. Every lane is a `delegate_task` child on this machine or **Only the root thread owns a PR in T3.** T3 hides `watch_pull_request` and `unwatch_pull_request` from a delegated child. - **Opening a PR.** T3 has no PR-creation tool, so the skills' "no built-in PR tool" branch applies: create it with the resolved forge (`gh` or `origin`), ready for review, never draft. The root links every PR, each stack layer included, with `link_pull_request` for one PR or `link_pull_requests` for several in one call. A child that opens a PR returns its URL and head SHA, and the root links it. +- **Linking issues.** The root links every issue the run works on or files, such as the tracker issue in benny's reproduce automation, with `link_issue`, so T3 shows it beside the thread. A child that works on or files an issue returns its URL, and the root links it. - **A merged dependency PR can end the run.** T3 settles a thread at a turn end once every PR linked to it has merged. Settling ends the session and kills its background commands, such as a push through a pre-push gate. A run that merges a dependency PR in another repo before it opens its own PR is exposed. Open and link the run's own PR before the dependency PR merges. If the dependency merged first, unlink it before you end a turn that still waits on work. Call `unlink_pull_requests` with `states: ["merged"]`, then `unlink_pull_request` on any merged dependency missing from its `unlinked` list, because the call trusts T3's last known state. Link them again after the run's own PR is linked. - **Review guides.** When the root hands PRs to the user for review or merge, it reads each with `read_pull_request_guide`. Then it calls `write_pull_request_guides` once for every PR whose guide is missing or `stale`. A run takes minutes, so do not wait for it. The user reads the guide in the PR's Guide tab. Pass each PR as `repository` and `number`, because the `url` form can fail to find the project's checkout. A PR whose outcome is `failed`, for example because guides are off in T3's Source Control settings, gets no guide. Give its `detail` in the reply and go on. - **A PR owner (autopilot, multi-phase plans)** is a role, not a long-lived agent. Each owner round (build, fix, merge) is a fresh `delegate_task` in that PR's worktree. The round does its work, reports the PR URL, head SHA, and state, and returns. The root decides and delegates the next round. @@ -107,6 +108,7 @@ T3 has no cloud agents. Every lane is a `delegate_task` child on this machine or - **Current chat.** `t3_thread_read` with your thread id (`view: "activity"` lists tool calls and files read). This replaces `agent-transcripts/` paths and "the chat UUID". `currentThreadId` in a `t3_thread_list` result is your thread id. A child that reads this run's transcript, such as show-me-your-work's cross-model reviewer, gets that thread id and reads it with `t3_thread_read`. Never pass it a JSONL path. - **Earlier chats** (recall, session pickup, show-me-your-work audits). Use `t3_thread_search` and `t3_thread_list` in this project only. `t3_thread_search` returns title, branch, and PR matches first. A message match needs every query word of three or more characters and carries `source` (`user` or `assistant`), a `snippet`, and `messageCreatedAt`, so pick threads from the snippets before you read them. Message matches fill at most a fifth of `limit`, so pass `limit: 50`, the maximum, when you look for message content. Search skips subagent threads. Drop the match whose `threadId` equals the result's `currentThreadId`, which is your own thread. Pass thread ids to children, not file paths. Page a thread the way the description of `t3_thread_read` in your session says, because the cursor parameters and the order of a read without a cursor differ between T3 builds. Read a long thread in pages of `limit: 20` with `maxCharsPerItem: 2000`, and recover a long item with `itemId` and `textOffset`. T3 ends a page at about 30,000 characters and reports the rest through `hasMore` or `earlierPosition`. On Codex, never print a raw `t3_thread_read` result. Keep it in a variable and print what you need, such as each item's `position`, `type`, and first 300 characters. Cite a thread by the `link` a thread tool returned, verbatim, never by a title or a bare id. With only an id, `t3_thread_read` returns its `link`. - **Messages from other threads.** A `t3_thread_read` item with `senderThreadId` is a message that thread sent with `t3_thread_send`, such as a parent's follow-up. The user did not type it, so do not read it as the user's words. +- **The issue tracker** (recall's shared record). For the project's own tracker, find issues with `list_issues` and its `query` and `state`, then read each with `read_issue`, which returns the body, recent comments, and linked PRs. `read_issue` also takes the `url` of an issue in a repository that no project here holds, read-only. - **Shell fallback.** `~/.claude/projects//*.jsonl` (Claude) and `~/.codex/sessions/**/*.jsonl` (Codex). - **Pinned and active chats** ("from the user or the sidebar") are the threads `t3_thread_list` returns with `pinned: true` or `settled: false`, called with `includeSubagents: false`. That leaves out child tasks and the tasks a linked environment delegated here, which `delegatedFrom` marks in any list or read. A child task of a pinned or active chat is in use too, and its `parentThreadId` names that chat. Add `allProjects: true` when the work spans repositories, such as a disk cleanup. @@ -132,7 +134,7 @@ T3 has no cloud agents. Every lane is a `delegate_task` child on this machine or - **Custom Mode, Option+Enter.** None. Start a task with `/pstack:poteto-mode` (Claude) or `$pstack:poteto-mode` (Codex). On Claude, T3's composer also offers pstack's skills in its `$` picker when the plugin is enabled in Claude Code, and sends the pick as `/pstack:`. - **Cursor's built-in `/babysit` and `/autopilot` PR watchers.** Not present. The Babysit playbook is the only PR watcher. The Autopilot playbooks are pstack's own, not this built-in. - **Plan Mode.** T3 interaction mode `plan`. -- **Automations** (`automations/benny`). A webhook or fixed-time `schedule_task`. Each run handles one event. A run that only reads and replies, such as benny's triage, is created with `bindToCurrentThread: false` and `freshSession: true`: the first run makes the automation's thread in a new worktree, and every later run posts there in a fresh session without earlier runs' context. A run that changes code or opens a PR, such as benny's reproduce automation, takes only `bindToCurrentThread: false`, so each run gets its own thread and a fresh worktree from the default branch. With neither set, a task in the creating thread's own project binds to that thread, and every run continues that conversation. A task for another project then gets a new thread per run. Get webhook signing secrets with `request_secret`. To test an automation, call `run_scheduled_task_now`. When its `lastRunStatus` is `failed`, `lastRunError` says why. Put the trigger's conditions in the webhook schedule's `filters`, so other requests never start a run. For benny, `body.event.channel` equals the source channel. A path segment ending in `[]` checks each element of an array. `{path: "body.issue.labels[].name", op: "equals", value: "