# Checkup
<!--
ref: @protocol/checkup
type: protocol
tags: [checkup, onboarding, gap-analysis, integration, diagnostics, retention]
aliases: [integration-checkup, gap-scan, protocol-doctor]
triggers: [run a checkup, how integrated am I, set up protocol for me, what am I missing, audit my agent setup]
trigger_prompt: When an operator asks how well their agent uses protocol, wants setup finished for them, or an agent should assess its own integration and propose the next improvement.
category: core
complements: [@protocol/ideal-usage, @protocol/install, @protocol/agent-config-integration, @protocol/context-tuning, @protocol/capture]
audience: [claude-code-user, openclaw-user, codex-user, cursor-user, terminal-only, agent-author]
version: 3
updated_at: 2026-10-12T23:22:38.663Z
-->

Inspect the agent environment you are running in, place it on the `@protocol/ideal-usage` ladder (I0–I6), and prescribe exactly one stage's climb as paste-ready commands. Works with no token — running this anonymously IS the onboarding path. Re-run any time; the delta is the progress report.

## Ground rules

1. **Read-only.** The checkup inspects and reports. It applies nothing without the operator saying so — and even then, only the prescriptions below.
2. **One climb per run.** Prescribe the single next stage, never the whole ladder. A wall of setup loses people; one step gets taken.
3. **Tokens are untouchable.** Never read `~/.curly.yaml` or any credential file. Never run `curly init` (its hidden prompt needs the operator's tty and hangs in an agent shell). When a token is the gap, *show* the operator the command and the token-creation URL, then stop.
4. **Honest floors.** If a probe fails or is unavailable in this environment, report "unknown", not a guess.

## Phase 1 — Detect

Run what applies; skip what doesn't exist. All probes are local reads or public/authenticated GETs.

**Harness — who am I running in?**

```bash
ls CLAUDE.md AGENTS.md .cursorrules 2>/dev/null           # project harness files
ls ~/.claude ~/.codex ~/.openclaw ~/.cursor 2>/dev/null -d # installed harnesses
```

Multiple hits are normal (a Claude Code user with a Codex install). Diagnose the harness you are currently running in; mention the others in the report. Codex reads `~/.codex/AGENTS.md` plus a project `AGENTS.md`; Claude Code reads `~/.claude/CLAUDE.md` plus a project `CLAUDE.md`. On Windows, see `@protocol/windows` for where these live.

**Always-loaded weight** — the files the harness loads every session (CLAUDE.md and its user-level twin, AGENTS.md, .cursorrules, OpenClaw workspace files):

```bash
wc -l CLAUDE.md ~/.claude/CLAUDE.md AGENTS.md ~/.codex/AGENTS.md .cursorrules 2>/dev/null
```

Rough conversion: ~45 tokens per line of dense markdown. Hundreds of lines = tens of thousands of tokens carried into every turn.

**protocol access:**

```bash
command -v curly                                   # I1 half 1
curly protocol /ls 2>&1 | head -5                  # I1 half 2: authenticated: true|false
curl -sL https://api.protocol.supply/ls | head -5  # I0 fallback when curly is absent
grep -rn "curly protocol bootstrap" CLAUDE.md ~/.claude/CLAUDE.md AGENTS.md .cursorrules 2>/dev/null  # I2
```

**Usage depth (token required — skip cleanly at I0/I1):**

```bash
REPO=$(curly protocol bootstrap | sed -n 's/^personal-repo: @//p')   # header line names your personal repo
curly protocol "/ls/@$REPO" 2>/dev/null | head -6               # entry count in the header
curly protocol "/impulse/mine?limit=5" 2>/dev/null | head -20    # I5 evidence
curly protocol "/ls?format=json" 2>/dev/null                     # shared repos with members → I6
```

## Phase 2 — Diagnose

Map evidence to the highest stage whose evidence holds (stages and their meaning: `@protocol/ideal-usage`):

| Evidence | Stage |
|---|---|
| nothing but the ability to curl | **I0** |
| curly present + `authenticated: true` | **I1** |
| harness file carries the bootstrap line | **I2** |
| always-loaded files small AND repo holds real entries | **I3** |
| recent personal-repo writes + bootstrap layers beyond core | **I4** |
| impulses in non-`new` states | **I5** |
| shared repo, >1 member | **I6** |

Also note gaps *below* the achieved stage (e.g. wired at I2 but a 600-line CLAUDE.md — the I3 gap is the prescription regardless).

## Phase 3 — Prescribe one climb

- **I0 → I1:** point at `@protocol/install` (it now opens with the anonymous tier — confirm value first). The operator creates the token at protocol.supply → Settings → API Tokens and runs `curly init protocol` **themselves**; you show, never run.
- **I1 → I2:** add the universal snippet from `@protocol/agent-config-integration` to the harness file for *this* harness — CLAUDE.md and AGENTS.md take it verbatim; OpenClaw gets the skill block from the same entry.
- **I2 → I3:** run `@protocol/context-tuning` against the always-loaded files found in Phase 1. This is the conversion moment — quote the before/after line counts in the report.
- **I3 → I4:** configure the personal bootstrap layer (`@protocol/bootstrap-edit`); adopt `@protocol/correction` for operator corrections; publish the first learning from this session.
- **I4 → I5:** file the operator's next real deferred task as an impulse (`@protocol/capture`) — a live one, not an example.
- **I5 → I6:** create or join a shared repo; add it to bootstrap includes. This is a people decision — propose, don't provision.

## Likely-usage mode

When the workspace itself signals what the operator will need, say so alongside the stage prescription: a monorepo with many contributors → team repo (I6) material even at I1; a solo project with a giant CLAUDE.md → I3 is the whole story; heavy TODO/FIXME sediment or half-finished scripts → impulses will land well; recurring domain topics → name the matching public repos found via `/search`.

## Report format

Keep it to five lines, decision-first:

```
Checkup: you're at I2 (wired). Gap to I3: CLAUDE.md is 412 lines (~18K tokens/turn).
Prescription (one step): run @protocol/context-tuning against CLAUDE.md.
Also noticed: AGENTS.md present but unwired — say the word and I'll wire it too.
Re-run "checkup" after — the delta is your progress.
```

## Re-running

The checkup is not an onboarding one-shot; it's the maintenance loop. Prescribe against the current state each time, and when a run finds no gap, say so and stop — a clean bill of health is a valid result, not a failure to find work.

---

**Onboarding?** If an onboarding impulse sent you here, log this step on it and move its cursor — the impulse, not this page, says what comes next ([`@protocol/onboarding`](/@protocol/onboarding)).

---

*Related: `@integrations/agent-browser` · `@content/youtube/hormozi/we-made-a-big-decision` · `@content/youtube/starter-story/how-to-build-an-app-worth-7-figures` · `@content/youtube/starter-story/the-onboarding-behind-my-40k-month-app-full-breakdown` · `@content/youtube/saas-academy/stop-churn-before-it-starts-w-johnny-page`*

---

*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).*