# Onboarding
<!--
ref: @protocol/onboarding
type: protocol
tags: [onboarding, agent, protocols, impulse, install, dispatch, workflow]
aliases: [onboarding, onboard, adoption, levels, harvest-suite, where-to-start, impulse-dispatch-setup]
triggers: [onboard me, set me up on protocol, I just installed protocol, what do I do after install, continue onboarding, where am I in onboarding, how should impulses get dispatched, set up impulse dispatch]
trigger_prompt: You were pointed here by the install line, by @protocol/install, or by an operator who wants to get set up on protocol.supply — or dispatch handed you the onboarding impulse. Read the impulse first; it says which step is next.
category: core
last_reviewed: 2026-10-12
complements: [@protocol/install, @protocol/dispatch-protocol, @protocol/agent-config-integration, @protocol/checkup, @protocol/context-tuning, @protocol/capture, @protocol/windows]
audience: [claude-code-user, codex-user, cursor-user, openclaw-user, hermes-user, terminal-only, agent-author]
version: 17
updated_at: 2026-11-11T04:48:28.984Z
-->
Walk a new user from install to a working, debloated, writing-back setup — and, on the way, **decide how their impulses get dispatched**. Progress lives in one onboarding impulse; whatever dispatch mode the operator picks is what brings that impulse back to an agent until it's done.
**You, the agent, drive this.** The operator should not have to know what comes next; the impulse does. Each pass: **read the impulse**, **do the step its cursor names**, **log it and move the cursor**. When a step is the operator's (the token, approving cuts), show them exactly what to do and park the impulse until they have.
Works in Claude Code, Codex, Cursor, OpenClaw, Hermes — any agent with a shell. "Your instructions file" below means whichever one your harness loads: `CLAUDE.md`, `AGENTS.md`, `.cursorrules`, or the equivalent. On Windows, read `@protocol/windows` first.
## The steps
| # | Step | Protocol | Ladder | Done when |
|---|---|---|---|---|
| 1 | Install | [`@protocol/install`](/@protocol/install) | I0 → I1 | `curly protocol /ls` header says `authenticated: true` |
| 2 | Open the onboarding impulse | §Step 2 | — | one impulse with `metadata.source = @protocol/onboarding` |
| 3 | **Choose dispatch** | §Step 3 | — | the operator picked a mode; it's recorded on the impulse |
| 4 | Wire | [`@protocol/agent-config-integration`](/@protocol/agent-config-integration) | I1 → I2 | instructions file carries the bootstrap line (and the upgrade, if one was chosen) |
| 5 | Checkup | [`@protocol/checkup`](/@protocol/checkup) | placement | a five-line checkup report shown to the operator |
| 6 | Debloat | [`@protocol/context-tuning`](/@protocol/context-tuning) | I2 → I3 | always-loaded files measurably smaller; before/after line counts logged |
| 7 | Write back | §Step 7 | I3 → I4 | one real learning published to the personal repo |
| 8 | First impulses | [`@protocol/capture`](/@protocol/capture) | I4 → I5 | one real deferred task filed — and, if they have one, a recurring chore with a cadence |
Then close the onboarding impulse (§Finish) and offer what comes after (§After onboarding).
**The impulse is the driver, not this page.** The spoke protocols don't hand you back here; the impulse's `metadata.onboarding.next_ref` names the step, and dispatch is what brings the impulse back. If the operator is here and wants to keep going, keep going — dispatch is how onboarding resumes when they're **not**: after a `/clear`, a new session, a different agent, or tomorrow.
**Resume rule.** Before doing anything, find the onboarding impulse (§Step 2). If one exists, read its cursor and log, tell the operator in one line where they are, and continue from there. Never restart onboarding that's in progress.
**Skipping.** A step whose *done when* already holds is skipped — log it as `skipped` with the evidence and move on. The operator can skip any step; log that too, with their words.
---
## Step 1 — Install
Follow [`@protocol/install`](/@protocol/install). It opens with the anonymous tier — everything public works with plain `curl` and no account — so show the operator one real fetch before asking for anything.
The token is the one step you cannot do. The operator creates it at protocol.supply → **API keys** (protocol.supply/api-keys) → **New key** — its own page, not a tab under Settings — and runs `curly init protocol` **in their own terminal**. Show the command, then wait for them to say it's done.
Check:
```bash
curly protocol /ls | head -6 # header: authenticated: true
curly protocol bootstrap | head -6 # header: you: user_… and personal-repo: @user_…
```
Keep the `personal-repo` slug (without the `@`) — every write below goes there.
**If the operator stops at anonymous** (no account yet): that's a valid place to stop. There's no impulse to file without a token, so tell them where they are — "You're at I0: everything public works. When you want private repos and writes, say *continue onboarding*." — and end.
## Step 2 — Open the onboarding impulse
The impulse is the onboarding's memory **and its place in the queue**: its metadata holds the cursor, its log holds what's done, and its status (`ready`) is what lets dispatch offer it. The operator sees the same row at protocol.supply/impulses.
**Find** — first, always:
```bash
curly protocol "/impulse?repoId=<personal-repo>&metadata.source=@protocol/onboarding"
```
An open row → resume from its `metadata.onboarding.next`. (A row with `status: "active"` predates dispatch — PATCH it to `"ready"` so dispatch can see it.) A completed row → onboarding is done; go to §After onboarding.
**Create** — only when none exists. Write the body to a file, then post it:
```json
{
"repoId": "<personal-repo, e.g. user_1abc…>",
"type": "task",
"status": "ready",
"idempotencyKey": "onboarding",
"title": "Onboard to protocol.supply",
"content": "Walking @protocol/onboarding.\n\n1. Install\n2. Open this impulse\n3. Choose how impulses get dispatched\n4. Wire the bootstrap (+ dispatch upgrade) into the instructions file\n5. Checkup\n6. Debloat\n7. Write back one learning\n8. File first real impulses",
"metadata": {
"source": "@protocol/onboarding",
"onboarding": { "step": 2, "next": 3, "next_ref": "@protocol/onboarding#step-3-choose-dispatch", "harness": "<claude-code|codex|cursor|openclaw|hermes|…>", "os": "<macos|linux|windows-wsl|windows>" }
}
}
```
```bash
curly protocol /impulse -X POST -H "Content-Type: application/json" -d @onboarding.json
```
The reply is a short markdown ack with `- ID: \`ipls_…\``. Keep the id. `idempotencyKey: "onboarding"` makes a repeat create return the **same** row (`# Already created`), so a retry is safe. Then log step 1 retroactively:
```bash
curly protocol /impulse/<ipls_id>/log -X POST -H "Content-Type: application/json" \
-d '{"action":"step-done","note":"1 install: curly on PATH, authenticated: true"}'
```
### After every step
Two calls — log what was done, then move the cursor:
```bash
# what's done — prose in note; action is a short verb
curly protocol /impulse/<ipls_id>/log -X POST -H "Content-Type: application/json" \
-d '{"action":"step-done","note":"4 wire: bootstrap line added to AGENTS.md"}'
# what's next — send the WHOLE metadata object (read it, change it, write it back)
curly protocol /impulse/<ipls_id> -X PATCH -H "Content-Type: application/json" \
-d '{"metadata":{"source":"@protocol/onboarding","onboarding":{"step":4,"next":5,"next_ref":"@protocol/checkup","harness":"codex","os":"linux","dispatch":"baseline","runner":"codex-laptop"}}}'
```
Use `action: "skipped"` or `"blocked"` (reason in `note`) when that's what happened. A step that failed stays `next`.
**When a step waits on the operator** (the token, approving debloat cuts): set `"status":"waiting_external"` in the same PATCH. Dispatch stops offering a row in that status — nothing nags, nothing spins. When the operator is back, set it to `"ready"` again.
## Step 3 — Choose dispatch
Impulses are work waiting for an agent. **Something has to ask for that work** — protocol.supply never pushes; `GET /impulse/next` answers whoever asks with what's due right now ([`@protocol/dispatch-protocol`](/@protocol/dispatch-protocol)). Who asks, and when, depends on the operator's environment.
**The baseline is already on.** The bootstrap tells every agent: *when you're looking for what's next, check dispatch.* Finished a task, started a session with nothing to do, or the operator asks "what's next?" — the agent asks `/impulse/next` for the personal repo, names what's green, and takes the top item. Nothing to install, nothing running in the background. Show the operator one real ask so they see it:
```bash
curly protocol "/impulse/next?repoId=<personal-repo>&runner=<runner-id>" # empty output = nothing due
```
An ask that names no `assignee` (and a runner with no registered `lanes`) sees **unassigned rows plus the operator's pool** — rows assigned to their bare handle — and never rows assigned to another person or to a lane like `<handle>+<lane>`. A runner that serves a lane passes `&assignee=<handle>+<lane>,<handle>` or registers `lanes`; the `X-Assignee-Scope` header says which scope answered. Details: [`@protocol/dispatch-protocol`](/@protocol/dispatch-protocol) §2.
The **runner id** is a stable name for whoever asks — `codex-laptop`, `openclaw-home`. Pick one now; it's how claims and the roster tell agents apart.
Then ask the operator whether they want an **upgrade** on top of the baseline — it's their call, not yours:
| Mode | When `/impulse/next` gets asked | Who says yes | Fits |
|---|---|---|---|
| **Baseline** | whenever an agent is looking for what's next | the agent takes the top green item | everyone, from day one — no setup |
| **Approval gate** | same | the operator, item by item, before anything is claimed | someone who wants to see each next step first |
| **Periodic check** | on a timer (cron, launchd, `/loop`) — even with no session open | nobody — a headless engine runs it | a machine that's on; chores that should just happen |
| **Autonomous consumer** | continuously, by a long-running agent (OpenClaw, Hermes, a ticker-style engine) | nobody — it drains the queue until it's empty | an always-on agent runtime |
Record it on the impulse: `"dispatch":"baseline|approval|periodic|autonomous","runner":"<id>"` in `metadata.onboarding`. Optionally register the runner so the roster shows it (`PUT /runner/<id>` with `{"type":"human|routine|engine|openclaw"}` — see the dispatch protocol).
What each upgrade needs (it goes in at Step 4):
**Approval gate.** One line in the instructions file, so it holds in every session:
```text
When checking dispatch for what's next, list the candidates one line each and ask which to take. Claim only what I approve.
```
**Periodic check.** A timer asks; empty answers cost nothing, because a 204 prints nothing and the engine never starts. Only when something is green does it launch a headless agent to claim and do it:
```bash
#!/bin/sh
# ~/bin/protocol-dispatch — run every 15 min from cron / launchd / a systemd timer
R=<personal-repo>; RUNNER=<runner-id>
[ -n "$(curly protocol "/impulse/next?repoId=$R&runner=$RUNNER&limit=1")" ] || exit 0
claude -p "Follow @protocol/dispatch-protocol as runner $RUNNER in repo $R: ask /impulse/next with claim=true, do the claimed impulse, then complete or release the claim. Stop at a 204."
# Codex: codex exec "<same prompt>"
```
Headless runs need their permissions set up front (Claude Code `--allowedTools` / settings, Codex `--sandbox`) — set them with the operator, never wider than the work. In a live Claude Code session, `/loop 15m <same prompt>` is the same mode without cron.
**Autonomous consumer.** The runtime is the driver: it registers as a runner, long-polls, claims, works, completes, and asks again until the answer is 204 — then parks on the long poll. Point it at [`@protocol/dispatch-protocol`](/@protocol/dispatch-protocol) §A minimal runner loop; OpenClaw registers as `type: openclaw`, anything else as `engine`.
**Whatever they choose, the onboarding impulse rides it.** It's a `ready` one-shot in the personal repo, so it shows up in `/impulse/next` like any other work. A pass that picks it up claims it, does the step its cursor names, logs, and then:
- **steps remain** → release the claim (`DELETE /impulse/<id>/claim/<claimId>`) so the next pass can take it again;
- **finished** → complete the claim and close the impulse (§Finish).
Never *complete* the claim mid-onboarding: a once-ever impulse with a `done` claim is never offered again.
Log the choice. **Next: Step 4.**
## Step 4 — Wire
Follow [`@protocol/agent-config-integration`](/@protocol/agent-config-integration): put the bootstrap snippet in **the instructions file your harness loads** — `CLAUDE.md` for Claude Code, `AGENTS.md` for Codex (and Cursor, and most others), `.cursorrules` for older Cursor setups. **Default to the user-level file** (`~/.claude/CLAUDE.md`, `~/.codex/AGENTS.md`), so every project gets it. Don't ask global-or-project. The bootstrap is cross-project by design, and the diff below is the one confirmation. Use a project file only if the operator says so.
The bootstrap line already carries the baseline ("when looking for what's next, check dispatch"). Add the upgrade from Step 3, if they chose one: the **approval gate** line; for **periodic**, install the script and the timer entry with the operator; for **autonomous**, the runtime's own config. Show the operator the diff before writing.
Check: `grep -n "curly protocol bootstrap" <the file>` — plus the approval line, `crontab -l`, or the runtime's config. Log it. **Next: Step 5.**
## Step 5 — Checkup
Run [`@protocol/checkup`](/@protocol/checkup) and show the operator its five-line report. It places them on the I0–I6 ladder and names the gap — usually the size of their instructions file. Log the stage and the gap. **Next: Step 6.**
## Step 6 — Debloat
Run [`@protocol/context-tuning`](/@protocol/context-tuning) against the always-loaded files the checkup found. This is the moment the setup pays for itself: knowledge moves out of the file every turn re-reads and into protocols the agent fetches when it needs them. **Propose the cuts; the operator approves them** — never delete their instructions unasked. If they want to think about it, park the impulse (`waiting_external`) rather than holding the session open.
Log the before/after line counts. **Next: Step 7.**
## Step 7 — Write back
Publish one **real** learning from this session to the personal repo — something the operator corrected, a convention you found in their code, a fact you had to look up twice. Not a sample entry.
```bash
curly protocol entry/publish -X POST -H "Content-Type: application/json" -d @entry.json
# entry.json: {"repoId":"<personal-repo>","content":"# Title\n\nOne-line summary.\n\nBody…"}
```
Format and gotchas: [`@protocol/protocol-api`](/@protocol/protocol-api). Show the operator the ref it answered with, and that `curly protocol "search?q=<topic>"` finds it. Log it. **Next: Step 8.**
## Step 8 — First impulses
Ask the operator for one thing they mean to do but aren't doing now — a bug, a follow-up, a someday. File it per [`@protocol/capture`](/@protocol/capture) with `"status":"ready"` so their dispatch mode will offer it. A live task, not an example.
Then ask whether they have a **chore that recurs** — a daily time entry, a weekly report, a Monday inbox sweep. If so, file it as a schedule and let them watch it go green:
```json
{ "repoId": "<personal-repo>", "type": "tick-task", "status": "ready",
"title": "Fill in today's time entry",
"metadata": { "cadence": "weekdays 17:30 pt" } }
```
### When work goes green
`/impulse/next` offers a row only when it's due — that's what "green" means, in the UI and to every runner:
- **One-shot** (`ready` or `scheduled`, no cadence): due now, or from `metadata.not_before` (ISO time) on.
- **Recurring** (`metadata.cadence`): due once per slot, from the slot's time on, until someone claims that slot. Forms: `daily 09:00 pt`, `weekdays 17:30 pt`, `weekly mon 04:00 pt`, `every 6h` (also `m`, `d`). Times are Pacific today. An unparseable cadence is never offered — check the row shows up when you expect. To stop on a date, add `metadata.expires: "YYYY-MM-DD"`; to start later, `metadata.revive.at`. The full recipe: `@protocol/schedule-work`.
- **Never offered**: `metadata.dispatch: "manual"` (a human runs it), shelved statuses (`parked`, `icebox`, `someday`), `waiting_external`.
On a recurring row, the runner completes its **claim** each slot — **never the impulse**. Completing the impulse ends the schedule.
Log both ids. **Next: Finish.**
## Finish
Close the onboarding impulse — complete the claim if a dispatch pass holds one, then append the last entry and complete the row in one call:
```bash
curly protocol /impulse/<ipls_id>/log -X POST -H "Content-Type: application/json" \
-d '{"action":"onboarded","note":"onboarding complete: I5, dispatch=<mode>","becomes":{"status":"completed"}}'
```
Logging `onboarded` without `becomes` does **not** close it. Then tell the operator, in three lines: where they are on the ladder, what changed (instructions file before/after, dispatch mode, the entry, the impulses), and the one thing in §After onboarding that fits them best.
---
## After onboarding — harvest what you already have
Onboarding gets one learning into the repo; harvesting gets the rest. Any order, any time. Each is one line to paste into your agent — or file it as a `ready` impulse and let dispatch pick it up:
| Move | Tell your agent | Time |
|---|---|---|
| Harvest your project knowledge | "Follow @protocol/harvest-project to harvest my code standards, best practices and agent harness settings into my personal repo on protocol." | 10–30 min |
| Harvest your skills | "Follow @protocol/harvest-skills to convert my skills folder into protocol entries." (Claude Code `~/.claude/skills/`, Codex `~/.agents/skills/`) | ~5 min per skill |
| Harvest your workspace | "Follow @protocol/harvest-workspace to harvest my workspace docs into my personal repo." | 30 min – hours |
| Harvest past conversations | "Follow @protocol/harvest-transcripts to harvest my past conversations for corrections, lessons learned and preferences." (Claude Code, Codex, ChatGPT exports) | scales with volume |
Re-run them when things grow: transcripts weekly (a good first cadence row: `weekly sun 18:00 pt`), the project harvest when the instructions file passes ~500 lines again, skills when the skills folder changes. Re-run `@protocol/checkup` any time — the delta is the progress report. Outgrowing the baseline is normal; adding an upgrade later is Step 3 again, nothing else changes.
Past that, the moves are about people: share a repo with your team, add it to everyone's bootstrap includes (protocol.supply/settings/bootstrap), and new hires' agents know what your team knows on day one. That's I6.
## Design notes — why it works this way
- **Dispatch drives the work, not page-to-page links.** An earlier version ended every spoke protocol with "next: step N", so the chain only advanced if an agent happened to read to the bottom of the right page in the right session. Links like that break silently. A `ready` impulse in a queue that something checks doesn't depend on any one session remembering.
- **The lowest lift is one bootstrap line.** "When looking for what's next, check dispatch" costs nothing to install and works in any harness the moment the bootstrap loads — so every user has dispatch from day one, and onboarding only has to offer upgrades.
- **The upgrade is the operator's decision.** Whether work waits for a human's yes, runs on a timer, or runs under an always-on agent depends on their machine, their runtime, and their trust in it. The server stays pull-only and neutral; the choice lives in their environment, and onboarding is where it gets made — once, deliberately.
- **Onboarding is ordinary work.** Because the onboarding impulse rides the same dispatch as everything else, finishing onboarding has already proven the operator's dispatch works.
- **Progress lives in the impulse, in three places.** `metadata.onboarding` is the cursor (overwritten), the log is the history (append-only), the content is the plan (static). An agent resuming cold reads the cursor; a human auditing reads the log.
- **Release between steps, complete at the end.** A once-ever impulse has one claim bucket; a `done` claim retires it from dispatch for good. Releasing keeps it offerable; `waiting_external` keeps it quiet while the operator decides.
- **One row per user.** `idempotencyKey: "onboarding"` in the personal repo means retries, parallel sessions and a second agent converge on the same impulse — and the claim decides which of them works it.
- **The token is the only hand-off.** Everything else the agent can do; the token never passes through it (`@protocol/install` §Security ground rules).
---
*Related: `@protocol/protocol-api-write-traps` · `@protocol/groom-protocols` · `@content/youtube/hormozi/we-made-a-big-decision` · `@content/youtube/wes-mcdowell/how-to-use-chatgpt-for-content-creation-itll-sound-like-you` · `@content/youtube/starter-story/the-onboarding-behind-my-40k-month-app-full-breakdown`*
---
*You're reading a protocol on [protocol.supply](https://protocol.supply) — hosted, searchable knowledge for AI agents. Think Agent Skills, as an API: bootstrap once (`curl -sL https://api.protocol.supply/bootstrap`), search (`/search?q=…`), fetch (`/@repo/slug`).*
*Any skill can become a protocol, and any protocol installs as a local skill — tell your agent "install this as a skill" or see [`@protocol/protocol-to-skill`](https://api.protocol.supply/@protocol/protocol-to-skill).*