Skip to content

poteto-mode: fetch latest main before starting work or spawning agents - #377

Open
0xTenable wants to merge 1 commit into
cursor:mainfrom
0xTenable:sync-main-before-agents
Open

0xTenable wants to merge 1 commit into
cursor:mainfrom
0xTenable:sync-main-before-agents

Conversation

@0xTenable

@0xTenable 0xTenable commented Sep 15, 2026

Copy link
Copy Markdown

What

Adds one non-negotiable trigger to pstack's poteto-mode skill:

Starting development or spawning code-writing agents → git fetch origin main first, then branch or rebase onto it so work starts from latest main. A worker inherits the checkout or base branch it spawns from; a stale base hands every worker a stale start.

Why

poteto-mode delegates code-writing to spawned workers (cloud agents, worktree-isolated agents). Those workers inherit whatever base the spawning checkout or configured base branch points at. When local main is stale, every spawned worker starts behind origin, and the drift surfaces later as avoidable merge conflicts and re-verification. Making the fetch a named trigger puts it ahead of every playbook instead of relying on each agent to remember.

Placed as the first remaining trigger since it gates all development work, and worded harness-neutrally so ports to other harnesses carry it unchanged.

Test plan

Text-only change to a skill definition. Verified the bullet renders in the trigger list and survives the skill's port-time rewrites.

Written with Devin.


Note

Low Risk
Documentation-only change to agent skill triggers; no runtime, auth, or application code.

Overview
Adds a first non-negotiable in poteto-mode: before starting development or spawning code-writing agents, run git fetch origin main and branch or rebase onto current main so workers do not inherit a stale base.

The bullet is harness-neutral (checkout/base branch wording) and documents why it matters (spawned workers copy the spawning context, so drift shows up later as merge pain and re-verification).

Reviewed by Cursor Bugbot for commit 5a1e13d. Bugbot is set up for automated code reviews on this repo. Configure here.

Add a non-negotiable trigger so sessions and spawned workers start from
origin/main. Cloud agents and worktree workers inherit the checkout or
base branch they spawn from, so a stale local base hands every worker a
stale start and surfaces later as avoidable conflicts.

Written with Devin.

@cursor cursor Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Cursor Bugbot has reviewed your changes using high effort and found 1 potential issue.

Fix All in Cursor

Bugbot Autofix is ON, but it could not run because the branch was deleted or merged before autofix could start.

Reviewed by Cursor Bugbot for commit 5a1e13d. Configure here.


Remaining triggers:

- Starting development or spawning code-writing agents → `git fetch origin main` first, then branch or rebase onto it so work starts from latest main. A worker inherits the checkout or base branch it spawns from; a stale base hands every worker a stale start.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Trigger prose joins clauses with semicolon

Low Severity · Bugbot Rules

The new remaining-trigger sentence joins two independent clauses with a semicolon, which pstack skill prose forbids under unslop punctuation. Sibling triggers in this list already use a period for that split. This is the only semicolon in SKILL.md.

Fix in Cursor Fix in Web

Triggered by learned rule: pstack skill prose follows unslop punctuation

Reviewed by Cursor Bugbot for commit 5a1e13d. Configure here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant