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: 0 additions & 2 deletions docs/guide/02-marius-mode.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

`/marius-mode` is the front door. You give it a goal, it matches one of twenty-three playbooks, copies that playbook's steps into the todo list, and calls the other skills as the steps need them. In this page you learn what a good prompt looks like, and how little of one you actually need.

![A dispatcher pulls a switch lever to route robots on rail handcars toward lit gates, under a /marius-mode departure board listing BUG FIX, FEATURE, and INVESTIGATION.](./images/router.jpg)

## What happens to your prompt

```mermaid
Expand Down
2 changes: 0 additions & 2 deletions docs/guide/03-understand.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

Editing code you don't understand is how subtle regressions ship. pstack gives you four ways in. `/how` explains what the code does now. `/why` digs up the reasons it's shaped that way. `/teach` blends both into one explanation. `/recall` rebuilds your own recent context on a topic.

![A detective studies a machine blueprint with a magnifying glass while robots fetch case files; the evidence board behind her links clues under /how and /why.](./images/understanding.jpg)

## Trace behavior with `/how`

```text
Expand Down
2 changes: 0 additions & 2 deletions docs/guide/04-design.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

One attempt at a hard design locks in the first shape the model thought of. `/architect` settles types and boundaries before implementation. `/arena` runs several attempts at the same brief and merges the best parts. `/interrogate` has other models try to break the result. When the job is coverage rather than design synthesis, `/swarm` fans out slices or races and aggregates their results.

![Three robots draft competing bridge models at their own tables under /architect, /arena, and /interrogate panels, while a judge robot with a clipboard inspects skeptically.](./images/design.jpg)

## Settle the shape with `/architect`

```text
Expand Down
2 changes: 0 additions & 2 deletions docs/guide/06-verify-and-ship.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

"It compiles" is not evidence. The [Prove It Works principle](../../skills/principle-prove-it-works/SKILL.md) makes the agent check the real artifact before it reports success, and your job is to make "the real artifact" checkable. This page covers stating a finish condition, generating a verification skill for your app, opening the PR, and driving it to merged.

![A prototype plane flies a real test course while she times it with a stopwatch and robots film and checklist the run; the terminal reads verify: pass, evidence: captured.](./images/verification.jpg)

## State the finish condition up front

Put what done means in the first prompt, in whatever words fit:
Expand Down
2 changes: 0 additions & 2 deletions docs/guide/07-overnight.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

This is the payoff for everything before it. An agent you can trust to verify its own work is an agent you can leave alone with a hard task. What makes that safe isn't hope. It's a checkable finish condition, an isolated worktree, and a decision log you audit in the morning.

![She waves goodnight from the door while robots keep the factory running, one updating a DECISION LOG wall board under a BUILD LOOP ACTIVE sign.](./images/overnight.jpg)

## The overnight contract

A good handoff has the goal, the finish condition, permissions, and an escape hatch. It doesn't need to be long:
Expand Down
2 changes: 0 additions & 2 deletions docs/guide/10-recipes-and-pitfalls.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,6 @@

Prompts worth copying, then the mistakes everyone makes once. Swap in your own paths and finish conditions. The recipes are deliberately informal. That's how they get typed in practice, and the skills read intent fine.

![She tastes a finished dish while robots cook from a recipe box, with pinned cards reading /how, /tdd, and /loop above the counter.](./images/recipes.jpg)

## Understand an unfamiliar subsystem

```text
Expand Down
Binary file removed docs/guide/images/design.jpg
Binary file not shown.
Binary file removed docs/guide/images/overnight.jpg
Binary file not shown.
Binary file removed docs/guide/images/recipes.jpg
Binary file not shown.
Binary file removed docs/guide/images/router.jpg
Binary file not shown.
Binary file removed docs/guide/images/understanding.jpg
Binary file not shown.
Binary file removed docs/guide/images/verification.jpg
Binary file not shown.
2 changes: 1 addition & 1 deletion skills/architect/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ Skip Phase A only when the work is genuinely greenfield with no surrounding syst

Run the **arena** skill with the design-sketch task and the Phase A grounding artifacts. Pass `references/runner-prompt.md` as each runner's prompt. Each candidate produces a design package shaped per `references/rationale-template.md`.

Use the runners from the **arena** skill's Phase A.
Use the runners from the **arena** skill's Phase A, including bridged runners per [the bridge](../interrogate/references/bridge.md).

Design it twice. Require at least two structurally distinct candidates before synthesis, even when the first looks sufficient. This is the **exhaust-the-design-space** principle skill made concrete. Whole-shape alternatives, not point fixes inside one shape.

Expand Down
4 changes: 2 additions & 2 deletions skills/arena/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ The N candidates will receive the same prompt, so the prompt is the contract.

1. State the artifact each candidate is producing.
2. Derive the rubric. State what success looks like for *this* task, then turn it into 3-6 concrete gradeable criteria. The rubric is the picker's tool in Phase D. Candidates only see the task.
3. Pick the runners. Default to three host subagents on the strongest model. Spawn more when the arena covers multiple design directions. Same model N times when the work is generation-bound rather than judgment-sensitive.
3. Pick the runners. Default to three host subagents on the strongest model. Add bridged runners per [the bridge](../interrogate/references/bridge.md). Spawn more when the arena covers multiple design directions. Same model N times when the work is generation-bound rather than judgment-sensitive.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P2 Badge Keep read-only bridge members out of arena runners

When a different-family CLI is allowlisted and /arena (or /architect through arena) produces code, this adds that CLI as a candidate, while the next phase requires every candidate to write its artifact to an isolated output path. The mandatory bridge commands explicitly prohibit writes, so the bridged runner cannot create the artifact that Phase D must compare and will either drop out or return uncaptured prose; use bridged CLIs only for the read-only Phase C judge, or define a stdout/patch capture protocol for candidates.

AGENTS.md reference: AGENTS.md:L15-L15

Useful? React with 👍 / 👎.

4. Assign output paths. Each candidate writes to its own location (a git worktree where possible, otherwise `/tmp/arena-<slug>/candidate-<n>/`), per the **separate-before-serializing-shared-state** principle skill.

## Phase B: Fan out
Expand All @@ -38,7 +38,7 @@ If a candidate fails to produce output, proceed with N-1 and note the dropout in

## Phase C: Cross-judge

After all Phase B candidates complete, spawn one fresh read-only judge subagent on the strongest model. It sees the rubric and the candidates by path label, scores each criterion, and recommends a base with rationale. It runs in parallel with the parent's reading in Phase D, not with the candidates themselves. Don't spawn the judge while candidates are still writing.
After all Phase B candidates complete, spawn one fresh read-only judge. Prefer a model family different from the parent's: a bridged CLI when [the bridge](../interrogate/references/bridge.md) lists one, otherwise a host subagent on the strongest model. Say which in the synthesis record. It sees the rubric and the candidates by path label, scores each criterion, and recommends a base with rationale. It runs in parallel with the parent's reading in Phase D, not with the candidates themselves. Don't spawn the judge while candidates are still writing.

## Phase D: Pick a base

Expand Down
7 changes: 5 additions & 2 deletions skills/interrogate/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,14 @@ Read `references/reviewer-prompt.md` and fill in the template with:

The same filled template goes to all reviewers, so every reviewer applies the code-quality lens. Append one line naming the reviewer's own lens from the table.

Then add bridged reviewers per [the bridge](references/bridge.md). Each gets the same filled template. Label them by family ("Reviewer D, OpenAI via codex").

## Step 4, Synthesize

As results come back, build a unified picture:

1. **Parse all findings** from the reviewers
2. **Identify consensus**. Findings raised by 2+ reviewers independently are highest signal.
2. **Identify consensus**. Findings raised independently by 2+ reviewers are highest signal, and agreement across model families highest of all.
3. **Identify lone-reviewer findings**. Still worth reading, but weight accordingly.
4. **Deduplicate**. Different reviewers may describe the same issue differently. Merge these and note which reviewers raised it.
5. **Note disagreements**. If one reviewer flags something and another explicitly says the opposite, that's useful context for the verdict.
Expand Down Expand Up @@ -85,7 +87,8 @@ Present the verdict in this structure:
> [The stated intent paragraph from Step 2]

### Reviewers
- Reviewer [label]: [lens], [N findings] (one bullet per reviewer)
- Reviewer [label]: [lens or model family], [N findings]
- Bridge: off, or the members that ran and any dropped with the reason (one bullet per reviewer)

### Act On
[Findings that should be addressed. For each: description, which reviewers raised it, why it matters.]
Expand Down
27 changes: 27 additions & 0 deletions skills/interrogate/references/bridge.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Cross-vendor bridge

Panels (interrogate, arena, architect, reflect) gain a different model family by calling another vendor's CLI headless. Only CLIs listed in the per-machine allowlist may be called.

## Allowlist

Read `~/.config/tstack/bridge`: one CLI name per line (`claude`, `codex`, `copilot`), `#` starts a comment. If the file is missing or lists nothing, there is no bridge: run the panel on host subagents only and say "bridge: off" in the report. Never call a CLI that is not listed, even if it is installed.

## Panel composition

Add one bridged member per listed CLI whose model family differs from the host harness's. `copilot` serves several families through `--model`: pick a family the panel does not already have. Bridged members get the same filled prompt as host members, plus their lens line.

## Commands

Write the filled prompt to a temp file, then run the command with the harness's command timeout set to 600 seconds (macOS has no `timeout` binary):

| CLI | Family | Command |
|---|---|---|
| `claude` | Anthropic | `claude -p --model opus --permission-mode plan < "$prompt_file"` |
| `codex` | OpenAI | `codex exec --sandbox read-only --skip-git-repo-check - < "$prompt_file"` |
| `copilot` | chosen with `--model` | `copilot -p "$(cat "$prompt_file")" --model <model> -s --no-ask-user --deny-tool=write --deny-tool=shell` |

Bridged members are read-only reviewers: every command above runs without write or shell access. Never add flags that grant it.

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

P1 Badge Actually disable shell access for Codex reviewers

When codex is allowlisted, the no-shell guarantee is false: /opt/codex/bin/codex exec --help describes --sandbox as selecting the policy for “model-generated shell commands,” so read-only prevents filesystem writes but does not remove the shell tool. Because the bridge feeds raw diffs and other potentially untrusted content to the model, a prompt-injected review can still execute read commands and expose local data in its output despite users being told bridged members have no shell access; use a mode that actually disables command execution or explicitly treat this bridge as shell-capable and harden it accordingly.

AGENTS.md reference: AGENTS.md:L15-L15

Useful? React with 👍 / 👎.


## Failures

If the command is missing, exits nonzero, or times out, drop that member, name it and the reason in the report ("bridge: copilot dropped, access denied by policy"), and finish the panel with the members that returned.
2 changes: 2 additions & 0 deletions skills/reflect/SKILL.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,8 @@ One message, three subagent spawns, each on the model role below with full tool

Pass each template verbatim, substituting the transcript path or digest where marked. Reviewers return findings in their final response.

Add a bridged Tooling reviewer per [the bridge](../interrogate/references/bridge.md), with the same template, when it lists a CLI from another model family.

### 3. Synthesize

Spawn one subagent on the strongest model with full tool access, including MCP tools. The synthesizer's quality check includes spot-verifying citations, which can require MCP access. A read-only mode that strips MCP tools defeats it. Use `references/synthesizer.md` verbatim, with each reviewer's full output inlined where marked. The synthesizer returns a structured Accepted / Rejected / Backlog list.
Expand Down
Loading