Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .claude-plugin/marketplace.json
Original file line number Diff line number Diff line change
Expand Up @@ -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.17.5",
"version": "0.17.6",
"author": {
"name": "Lauren Tan (pstack), pmwoz (T3 Code port)"
},
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "t3-pstack",
"version": "0.17.5",
"version": "0.17.6",
"private": true,
"type": "module",
"scripts": {
Expand Down
2 changes: 1 addition & 1 deletion plugins/pstack/.claude-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "pstack",
"displayName": "pstack",
"version": "0.17.5",
"version": "0.17.6",
"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)"
Expand Down
2 changes: 1 addition & 1 deletion plugins/pstack/.codex-plugin/plugin.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "pstack",
"version": "0.17.5",
"version": "0.17.6",
"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)"
Expand Down
3 changes: 2 additions & 1 deletion plugins/pstack/skills/poteto-mode/references/t3-adapter.md
Original file line number Diff line number Diff line change
Expand Up @@ -93,7 +93,7 @@ T3 has no cloud agents. Every lane is a `delegate_task` child on this machine or
- **Shipping verdicts.** A verifier posts its verdict with `pull_request_review` and `verdict: "comment"`. The `body` holds `PASS`, `PASS+NOTES`, or `FAIL` and the head SHA it ran, and each finding with a file and line goes in `comments`. It never sends `approve` or `request-changes`, because T3 agents act as the user's forge account and a verdict is not a forge approval.
- **Landing (Shipping step 4).** Merge with `pull_request_merge`, `method: "squash"`, and `expectedHeadSha` set to the full head SHA the verdict covers, so T3 refuses a head that moved. When the run is layers of a native GitHub stack (`stack.kind` is `native` in `list_thread_pull_requests`), land it with one call on the ceiling with `stack: true`, in place of one merge per PR. T3 pins each lower layer to its current head, not to its verdict, so run step 3's check on every layer first. A derived stack merges one PR at a time. Arm auto-merge with `auto: true` under step 4's rule, never with `stack`. A result `state` of `open` means auto-merge or a merge queue holds the PR. Read each PR back with `pull_request_read`. A landed PR reads `merged` with trunk as `baseBranch`.
- **Babysit threads and CI.** Read review threads with `pull_request_read` and `include: ["threads"]`, and page with `cursor` until `nextCursor` is null. Reply with `pull_request_respond` and the thread's `reviewThreadId`. Set `resolved: true` on a bot's thread once the reply cites the fixing commit or a disproof. Leave escalated threads and human reviewers' threads open. Read a failing check with `ci_logs`, and spend a flake's one fresh build as `ci_rerun` with that `check`.
- **Opening a PR.** `pull_request_create` is the run's PR tool. Call it with `draft: false`, and with `base` for a stacked layer. It pushes the calling thread's branch when the remote lacks commits, opens the PR, and links it to that thread. Without it, create the PR 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.
- **Opening a PR.** `pull_request_create` is the run's PR tool. Call it with `draft: false`, and with `base` for a stacked layer. Pass `private: true` only when the user asks for a private PR, which only a host with private PRs, such as TanStack Source, accepts. It pushes the calling thread's branch when the remote lacks commits, opens the PR, and links it to that thread. Without it, create the PR 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.
- **Several repositories in one project.** When your prompt carries a `<workspace_folders>` block, the project covers every repository it lists, so a run can change a dependency in another repository from its own thread. Run Git inside the repository you change, and commit in each one separately. `pull_request_create` opens a PR only from the thread's root folder. Open a PR in another listed repository with the resolved forge, run inside that repository, and the root links it with `link_pull_request`.
Expand Down Expand Up @@ -140,6 +140,7 @@ T3 has no cloud agents. Every lane is a `delegate_task` child on this machine or
- **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: "<label>"}` matches a GitHub issue that has that label, and `notEquals` matches only when no element has the value. Set `dedupe.replayKey` to the sender's delivery id, `{{body.event_id}}` for Slack or `{{headers.x-github-delivery}}` for GitHub, so a retried delivery does not run twice. When a sender fires bursts about one subject, such as pushes to one PR, set `dedupe.coalesceKey` to that subject. Deliveries with the same key within `coalesceWindowSeconds` (default 120, counted from the first) become one run on the latest payload. Never key it on something distinct events share, such as the channel. When benny's configured tracker is the T3 project's own tracker, T3's issue tools are the issue-tracker adapter of benny's triage: `list_issues` with `query` and `state` to search, `read_issue` to read one issue and its linked PRs, `create_issue`, `comment_on_issue` for the source link and recurrence note, and `set_issue_state` to close an issue the run created. They cannot change an issue's title, body, or labels, or delete it, so a write that needs one of those fails closed as the skill says.
- **Automations as a durable workflow.** When the user has turned on T3's Labs Workflows (`t3 workflow list` does not say they are off), benny can run as one workflow per Slack report instead of two webhook schedules. Never turn the setting on yourself. Before you write the definition, read T3's `t3-workflows` skill in full: `skills/t3-workflows/SKILL.md` in the T3 Code repository, at the tag `v<serverVersion>` from `~/.t3/userdata/server-runtime.json`. Put one file in `~/.t3/workflows/` with a `webhook` trigger whose `key` returns the event id from the Slack body, and `skip` deliveries from other channels. Its first `agent` step takes the triage prompt as `brief` and `returns` the marker it posted. A second `agent` step, in a `worktree` workspace, takes the reproduce prompt and runs only on `[benny:bug]` or `[benny:performance]`, so it finds the marker already posted. Agents in threads cannot call `t3_workflow`, so get the hook URL with `t3 workflow hooks` and drive runs with `t3 workflow list`, `show`, `resume`, and `cancel`. With Workflows off, use the webhook schedules above.
- **Grok Bot** (`/make-bot-ui`). None. The skill ships unchanged but has nothing to wake under T3.
- **A Cursor restart.** T3 keeps threads, delegated tasks, and queues across restarts. Re-read each recorded child with `t3_thread_read`. Read `t3_thread_list`, whose `pullRequests` lists up to 5 open PRs per thread. For a thread whose `openPullRequestCount` is higher, call `list_thread_pull_requests` with `states: ["open"]`. Then reattach by PR and branch.

Expand Down
Loading