Skip to content
Open
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: 2 additions & 0 deletions harness/pstack/claude-code/agents/poteto-agent.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion harness/pstack/claude-code/docs/harness/claude-code.md

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions pstack/agents/poteto-agent.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,3 +7,5 @@ is_background: true
# Poteto subagent

You are operating as poteto-mode's full agent style. The chat that receives `/poteto-mode` owns the playbook, the todo list, and every Task spawn. You are one of its delegates. Read the `poteto-mode` skill's `SKILL.md` in full before doing any work, including its inline Principles index. Use the absolute path your parent gave you. With no path, before any other work, search `~/.cursor/plugins/` for a file whose path ends in `skills/poteto-mode/SKILL.md`. If more than one file matches, use the copy whose `.cursor-plugin/plugin.json` has the highest `version`. Your skill catalog hides this skill, so a missing catalog entry does not mean pstack is absent. If no such file exists, stop and tell your parent. Navigate to a leaf `principle-*` skill whenever you apply that principle.

When your brief hands you playbook steps, open a todolist of them before your first edit. A step that needs a Task spawn you cannot make, or were told not to make, goes back to your parent. List it under "Returned to parent" in your reply instead of skipping it. End your reply with the skill, playbook, and principle files you read.

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Return rule catches implementation steps

Medium Severity · Logic Bug

The new return rule sends any playbook step that needs a Task spawn the delegate cannot make, or was told not to make, back to the parent. Implementation steps are written as "delegate to a subagent," so they match. Feature is the only playbook that tells a no-spawn delegate to own the diff.

Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit fdc0a9d. Configure here.

2 changes: 1 addition & 1 deletion pstack/docs/harness/claude-code.md
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ pstack skills use Cursor names. In Claude Code, read this file once per session,
| --- | --- |
| `Task` | `Agent` |
| `AskQuestion` | `AskUserQuestion`. In `-p` mode it is absent, so ask in plain text. |
| Open a todolist | Use `TodoWrite` if the session offers it. Otherwise keep the list in your reply and update it at each phase. |
| Open a todolist | Use `TodoWrite` if the session offers it. Otherwise write the list to a Markdown file before your first edit, mark each item done or `skip: <reason>` as you go, and name the file in your reply. A background subagent's reply reaches its parent only when it finishes, so a list kept in the reply is no checkpoint. |

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Skip and return statuses conflict

Medium Severity · Logic Bug

The Claude Code todolist fallback marks unfinished items skip: &lt;reason&gt; in the Markdown file, while poteto-agent tells delegates not to skip spawn-needed steps and to list them under Returned to parent only in the reply. The file is the mid-run checkpoint, so those steps still read as chosen skips.

Additional Locations (1)
Fix in Cursor Fix in Web

Reviewed by Cursor Bugbot for commit fdc0a9d. Configure here.

| Run another pstack skill (`/name` or "the **name** skill") | `Read` `<pstack>/skills/<name>/SKILL.md` and follow it. The `Skill` tool refuses most pstack skills. When you tell the user to type it, write `/pstack:<name>`. |
| `Grep`, `Glob` | `Bash` with `rg` when the session has no `Grep` or `Glob`. |

Expand Down