<command-message>superpowers:writing-skills</command-message>…
- User
superpowers:writing-skills /superpowers:writing-skills first research our prompt system.
then lets discuss this
- we need, if current model is opus, let it delegate easier and mechanical tasks to sonnet (via subagents
- make sure it uses subagents so that intermediary results and tool calls wont polute main context
- make it vocal about that it's doing something complex or slow and that it launches subagents (via notify user mcp command)
Assistant
I'll start by researching the prompt system before discussing the skill design.
Assistant
Now let me read the actual OPERATING_INSTRUCTIONS that ship to agents, which is where the Subagents section lives.
Assistant
Now let me check what's in the existing skills directory and how models are configured.
Assistant
Assistant
Assistant
Applying the two edits now.
Assistant
No tests pin the old phrasing. Patch applied.
Summary
Two minimal edits to
crates/right-codegen/templates/right/prompt/OPERATING_INSTRUCTIONS.md:- Subagents section — appended a paragraph telling agents to pass
model: "sonnet"for mechanical subagent tasks (long reads, summarization, source sweeps, extraction, format conversions), and to keep the default model when the subagent needs to make a hard judgment call. - Progress Updates section — rewrote to make
mcp__right__send_progressmandatory before slow work / subagent dispatch (rather than optional), with one message per batch and an explicit example mentioning the sonnet subagent.
Next steps for you
- Build + restart — operating instructions are
include_str!()-compiled, so the change ships oncargo build+right restart <agent>. Already-deployed agents pick it up automatically (no re-init needed; matches the upgrade-friendly design rule).
- Subagents section — appended a paragraph telling agents to pass
- User
commit push
Assistant
Committed and pushed as
f7b32bf8.- User
now review whole system prompt, anything contradictory, anything unnecessary, somewhere we can sacrifice grammar for clarity and laconicity?
Assistant
Let me read every part of the composite prompt that ships to agents.
Assistant
- User
do each one of them, every one in a subagent with review after each subagent
Assistant
Dispatching subagent #1 (bug fix) with
model: "sonnet"since this is mechanical.Assistant
Verifying subagent #1's edit landed correctly.
Assistant
Edit verified at lines 301-303. Committing.
Assistant
Dispatching subagent #2 (dedupe pass) with
model: "sonnet".Assistant
Verifying subagent #2's edits.
Assistant
All four edits verified clean. Committing.
Assistant
Retrying without the trailing log (and explicitly no push — I'll push only after the third commit lands).
Assistant
Reading the current state of the sections subagent #3 will compress.
Assistant
Subagent #3 (compress + grammar pass) — biggest edit, but mechanical. Dispatching with exact find/replace pairs.
Assistant
Verifying subagent #3's pass — reading the whole file and checking word count.
Assistant
All 11 edits landed cleanly. File went from 311 lines to 192 lines / 1801 words (~38% line reduction). All section headers intact, all load-bearing rules preserved. Committing and pushing all three.
Assistant
All three commits pushed to
master:Commit Subject Diff 11b7a93cfix: point MCP-error learning at TOOLS.md not CC memory +3 / -3 fe077ca2refactor: drop four duplications already covered by base prompt +5 / -21 cd8806e6refactor: compress six sections and tighten grammar +28 / -147 Net: +36 / -171 lines on
OPERATING_INSTRUCTIONS.md. The file is now 192 lines / ~1800 words (was 311 / ~2700). Same rules, fewer tokens per turn, one factual bug fixed.- User
also update AGENTS.md/ARCHITECTURE.md to refer shorter than long prose when working on prompts
also we need to update to latest opus (4.8 is out)
Assistant
Let me find all places where Opus 4.7 is referenced and where prompt-prose guidance might fit.
Assistant
Two parts: add the AGENTS.md convention, then the Opus 4.8 code update. Let me also check there are no other production sites I'm missing.
Assistant
Adding the prompt-tier brevity convention to AGENTS.md.
Assistant
Now the Opus 4.8 updates. Four edits in three files.
Assistant
Running targeted tests on the touched crates.
Assistant
All tests pass. Two logical commits, then push.
Assistant
Both commits pushed to
master:Commit Subject 2bbdc7cadocs(agents): add prompt-tier brevity convention 18c0ef6bchore(model): point curated Opus choice at 4.8 Summary
AGENTS.md — new "Prompt-tier brevity" convention names the four files that ship in the composite system prompt and prescribes the editing rules we used on
OPERATING_INSTRUCTIONS.md(1-3 sentences per rule, declarative phrasing, drop redundant examples, don't duplicate across composite sections).Opus 4.8 update — four edits:
model_command.rs: curated "Opus 1M" entry nowclaude-opus-4-8[1m]with "Opus 4.8" description.pricing.rs: matcher now accepts bothclaude-opus-4-7andclaude-opus-4-8prefixes (existing agents on the old id still get cost tracking). Added two tests for the 4.8 known + 1m variants.