|
| 1 | +--- |
| 2 | +title: "KHAW /wish and /brainstorm" |
| 3 | +description: "Use the KHAW Hermes slash commands to create Brain-canonical work, inspect Purpose Sessions, and run prompt-only council brainstorms." |
| 4 | +--- |
| 5 | + |
| 6 | +KHAW treats serious work as a **Wish**: a Brain-canonical folder with `PURPOSE_SPEC.yaml`, `WISH.md`, `STATUS.md`, evidence, and eventually a board/work registry projection. A newly hired FDE should not keep mission truth only in chat. Put it in Brain, then let the agent continue from those files. |
| 7 | + |
| 8 | +## When to use `/wish` |
| 9 | + |
| 10 | +Use `/wish` when you need to: |
| 11 | + |
| 12 | +- list active Purpose Sessions/Wishes already present in `brain/wishes/`; |
| 13 | +- inspect the state, canonical path, board slug, and required files for a Wish; |
| 14 | +- create a safe local scaffold before filling the full contract; |
| 15 | +- give another KHAW/Hermes agent a durable starting point after context reset. |
| 16 | + |
| 17 | +Do **not** use `/wish new` to create real customer credentials, enroll codes, DNS, production deploys, or traffic changes. It only creates local Brain files. |
| 18 | + |
| 19 | +## Slash command quick reference |
| 20 | + |
| 21 | +```text |
| 22 | +/wish help |
| 23 | +/wish list |
| 24 | +/wish status <slug> |
| 25 | +/wish new <slug> --name "Human Readable Title" |
| 26 | +``` |
| 27 | + |
| 28 | +Safe first example: |
| 29 | + |
| 30 | +```text |
| 31 | +/wish new first-fde-proof --name "First FDE Proof" |
| 32 | +/wish status first-fde-proof |
| 33 | +``` |
| 34 | + |
| 35 | +Expected behavior: |
| 36 | + |
| 37 | +```text |
| 38 | +Wish created: <repo>/brain/wishes/YYYY/MM/DD/first-fde-proof |
| 39 | +Next: /wish status first-fde-proof |
| 40 | +Mutation: local Brain files only. |
| 41 | +``` |
| 42 | + |
| 43 | +The generated scaffold is intentionally small. Fill `WISH.md` before asking agents to implement anything mutation-capable. |
| 44 | + |
| 45 | +## What `/wish new` writes |
| 46 | + |
| 47 | +Inside the active KHAW project root, it writes: |
| 48 | + |
| 49 | +```text |
| 50 | +brain/wishes/YYYY/MM/DD/<slug>/PURPOSE_SPEC.yaml |
| 51 | +brain/wishes/YYYY/MM/DD/<slug>/WISH.md |
| 52 | +brain/wishes/YYYY/MM/DD/<slug>/STATUS.md |
| 53 | +``` |
| 54 | + |
| 55 | +The scaffold starts in `SPECIFIED` state and includes one first execution group: define the wish contract. That is deliberate. A KHAW agent should expand the contract with scope, deliverables, acceptance criteria, validation commands, evidence handles, and mutation boundaries before dispatching work. |
| 56 | + |
| 57 | +## When to use `/brainstorm` |
| 58 | + |
| 59 | +Use `/brainstorm` before architecture, release, onboarding, security, or agent-orchestration decisions where a single linear answer is risky. |
| 60 | + |
| 61 | +```text |
| 62 | +/brainstorm <topic> |
| 63 | +``` |
| 64 | + |
| 65 | +It emits a deterministic 3-lens council prompt: |
| 66 | + |
| 67 | +1. **Architect** — propose feasible designs and constraints. |
| 68 | +2. **Critic** — identify hidden assumptions, security/cost risks, and failure modes. |
| 69 | +3. **Synthesizer** — produce one executable plan with gates and evidence. |
| 70 | + |
| 71 | +The current safe slice is **prompt-only**. It does not call paid models automatically, even if you type `--run`; it prints the prompt and explains that auto-council execution is not enabled yet. |
| 72 | + |
| 73 | +## Agent handoff loop |
| 74 | + |
| 75 | +After `/brainstorm`, ask your KHAW agent to preserve the result beside the relevant Wish: |
| 76 | + |
| 77 | +```text |
| 78 | +TASK: Attach this council output to the Brain Wish at brain/wishes/YYYY/MM/DD/<slug>/BRAINSTORM_SESSION.md. Then update WISH.md and STATUS.md with the accepted plan, explicit mutation boundary, validation commands, and evidence handles. Do not start mutation-capable work until the contract says what would prove success. |
| 79 | +``` |
| 80 | + |
| 81 | +## FDE safety checklist |
| 82 | + |
| 83 | +Before a Wish moves from `SPECIFIED` to real work, confirm: |
| 84 | + |
| 85 | +- the slug is lowercase and specific; |
| 86 | +- `WISH.md` names **IN** and **OUT** scope; |
| 87 | +- each execution group has deliverables, acceptance criteria, validation, and `depends-on`; |
| 88 | +- secrets and private customer URLs are not pasted into public docs or tickets; |
| 89 | +- any real credential/customer/prod side effect has an explicit approval gate; |
| 90 | +- tests or dry-run commands exist for the first safe proof. |
| 91 | + |
| 92 | +<Accordion title="🤖 Agent paste prompt"> |
| 93 | + |
| 94 | +```text |
| 95 | +TASK: Use the Khal OS docs page `khaw/wish.mdx` (KHAW /wish and /brainstorm) to create or inspect a Brain-canonical Wish safely. |
| 96 | +CONTEXT: I am a KHAL FDE. Prefer current slash-command output and file contents over memory. Keep secrets, enrollment codes, customer URLs, and private access tokens out of public artifacts. |
| 97 | +SAFE FIRST COMMANDS: Start with `/wish help`, `/wish list`, `/wish status <slug>`, or `/brainstorm <topic>`. If creating a new Wish, use `/wish new <slug> --name "Title"` and then fill the contract before mutation. |
| 98 | +EVIDENCE: Return the canonical Brain path, files created or inspected, current state, board slug if any, and the next safe validation command. If the next step creates credentials, touches production/customer systems, or spends model budget, stop and ask for an explicit approval gate. |
| 99 | +``` |
| 100 | + |
| 101 | +</Accordion> |
0 commit comments