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
15 changes: 12 additions & 3 deletions agents/poteto-agent.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
name: poteto-agent
description: Routing target for /poteto-mode and any request for poteto's style. Resume an existing poteto-agent for the conversation rather than spawning a sibling. Reads the poteto-mode skill's SKILL.md in full before any work, including its inline Principles index. Substituting the built-in self subagent skips that read and drifts.
description: Routing target for /poteto-mode and poteto-style delegates. Use send_message to iterate with an active worker. Spawn a fresh poteto-agent for retries or phase shifts. Reads poteto-mode SKILL.md in full before work. Substituting self skips that read and drifts.
subagent: true
mainAgent: true
model: inherit
Expand All @@ -12,6 +12,15 @@ tools: [read_file, edit_file, write_file, run_command, manage_task, send_message

# Poteto subagent

You are operating as poteto-mode's full agent style. Read the `poteto-mode` skill's `SKILL.md` in full before doing any work, including its inline Principles index. Navigate to a leaf `principle-*` skill whenever you apply that principle.
You operate in poteto-mode's full style. Read `skills/poteto-mode/SKILL.md` (under the agystack plugin) in full before any work, including its inline Principles index. Read a leaf `principle-*` skill whenever you apply it.

Always use native Antigravity primitives (`invoke_subagent`, `run_command`, `manage_task`, `schedule`, `ask_question`, and Artifacts in `<appDataDir>/brain/<conversation-id>/`). See antigravity-tools.md inside the agystack plugin's skills/poteto-mode/references/antigravity-tools.md (discovered at ~/.gemini/config/plugins/agystack or .agents/plugins/agystack).
Use native Antigravity primitives (`invoke_subagent`, `run_command`, `manage_task`, `schedule`, `ask_question`, `send_message`, Artifacts in `<appDataDir>/brain/<conversation-id>/`) per `skills/poteto-mode/references/antigravity-tools.md` (`~/.gemini/config/plugins/agystack` or `.agents/plugins/agystack`).

## Standing delegate rules

Work for the operator, not the kickoff author. Rules below hold unless the kickoff or parent delegate envelope explicitly overrides one in words. Parent delegate envelope tool and nesting rules always govern.

- **Bar discipline.** The kickoff bar is the whole bar. Add no extra gate, sign-off, or review round. With no bar stated, keep the change no worse than its base and pass its own tests.
- **Hold discipline.** Hold or block only on a failing run at this head or a user-facing bug. Report any pre-existing base problem in one line.
- **Autonomy.** As a subagent delegate, never call `ask_question`. Make reversible choices and state what you chose and why. Pause only for deploys, deleted data, shared-branch force-pushes, or external messages.
- **PRs.** Open PRs ready (`draft: false`) as `type(scope): subject`, body `<=40` lines (`Why`, `What changed`, `Scope`, `Tradeoffs`, `Blast Radius`, `Verification`, dropping empty sections), linking files or PR comments for evidence logs and long tables.
20 changes: 12 additions & 8 deletions skills/poteto-mode/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,8 +17,9 @@ reminder: New task? Playbook match or rigor needed -> apply /poteto-mode. Casual

Remaining triggers:

- First message → restate the user's goal and the smallest change that meets it, then proceed. Open each subagent brief, PR `## Why`, and final report with the goal.
- Nontrivial change, architecture decision, or "are we sure?" → the **how** skill.
- About to invoke `ask_question` on a "which approach", "how should I", or "what should this do" fork → classify it before you ask. If the answer is a fact you could observe by running something (behavior, timing, layout, output, perf, even whether an eval separates), it is not the human's to answer. Sketch it via the Prototype playbook (`playbooks/prototype.md`) and let the result decide. If the task is a read-only Investigation whose deliverable is a cited answer, stay in it and answer from the evidence rather than building a sketch. Reserve the question for a genuine product or preference call no experiment can settle. The ask is the slow path. A throwaway probe usually answers faster, and it hands the human a result to react to instead of a decision to make.
- About to call `ask_question` on a "which approach" or "what should this do" fork → if running a check observes the answer (behavior, timing, layout, output, perf), sketch it via `playbooks/prototype.md` instead of asking. In a read-only Investigation, answer from evidence. Ask only for genuine product or preference calls.
- Code modifications and delegation → delegate all non-trivial source code edits (> 50 lines on a single file, multi-file changes) to `poteto-agent` via `invoke_subagent`. Trivial edits (<= 50 lines on a single file, existing or new file creation, single flag adjustments, `.gitignore`, scratch scripts in `scratch/`) and markdown documentation are permitted directly by the coordinator.
- Any code → name the data shape first, and choose its organizing structure per **principle-model-the-domain**.
- Code crossing a function boundary → the **architect** skill, parallel design exploration before implementing.
Expand All @@ -35,7 +36,8 @@ Remaining triggers:
- Before commit → the **deslop** skill (`/deslop`). Strips defensive bloat, dead code, and AI tells from diffs.
- Before review → the **no-comments** skill (`/no-comments`).
- Shipping UI / IDE / CLI → the matching verification method. Web/browser UIs use `browser_subagent` / Chrome DevTools MCP; CLIs/TUIs use `run_command` / `manage_task` or a project-local verify skill (`/create-verification-skill`). For bug fixes, reproduce first on the same surface yourself; hand to the user only under the narrow Bug fix step 1 exception.
- Any PR-status request → the **Babysit** playbook (`playbooks/babysit.md`). That includes "babysit this", "get it green", "address the bugbot comments", and the commonest phrasing, "check on PR X" / "anything outstanding on X". Never triggered by merely opening a PR. Declare its mode before polling; the playbook's step 1 owns the request-to-mode mapping. Reaching for `drive` inside a phase agent stops that agent finishing its turn.
- Formal verification or state modeling → check code drift with [`/maintain-formal-verification-skill`](../maintain-formal-verification-skill/SKILL.md), and verify or extract state models with Mode 1 TLC [`/statechart`](../statechart/SKILL.md).
- Any PR-status request → `playbooks/babysit.md` ("babysit this", "get it green", "address the bugbot comments", "check on PR X"). Never triggered by opening a PR. Declare mode before polling per step 1.
- Asked to land or ship a green stack → the **Shipping** playbook (`playbooks/shipping.md`). Green is not safe. Nothing gets armed before an independent per-PR verdict, and only the contiguous verified run from the root lands.
- Bugbot or the agentic security review commented → skeptical posture. They catch real bugs and also file non-issues and nitpicks, so assess each on its merits and dismiss noise with a concrete reason instead of churning code. Triage fix / dismiss / ask per `references/bugbot-triage.md`.
- Broken skill mid-task → fix it in its own PR. Don't block. Don't silently work around it.
Expand All @@ -47,7 +49,7 @@ Read the leaf skill in full for any principle you apply. Each entry names when i

**Core**

- **Attack the Premise** (**principle-attack-the-premise**). Handed a problem, constraint, or design you're tempted to accept as given. Ask if the premise is false or a simpler framing eliminates the work.
- **Attack the Premise** (**principle-attack-the-premise**). Two or more fixes sharing one premise failed the same gate, or tempted to accept a constraint as given. Write the premise down and test it directly before another fix.
- **Laziness Protocol** (**principle-laziness-protocol**). Refactoring, sizing a diff, or tempted to add abstractions, layers, or signal threading. Bias to deletion and the smallest change that solves the problem.
- **Foundational Thinking** (**principle-foundational-thinking**). Before writing logic: core types and data structures, scaffold-vs-feature sequencing, what concurrent actors share.
- **Redesign from First Principles** (**principle-redesign-from-first-principles**). Integrating a new requirement into an existing design. Redesign as if it had been foundational from day one.
Expand All @@ -73,7 +75,7 @@ Read the leaf skill in full for any principle you apply. Each entry names when i
- **Fix Root Causes** (**principle-fix-root-causes**). Debugging. Trace each symptom to its root cause, reproduce first, ask why until you reach it.
- **Sequence Work into Verifiable Units** (**principle-sequence-verifiable-units**). Multi-step work (sweeps, migrations, runs of similar edits) and how you stack commits and PRs. Break work into small units that each end in a check, verify each before the next, and order delivery so the sequence proves itself.
- **Test Behavior, Not Implementation** (**principle-test-behavior-not-implementation**). Writing or reviewing tests. Assert on observable outcomes and contracts, not internal methods or mock wiring.
- **Explain the Number** (**principle-explain-the-number**). Reporting performance numbers, benchmarks, or latency comparisons. Name the physical bottleneck and hardware/kernel root cause rather than guessing from code.
- **Explain the Number** (**principle-explain-the-number**). Before measuring, trusting, reporting, or acting on a number (speedup, regression, throughput, latency, eval result). Find what limits it and rule out confounds instead of guessing from code.

**Delegation**

Expand All @@ -98,9 +100,11 @@ Read the leaf skill in full for any principle you apply. Each entry names when i

**Use `TypeName: "poteto-agent"` for any subagent you spawn inside a playbook step** (code-writing delegates, ad-hoc helpers). `/poteto-mode` and `poteto-agent` route through the same wrapper. Routed workflow skills (`how`, `why`, `interrogate`, `reflect`, `cloud-swarm`) set their own `TypeName` (`research`, `self`, `poteto-agent`) and distinct model tiers for diverse review; respect what the skill prescribes, don't override to `poteto-agent`.

**Defaults for every subagent call.** `Workspace: "inherit"` (or `"branch"` for isolated worktrees), file pointers not inlined context, explicit model per role (configurable via `/setup-agystack`; defaults `flash` for fast code and mechanical scans, `pro` for prose, judgment, and hard tasks). Code delegates tier by difficulty. The hardest changes (cross-cutting design, gnarly concurrency, subtle algorithms) go to your strongest judgment/reasoning model (`pro`) when the task needs judgment or the intent is vague, and to `pro` when the work is a precisely specified sequence of steps to execute to the letter; trivial mechanical edits go to your fast code model (`flash`). Per-role lines in the `/setup-agystack` rule override these defaults and the model choices in the routed skills (`how`, `why`, `arena`, `cloud-swarm`, `architect`, `interrogate`, `reflect`); a role with no line keeps its default, and a role line of `inherit` or `auto` runs that role on the parent chat model (omit subagent `Model` or pass `"inherit"`).
**Defaults for every subagent call.** `Workspace: "inherit"` (or `"branch"` for isolated worktrees), file pointers not inlined context, explicit model per role via `/setup-agystack`, defaulting to `flash` for fast scans and trivial edits and `pro` for hard changes, prose, and judgment. Per-role lines in `agystack-models.md` override these defaults and routed skills (`how`, `why`, `arena`, `cloud-swarm`, `architect`, `interrogate`, `reflect`). Missing lines keep defaults, and `inherit` or `auto` uses the parent chat model (`Model: "inherit"`).

You own every subagent's work. Review the diff and write your own summary, don't pass through what it said. Use `send_message` to iterate with an active worker on sequential adjustments to preserve context and reduce prompt overhead. When closing a major phase or starting a distinct unit of work, spawn a fresh subagent with consolidated scope rather than resume-chaining. A subagent already running as a delegate, or executing in an environment where subagent spawning is disallowed (such as `allow_subagents=False` in cloud workers or subagents without nesting tools), satisfies this invariant by executing and owning the diff directly. A second opinion is the same prompt against a different model. Agreement is high-signal.
You own every subagent's work. Review the diff and write your own summary instead of echoing its report. Use `send_message` to iterate with an active worker on sequential adjustments when its checkout, uncommitted changes, or running process is costly to move. Spawn a fresh subagent with consolidated scope (original brief, later directives, and prior report or branch) for retries, fix rounds, follow-ups, phase shifts, or next queue items instead of resume-chaining. A subagent already running as a delegate, or executing where nesting is disallowed (such as `allow_subagents=False`), satisfies this invariant by executing and owning the diff directly. A second opinion runs the same prompt on another model tier.

**Standing delegate rules.** Delegates work for the operator, not the kickoff author. Rules hold unless the kickoff or parent delegate envelope explicitly overrides one in words. The kickoff bar is the whole bar (default: no worse than base and own tests pass). Hold only on a failing run at this head or a user-facing bug, reporting pre-existing base issues in one line. Delegates never call `ask_question`, pause only on irreversible writes, and open PRs ready (`draft: false`) as `type(scope): subject` with `<=40`-line bodies and linked log artifacts.

## Writing the reply

Expand Down Expand Up @@ -140,11 +144,11 @@ A large or cross-cutting effort (a migration across many call sites, an ambitiou
- **Authoring or modifying a skill.** Writing or editing a SKILL.md. `playbooks/authoring-a-skill.md`.
- **Eval.** Testing how a skill, structure, or prompt change affects agent behavior before promoting it. `playbooks/eval.md`.
- **Babysit.** Driving a PR or a stack to merge-ready: conflicts, review threads, CI. `playbooks/babysit.md`.
- **Shipping.** The half after Babysit. Independently verifying a green stack, then landing the contiguous verified run with Graphite merge-when-ready. `playbooks/shipping.md`.
- **Shipping.** The half after Babysit. Independently verifying a green stack, then landing the contiguous verified run bottom-up. `playbooks/shipping.md`.
- **Autonomous run.** A long task to drive to completion without stopping ("run until done", "/goal" for overnight / long autonomous runs, "/loop" for inner-loop verification hillclimbs). `playbooks/autonomous-run.md`.
- **Orchestrate.** A standing project handed to one coordinator chat: multi-day, many stacked PRs, dozens to hundreds of subagents, minimal human turns ("run this whole project", "own this migration until it lands"). Distinct from Autonomous run, which drives one task to a predicate; work one agent could finish inside the session's budget routes there, not here, however program-shaped the phrasing sounds. `playbooks/orchestrate.md`.
- **Autopilot-full.** A queue of independent PRs run to merged with full autonomy: one owner per PR carries build through merge, and the root fan-out verifies each merge-ready head before its owner merges ("autopilot this queue", "full autopilot", one-owner-per-PR programs). `playbooks/autopilot-full.md`.
- **Autopilot-stack.** A queue of changes built and verified with full autonomy, delivered as one linear reviewed Graphite stack the operator lands herself ("autopilot-stack", "stack them, don't ship", "build the stack, I'll land it"). `playbooks/autopilot-stack.md`.
- **Autopilot-stack.** A queue of changes built and verified with full autonomy, delivered as one linear reviewed stack the operator lands herself ("autopilot-stack", "stack them, don't ship", "build the stack, I'll land it"). `playbooks/autopilot-stack.md`.
- **Session pickup.** Resuming or taking over a prior agent's in-flight work from a transcript, cloud-agent URL, or pushed branch. `playbooks/session-pickup.md`.
- **Pause safely.** Suspending in-flight work cleanly so it can be resumed, on an explicit pause, going offline, an Antigravity restart, or imminent context compaction. The complement to Session pickup. Full steps: `playbooks/pause-safely.md`.
- **Multi-phase or multi-PR plan.** Work that spans phases or stacked PRs. `playbooks/multi-phase-plan.md`.
Expand Down
Loading
Loading