Use lll as the record for a pstack run
pstack is Lauren Tan’s
set of agent skills. Its entry point, poteto-mode, matches a task to a
playbook, copies the playbook’s steps into the session’s todo list, delegates
code to subagents and requires proof on the real artifact before done. Put the
rule below in your repo’s agent instructions and each of those steps also
leaves a record on an lll board: who holds the task, what the proof was, what
the reviewer said and what a worker was blocked on.
poteto-mode and its playbooks name no issue tracker and read no tracker
file. Every lll step in this table is this recipe’s addition. The first two
columns say which pstack step it records and where pstack keeps that step:
| pstack step | pstack keeps it in | On the board |
|---|---|---|
| The goal, and the done predicate where a playbook states one | The first reply | lll issue create, lll issue claim |
| A plan’s units and their dependency graph | A plan file with checkboxes | --parent KEY, lll issue block KEY BLOCKER |
| A subagent kickoff | The kickoff text, after the worker.md line |
The issue key and an agent label in the kickoff; lll issue claim KEY --agent NAME |
Proof before done; a swarm worker reports PASS, ISSUES or BLOCKED |
The reply, and on long runs a local decisions.tsv |
lll issue comment KEY -b - |
A swarm worker’s BLOCKED report |
The worker’s report | lll issue block, lll issue release |
A verdict from an agent that did not write the code (Shipping), or interrogate findings |
A comment on the pull request; the reply | --state in-review, then a comment under the reviewer’s own --agent label |
| Picking a session up | Transcripts, a pushed branch, a resume note | lll issue view KEY --raw |
The playbook’s step-by-step todo list stays in the session. An issue is one unit that is verified on its own or handed to a subagent, not one todo item.
One part of pstack does ask for a tracker: benny, its dormant automation
pack for Slack bug reports, files tickets through an adapter you supply.
Step 4 is that adapter for lll.
Before you start
- A board and a team your agents can write to. See Set up a board.
- The repo attached to that team with
lll attach, so commands need no--team. - pstack installed, as its README describes.
lllon the path of every worker, with a token. pstack’s swarm starts cloud workers by default; a worker on another machine needs its own setup.
1. Put the rule in your repo’s agent instructions
pstack’s skills load from a slash command, so the board steps go in a rule
your repo owns. In Cursor that is an always-applied rule under
.cursor/rules/. In Claude Code it is CLAUDE.md, or AGENTS.md when there
is no CLAUDE.md. Add this:
# Tracker: lll
Work in this repo is recorded on an lll board. Use the `lll` CLI. The team
comes from `.lll.toml`; issue keys look like `ENG-42`. These steps add a
record to pstack's own steps. They do not replace the todo list, the playbooks
or `worker.md`.
Label your session: `--agent NAME` on each command below that shows it, or
`LLL_AGENT=NAME` in the environment. `lll issue block` and `lll issue ref`
take no `--agent`. The chat that receives `/poteto-mode` picks one label for
itself and one for each agent it starts.
## The chat that receives /poteto-mode
- **Task**: before the playbook's first step, find or create the issue:
`lll issue create "Title" -b -` with the goal and the done predicate on
stdin. Add `--json` and read `.key` for the new key.
- **Claim**: `lll issue claim KEY --agent NAME`, then
`lll issue start KEY --agent NAME`. A refused claim exits 4 and names the
holder: stop and report it.
- **Units**: one child issue for each unit that is verified on its own or
handed to a subagent: `lll issue create "Title" --parent KEY -b -`. The
playbook's steps stay in the todo list.
- **Order**: `lll issue block KEY BLOCKER` for a unit that waits on another.
`lll issue list --under KEY --ready` lists the units that can start now.
- **Kickoff**: after the `worker.md` line, the goal and the task, give the
agent its issue key, its agent label and the worker steps below.
- **Pickup**: `lll issue view KEY --raw` prints the issue, the state of each
child and the issue's comments. Read it before the transcripts.
## Every worker
- **Claim first**: `lll issue claim KEY --agent NAME`. If it is refused,
report `BLOCKED` with the holder's name and stop.
- **Proof before done**: post the verdict (`PASS`, `ISSUES` or `BLOCKED`), the
command, its exit code and the commit with
`lll issue comment KEY --agent NAME -b -`, the body on stdin.
- **Blocked**: `lll issue create` what blocks you, then
`lll issue block KEY BLOCKER`, then `lll issue release KEY --agent NAME`.
- **Hand back**: `lll issue update KEY --state in-review --agent NAME`, then
`lll issue release KEY --agent NAME`. Do not close your own unit.
## Review and close
- **Verdict**: when a step calls for a verdict from a session that did not
write the code, that session posts it with
`lll issue comment KEY --agent REVIEWER -b -`.
- **Close**: the chat that receives `/poteto-mode` reads the proof, and the
verdict where one was called for, then runs
`lll issue close KEY --agent NAME`. It closes the parent last.
- **Pull request**: open it as the Opening a PR playbook says, then record it
with `lll issue ref KEY gh#N`.
2. Start the task
Start the session with /poteto-mode and the task, as pstack’s README shows.
With the rule loaded, its first board writes are:
key=$(lll issue create "Add saved filters to search" -b - --json --agent lead < goal.md | jq -r .key)
lll issue claim "$key" --agent lead
lll issue start "$key" --agent lead
3. Hand a unit to a subagent
pstack requires the first line of every kickoff to be the worker.md line and
keeps the rest to the goal and the task, plus the path of the poteto-mode
skill file for a poteto-agent. worker.md then tells the worker that the
bar in its kickoff is the whole bar. So this recipe puts the board steps in
the kickoff, as part of the task:
Read <path>/worker.md before anything else.
Goal: people can save a search filter and reapply it.
Task: ENG-13. `lll issue view ENG-13 --raw` has the scope and the done predicate.
Board: you are `worker-a`. Claim first with `lll issue claim ENG-13 --agent worker-a`;
if it is refused, report BLOCKED and stop. Before you report, post your verdict,
the command, its exit code and the commit with `lll issue comment ENG-13 --agent
worker-a -b -`. Then `lll issue update ENG-13 --state in-review --agent worker-a`
and `lll issue release ENG-13 --agent worker-a`. Do not close it.
<absolute path of the poteto-mode SKILL.md, for a poteto-agent>
4. Give benny an lll adapter
Skip this step unless you run benny. Its triage automation searches the tracker for a duplicate, updates a confident one, and creates a ticket only for a clear new bug. Its instructions list six operations the adapter must provide. lll has a command for each:
| benny needs | lll command |
|---|---|
| Search by text, state, label, source URL and date | lll issue list --search, --state, --label, --since; lll search TEXT --issues |
| Read one issue and its links | lll issue view KEY --json |
| Create with title, body, status, labels and source URL | lll issue create --state --label, then lll issue ref KEY URL |
| Update without replacing unrelated fields | lll issue update KEY --add-label, --description-append |
| Add a source link and a recurrence note | lll issue ref KEY URL, lll issue comment KEY |
| Cancel, close or delete an issue this run created | lll issue update KEY --state cancelled, lll issue delete KEY --yes |
benny does not create labels, and lll refuses a label that does not exist. Create them once:
for name in bug performance intake needs-repro; do
lll label create "$name"
done
benny’s setup has you copy its configuration.example.yaml to a file you
own, outside the pack. In that copy, set the tracker. The keys are the
template’s; the values are for lll:
tracker:
type: "lll"
adapter_skill_name: "lll-tracker"
team: "ENG"
project: "Intake"
labels:
bug: "bug"
performance: "performance"
intake: "intake"
needs_repro: "needs-repro"
status: "backlog"
source_link_title: "Slack report"
require_compensation_action: true
project names an lll project; create it once with
lll project create "Intake".
Then save this as the skill named there, lll-tracker:
# Issue-tracker adapter: lll
Use the `lll` CLI. Pass `--team KEY` with the configured team on every
command. Pass `--agent NAME` with this automation's name on create, update,
comment and delete.
- **Search**: `lll issue list --search TEXT --state STATE --label NAME
--since RFC3339 --json` matches titles; read `.items`. `--since` is a lower
bound on the update time; filter an upper bound from `.updated`.
`lll search TEXT --issues` also matches descriptions and comments.
- **Search by source URL**: `lll search` ranks by words, so a whole URL also
matches other messages from the same channel. Search for the permalink's
last path segment: `lll search SEGMENT --issues`. Then confirm the hit:
`lll issue view KEY --json`, and compare the full URL with `.description`,
`.refs` and each `.comments[].body`. `lll search` does not read `refs`, so
always write the URL in the body or a comment as well.
- **Read**: `lll issue view KEY --json` returns the record with its comments
and `refs`.
- **Create**: `lll issue create "Title" -b - --state backlog --label NAME
--project NAME --json` with the body on stdin, the source URL in the body.
Read `.key`.
Then `lll issue ref KEY URL`.
- **Update**: `lll issue update KEY --add-label NAME` and
`--description-append "text"` change only what they name.
- **Source link and recurrence note**: `lll issue ref KEY URL`, then
`lll issue comment KEY -b -` with the note and the URL on stdin.
- **Compensate**: `lll issue update KEY --state cancelled` keeps the record;
`lll issue delete KEY --yes` removes an issue this run created.
Beyond the six operations, benny's verdict links the issue and its repro
step links the pull request:
- **Link for the verdict**: `lll issue url KEY` prints the issue's web page.
- **Pull request**: `lll issue ref KEY gh#N`.
An unknown label exits 3 and creates nothing. Do not create the label.
What the commands print
Run on a scratch board, lll 1.9.0, on 2026-11-30 UTC. One task, two units under it, the second blocked by the first:
$ lll issue block SCRAT-3 SCRAT-2
SCRAT-3 is blocked by SCRAT-2
$ lll issue list --under SCRAT-1 --ready
SCRAT-2 ○ todo Store saved filters just now
$ lll issue claim SCRAT-2 --agent worker-a
Claimed SCRAT-2 for scratch (agent worker-a)
A second worker that claims the same unit is refused, with exit code 4:
$ lll issue claim SCRAT-2 --agent worker-b
Error: SCRAT-2: Issue is already claimed by scratch (agent worker-a).; the holder releases it with 'lll issue release SCRAT-2'; ...
The worker posts its proof and hands the unit back. A unit in review is not offered as ready, and the unit behind it stays blocked until the close:
$ lll issue comment SCRAT-2 --agent worker-a -b -
Commented on SCRAT-2 as scratch (agent worker-a)
$ lll issue update SCRAT-2 --state in-review --agent worker-a
Updated SCRAT-2: state=in-review
$ lll issue release SCRAT-2 --agent worker-a
Released SCRAT-2 (was scratch's); cleared assignee
$ lll issue list --under SCRAT-1 --ready
no issues
The reviewer’s verdict goes on under its own label, the lead closes, and the next unit becomes ready:
$ lll issue comment SCRAT-2 --agent reviewer -b -
Commented on SCRAT-2 as scratch (agent reviewer)
$ lll issue close SCRAT-2 --agent lead
Closed SCRAT-2 ● done
$ lll issue list --under SCRAT-1 --ready
SCRAT-3 ○ todo Saved filter picker in the search bar just now
A session picking the unit up later reads both verdicts from the issue:
$ lll issue view SCRAT-2 --raw
# SCRAT-2: Store saved filters
...
- **Refs:** gh#12
- **Claimed:** none
- **Parent:** SCRAT-1 Add saved filters to search
Done when: the store round-trips a filter in its unit test.
## Comments
- **scratch (agent worker-a)** (2026-11-30 05:09 UTC): PASS
go test ./filters -run TestStoreRoundTrip, exit 0, at commit 3a9f1c2.
- **scratch (agent reviewer)** (2026-11-30 05:09 UTC): PASS+NOTES
...
benny’s duplicate check, on the same board. SCRAT-5 has one report’s URL in its body and a second in a comment. A third URL is only a ref on SCRAT-7. Searching for the third URL whole returns SCRAT-5, because the words of the channel match, and misses SCRAT-7. Searching for a last path segment returns only an issue whose body or comments hold it:
$ lll search https://example.slack.com/archives/C0123/p1764486000000300 --issues --team SCRAT
SCRAT-5 cancelled Export: crash on an empty board
[comment #1 by scratch]
> Recurrence: https://example.slack.com/archives/C0123/p1764482400000200
...
$ lll search p1764486000000300 --issues --team SCRAT
no match for 'p1764486000000300' in SCRAT's issues, comments or docs
$ lll search p1764482400000200 --issues --team SCRAT
SCRAT-5 cancelled Export: crash on an empty board
[comment #1 by scratch]
> Recurrence: https://example.slack.com/archives/C0123/p1764482400000200
Limits
- Read at: repository
cursor/plugins, directorypstack, commit4d5593ed7f5d978ab643800443aad3d8c131d289(2026-11-29 UTC), plugin version 0.15.49. Read there:README.md,skills/poteto-mode/SKILL.mdandworker.md, the Feature, Multi-phase plan, Autonomous run, Session pickup, Pause safely, Opening a PR and Shipping playbooks, theswarm,interrogate,figure-it-out,show-me-your-work,recallandprinciple-prove-it-worksskills,agents/poteto-agent.md,docs/harness/claude-code.md, and underautomations/benny/the README,FOR_AGENTS.md, the configuration template, the triage skill and the tracker parts of the setup and repro skills. A later pstack may differ. - What pstack asks of a tracker: at that commit, only benny does. The
six operations in step 4 are the list in
automations/benny/skills/triage-issue-reports/SKILL.md, and thetrackerkeys are those inautomations/benny/templates/configuration.example.yaml, whose example type islinear. Outside benny,poteto-modelists “ticket updates” among the actions that proceed without asking, andrecallreads the issue tracker as one source of its shared record, through whatever tool the session has. Neither names a tracker or a contract, and this recipe does not wirerecallto lll. - The rule in step 1 is not pstack’s.
poteto-modesays the operator’s rules reach another agent only through theworker.mdline, andworker.mdtells a worker to add no check or review round above its kickoff. Whether a repo rule reaches a cloud worker is not established, which is why step 3 repeats the board steps in the kickoff. lll searchdoes not match text that is only in an issue’srefs, and it ranks by words instead of matching a URL exactly. The adapter works around both; an exact lookup by reference would replace the workaround.- benny runs as two Cursor Automations and needs Slack. It was not run. pstack’s
Claude Code adapter skips Cursor Automations, so step 4 applies in Cursor
only. Where benny loads an adapter skill from, and whether it accepts a
typeother than its example, was not tested. - Verified: every lll command in the rule, the kickoff and the adapter, against a scratch board. Not verified: a pstack run, in Cursor or in Claude Code, that follows the rule. Whether a worker treats board steps in its kickoff as part of its bar is untested.
lll issue claim KEYtakes an issue whose blockers are still open. The blocker stopslll issue list --readyandlll issue nextfrom offering it, so hand out units from those, not from the plan’s order.lll issue nexthas no flag to stay inside one task. Uselll issue list --under KEY --ready.- The sessions in the example share one member, so the claim separates them by agent label. Agent labels are self-asserted. For workers that must not be able to take each other’s units, give each one its own bot member. See permissions for people and agent workers.
lll issue pr KEYwrites its own pull request body. pstack’s Opening a PR playbook fixes the title and the headings, so this recipe records the reference withlll issue refinstead.