raga-cli 0.0.0-stage → 0.8.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +103 -0
- package/LICENSE +21 -0
- package/README.md +139 -2
- package/bundled-skills/AGENTS.md +5 -0
- package/bundled-skills/README.md +25 -0
- package/bundled-skills/agents/comment-sicko.json +9 -0
- package/bundled-skills/agents/comment-sicko.md +28 -0
- package/bundled-skills/agents/model-roles.json +41 -0
- package/bundled-skills/agents/poteto-agent.json +9 -0
- package/bundled-skills/agents/poteto-agent.md +4 -0
- package/bundled-skills/agents/worker.json +8 -0
- package/bundled-skills/agents/worker.md +1 -0
- package/bundled-skills/bundle.json +1448 -0
- package/bundled-skills/dependencies.json +40 -0
- package/bundled-skills/docs/guide/01-setup.md +3 -0
- package/bundled-skills/docs/guide/02-peak.md +135 -0
- package/bundled-skills/docs/guide/03-understand.md +79 -0
- package/bundled-skills/docs/guide/04-design.md +133 -0
- package/bundled-skills/docs/guide/05-build-and-clean.md +83 -0
- package/bundled-skills/docs/guide/06-verify-and-ship.md +166 -0
- package/bundled-skills/docs/guide/07-overnight.md +118 -0
- package/bundled-skills/docs/guide/08-principles.md +72 -0
- package/bundled-skills/docs/guide/09-make-it-yours.md +96 -0
- package/bundled-skills/docs/guide/10-recipes-and-pitfalls.md +180 -0
- package/bundled-skills/docs/guide/README.md +38 -0
- package/bundled-skills/docs/guide/images/design.jpg +0 -0
- package/bundled-skills/docs/guide/images/overnight.jpg +0 -0
- package/bundled-skills/docs/guide/images/recipes.jpg +0 -0
- package/bundled-skills/docs/guide/images/router.jpg +0 -0
- package/bundled-skills/docs/guide/images/understanding.jpg +0 -0
- package/bundled-skills/docs/guide/images/verification.jpg +0 -0
- package/bundled-skills/licenses/commander +22 -0
- package/bundled-skills/licenses/cursor-team-kit +21 -0
- package/bundled-skills/licenses/no-mistakes +21 -0
- package/bundled-skills/licenses/pstack +21 -0
- package/bundled-skills/skills/peak/SKILL.md +184 -0
- package/bundled-skills/skills/peak/playbooks/authoring-a-skill.md +12 -0
- package/bundled-skills/skills/peak/playbooks/autonomous-run.md +13 -0
- package/bundled-skills/skills/peak/playbooks/autopilot-full.md +25 -0
- package/bundled-skills/skills/peak/playbooks/autopilot-stack.md +12 -0
- package/bundled-skills/skills/peak/playbooks/babysit.md +18 -0
- package/bundled-skills/skills/peak/playbooks/bug-fix.md +15 -0
- package/bundled-skills/skills/peak/playbooks/eval.md +25 -0
- package/bundled-skills/skills/peak/playbooks/feature.md +21 -0
- package/bundled-skills/skills/peak/playbooks/hillclimb.md +21 -0
- package/bundled-skills/skills/peak/playbooks/investigation.md +14 -0
- package/bundled-skills/skills/peak/playbooks/multi-phase-plan.md +155 -0
- package/bundled-skills/skills/peak/playbooks/opening-a-pr.md +34 -0
- package/bundled-skills/skills/peak/playbooks/orchestrate.md +112 -0
- package/bundled-skills/skills/peak/playbooks/pause-safely.md +10 -0
- package/bundled-skills/skills/peak/playbooks/perf-issue.md +25 -0
- package/bundled-skills/skills/peak/playbooks/prototype.md +14 -0
- package/bundled-skills/skills/peak/playbooks/refactoring.md +16 -0
- package/bundled-skills/skills/peak/playbooks/runtime-forensics.md +11 -0
- package/bundled-skills/skills/peak/playbooks/session-pickup.md +11 -0
- package/bundled-skills/skills/peak/playbooks/shipping.md +12 -0
- package/bundled-skills/skills/peak/playbooks/trace-forensics.md +14 -0
- package/bundled-skills/skills/peak/playbooks/visual-parity.md +11 -0
- package/bundled-skills/skills/peak/playbooks/worktree-cleanup.md +6 -0
- package/bundled-skills/skills/peak/references/architect/SKILL.md +81 -0
- package/bundled-skills/skills/peak/references/architect/references/design-red-flags.md +57 -0
- package/bundled-skills/skills/peak/references/architect/references/rationale-template.md +35 -0
- package/bundled-skills/skills/peak/references/architect/references/runner-prompt.md +20 -0
- package/bundled-skills/skills/peak/references/arena/SKILL.md +50 -0
- package/bundled-skills/skills/peak/references/automate-me/SKILL.md +106 -0
- package/bundled-skills/skills/peak/references/benchmark-checklist/SKILL.md +41 -0
- package/bundled-skills/skills/peak/references/blast-radius/SKILL.md +52 -0
- package/bundled-skills/skills/peak/references/bro/SKILL.md +9 -0
- package/bundled-skills/skills/peak/references/control-cli/SKILL.md +111 -0
- package/bundled-skills/skills/peak/references/control-ui/SKILL.md +111 -0
- package/bundled-skills/skills/peak/references/correct/SKILL.md +34 -0
- package/bundled-skills/skills/peak/references/create-formal-verification-skill/SKILL.md +43 -0
- package/bundled-skills/skills/peak/references/create-skill/SKILL.md +14 -0
- package/bundled-skills/skills/peak/references/create-verification-skill/SKILL.md +46 -0
- package/bundled-skills/skills/peak/references/create-verification-skill/references/feature-map-example/README.md +47 -0
- package/bundled-skills/skills/peak/references/create-verification-skill/references/feature-map-example/create-note.md +39 -0
- package/bundled-skills/skills/peak/references/create-verification-skill/references/feature-map-example/search.md +45 -0
- package/bundled-skills/skills/peak/references/deslop/SKILL.md +24 -0
- package/bundled-skills/skills/peak/references/figure-it-out/SKILL.md +54 -0
- package/bundled-skills/skills/peak/references/how/SKILL.md +38 -0
- package/bundled-skills/skills/peak/references/how/references/explainer-prompt.md +55 -0
- package/bundled-skills/skills/peak/references/how/references/explorer-prompt.md +35 -0
- package/bundled-skills/skills/peak/references/in-your-own-words/SKILL.md +9 -0
- package/bundled-skills/skills/peak/references/interrogate/SKILL.md +76 -0
- package/bundled-skills/skills/peak/references/interrogate/references/code-quality-review.md +47 -0
- package/bundled-skills/skills/peak/references/interrogate/references/lead-judgment.md +39 -0
- package/bundled-skills/skills/peak/references/interrogate/references/reviewer-prompt.md +62 -0
- package/bundled-skills/skills/peak/references/interrogate/references/rubric.md +77 -0
- package/bundled-skills/skills/peak/references/ketchup/SKILL.md +45 -0
- package/bundled-skills/skills/peak/references/maintain-formal-verification-skill/SKILL.md +60 -0
- package/bundled-skills/skills/peak/references/maintain-verification-skill/SKILL.md +41 -0
- package/bundled-skills/skills/peak/references/no-comments/SKILL.md +26 -0
- package/bundled-skills/skills/peak/references/no-mistakes/SKILL.md +20 -0
- package/bundled-skills/skills/peak/references/no-mistakes/upstream/SKILL.md +394 -0
- package/bundled-skills/skills/peak/references/peak-setup/SKILL.md +18 -0
- package/bundled-skills/skills/peak/references/poteto-help/SKILL.md +16 -0
- package/bundled-skills/skills/peak/references/poteto-help/references/prompting.md +51 -0
- package/bundled-skills/skills/peak/references/poteto-help/references/recipes.md +51 -0
- package/bundled-skills/skills/peak/references/principle-attack-the-premise/SKILL.md +23 -0
- package/bundled-skills/skills/peak/references/principle-boundary-discipline/SKILL.md +36 -0
- package/bundled-skills/skills/peak/references/principle-build-the-lever/SKILL.md +25 -0
- package/bundled-skills/skills/peak/references/principle-encode-lessons-in-structure/SKILL.md +13 -0
- package/bundled-skills/skills/peak/references/principle-exhaust-the-design-space/SKILL.md +11 -0
- package/bundled-skills/skills/peak/references/principle-experience-first/SKILL.md +21 -0
- package/bundled-skills/skills/peak/references/principle-explain-the-number/SKILL.md +19 -0
- package/bundled-skills/skills/peak/references/principle-fix-root-causes/SKILL.md +23 -0
- package/bundled-skills/skills/peak/references/principle-foundational-thinking/SKILL.md +23 -0
- package/bundled-skills/skills/peak/references/principle-guard-the-context-window/SKILL.md +14 -0
- package/bundled-skills/skills/peak/references/principle-laziness-protocol/SKILL.md +12 -0
- package/bundled-skills/skills/peak/references/principle-make-operations-idempotent/SKILL.md +24 -0
- package/bundled-skills/skills/peak/references/principle-migrate-callers-then-delete-legacy-apis/SKILL.md +16 -0
- package/bundled-skills/skills/peak/references/principle-minimize-reader-load/SKILL.md +20 -0
- package/bundled-skills/skills/peak/references/principle-model-the-domain/SKILL.md +26 -0
- package/bundled-skills/skills/peak/references/principle-never-block-on-the-human/SKILL.md +17 -0
- package/bundled-skills/skills/peak/references/principle-outcome-oriented-execution/SKILL.md +23 -0
- package/bundled-skills/skills/peak/references/principle-prove-it-works/SKILL.md +24 -0
- package/bundled-skills/skills/peak/references/principle-redesign-from-first-principles/SKILL.md +18 -0
- package/bundled-skills/skills/peak/references/principle-separate-before-serializing-shared-state/SKILL.md +18 -0
- package/bundled-skills/skills/peak/references/principle-sequence-verifiable-units/SKILL.md +19 -0
- package/bundled-skills/skills/peak/references/principle-subtract-before-you-add/SKILL.md +20 -0
- package/bundled-skills/skills/peak/references/principle-test-behavior-not-implementation/SKILL.md +22 -0
- package/bundled-skills/skills/peak/references/principle-type-system-discipline/SKILL.md +15 -0
- package/bundled-skills/skills/peak/references/raga-runtime/SKILL.md +37 -0
- package/bundled-skills/skills/peak/references/raga-runtime/managed-tools.mjs +34 -0
- package/bundled-skills/skills/peak/references/raga-runtime/raga_runtime.py +44 -0
- package/bundled-skills/skills/peak/references/recall/SKILL.md +37 -0
- package/bundled-skills/skills/peak/references/reflect/SKILL.md +63 -0
- package/bundled-skills/skills/peak/references/reflect/references/divergent-reviewer.md +38 -0
- package/bundled-skills/skills/peak/references/reflect/references/judgment-reviewer.md +37 -0
- package/bundled-skills/skills/peak/references/reflect/references/synthesizer.md +56 -0
- package/bundled-skills/skills/peak/references/reflect/references/tooling-reviewer.md +48 -0
- package/bundled-skills/skills/peak/references/reviewer-triage.md +142 -0
- package/bundled-skills/skills/peak/references/sharpen/SKILL.md +18 -0
- package/bundled-skills/skills/peak/references/show-me-your-work/SKILL.md +84 -0
- package/bundled-skills/skills/peak/references/show-me-your-work/references/decision-log-template.tsv +1 -0
- package/bundled-skills/skills/peak/references/show-me-your-work/scripts/log.sh +42 -0
- package/bundled-skills/skills/peak/references/statechart/SKILL.md +38 -0
- package/bundled-skills/skills/peak/references/statechart/scripts/chart-to-tla.mjs +236 -0
- package/bundled-skills/skills/peak/references/statechart/scripts/compare-charts.mjs +104 -0
- package/bundled-skills/skills/peak/references/statechart/scripts/lib.mjs +725 -0
- package/bundled-skills/skills/peak/references/statechart/scripts/model/OutputFolder.cfg +6 -0
- package/bundled-skills/skills/peak/references/statechart/scripts/model/OutputFolder.map.mjs +106 -0
- package/bundled-skills/skills/peak/references/statechart/scripts/model/OutputFolder.tla +176 -0
- package/bundled-skills/skills/peak/references/statechart/scripts/statechart.mjs +749 -0
- package/bundled-skills/skills/peak/references/statechart/scripts/test/statechart.test.mjs +2790 -0
- package/bundled-skills/skills/peak/references/statechart/scripts/test/sync.mmd +19 -0
- package/bundled-skills/skills/peak/references/statechart/scripts/test/upload.mmd +16 -0
- package/bundled-skills/skills/peak/references/statechart/scripts/tlc-to-chart.mjs +1347 -0
- package/bundled-skills/skills/peak/references/swarm/SKILL.md +43 -0
- package/bundled-skills/skills/peak/references/tdd/SKILL.md +44 -0
- package/bundled-skills/skills/peak/references/teach/SKILL.md +23 -0
- package/bundled-skills/skills/peak/references/technical-writing/SKILL.md +108 -0
- package/bundled-skills/skills/peak/references/typescript-best-practices/SKILL.md +33 -0
- package/bundled-skills/skills/peak/references/typescript-best-practices/references/patterns.md +328 -0
- package/bundled-skills/skills/peak/references/unslop/SKILL.md +64 -0
- package/bundled-skills/skills/peak/references/verify-this/SKILL.md +76 -0
- package/bundled-skills/skills/peak/references/why/SKILL.md +100 -0
- package/bundled-skills/skills/peak/references/why/references/epistemics.md +71 -0
- package/bundled-skills/skills/peak/references/why/references/investigator-prompt.md +84 -0
- package/bundled-skills/skills/peak/references/why/references/source-playbook.md +17 -0
- package/bundled-skills/skills/peak/references/why/references/sources/code-archaeology.md +51 -0
- package/bundled-skills/skills/peak/references/why/references/sources/databricks.md +70 -0
- package/bundled-skills/skills/peak/references/why/references/sources/datadog.md +97 -0
- package/bundled-skills/skills/peak/references/why/references/sources/incident-postmortem.md +5 -0
- package/bundled-skills/skills/peak/references/why/references/sources/linear.md +48 -0
- package/bundled-skills/skills/peak/references/why/references/sources/notion.md +55 -0
- package/bundled-skills/skills/peak/references/why/references/sources/sentry.md +66 -0
- package/bundled-skills/skills/peak/references/why/references/sources/slack.md +17 -0
- package/bundled-skills/skills/peak/references/why/references/synthesizer-prompt.md +129 -0
- package/bundled-skills/skills/peak/scripts/check-plan.mjs +205 -0
- package/bundled-skills/skills/peak/scripts/check-plan.test.ts +96 -0
- package/bundled-skills/skills/peak/scripts/orch/orch.test.ts +761 -0
- package/bundled-skills/skills/peak/scripts/orch/orch.ts +588 -0
- package/bundled-skills/skills/peak/scripts/orch/store.ts +1676 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/LICENSE +22 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/esm.mjs +16 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/index.js +24 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/lib/argument.js +149 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/lib/command.js +2778 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/lib/error.js +39 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/lib/help.js +747 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/lib/option.js +379 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/lib/suggestSimilar.js +101 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/package.json +1 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/typings/esm.d.mts +3 -0
- package/bundled-skills/skills/peak/scripts/vendor/commander/typings/index.d.ts +1113 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/cli.test.ts +224 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/cli.ts +223 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/fakes.test-helper.ts +129 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/github.test.ts +436 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/github.ts +718 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/policy.test.ts +420 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/policy.ts +836 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/render.ts +169 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/tsconfig.json +13 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/types.compile.ts +93 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/types.ts +413 -0
- package/bundled-skills/skills/peak/scripts/watch-pr/watch-pr +4 -0
- package/bundled-skills/skills/peak/scripts/worktree-audit.sh +4 -0
- package/dist/bundle/chunks/anthropic-messages-BMDYDGHW.js +6 -0
- package/dist/bundle/chunks/anthropic.js +75 -0
- package/dist/bundle/chunks/azure-openai-responses-Q7EZTEHK.js +2 -0
- package/dist/bundle/chunks/bedrock-converse-stream.js +86 -0
- package/dist/bundle/chunks/chunk-3EGDWOKT.js +2 -0
- package/dist/bundle/chunks/chunk-3V45WARH.js +7 -0
- package/dist/bundle/chunks/chunk-5AGIVGSV.js +6 -0
- package/dist/bundle/chunks/chunk-6QGV3IWD.js +6 -0
- package/dist/bundle/chunks/chunk-7CBJINYJ.js +20 -0
- package/dist/bundle/chunks/chunk-7DDKXS2Q.js +2 -0
- package/dist/bundle/chunks/chunk-7ZC4UXSL.js +2 -0
- package/dist/bundle/chunks/chunk-AI2NMHE7.js +1567 -0
- package/dist/bundle/chunks/chunk-C4IJNE7U.js +2 -0
- package/dist/bundle/chunks/chunk-CF5GWZHW.js +31 -0
- package/dist/bundle/chunks/chunk-G54UBZTF.js +44 -0
- package/dist/bundle/chunks/chunk-H76KZMOI.js +2 -0
- package/dist/bundle/chunks/chunk-IOPE2TJ4.js +131 -0
- package/dist/bundle/chunks/chunk-IXDQLPKS.js +11 -0
- package/dist/bundle/chunks/chunk-J22MF7YW.js +64 -0
- package/dist/bundle/chunks/chunk-JLV25LHE.js +2 -0
- package/dist/bundle/chunks/chunk-JXWJOIH4.js +2 -0
- package/dist/bundle/chunks/chunk-KNY3PXQI.js +2 -0
- package/dist/bundle/chunks/chunk-L2ZPNLYD.js +2 -0
- package/dist/bundle/chunks/chunk-LPXNMA2W.js +2 -0
- package/dist/bundle/chunks/chunk-LVVZS2NO.js +12 -0
- package/dist/bundle/chunks/chunk-LX24DVQ5.js +2 -0
- package/dist/bundle/chunks/chunk-P2QCWBFM.js +9 -0
- package/dist/bundle/chunks/chunk-P7FPUEYA.js +2 -0
- package/dist/bundle/chunks/chunk-PGXDEOVV.js +2 -0
- package/dist/bundle/chunks/chunk-PJACZCIR.js +2 -0
- package/dist/bundle/chunks/chunk-PMRZO46Y.js +2 -0
- package/dist/bundle/chunks/chunk-PRRNXB7S.js +2 -0
- package/dist/bundle/chunks/chunk-Q4U25BSY.js +2 -0
- package/dist/bundle/chunks/chunk-RDZVAGPR.js +2 -0
- package/dist/bundle/chunks/chunk-RFPFZTK2.js +7 -0
- package/dist/bundle/chunks/chunk-RP2WKNT7.js +4 -0
- package/dist/bundle/chunks/chunk-TEPMHNKQ.js +2 -0
- package/dist/bundle/chunks/chunk-TMTOQ7H7.js +2 -0
- package/dist/bundle/chunks/chunk-UDT647VB.js +82 -0
- package/dist/bundle/chunks/chunk-UKVNB6C4.js +2 -0
- package/dist/bundle/chunks/chunk-USJZMAIR.js +2 -0
- package/dist/bundle/chunks/chunk-UTB4DTYQ.js +2 -0
- package/dist/bundle/chunks/chunk-WJGLPWUE.js +16 -0
- package/dist/bundle/chunks/chunk-YMZUNB25.js +2 -0
- package/dist/bundle/chunks/cli-4P6FVVLT.js +51 -0
- package/dist/bundle/chunks/cloudflare-workers-ai-system-one-S6CT2FXS.js +2 -0
- package/dist/bundle/chunks/codemode-worker.js +478 -0
- package/dist/bundle/chunks/easter-egg-3d-65VIC4G2.js +2 -0
- package/dist/bundle/chunks/execute-3H5WKMA3.js +505 -0
- package/dist/bundle/chunks/github-copilot.js +2 -0
- package/dist/bundle/chunks/google-generative-ai-35NZKG6S.js +2 -0
- package/dist/bundle/chunks/google-vertex-P33AHYYX.js +2 -0
- package/dist/bundle/chunks/https-proxy-agent-LVOO5TPL.js +13 -0
- package/dist/bundle/chunks/image-resize-worker.js +2 -0
- package/dist/bundle/chunks/jiti-loader-GL4HJFAD.js +21 -0
- package/dist/bundle/chunks/jiti-static-loader-2RCDI6B4.js +2 -0
- package/dist/bundle/chunks/kimi-coding.js +2 -0
- package/dist/bundle/chunks/lib-4AVRLBHM.js +9 -0
- package/dist/bundle/chunks/llama-cpp-classify-U4EH6TAM.js +22 -0
- package/dist/bundle/chunks/meta.js +2 -0
- package/dist/bundle/chunks/mistral-conversations-J62DPS2P.js +5 -0
- package/dist/bundle/chunks/multipart-parser-FMGQ7342.js +3 -0
- package/dist/bundle/chunks/node-AUOGOBCN.js +2 -0
- package/dist/bundle/chunks/node-KCMANYC2.js +16 -0
- package/dist/bundle/chunks/openai-chatgpt.js +75 -0
- package/dist/bundle/chunks/openai-codex-responses-4HXATL2M.js +10 -0
- package/dist/bundle/chunks/openai-codex.js +75 -0
- package/dist/bundle/chunks/openai-completions-75YYY35N.js +7 -0
- package/dist/bundle/chunks/openai-decisions-HEBEVGA2.js +5 -0
- package/dist/bundle/chunks/openai-responses-UWNAKTBV.js +4 -0
- package/dist/bundle/chunks/openrouter-images-HVOPXKHS.js +2 -0
- package/dist/bundle/chunks/openrouter.js +75 -0
- package/dist/bundle/chunks/pi-messages-DG7CALOV.js +8 -0
- package/dist/bundle/chunks/radius.js +75 -0
- package/dist/bundle/chunks/runtime-435R6IKY.js +2 -0
- package/dist/bundle/chunks/src-QKGKDFSU.js +4 -0
- package/dist/bundle/chunks/typesafe-system-one-24HEGHNN.js +2 -0
- package/dist/bundle/chunks/virtual-modules-U3JBUDP7.js +2 -0
- package/dist/bundle/chunks/xai.js +2 -0
- package/dist/bundle/cli-runtime.js +3 -0
- package/dist/bundle/cli.js +5 -0
- package/dist/bundle/index.js +2 -0
- package/dist/bundle/raga-runtime.js +3 -0
- package/dist/bundle/raga.js +5 -0
- package/dist/bundle/rpc-entry.js +3 -0
- package/dist/core/export-html/template.css +1085 -0
- package/dist/core/export-html/template.html +56 -0
- package/dist/core/export-html/template.js +2044 -0
- package/dist/core/export-html/vendor/highlight.min.js +1213 -0
- package/dist/core/export-html/vendor/marked-cjk-friendly.min.js +6 -0
- package/dist/core/export-html/vendor/marked.min.js +79 -0
- package/dist/modes/interactive/assets/clankolas.png +0 -0
- package/dist/modes/interactive/theme/dark.json +78 -0
- package/dist/modes/interactive/theme/light.json +78 -0
- package/docs/cli-integration.md +106 -0
- package/docs/cli.md +337 -0
- package/docs/codemode.md +230 -0
- package/docs/compaction.md +463 -0
- package/docs/configuration.md +62 -0
- package/docs/containerization.md +183 -0
- package/docs/custom-provider.md +227 -0
- package/docs/docs.json +220 -0
- package/docs/environment-variables.md +101 -0
- package/docs/extensions.md +400 -0
- package/docs/how-pi-works.md +49 -0
- package/docs/images/doom-extension.png +0 -0
- package/docs/images/exy.png +0 -0
- package/docs/images/interactive-mode.png +0 -0
- package/docs/images/tree-view.png +0 -0
- package/docs/index.md +39 -0
- package/docs/json.md +226 -0
- package/docs/keybindings.md +195 -0
- package/docs/llama-cpp.md +121 -0
- package/docs/mcp.md +272 -0
- package/docs/message-types.md +279 -0
- package/docs/models-configuration.md +196 -0
- package/docs/models.md +225 -0
- package/docs/nvidia-rtx-llama-cpp.md +96 -0
- package/docs/packages.md +129 -0
- package/docs/prompt-templates.md +59 -0
- package/docs/providers.md +247 -0
- package/docs/quickstart.md +136 -0
- package/docs/rpc-commands.md +860 -0
- package/docs/rpc-extension-ui.md +200 -0
- package/docs/rpc.md +193 -0
- package/docs/sdk.md +148 -0
- package/docs/security.md +99 -0
- package/docs/session-format.md +293 -0
- package/docs/sessions.md +66 -0
- package/docs/settings.md +184 -0
- package/docs/shell-aliases.md +93 -0
- package/docs/skills.md +93 -0
- package/docs/slash-commands.md +61 -0
- package/docs/terminal-setup.md +233 -0
- package/docs/termux.md +117 -0
- package/docs/themes.md +138 -0
- package/docs/tmux.md +55 -0
- package/docs/tui.md +195 -0
- package/docs/usage.md +94 -0
- package/docs/virtual-models.md +114 -0
- package/docs/windows.md +81 -0
- package/examples/README.md +36 -0
- package/examples/extensions/README.md +214 -0
- package/examples/extensions/auto-commit-on-exit.ts +49 -0
- package/examples/extensions/bash-spawn-hook.ts +30 -0
- package/examples/extensions/bookmark.ts +50 -0
- package/examples/extensions/border-status-editor.ts +150 -0
- package/examples/extensions/built-in-tool-renderer.ts +225 -0
- package/examples/extensions/claude-rules.ts +86 -0
- package/examples/extensions/commands.ts +72 -0
- package/examples/extensions/confirm-destructive.ts +59 -0
- package/examples/extensions/custom-compaction.ts +117 -0
- package/examples/extensions/custom-footer.ts +64 -0
- package/examples/extensions/custom-header.ts +73 -0
- package/examples/extensions/custom-provider-anthropic/index.ts +617 -0
- package/examples/extensions/custom-provider-anthropic/package-lock.json +24 -0
- package/examples/extensions/custom-provider-anthropic/package.json +19 -0
- package/examples/extensions/custom-provider-gitlab-duo/index.ts +405 -0
- package/examples/extensions/custom-provider-gitlab-duo/package.json +16 -0
- package/examples/extensions/custom-provider-gitlab-duo/test.ts +82 -0
- package/examples/extensions/debug-provider.ts +90 -0
- package/examples/extensions/dirty-repo-guard.ts +56 -0
- package/examples/extensions/doom-overlay/README.md +46 -0
- package/examples/extensions/doom-overlay/doom/build/doom.js +21 -0
- package/examples/extensions/doom-overlay/doom/build/doom.wasm +0 -0
- package/examples/extensions/doom-overlay/doom/build.sh +152 -0
- package/examples/extensions/doom-overlay/doom/doomgeneric_pi.c +72 -0
- package/examples/extensions/doom-overlay/doom-component.ts +132 -0
- package/examples/extensions/doom-overlay/doom-engine.ts +173 -0
- package/examples/extensions/doom-overlay/doom-keys.ts +104 -0
- package/examples/extensions/doom-overlay/index.ts +74 -0
- package/examples/extensions/doom-overlay/wad-finder.ts +55 -0
- package/examples/extensions/dynamic-resources/SKILL.md +8 -0
- package/examples/extensions/dynamic-resources/dynamic.json +81 -0
- package/examples/extensions/dynamic-resources/dynamic.md +5 -0
- package/examples/extensions/dynamic-resources/index.ts +15 -0
- package/examples/extensions/dynamic-tools.ts +74 -0
- package/examples/extensions/entry-renderer.ts +41 -0
- package/examples/extensions/event-bus.ts +43 -0
- package/examples/extensions/file-trigger.ts +41 -0
- package/examples/extensions/git-checkpoint.ts +53 -0
- package/examples/extensions/git-merge-and-resolve.ts +115 -0
- package/examples/extensions/github-issue-autocomplete.ts +185 -0
- package/examples/extensions/gondolin/index.ts +531 -0
- package/examples/extensions/gondolin/package-lock.json +175 -0
- package/examples/extensions/gondolin/package.json +19 -0
- package/examples/extensions/handoff.ts +190 -0
- package/examples/extensions/hello.ts +26 -0
- package/examples/extensions/hidden-thinking-label.ts +53 -0
- package/examples/extensions/inline-bash.ts +94 -0
- package/examples/extensions/input-transform-streaming.ts +39 -0
- package/examples/extensions/input-transform.ts +43 -0
- package/examples/extensions/interactive-shell.ts +196 -0
- package/examples/extensions/jev-router.ts +113 -0
- package/examples/extensions/mac-system-theme.ts +47 -0
- package/examples/extensions/message-renderer.ts +59 -0
- package/examples/extensions/minimal-mode.ts +353 -0
- package/examples/extensions/modal-editor.ts +85 -0
- package/examples/extensions/model-status.ts +31 -0
- package/examples/extensions/notify.ts +57 -0
- package/examples/extensions/overlay-qa-tests.ts +1450 -0
- package/examples/extensions/overlay-test.ts +153 -0
- package/examples/extensions/permission-gate.ts +34 -0
- package/examples/extensions/pirate.ts +47 -0
- package/examples/extensions/plan-mode/README.md +66 -0
- package/examples/extensions/plan-mode/index.ts +394 -0
- package/examples/extensions/plan-mode/utils.ts +168 -0
- package/examples/extensions/preset.ts +436 -0
- package/examples/extensions/project-trust.ts +64 -0
- package/examples/extensions/prompt-customizer.ts +49 -0
- package/examples/extensions/protected-paths.ts +30 -0
- package/examples/extensions/provider-payload.ts +18 -0
- package/examples/extensions/qna.ts +118 -0
- package/examples/extensions/question.ts +286 -0
- package/examples/extensions/questionnaire.ts +448 -0
- package/examples/extensions/rainbow-editor.ts +88 -0
- package/examples/extensions/reload-runtime.ts +37 -0
- package/examples/extensions/rpc-demo.ts +118 -0
- package/examples/extensions/sandbox/index.ts +326 -0
- package/examples/extensions/sandbox/package-lock.json +92 -0
- package/examples/extensions/sandbox/package.json +19 -0
- package/examples/extensions/send-user-message.ts +97 -0
- package/examples/extensions/session-name.ts +27 -0
- package/examples/extensions/shutdown-command.ts +63 -0
- package/examples/extensions/snake.ts +343 -0
- package/examples/extensions/space-invaders.ts +560 -0
- package/examples/extensions/ssh.ts +220 -0
- package/examples/extensions/status-line.ts +32 -0
- package/examples/extensions/structured-output.ts +65 -0
- package/examples/extensions/subagent/README.md +177 -0
- package/examples/extensions/subagent/agents/planner.md +37 -0
- package/examples/extensions/subagent/agents/reviewer.md +35 -0
- package/examples/extensions/subagent/agents/scout.md +50 -0
- package/examples/extensions/subagent/agents/worker.md +24 -0
- package/examples/extensions/subagent/agents.ts +157 -0
- package/examples/extensions/subagent/index.ts +1038 -0
- package/examples/extensions/subagent/prompts/implement-and-review.md +10 -0
- package/examples/extensions/subagent/prompts/implement.md +10 -0
- package/examples/extensions/subagent/prompts/scout-and-plan.md +9 -0
- package/examples/extensions/summarize.ts +199 -0
- package/examples/extensions/system-prompt-header.ts +17 -0
- package/examples/extensions/tic-tac-toe.ts +1008 -0
- package/examples/extensions/timed-confirm.ts +70 -0
- package/examples/extensions/titlebar-spinner.ts +58 -0
- package/examples/extensions/todo.ts +297 -0
- package/examples/extensions/tool-override.ts +144 -0
- package/examples/extensions/tools.ts +146 -0
- package/examples/extensions/trigger-compact.ts +50 -0
- package/examples/extensions/truncated-tool.ts +195 -0
- package/examples/extensions/widget-placement.ts +9 -0
- package/examples/extensions/with-deps/index.ts +32 -0
- package/examples/extensions/with-deps/package-lock.json +31 -0
- package/examples/extensions/with-deps/package.json +22 -0
- package/examples/extensions/working-indicator.ts +123 -0
- package/examples/extensions/working-message-test.ts +25 -0
- package/examples/rpc-client.ts +35 -0
- package/examples/rpc-extension-ui.ts +661 -0
- package/examples/sdk/01-minimal.ts +26 -0
- package/examples/sdk/02-custom-model.ts +49 -0
- package/examples/sdk/03-custom-prompt.ts +75 -0
- package/examples/sdk/04-skills.ts +55 -0
- package/examples/sdk/05-tools.ts +48 -0
- package/examples/sdk/06-extensions.ts +99 -0
- package/examples/sdk/07-context-files.ts +47 -0
- package/examples/sdk/08-prompt-templates.ts +51 -0
- package/examples/sdk/09-api-keys-and-oauth.ts +34 -0
- package/examples/sdk/10-settings.ts +53 -0
- package/examples/sdk/11-sessions.ts +52 -0
- package/examples/sdk/12-full-control.ts +74 -0
- package/examples/sdk/13-session-runtime.ts +67 -0
- package/examples/sdk/14-codemode-mcp.ts +61 -0
- package/examples/sdk/README.md +141 -0
- package/package.json +21 -5
- package/python/raga_rlm/__init__.py +336 -0
- package/python/raga_rlm/repl.py +920 -0
- package/schemas/keybindings.schema.json +393 -0
- package/schemas/models.schema.json +1211 -0
- package/schemas/settings.schema.json +815 -0
- package/schemas/theme.schema.json +365 -0
|
@@ -0,0 +1,166 @@
|
|
|
1
|
+
# Verify the result and open a PR
|
|
2
|
+
|
|
3
|
+
"It compiles" is not evidence. The [Prove It Works principle](../../skills/peak/references/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, vetting a measured number, generating a verification skill for your app, formally verifying a property tests rarely reach, opening the PR, and driving it to merged.
|
|
4
|
+
|
|
5
|
+
Verification is the slowest step in most agent work, because it's the step that usually waits on a human. Make the agent able to do it, and you stop being the bottleneck. Skip it, and running more agents only gets you more unchecked work to review.
|
|
6
|
+
|
|
7
|
+

|
|
8
|
+
|
|
9
|
+
## State the finish condition up front
|
|
10
|
+
|
|
11
|
+
Put what done means in the first prompt, in whatever words fit:
|
|
12
|
+
|
|
13
|
+
```text
|
|
14
|
+
/peak add json output to this command. text output stays byte-identical, the json parses, both run against the sample project. show me the evidence.
|
|
15
|
+
```
|
|
16
|
+
|
|
17
|
+
Now the agent has three checks it can run, not a mood to satisfy. When the reply comes back, it should carry the exact commands and outputs. If a check couldn't run, a good reply says "inconclusive". A confident reply without evidence is a warning sign.
|
|
18
|
+
|
|
19
|
+
Match the check to the change:
|
|
20
|
+
|
|
21
|
+
- A CLI change runs the real command.
|
|
22
|
+
- A UI change walks the changed flow in the running app. When it must match a reference pixel for pixel, the [Visual parity playbook](../../skills/peak/playbooks/visual-parity.md) diffs screenshots against a frozen baseline instead of judging by eye.
|
|
23
|
+
- A parser or migration replays a saved input.
|
|
24
|
+
- A perf change compares before and after profiles.
|
|
25
|
+
- A storage change reads back the written value.
|
|
26
|
+
|
|
27
|
+
Ask for the proof as an artifact you can inspect yourself: the failing test and then the passing one, a before-and-after video, the trace, the screenshot. If the fix already merged, ask for the same check again on main. An artifact beats a plausible explanation, because you can challenge it without replaying the whole run.
|
|
28
|
+
|
|
29
|
+
For a small diff you don't fully trust, [`/blast-radius`](../../skills/peak/references/blast-radius/SKILL.md) finds what it could break elsewhere. It finds the one fact that makes the change safe and proves that fact by running code, not by arguing for it.
|
|
30
|
+
|
|
31
|
+
## Vet a measured number with `/benchmark-checklist`
|
|
32
|
+
|
|
33
|
+
A before-and-after number is the easiest evidence to get wrong by accident. A warm cache, a debug build on one side, or work that never ran inside the timed region can each produce a convincing speedup. Before you report or act on a number, type:
|
|
34
|
+
|
|
35
|
+
```text
|
|
36
|
+
/benchmark-checklist vet the export speedup before it goes in the pr
|
|
37
|
+
```
|
|
38
|
+
|
|
39
|
+
[`/benchmark-checklist`](../../skills/peak/references/benchmark-checklist/SKILL.md) asks seven questions and wants evidence from a run for each:
|
|
40
|
+
|
|
41
|
+
1. What limits the number, and why isn't it double?
|
|
42
|
+
2. Did every side run tuned the way production runs?
|
|
43
|
+
3. Does the result break a physical limit, like disk bandwidth or core count?
|
|
44
|
+
4. Did anything error or return wrong output?
|
|
45
|
+
5. Does it reproduce over alternating runs, with a median and a range?
|
|
46
|
+
6. Does it matter end to end, on the path a user waits on?
|
|
47
|
+
7. Did the work actually happen inside the timed region?
|
|
48
|
+
|
|
49
|
+
The verdict comes back as faster, slower, no measurable difference, or inconclusive, with the run count, range, and limiter. It says inconclusive when it can't name the limiter or a side ran untuned. `/peak` already runs the checklist inside the Perf issue and Hillclimb playbooks, so you type it yourself when you measured something outside them, or when someone else's number looks too good. It's the working form of the [Explain the Number principle](../../skills/peak/references/principle-explain-the-number/SKILL.md).
|
|
50
|
+
|
|
51
|
+
## Create a project verification skill
|
|
52
|
+
|
|
53
|
+
The UI bullet above hides a real requirement. The agent needs a scripted way to drive your app. If your project has one, great. If not, run:
|
|
54
|
+
|
|
55
|
+
```text
|
|
56
|
+
/create-verification-skill
|
|
57
|
+
```
|
|
58
|
+
|
|
59
|
+
[`/create-verification-skill`](../../skills/peak/references/create-verification-skill/SKILL.md) interviews the repository, not you. It works out what a user touches, how the app launches locally, what can drive it (an existing harness first, otherwise browser and CDP, a PTY, or plain HTTP), what evidence proves behavior, and whether two instances can run side by side. It asks you only what the code can't answer.
|
|
60
|
+
|
|
61
|
+
It writes `skills/verify-<app>/`, agent-facing instructions with exact Launch, Doctor, Drive, Evidence, and Cleanup sections, a Helpers section for any script it ships, plus a feature map under `features/` that indexes what the app does and what result proves each feature works. The skill ships a [worked feature-map example](../../skills/peak/references/create-verification-skill/references/feature-map-example/) with a README index and one file per feature using the four required H2s. Before handing it over, the generator proves the skill once end to end: launch, doctor check, drive one feature, capture evidence, clean up, then confirm the evidence survived the cleanup. If that proof fails, don't use the output.
|
|
62
|
+
|
|
63
|
+
From then on, "verify it in the app" is a step any agent can execute, in this repo, with no setup conversation. Name it in the prompt when you want the proof in a specific form:
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
/peak build the bulk-archive action. use /verify-<app> to verify your changes and show me a video and screenshots as proof.
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
```text
|
|
70
|
+
/peak repro this with /verify-<app>. if it repros on main, fix it and show me a video as proof.
|
|
71
|
+
```
|
|
72
|
+
|
|
73
|
+
Once the verify skill works, a [`/swarm`](../../skills/peak/references/swarm/SKILL.md) can split a full pass by feature-map entry and aggregate the results. A swarm of verifiers also confirms a perf win over a big enough sample, or fuzzes the app for regressions before a PR ships.
|
|
74
|
+
|
|
75
|
+
Treat the verification skill as infrastructure, not a one-off. Commit it, so every person and every agent on the team drives the app the same way. Then [build the lever](../../skills/peak/references/principle-build-the-lever/SKILL.md). When agents keep writing throwaway scripts to click through the app, ask for a small control CLI that the skill calls instead. Agents spend fewer tokens, and every run becomes repeatable. A CLI that agents use well has these traits:
|
|
76
|
+
|
|
77
|
+
- A few composable commands, each doing real work, rather than many thin ones.
|
|
78
|
+
- A `--dry-run` option on anything destructive.
|
|
79
|
+
- Subcommands that reveal features gradually instead of all at once.
|
|
80
|
+
- Error messages that say what to do instead.
|
|
81
|
+
- Rich `--help` text.
|
|
82
|
+
- Machine-readable output, such as JSON.
|
|
83
|
+
|
|
84
|
+
While you're there, make the dev setup repeatable too: seeded data, test users, and one command that brings the environment up the same way every time.
|
|
85
|
+
|
|
86
|
+
## Keep the verification skill honest
|
|
87
|
+
|
|
88
|
+
Apps change, and feature maps go out of date. Run this at least once a day, ideally from a scheduled automation so nobody has to remember:
|
|
89
|
+
|
|
90
|
+
```text
|
|
91
|
+
/maintain-verification-skill
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
[`/maintain-verification-skill`](../../skills/peak/references/maintain-verification-skill/SKILL.md) audits the generated skill: one read-only source reader per feature in parallel, then one live pass that drives every mapped feature. It ends in exactly one of three outcomes. `clean` means full coverage and nothing to ship. `changed` means one PR of proven corrections, confined to the verification skill's own directory. `blocked` names the blocker. It never edits product code. If the live pass catches a product regression, it reports the regression instead of hiding it with a doc edit.
|
|
95
|
+
|
|
96
|
+
## Prove a property with a formal verification skill
|
|
97
|
+
|
|
98
|
+
A verification skill proves the paths you drive. Some bugs live on paths nobody drives: two retries that overlap, a lock that expires mid-write, a state change that arrives out of order. Tests rarely reach those cases. For code where such a bug is costly, run:
|
|
99
|
+
|
|
100
|
+
```text
|
|
101
|
+
/create-formal-verification-skill
|
|
102
|
+
```
|
|
103
|
+
|
|
104
|
+
[`/create-formal-verification-skill`](../../skills/peak/references/create-formal-verification-skill/SKILL.md) picks the target from the code: a promise the code makes, where a break harms users and tests rarely reach the case that breaks it. It picks the strongest target, not the easiest to verify. Name an area or a bug to start there instead:
|
|
105
|
+
|
|
106
|
+
```text
|
|
107
|
+
/create-formal-verification-skill the job lease and retry logic. a job must never run twice at once.
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
The question picks the tool. Whether events can happen in a bad order suits a model checker over a small model of the design, and TLA+ is the default for that in any language. Whether the code behaves for every input suits a verifier that runs on the code. If no verifier runs on your language, the agent says so and tests the real code with generated inputs, not a hand-written model of the function. A property that must hold at every size can need a proof. The agent tells you which tool it chose and why.
|
|
111
|
+
|
|
112
|
+
It verifies one property and shows that property failing on a broken variant of the code, because a check you've never seen fail proves nothing. When the current code already breaks the property, you get the counterexample as a short sequence of steps in your code's terms. The property stays as stated, so the finding stays a finding. Product code doesn't change unless you ask.
|
|
113
|
+
|
|
114
|
+
It writes a project-local skill that tells the next agent whether a change touches the verified code, how to run the check with one command, and how to tell a real bug from a modeling error. Before handing it over, the generator follows that skill once on a scratch change that breaks the property, and the check must catch it. The handoff says what was verified, with which tool and bounds, what the check found, and what it doesn't cover. A pass covers the model or the bound, not the whole system.
|
|
115
|
+
|
|
116
|
+
The skill also records which code each check covers and the commit where the check last matched it. Merges and refactors that skip the skill can leave the check passing on a description of code that's gone. After them, run [`/maintain-formal-verification-skill`](../../skills/peak/references/maintain-formal-verification-skill/SKILL.md). It updates the verification from the code, reruns it, shows that each updated check can still fail, and tells you whether each failure is drift in the verification or a bug in the code.
|
|
117
|
+
|
|
118
|
+
## Show the behavior as a statechart
|
|
119
|
+
|
|
120
|
+
A counterexample in model terms convinces you. The PM or designer who owns the behavior needs to see it in their terms. Run:
|
|
121
|
+
|
|
122
|
+
```text
|
|
123
|
+
/statechart what the user sees when they edit a note offline
|
|
124
|
+
```
|
|
125
|
+
|
|
126
|
+
[`/statechart`](../../skills/peak/references/statechart/SKILL.md) draws a Mermaid statechart of what the user sees, generated from a TLA+ model, so the picture and the checked model can't drift apart. The reader's rules ("you never see Synced while you're offline") become invariants. Each bug TLC finds is a numbered path in the reader's words, and each state is marked works, still wrong, or fixed by your open PR. Before the hand-off, the agent reproduces each bug path in the real code, so a modeling error doesn't reach the reader as a bug.
|
|
127
|
+
|
|
128
|
+
It also runs the other way. Sketch the behavior as a chart, agree on it with the reader, and the skill writes a TLA+ skeleton from it. TLC checks the agreed chart's rules before any code exists. As guards from the real code go into the spec, each place the code departs from the chart shows up as a difference for the reader to decide.
|
|
129
|
+
|
|
130
|
+
When the code already has a TLA+ spec, the skill can audit the code against it. The agent models what the code does and checks that model next to the unchanged spec. The chart marks the steps where the two differ, and each rule either one breaks is a numbered path.
|
|
131
|
+
|
|
132
|
+
## Open the PR
|
|
133
|
+
|
|
134
|
+
```text
|
|
135
|
+
/peak open the pr. small ordered commits, evidence in the description.
|
|
136
|
+
```
|
|
137
|
+
|
|
138
|
+
The [Opening a PR playbook](../../skills/peak/playbooks/opening-a-pr.md) works from a worktree, rebases the work into small ordered commits, cleans the diff, unslops the prose, and returns the PR link. Five narrow PRs beat one fat one, and stacked follow-ups beat a growing branch.
|
|
139
|
+
|
|
140
|
+
## Drive the PR to merge-ready with Babysit
|
|
141
|
+
|
|
142
|
+
An open PR starts collecting blockers immediately. Checks fail, reviewers comment, trunk moves. Hand that churn to the [Babysit playbook](../../skills/peak/playbooks/babysit.md):
|
|
143
|
+
|
|
144
|
+
```text
|
|
145
|
+
/peak babysit this pr. get it green.
|
|
146
|
+
```
|
|
147
|
+
|
|
148
|
+
Babysit watches the PR, with a bundled watcher on GitHub or the Origin CLI when it's available, and takes blockers in order: conflicts, then review threads, then CI. Every known fix batches into one push, so the checks restart once instead of after every fix. The comment triage is skeptical, because humans and bots file real catches and noise in the same list. A real finding gets a fix, and noise gets dismissed with the disproof posted on the thread. When all you want is status, ask smaller and Babysit answers without starting the loop:
|
|
149
|
+
|
|
150
|
+
```text
|
|
151
|
+
/peak check on pr 123. anything outstanding?
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
Babysit stops at merge-ready. It never merges, even with everything green, because merging is a different decision.
|
|
155
|
+
|
|
156
|
+
## Land the stack with Shipping
|
|
157
|
+
|
|
158
|
+
Green is not the same as safe. When you're ready to land, say so:
|
|
159
|
+
|
|
160
|
+
```text
|
|
161
|
+
/peak land the stack.
|
|
162
|
+
```
|
|
163
|
+
|
|
164
|
+
The [Shipping playbook](../../skills/peak/playbooks/shipping.md) verifies each PR independently before it arms anything. One fresh agent per PR proves the behavior live, and the agent that judges a change is never the one that wrote it. Then Shipping lands only the contiguous verified run from the bottom, one PR at a time through GitHub by default or Origin when its CLI is available, and reports the first PR that breaks the chain. A verified PR sitting above an unverified one waits, because merging it would pull the gap in underneath.
|
|
165
|
+
|
|
166
|
+
Next: [Run work while you sleep](./07-overnight.md).
|
|
@@ -0,0 +1,118 @@
|
|
|
1
|
+
# Run work while you sleep
|
|
2
|
+
|
|
3
|
+
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 or isolated raga child, and a decision log you audit in the morning.
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## Earn the trust before the loop
|
|
8
|
+
|
|
9
|
+
A loop you don't trust just produces unchecked work faster, and the mess compounds with every iteration. Before you leave one running, check that it has earned it:
|
|
10
|
+
|
|
11
|
+
- You've done the task once by hand, or watched an agent do it, so you know what good looks like.
|
|
12
|
+
- The agent has the tools and signals you'd use yourself: the verification skill, the profiler, the logs.
|
|
13
|
+
- Every stage proves its work and can stop the line when the work misses the bar.
|
|
14
|
+
- You've read a few transcripts and turned the repeated failures into tools, skills, or checks.
|
|
15
|
+
|
|
16
|
+
Make the loop autonomous only after all four hold. Until then, run it while you watch.
|
|
17
|
+
|
|
18
|
+
## The overnight contract
|
|
19
|
+
|
|
20
|
+
A good handoff has the goal, the finish condition, permissions, and an escape hatch. It doesn't need to be long:
|
|
21
|
+
|
|
22
|
+
```text
|
|
23
|
+
/peak im going to bed. migrate every caller to the new parser in a fresh worktree off <base>.
|
|
24
|
+
done means zero old callers, all parser fixtures pass, old api deleted.
|
|
25
|
+
keep a decision log. don't ask me before committing.
|
|
26
|
+
continue the in-process loop until done. if you're truly stuck after a few hours, stop and write up why.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
Walk through what each line buys you:
|
|
30
|
+
|
|
31
|
+
- "im going to bed" is a session override. The agent stops asking and keeps going.
|
|
32
|
+
- "done means..." turns the goal into checks every iteration can run.
|
|
33
|
+
- "fresh worktree off `<base>`" keeps the run from colliding with anything else you have open.
|
|
34
|
+
- "don't ask me before committing" pre-answers the permission the agent would otherwise block on.
|
|
35
|
+
- the in-process bounded loop is the bundled wake mechanism, not a pstack skill. The [Autonomous run playbook](../../skills/peak/playbooks/autonomous-run.md) uses it to re-check the finish condition on events or a heartbeat.
|
|
36
|
+
- The escape hatch lets it stop at a genuine dead end and write up why, which beats eight hours of creative goal reinterpretation.
|
|
37
|
+
|
|
38
|
+
Because you'll review this work after stepping away, `/peak` routes it through [`/figure-it-out`](../../skills/peak/references/figure-it-out/SKILL.md), which designs the run's phases before any code and wires in the decision log.
|
|
39
|
+
|
|
40
|
+
To stop a run on purpose, tell the agent to pause, or that you're about to go offline or restart raga. The [Pause safely playbook](../../skills/peak/playbooks/pause-safely.md) finishes or backs out of the current step, commits a work-in-progress checkpoint, and writes a resume note. A fresh chat picks the work up from that note through the Session pickup playbook. Saying "keep going" never triggers a pause.
|
|
41
|
+
|
|
42
|
+
## What the loop does all night
|
|
43
|
+
|
|
44
|
+
```mermaid
|
|
45
|
+
flowchart TD
|
|
46
|
+
A[Check the finish condition] --> B[Make the smallest justified change]
|
|
47
|
+
B --> C[Verify against the real artifact]
|
|
48
|
+
C --> D{Progress?}
|
|
49
|
+
D -->|Yes| E[Commit]
|
|
50
|
+
D -->|No| F[Discard]
|
|
51
|
+
E --> G[Log one decision row]
|
|
52
|
+
F --> G
|
|
53
|
+
G --> A
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
One change, one check, one log row, every iteration. Changes that didn't help get discarded, not left to ride. A plateau means pivot, not stop, and the finish condition never quietly relaxes to declare victory.
|
|
57
|
+
|
|
58
|
+
## The morning audit
|
|
59
|
+
|
|
60
|
+
[`/show-me-your-work`](../../skills/peak/references/show-me-your-work/SKILL.md) is what makes the run reviewable. Each row records the time, phase, decision, reason, an evidence pointer, and the result, in a TSV at `decisions.tsv` (or `.audit/<task-slug>.tsv` when several runs share a directory). It stays local by default. Commit it when the work is ambitious enough that a reviewer needs the trail to trust the result.
|
|
61
|
+
|
|
62
|
+
When you're back, ask for the run in review form:
|
|
63
|
+
|
|
64
|
+
```text
|
|
65
|
+
/show-me-your-work catch me up on what you did last night
|
|
66
|
+
```
|
|
67
|
+
|
|
68
|
+
Before the skill hands back its summary, it spawns a reviewer on a different model family to read the trail and the transcript, and the reply ends with an Attention section listing what deserves your scrutiny. Read that section first, then the log rows it points at. You're auditing decisions, not re-reading the whole night.
|
|
69
|
+
|
|
70
|
+
For a quick status instead of an audit, run [`/ketchup`](../../skills/peak/references/ketchup/SKILL.md) in the chat that ran the work. It reads only, and tells you in plain words what changed since your last message, with the screenshots and small diagrams the work produced. Then it lists each call waiting on you, such as a merge, an approval, or a choice between options, with its pick, the evidence, and the risk, so you can decide from the reply alone.
|
|
71
|
+
|
|
72
|
+
## When the night holds a queue, not a task
|
|
73
|
+
|
|
74
|
+
The contract above drives one task to one finish condition. Some nights hold more, a queue of independent changes or a whole program. Three playbooks scale the same trust up.
|
|
75
|
+
|
|
76
|
+
[Autopilot-full](../../skills/peak/playbooks/autopilot-full.md) runs a queue of independent PRs to merged. Each PR gets one owner agent that carries it from build through merge, and no owner merges on its own verdict. A swarm of fresh verifiers checks the owner's code-ready head. A later rebase or minor fix gets one fresh verifier, and only new behavior or a large new diff calls the full swarm again. Only a clean verdict on the patch that merges authorizes the merge:
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
/peak full autopilot on this queue. each item is independent. i want them merged by morning.
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
[Autopilot-stack](../../skills/peak/playbooks/autopilot-stack.md) runs the same owner loop but ships nothing. You wake up to one linear base-branch stack with a verifier's verdict on every link, and you review and land it yourself. Pick it over Autopilot-full when the changes are coupled, or when you want your own eyes on the work before anything merges:
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
/peak autopilot these five changes but stack them, don't ship. i'll land the stack in the morning.
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
[Orchestrate](../../skills/peak/playbooks/orchestrate.md) is for a program that outlives any single agent: multi-day, many stacked PRs, fleets of subagents under one standing coordinator chat. The coordinator authors briefs, collects what its subagents finish, keeps the lowest unmerged PR green, and never writes code itself. It's deliberately heavy machinery. If one agent could finish the work in a session, the playbook itself routes you back to the overnight contract above:
|
|
89
|
+
|
|
90
|
+
```text
|
|
91
|
+
/peak orchestrate the store migration. own it until every package is converted and merged. i'll check in twice a day.
|
|
92
|
+
```
|
|
93
|
+
|
|
94
|
+
## Run many projects in parallel
|
|
95
|
+
|
|
96
|
+
A few habits help:
|
|
97
|
+
|
|
98
|
+
- Give each body of work its own Project, such as a feature, a migration, a perf push, or a tech-debt cleanup. Several can run side by side.
|
|
99
|
+
- Drag related chats into the Project, finished ones included. They become context for every agent in it.
|
|
100
|
+
- Give each PR a verification swarm before it merges, and let Autopilot-stack or Autopilot-full carry the queue.
|
|
101
|
+
- Ask the coordinator for a plan backed by data, and have it answer open questions with prototypes before it asks you.
|
|
102
|
+
|
|
103
|
+
One prompt can carry a whole Project, from research through execution:
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
/peak refactor this repo so its architecture is more agent friendly. use /correct and /architect on past commits and review comments to find the mistakes agents make most here. use /recall for context from past chats. answer open questions with prototypes instead of asking me. come back with a plan backed by real data. once i approve it, run it with autopilot-stack or autopilot-full, and ask me which.
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
## Let loops start themselves
|
|
110
|
+
|
|
111
|
+
Every loop above still waits for you to start it. A scheduled or event-driven automation removes that step. Software maintenance splits into stages that suit this well: triage a report, reproduce it, fix it, verify the fix. Two rules keep such a line trustworthy:
|
|
112
|
+
|
|
113
|
+
- Every stage can stop the line. Triage can decide the report is expected behavior, repro can fail to reproduce it, and the fixer can judge the change too risky. Each of those outcomes is useful, because it keeps bad work from reaching the next stage, where it costs more to undo.
|
|
114
|
+
- Every stage hands over evidence. Repro attaches screenshots and video of the broken state, and the fix attaches before-and-after proof. A human can then check that the agent fixed the right thing before reading a line of code.
|
|
115
|
+
|
|
116
|
+
**Pitfall:** a duration is not a finish condition. "work on this for 4 hours" gives the agent nothing to check, and you'll wake up to four hours of motion instead of a result. Give the in-process bounded loop a predicate that can pass or fail.
|
|
117
|
+
|
|
118
|
+
Next: [Steer with principle names](./08-principles.md).
|
|
@@ -0,0 +1,72 @@
|
|
|
1
|
+
# Steer with principle names
|
|
2
|
+
|
|
3
|
+
peak indexes 24 principles as references. `/peak` reads their index at the start of every multi-step task, applies the ones the task triggers, and names each applied principle in its reply along with the decision it changed.
|
|
4
|
+
|
|
5
|
+
You don't invoke principles. You use their names to steer. Each name points at a complete rule the agent has already read, so one phrase redirects the work more precisely than a paragraph of instructions.
|
|
6
|
+
|
|
7
|
+
## Steering in practice
|
|
8
|
+
|
|
9
|
+
Say the agent is about to bolt a new adapter onto three existing ones:
|
|
10
|
+
|
|
11
|
+
```text
|
|
12
|
+
use subtract before you add. delete the obsolete adapters first, then design what's left.
|
|
13
|
+
```
|
|
14
|
+
|
|
15
|
+
Say it claims success because the build passed:
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
apply prove it works. run the real import flow and show me the written records.
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Say two parallel attempts are about to write to the same branch:
|
|
22
|
+
|
|
23
|
+
```text
|
|
24
|
+
separate before serializing shared state. give each attempt its own worktree, no locks.
|
|
25
|
+
```
|
|
26
|
+
|
|
27
|
+
Each phrase lands because the rule behind it is specific. The agent still has to say, in its reply, which decision the rule changed. A principle citation with no decision behind it means the agent named the rule without applying it.
|
|
28
|
+
|
|
29
|
+
## The 24, briefly
|
|
30
|
+
|
|
31
|
+
The core principles decide how much to build and when to rethink the design:
|
|
32
|
+
|
|
33
|
+
- [Laziness Protocol](../../skills/peak/references/principle-laziness-protocol/SKILL.md) prefers deletion and the smallest change that solves the problem.
|
|
34
|
+
- [Foundational Thinking](../../skills/peak/references/principle-foundational-thinking/SKILL.md) chooses the core data structures before writing logic.
|
|
35
|
+
- [Redesign from First Principles](../../skills/peak/references/principle-redesign-from-first-principles/SKILL.md) integrates a new requirement as if it had been there from day one.
|
|
36
|
+
- [Attack the Premise](../../skills/peak/references/principle-attack-the-premise/SKILL.md) writes down the premise that two or more failed fixes shared and tests it directly before the next fix.
|
|
37
|
+
- [Subtract Before You Add](../../skills/peak/references/principle-subtract-before-you-add/SKILL.md) removes dead weight before building on top of it.
|
|
38
|
+
- [Minimize Reader Load](../../skills/peak/references/principle-minimize-reader-load/SKILL.md) collapses layers and hidden state a reader must hold in their head.
|
|
39
|
+
- [Outcome-Oriented Execution](../../skills/peak/references/principle-outcome-oriented-execution/SKILL.md) converges rewrites on the target design instead of preserving throwaway compatibility states.
|
|
40
|
+
- [Experience First](../../skills/peak/references/principle-experience-first/SKILL.md) chooses the user's result over implementation convenience.
|
|
41
|
+
- [Exhaust the Design Space](../../skills/peak/references/principle-exhaust-the-design-space/SKILL.md) builds two or three competing prototypes when there's no precedent.
|
|
42
|
+
- [Build the Lever](../../skills/peak/references/principle-build-the-lever/SKILL.md) builds the script that does or proves the work, so a reviewer can rerun it. When an agent keeps doing the same thing by hand, have it write the tool or skill it wishes it had. If a script can do a step the same way every time, use the script, and save agents for the judgment calls.
|
|
43
|
+
|
|
44
|
+
The architecture principles decide where state, validation, and compatibility live:
|
|
45
|
+
|
|
46
|
+
- [Model the Domain](../../skills/peak/references/principle-model-the-domain/SKILL.md) encodes repeated rules in one structure, not scattered conditionals.
|
|
47
|
+
- [Boundary Discipline](../../skills/peak/references/principle-boundary-discipline/SKILL.md) validates at the boundary and trusts internal types.
|
|
48
|
+
- [Type System Discipline](../../skills/peak/references/principle-type-system-discipline/SKILL.md) makes illegal states unrepresentable.
|
|
49
|
+
- [Make Operations Idempotent](../../skills/peak/references/principle-make-operations-idempotent/SKILL.md) converges retries on the same end state.
|
|
50
|
+
- [Migrate Callers Then Delete Legacy APIs](../../skills/peak/references/principle-migrate-callers-then-delete-legacy-apis/SKILL.md) migrates and deletes in one wave.
|
|
51
|
+
- [Separate Before Serializing Shared State](../../skills/peak/references/principle-separate-before-serializing-shared-state/SKILL.md) removes the sharing before adding coordination.
|
|
52
|
+
|
|
53
|
+
The verification principles define what counts as proof:
|
|
54
|
+
|
|
55
|
+
- [Prove It Works](../../skills/peak/references/principle-prove-it-works/SKILL.md) verifies the real artifact, not a proxy.
|
|
56
|
+
- [Fix Root Causes](../../skills/peak/references/principle-fix-root-causes/SKILL.md) reproduces and traces to the cause before changing code.
|
|
57
|
+
- [Sequence Work into Verifiable Units](../../skills/peak/references/principle-sequence-verifiable-units/SKILL.md) ends each small unit in a check before starting the next.
|
|
58
|
+
- [Test Behavior, Not Implementation](../../skills/peak/references/principle-test-behavior-not-implementation/SKILL.md) asserts what the code's users can observe, so a test fails when that behavior breaks and survives a change to the internals.
|
|
59
|
+
- [Explain the Number](../../skills/peak/references/principle-explain-the-number/SKILL.md) names what limits a measured number and rules out that it measured something else, before anyone trusts or reports it. [`/benchmark-checklist`](../../skills/peak/references/benchmark-checklist/SKILL.md) turns it into seven questions you answer from real runs.
|
|
60
|
+
|
|
61
|
+
The delegation principles keep parallel work sane:
|
|
62
|
+
|
|
63
|
+
- [Guard the Context Window](../../skills/peak/references/principle-guard-the-context-window/SKILL.md) routes bulk reading to subagents and keeps findings in the main chat.
|
|
64
|
+
- [Never Block on the Human](../../skills/peak/references/principle-never-block-on-the-human/SKILL.md) proceeds on reversible work and presents the result.
|
|
65
|
+
|
|
66
|
+
And one meta principle:
|
|
67
|
+
|
|
68
|
+
- [Encode Lessons in Structure](../../skills/peak/references/principle-encode-lessons-in-structure/SKILL.md) turns advice you've repeated twice into a lint, check, or script. [`/correct`](../../skills/peak/references/correct/SKILL.md) applies it to a whole repo, as shown in [Make it yours](./09-make-it-yours.md#fix-the-environment-with-correct).
|
|
69
|
+
|
|
70
|
+
Don't memorize the list. Skim it now, then come back when you catch the agent doing something a name here would have prevented. That's how the vocabulary sticks.
|
|
71
|
+
|
|
72
|
+
Next: [Make it yours](./09-make-it-yours.md).
|
|
@@ -0,0 +1,96 @@
|
|
|
1
|
+
# Make it yours
|
|
2
|
+
|
|
3
|
+
peak is one person's style. The playbooks, routing, and model roles underneath it work just as well with yours. This page covers generating a personal mode, capturing lessons from a session, fixing the repo so agents stop repeating mistakes, authoring a focused skill, and testing a skill change before you trust it.
|
|
4
|
+
|
|
5
|
+
Start smaller than you think. You don't need many skills on day one, or even this whole plugin. Prompt plainly, watch where agents fail, and add a skill or a check when the same failure shows up twice.
|
|
6
|
+
|
|
7
|
+
## Generate your own mode with `/automate-me`
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
/automate-me
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
You don't describe your style, because [`/automate-me`](../../skills/peak/references/automate-me/SKILL.md) reads it out of your history. It mines your recent transcripts in the active workspace for repeated preferences, in how you like replies, delegation, verification, code, prose, and process, then asks you which patterns are really you. It drafts `skills/<your-name>-mode/SKILL.md` through the bundled `create-skill` skill flow, runs the draft through [`/unslop`](../../skills/peak/references/unslop/SKILL.md), and opens a PR from a worktree so you review it like any other change.
|
|
14
|
+
|
|
15
|
+
Run it again whenever your habits drift:
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
/automate-me update my mode skill with everything since its last edit
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
Update mode mines only the history since the skill last changed. It keeps rules you haven't contradicted, revises the ones with new evidence, and adds sections only for new patterns.
|
|
22
|
+
|
|
23
|
+
## Capture a session's lessons with `/reflect`
|
|
24
|
+
|
|
25
|
+
Right after a task that taught you something, run:
|
|
26
|
+
|
|
27
|
+
```text
|
|
28
|
+
/reflect that took way too long. capture what we learned so the next run doesn't repeat it.
|
|
29
|
+
```
|
|
30
|
+
|
|
31
|
+
[`/reflect`](../../skills/peak/references/reflect/SKILL.md) sends the transcript to three parallel reviewers, then a synthesizer sorts the proposals into `Accepted`, `Rejected`, and `Backlog` and waits for your approval before any skill changes. Approve a proposal only if it would change a future decision. One weird session is an anecdote, not a rule.
|
|
32
|
+
|
|
33
|
+
## Fix the environment with `/correct`
|
|
34
|
+
|
|
35
|
+
When you correct agents for the same mistake again and again, the fix belongs in the repo, not in your next prompt. Rank the options by how well they hold:
|
|
36
|
+
|
|
37
|
+
1. Make the mistake impossible with architecture or a better data structure.
|
|
38
|
+
2. Block it with types, or with a lint or CI check whose error names the fix.
|
|
39
|
+
3. Catch it with a test.
|
|
40
|
+
4. Write it down as a doc or agent rule. Nothing fails when an agent skips a rule, so this comes last.
|
|
41
|
+
|
|
42
|
+
Human review isn't on the list. A reviewer who must catch the same mistake on every PR is the problem this fixes. [`/correct`](../../skills/peak/references/correct/SKILL.md) does the work:
|
|
43
|
+
|
|
44
|
+
```text
|
|
45
|
+
/correct agents keep calling the database client directly instead of going through the repository layer
|
|
46
|
+
```
|
|
47
|
+
|
|
48
|
+
It reads recent commits, reverts, review comments, and comments that explain workarounds, then groups the mistakes into classes. A class counts once it has happened twice. It fixes the most frequent classes one commit each, at the highest level that works, and proves each new check fails on a real past mistake. It also keeps a table in the agent instruction file that pairs each rule with what enforces it, so a rule that nothing enforces shows up as a repeat. The reply lists each class with its evidence, the level chosen, and why a higher level didn't work.
|
|
49
|
+
|
|
50
|
+
Run it with no argument and it finds the classes from history on its own. `/reflect` and `/correct` split the work. `/reflect` improves skills from one session. `/correct` changes the repo so a mistake class can't come back. Pair it with `/architect` when the fix is a new boundary. [Run many projects in parallel](./07-overnight.md#run-many-projects-in-parallel) has a prompt that does both across a whole repo.
|
|
51
|
+
|
|
52
|
+
## Author a focused skill
|
|
53
|
+
|
|
54
|
+
When you already know the workflow you want to capture:
|
|
55
|
+
|
|
56
|
+
```text
|
|
57
|
+
/peak write a skill for verifying database migrations in this repo
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Writing a skill matches the [Authoring or modifying a skill playbook](../../skills/peak/playbooks/authoring-a-skill.md), which routes through the bundled `create-skill` skill, validates the frontmatter and links, and ships the result through the Opening a PR playbook. Agent-facing prose has a higher bar than human prose, because an unhelpful sentence becomes an instruction some future agent follows. Let the playbook hold that bar rather than writing a `SKILL.md` freehand.
|
|
61
|
+
|
|
62
|
+
Two special cases have their own generators. A skill that must drive your app and prove behavior is a verification skill, so use [`/create-verification-skill`](../../skills/peak/references/create-verification-skill/SKILL.md) and [`/maintain-verification-skill`](../../skills/peak/references/maintain-verification-skill/SKILL.md) instead. A skill that checks a property of your code with a model checker, a proof, or another verifier is a formal verification skill, so use [`/create-formal-verification-skill`](../../skills/peak/references/create-formal-verification-skill/SKILL.md) and [`/maintain-formal-verification-skill`](../../skills/peak/references/maintain-formal-verification-skill/SKILL.md). [Verify and ship](./06-verify-and-ship.md#prove-a-property-with-a-formal-verification-skill) covers both kinds.
|
|
63
|
+
|
|
64
|
+
## Write docs to a standard with `/technical-writing`
|
|
65
|
+
|
|
66
|
+
Skills aren't the only prose you ship. For docs, RFCs, readmes, PR descriptions, and commit messages:
|
|
67
|
+
|
|
68
|
+
```text
|
|
69
|
+
/technical-writing review the readme changes
|
|
70
|
+
```
|
|
71
|
+
|
|
72
|
+
[`/technical-writing`](../../skills/peak/references/technical-writing/SKILL.md) applies a layered standard. Its goal is prose that a tired engineer understands on the first read. It picks the document's mode first (tutorial, how-to, reference, or explanation), then works sentence by sentence: who does what, one thought per sentence, nothing readable two ways. Use it to review what you or an agent just wrote, or name it up front when you ask for a doc.
|
|
73
|
+
|
|
74
|
+
## Test a skill change blind
|
|
75
|
+
|
|
76
|
+
A skill edit affects every future session, so test it like the experiment it is. The same goes for adopting someone else's skill. Check that it makes the agent better on your work before you keep it.
|
|
77
|
+
|
|
78
|
+
```text
|
|
79
|
+
/peak run the eval playbook on this skill change. same task for both variants, candidates stay blind.
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
When a skill keeps missing and you know what it should do, change and test it in one task:
|
|
83
|
+
|
|
84
|
+
```text
|
|
85
|
+
/peak update the review skill so it flags missing migrations, and eval the change.
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Asking for the eval up front keeps the edit honest. A fix written from one bad session tends to overfit that session, and over many edits the skill drifts. The eval catches the drift before it ships.
|
|
89
|
+
|
|
90
|
+
The [Eval playbook](../../skills/peak/playbooks/eval.md) is built around one failure mode, the observer effect. An agent that knows it's being evaluated behaves differently. So candidate agents get an organic-looking task in sanitized directories, never the words "eval" or "candidate", and never each other's existence. One judge scores all outputs under neutral labels, and chain-following gets graded from which files each candidate actually read, not from what it claims.
|
|
91
|
+
|
|
92
|
+
Read every output yourself before accepting the verdict. If you disagree with the judge, suspect the rubric before you suspect your judgment.
|
|
93
|
+
|
|
94
|
+
**Pitfall:** don't edit a skill mid-task because it's misbehaving. Fix it in its own PR and keep the task moving. A skill edit that ships tangled into feature work is invisible to review and impossible to evaluate.
|
|
95
|
+
|
|
96
|
+
Next: [Recipes and pitfalls](./10-recipes-and-pitfalls.md).
|
|
@@ -0,0 +1,180 @@
|
|
|
1
|
+
# Recipes and pitfalls
|
|
2
|
+
|
|
3
|
+
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.
|
|
4
|
+
|
|
5
|
+

|
|
6
|
+
|
|
7
|
+
## Understand an unfamiliar subsystem
|
|
8
|
+
|
|
9
|
+
```text
|
|
10
|
+
use /how first to understand how this initialization works. then use /why to figure out why it broke recently.
|
|
11
|
+
```
|
|
12
|
+
|
|
13
|
+
Mechanics first, history second. Each skill's report tells you which sources it searched, so you know what the answer is grounded in.
|
|
14
|
+
|
|
15
|
+
## Restate a noisy report before touching code
|
|
16
|
+
|
|
17
|
+
```text
|
|
18
|
+
/peak read this thread. restate the underlying issue in your own words, in plain english. don't change any code yet.
|
|
19
|
+
```
|
|
20
|
+
|
|
21
|
+
A misreading shows up in the restatement, where it costs one message to correct. Keep your own theory to yourself until the agent has stated its own. `/in-your-own-words` asks for the restatement alone, with no playbook.
|
|
22
|
+
|
|
23
|
+
## Sharpen a prompt before you send it
|
|
24
|
+
|
|
25
|
+
```text
|
|
26
|
+
/sharpen write the onboarding doc for the new billing service.
|
|
27
|
+
```
|
|
28
|
+
|
|
29
|
+
The agent names what an expert would do that you didn't ask for, the raw material they'd start from, their methods and tools, and an outside check that the result is right. It hands back your prompt rewritten to ask for that and doesn't do the task. Send the rewrite when it reads right.
|
|
30
|
+
|
|
31
|
+
## Prototype before you pick
|
|
32
|
+
|
|
33
|
+
```text
|
|
34
|
+
/peak prototype a few options for the settings layout. put them behind a switcher and send me screenshots of each.
|
|
35
|
+
```
|
|
36
|
+
|
|
37
|
+
You pick from things that run, not from descriptions. The agent answers its own layout and timing questions along the way.
|
|
38
|
+
|
|
39
|
+
## Turn a settled design into a plan
|
|
40
|
+
|
|
41
|
+
```text
|
|
42
|
+
/peak turn this design into a plan. small verifiable PRs, each with its own proof.
|
|
43
|
+
```
|
|
44
|
+
|
|
45
|
+
Ask only after the design settles. The plan is the deliverable, and it names the playbook that will execute it.
|
|
46
|
+
|
|
47
|
+
## Get a second opinion on a design
|
|
48
|
+
|
|
49
|
+
```text
|
|
50
|
+
ask /arena for a second opinion on this thread and our approach
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
Your current design becomes one candidate among several, and the synthesis tells you whether the panel found something better or confirmed what you had. It costs little next to a design that is expensive to reverse.
|
|
54
|
+
|
|
55
|
+
## Check independent slices in parallel
|
|
56
|
+
|
|
57
|
+
```text
|
|
58
|
+
/swarm check every package under packages/ against its check.sh. one worker per package. one report.
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
Each worker owns one package. The parent waits for every slice and returns one `PASS`, `ISSUES`, or `BLOCKED` report instead of raw worker dumps.
|
|
62
|
+
|
|
63
|
+
## Review a branch skeptically
|
|
64
|
+
|
|
65
|
+
```text
|
|
66
|
+
/interrogate the whole branch, but skeptically. don't change anything yet. no nitpicks unless it's an actual bug or regression in behavior.
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
The qualifiers do real work. "don't change anything yet" keeps it read-only, and the nitpick rule pre-filters the noise so `Act on` findings are worth your time.
|
|
70
|
+
|
|
71
|
+
## Fix a bug through a failing test
|
|
72
|
+
|
|
73
|
+
```text
|
|
74
|
+
/peak repro the duplicate write first. if there's a cheap test path, /tdd it. then fix and rerun.
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
"if there's a cheap test path" matters. Forcing a test through brittle mocks proves less than running the real command, and the playbook is allowed to say so.
|
|
78
|
+
|
|
79
|
+
## Repro and fix a report with proof
|
|
80
|
+
|
|
81
|
+
```text
|
|
82
|
+
/peak repro this with /verify-<app>. if it repros on main, fix it and show me a video as proof.
|
|
83
|
+
```
|
|
84
|
+
|
|
85
|
+
"if it repros on main" lets the run stop early when the bug is already gone. The video lets you check the fix before you read the diff.
|
|
86
|
+
|
|
87
|
+
## Prove a property tests rarely reach
|
|
88
|
+
|
|
89
|
+
```text
|
|
90
|
+
/create-formal-verification-skill the retry queue. a message must never be delivered twice.
|
|
91
|
+
```
|
|
92
|
+
|
|
93
|
+
You get one property checked in every case within a stated scope, a counterexample in your code's terms if the code already breaks it, and a project skill the next agent runs on any change to that code.
|
|
94
|
+
|
|
95
|
+
## Vet a number before you post it
|
|
96
|
+
|
|
97
|
+
```text
|
|
98
|
+
/benchmark-checklist vet this 40% speedup before it goes in the pr description
|
|
99
|
+
```
|
|
100
|
+
|
|
101
|
+
You get faster, slower, no measurable difference, or inconclusive, with the run count, the range, and what limits the number.
|
|
102
|
+
|
|
103
|
+
## Stop correcting the same mistake
|
|
104
|
+
|
|
105
|
+
```text
|
|
106
|
+
/correct agents keep adding new config flags without registering them in the schema
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
The fix lands in the repo as architecture, a type, a lint, or a test, so the next agent can't make the mistake.
|
|
110
|
+
|
|
111
|
+
## Ask how without starting the work
|
|
112
|
+
|
|
113
|
+
```text
|
|
114
|
+
/poteto-help how do i get peak to stay on every turn?
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
You get an answer, a prompt to send, and a link to the source. Nothing runs until you send that prompt.
|
|
118
|
+
|
|
119
|
+
## Keep a run honest while you're away
|
|
120
|
+
|
|
121
|
+
```text
|
|
122
|
+
im going to bed, keep going autonomously until every fixture passes. do not stop. keep a decision log i can audit in the morning.
|
|
123
|
+
```
|
|
124
|
+
|
|
125
|
+
The full contract is on the [overnight page](./07-overnight.md). The short form works once the task and finish condition are already in the conversation.
|
|
126
|
+
|
|
127
|
+
## Redirect a drifting run
|
|
128
|
+
|
|
129
|
+
Steering prompts are one line:
|
|
130
|
+
|
|
131
|
+
```text
|
|
132
|
+
i said the goal is to repro. i did not ask for a fix yet.
|
|
133
|
+
```
|
|
134
|
+
|
|
135
|
+
```text
|
|
136
|
+
apply prove it works. show me the real output, not the build log.
|
|
137
|
+
```
|
|
138
|
+
|
|
139
|
+
```text
|
|
140
|
+
/unslop that, no emdashes
|
|
141
|
+
```
|
|
142
|
+
|
|
143
|
+
You rarely need more words. You need the right name, and [the principles page](./08-principles.md) is the vocabulary.
|
|
144
|
+
|
|
145
|
+
## Get the reply in plain words
|
|
146
|
+
|
|
147
|
+
```text
|
|
148
|
+
/bro
|
|
149
|
+
```
|
|
150
|
+
|
|
151
|
+
That's the whole prompt. [`/bro`](../../skills/peak/references/bro/SKILL.md) restates the last message like one human talking to another, no jargon, shorter. Use it when a reply is technically thorough and you still don't know what it said.
|
|
152
|
+
|
|
153
|
+
## Catch up on a chat you left running
|
|
154
|
+
|
|
155
|
+
```text
|
|
156
|
+
/ketchup
|
|
157
|
+
```
|
|
158
|
+
|
|
159
|
+
[`/ketchup`](../../skills/peak/references/ketchup/SKILL.md) tells you in plain words what changed since your last message, then lists each call waiting on you with its pick, evidence, and risk. It changes nothing while it reports.
|
|
160
|
+
|
|
161
|
+
## The pitfalls
|
|
162
|
+
|
|
163
|
+
- **Enumerating skills in the prompt.** "use /how then /architect then /arena" reorders steps the playbook already sequences. State the goal and constraints. Name a skill only to override a default.
|
|
164
|
+
- **A vague finish condition.** "make it better" gives the in-process bounded loop nothing to check. Give a command or artifact that can pass or fail.
|
|
165
|
+
- **Leading with your theory of the cause.** The agent searches wherever you pointed. Ask it to restate the problem first, then share your hunch.
|
|
166
|
+
- **Taking the first design.** One attempt locks in the first shape the model thought of. Ask for prototypes or `/architect` and pick from evidence.
|
|
167
|
+
- **Polishing an abstract plan.** Adversarial review of a plan with no code behind it invents risks that will never happen. Settle the open questions with prototypes, then review what got built.
|
|
168
|
+
- **Parallel agents in one worktree.** They overwrite each other, and nobody can tell which agent changed what. Run them as isolated raga children, or say "own worktree per attempt".
|
|
169
|
+
- **Looping before you trust the loop.** A loop that can't verify its own work only makes unchecked work faster. Get the verification skill working first.
|
|
170
|
+
- **Trusting an unvetted number.** A warm cache or a skipped code path can fake a speedup. Run `/benchmark-checklist` before the number goes anywhere.
|
|
171
|
+
- **Correcting the same mistake by hand.** A correction in chat helps one run. `/correct` fixes the repo so no later run repeats it.
|
|
172
|
+
- **Using `/arena` for coverage.** `/arena` repeats one design or code brief, then picks a base and grafts the best parts. `/swarm` partitions slices or declared race arms and aggregates one report.
|
|
173
|
+
- **Accepting every review comment.** Bots and humans both file real catches and noise in one list. `/interrogate` sorts findings into act-on and dismissed buckets with reasons, and you can override either way.
|
|
174
|
+
- **Treating `auto` as a model slug.** `auto` and `inherit-parent` mean "omit the model field so the subagent inherits the parent chat model." [Setup](./01-setup.md) covers the roles.
|
|
175
|
+
- **Reporting success off a green build.** A build proves it compiles. Ask for the real command, flow, stored value, or profile, and expect the evidence in the reply.
|
|
176
|
+
- **Writing a `SKILL.md` freehand.** Route it through the [Authoring or modifying a skill playbook](../../skills/peak/playbooks/authoring-a-skill.md) so validation and review happen.
|
|
177
|
+
|
|
178
|
+
That's the guide. If you skipped ahead, go back to [setup](./01-setup.md) and run one real task. The habits stick from use, not from reading.
|
|
179
|
+
|
|
180
|
+
Back to the [guide index](./README.md).
|