@creator-notes/cnotes 0.85.0 → 0.87.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.
@@ -1,1096 +1,41 @@
1
1
  ---
2
2
  name: cnotes
3
- description: CreatorNotes CLI for the terminal. The command is `cnotes`. Use when the user mentions CreatorNotes or the cnotes CLI, asks to use this CLI skill, or wants to create, read, update, search, summarize, organize, or visualize notes, canvases, or transcripts in a CreatorNotes workspace. Covers cnotes notes, cnotes canvas, cnotes timeline, cnotes shared (what teammates shared with you), cnotes draft (private drafts of a workspace that land only when a person approves them in the browser), cnotes review (official review requests: request, receive, complete), cnotes focus (plan flow-state blocks landed on a target card), cnotes search, cnotes versions, relationships, and operations. Prefer the cnotes CLI, verify the active workspace with cnotes workspace current, use --json when parsing output, and wrap write operations in cnotes operations begin and cnotes operations end.
3
+ description: Reads and writes a CreatorNotes workspace through the `cnotes` CLI - typed, versioned notes, canvases, search, relationships, drafts, reviews and comments, focus plans and the timeline. Use when the user mentions CreatorNotes or cnotes, or wants to create, find, update, summarize, organize or lay out notes, canvases or transcripts in a CreatorNotes workspace. The wayfind, attention-planner and fat-marker-flows skills run their own workflows on top of this one; load them for decision maps, attention triage and flow mockups.
4
4
  metadata:
5
5
  short-description: Work with CreatorNotes via the cnotes CLI
6
6
  ---
7
7
 
8
8
  # CreatorNotes CLI (`cnotes`)
9
9
 
10
- A command-line interface for CreatorNotes — create notes, build canvases, search knowledge, and manage workspaces from the terminal.
10
+ `cnotes` reads and writes a CreatorNotes workspace: typed notes with version history, canvases that arrange them into an argument, and the relationships between them. This file holds what every task needs. Task detail lives in `references/`; the table at the end says which file to open. Flags for any command: `cnotes <command> --help`. Every command as JSON: `cnotes schema --json`.
11
11
 
12
- ## Writing quality — the humanizer (read the reference before authoring prose)
12
+ ## Every write task, in order
13
13
 
14
- Whenever a task **creates or edits audience-facing prose** that will be saved to
15
- CreatorNotes — a note body, a pre-read, a strategy or workshop note, a public
16
- draft, a Slack message, or a canvas orientation banner — **read
17
- [`references/humanizer.md`](references/humanizer.md) first**, then draft, audit,
18
- and save through it. It removes generic model habits (the kill-list, fake
19
- contrasts, forced triads) while a preservation gate holds every number, date, ID,
20
- link, and mention title fixed, so improving prose never corrupts meaning.
14
+ 1. **Confirm the workspace.** `cnotes workspace current` names it and lists its relationship types. `-w <id>` targets another one for a single command.
15
+ 2. **Read before you write.** `cnotes brief "<task>"` returns the notes, canvases and recent changes most relevant to the task. Search notes and canvases separately (they are different corpora): `cnotes search semantic "<topic>"` and `cnotes canvas search "<topic>"`. `cnotes notes get <id> --expand` loads a note with the notes it rests on. Before changing a canvas, `cnotes canvas read <canvasId>`. A Decision or Guide you find may already settle what you were about to propose.
16
+ 3. **Open a run.** `cnotes operations begin --prompt "<the change, in the user's words>" --json`, as its own command; check its exit code before writing (a pipe hides it). `notes create` refuses to run without one. The response carries `typeRubrics` and the same brief. One canvas per run: end it and begin another before writing to a second canvas.
17
+ 4. **Write to the type's rubric.** Pick the type, run `cnotes types show <Type>`, and author to its rubric. Audience-facing prose (note bodies, banners, pre-reads) goes through [references/humanizer.md](references/humanizer.md) first; transcripts, quotes and other raw capture are stored verbatim.
18
+ 5. **Create notes in one batch.** `cnotes notes create --notes '[{"key":"A","type":"Insight","markdownFile":"./a.md"}, ...]'`. Each body starts with a `# h1` (the title). Cross-link inside the batch with `[@A: Title](relationship:<verb>)`. Detail: [references/notes.md](references/notes.md).
19
+ 6. **Grade what you wrote.** `cnotes quality <displayIds...> --fail-below 4`, then revise weak notes with `cnotes versions create <id> --description "<what changed>" --markdown-file <path>`.
20
+ 7. **Lay out the canvas.** `cnotes canvas place <canvasId> --spec layout.json` packs items without overlap. Read [references/canvas-elements.md](references/canvas-elements.md) before choosing elements and [references/canvas-layout.md](references/canvas-layout.md) before writing the spec.
21
+ 8. **Read it back.** `cnotes canvas read <canvasId>`: every claim must appear in a note with a display ID, and the banner must make sense to someone who was not in the session.
22
+ 9. **Close the run.** `cnotes operations end`.
23
+ 10. **Link the result.** End your reply with the canvas link (see [Surfacing the canvas link](#surfacing-the-canvas-link)).
21
24
 
22
- **Skip it** — do not humanize — for raw capture and structured data: transcripts,
23
- voice memos, customer quotes, source evidence, schemas, tables, and metric-heavy
24
- reference dependent. Store those unchanged and humanize only the derived artifact.
25
+ Reads, and a single metadata change (`notes update`), need no run.
25
26
 
26
- **The user's words override.** "Save this as raw capture", "audit only, change
27
- nothing", "preserve timings and links", "use the neutral / company voice", and
28
- "rewrite in my personal voice" each select a specific mode described in the
29
- reference. Loading the reference costs no extra context on non-writing tasks —
30
- pull it in only when the work is prose.
27
+ ## Rules that hold on every task
31
28
 
32
- ## Getting Started
33
-
34
- ### Install
35
-
36
- ```bash
37
- npm install -g @creator-notes/cnotes
38
- ```
39
-
40
- ### Authenticate
41
-
42
- ```bash
43
- cnotes auth login # Opens browser for OAuth
44
- cnotes auth login --token <key> # Direct API key
45
- cnotes auth status # Check current session
46
- ```
47
-
48
- ### Select a Workspace
49
-
50
- ```bash
51
- cnotes workspace list
52
- cnotes workspace select <id>
53
- cnotes workspace current # Verify active workspace + see its relationship types
54
- ```
55
-
56
- `cnotes workspace current` also lists the relationship types already defined in the
57
- workspace — reuse those labels when cross-linking notes rather than coining new ones
58
- (see [Relationship mentions](#content-via-markdown)).
59
-
60
- ### Paid actions (writes need Pro)
61
-
62
- Reads work on any plan. **CLI/API writes require the target workspace to be on Pro** — this is the most common wall you will hit (exit `8`, `serverCode: "subscription_required"`). There are three distinct walls, and only two of them need a human. Do not collapse them into "tell the user to go pay."
63
-
64
- **Wall 1 — free workspace, write blocked. You can fix this yourself.**
65
-
66
- If the caller owns the workspace and hasn't used its one-time trial, `cnotes upgrade` starts a free 7-day Pro trial and writes unlock immediately. **No credit card, no browser, no human hand-off** — it's a single command you can run.
67
-
68
- ```bash
69
- cnotes upgrade # start the free trial on the ACTIVE workspace, then retry the write
70
- cnotes upgrade -w <id> # target a specific workspace
71
- ```
72
-
73
- **Ask before running it.** The trial is one-time and cannot be restarted, so never fire it unprompted. Offer it in one line and wait for a yes:
74
-
75
- > "This workspace is on the free plan, so I can't write to it. Want me to start your free 7-day Pro trial (no credit card)?"
76
-
77
- On yes: run `cnotes upgrade`, then retry the write. That's the whole flow.
78
-
79
- **Wall 2 — trial already used. A human must pay.**
80
-
81
- `cnotes upgrade` fails with `trial_used`. Card entry is browser-only, so you cannot subscribe on the user's behalf. Surface the `upgradeUrl` from the error (the workspace's billing page, $49/mo), keep doing read-only work in the meantime, and retry the write once they confirm they've paid.
82
-
83
- **Wall 3 — they want an ADDITIONAL workspace. Human pays at checkout.**
84
-
85
- `cnotes workspace create` **buys a new workspace** — it is not the fix for a blocked write on the current one (that's Wall 1). Only reach for it when the user actually asks for another workspace.
86
-
87
- ```bash
88
- cnotes workspace create "Acme Research" --json # returns { checkoutUrl, sessionId }
89
- cnotes workspace create --verify <sessionId> --json # poll after the human pays
90
- ```
91
-
92
- The CLI never charges a card: `create` returns a Stripe Checkout URL a HUMAN must open and pay. Relay `checkoutUrl` to the user, then poll `--verify` every few seconds until `status` is `"ready"` — the new workspace is set active automatically. `--trial` starts that subscription with a 7-day trial (a card is still collected at checkout).
93
-
94
- **If the caller is not the workspace owner**, never tell them to run `cnotes upgrade` — it dead-ends on an owner-only 403. The error `hint` already branches for this case: ask the *owner* to upgrade.
95
-
96
- ## Command Reference
97
-
98
- ### Global Flags (apply to ALL commands)
99
- ```
100
- --json Output raw JSON (the default whenever stdout is not a terminal)
101
- -q, --quiet One handle per line (displayId, else name, else id) — on every command
102
- --fields <list> Keep only these comma-separated fields in JSON output — on every command
103
- -q --fields a,b Those fields as tab-separated lines, one row per line (no JSON at all)
104
- -w, --workspace <id> Override active workspace
105
- --server <url> Override server URL (default: https://creatornotes.app)
106
- ```
107
-
108
- ### Reading output (start here)
109
-
110
- `cnotes` follows one output contract across every command. Learn it once and you never have to guess.
111
-
112
- 1. **Success is the exit code, not anything in the body.** Exit `0` means the command succeeded. Never decide success by looking for an `ok` field or a particular key. The body is data; the exit code is the verdict. Failures use a typed table so you can branch on the class of error:
113
-
114
- | exit | meaning | typical fix |
115
- |------|---------|-------------|
116
- | `0` | success | n/a |
117
- | `2` | auth required | `cnotes auth login` |
118
- | `3` | validation (bad input) | fix the input shown in the error |
119
- | `4` | not found | the `hint` names the list command to run |
120
- | `5` | conflict (already exists / state collision) | re-fetch and retry |
121
- | `6` | rate limited | back off and retry |
122
- | `7` | permission denied | `cnotes workspace current` |
123
- | `8` | subscription required (free workspace, write blocked) | offer to run `cnotes upgrade` (free trial, no card) — see [Paid actions](#paid-actions-writes-need-pro) |
124
-
125
- Exit `8` is specific: CLI/API **writes** require a Pro workspace, but **reads work on any plan**. The `--json` error carries `serverCode: "subscription_required"`, an `upgradeUrl` (the workspace's billing page), and a `hint`. **You are not stuck here.** If the caller owns the workspace and hasn't used its one-time trial, `cnotes upgrade` unlocks writes in a single command — free, no credit card, no browser. Ask the user first (it burns the one-time trial), run it, then retry the write. Only when the trial is already spent does this become a hand-off to the `upgradeUrl`. Full playbook, including the not-the-owner case: [Paid actions](#paid-actions-writes-need-pro).
126
-
127
- 2. **Reads return their data directly; writes return an envelope.** `cnotes notes list/get/search --json` emit a bare array. `cnotes notes create --json` returns an object: `{ results, relationshipsCreated, relationshipTypesCreated, rubrics? }`. The created notes live under **`results`** (not `notes`, not `ok`). Each result carries `key`, `displayId`, `title`, `type`, and `rubric` (null when the type has no validationPrompt). `--fields displayId,type,rubric` trims each result to those keys — do not cut down to only `displayId` until you have checked the rubric; a sibling top-level `rubrics` array is easy to miss.
128
-
129
- **`cnotes canvas create --json`** returns a single-resource envelope: `{ canvas: { id, displayId, url, … } }`, with the same `id`, `displayId`, and `url` **also mirrored at the top level**, so `--fields id,displayId,url` gives all three. Simplest of all: `CANVAS=$(cnotes canvas create "<name>" -q)` prints the bare Convex id and nothing else (best for scripts). Do **not** assume `.id` on the raw *server* response — that top-level mirror is a CLI convenience; downstream `canvas place`/`bulk-add` want the Convex id you captured here.
130
-
131
- 3. **You do not need `jq`.** It is often not installed, and nothing here requires it. Read output with the CLI's own flags, which work on every command:
132
-
133
- ```bash
134
- cnotes types list -q # Insight, Decision, … one per line
135
- cnotes notes list --type Decision -q # one displayId per line
136
- cnotes notes list -q --fields displayId,title,type # tab-separated rows
137
- cnotes notes create --notes '[…]' -q --fields key,displayId # batch key → new displayId, for a place spec
138
- cnotes canvas digest <canvasId> --fields digest,themes # trim JSON to what you need
139
- ```
140
-
141
- `--fields` on an envelope applies to its rows (`notes create` → `.results[]`, `comments list` → `.comments[]`) unless a field you named sits on the envelope itself. Reach for a JSON parser (`python3 -c`, `node -e`, or `jq` if present) only for nested values these flags cannot reach.
142
-
143
- 4. **Errors hand you the next move.** A failed command prints `{ error, code, exitCode, hint }` to stderr in `--json` mode. The `hint` is actionable: a wrong workspace id returns a 404 with `resource: "workspace"` and the hint `Run \`cnotes workspace list\``, rather than an opaque 500. Read the `hint` before retrying.
144
-
145
- ### Notes (`cnotes notes` / `cnotes n`)
146
- ```bash
147
- # List notes (default 20, excludes drafts)
148
- cnotes notes list [--search <query>] [--type <type>] [--tags <csv>] [--pinned] [--limit <n>]
149
- cnotes notes list --no-canvas [--type <type>] [--tags <csv>] [--limit <n>] # notes on no canvas at all
150
-
151
- # Get one or more notes by display ID (always returns an array, in input order,
152
- # in a single round-trip). Pass one ID or many — never call this in a loop.
153
- cnotes notes get <id> [<id>...] [--all-versions] [--content-only]
154
- cnotes notes get MEETING-12
155
- cnotes notes get MEETING-12 PRD-3 IDEA-7
156
-
157
- # Load a note together with the notes it rests on. --expand follows outgoing
158
- # relationship rows and inline [[rel::ID]] / [[ID]] links (a bare [[ID]] is
159
- # references). Each linked note is labelled `assumes -> OBSERVATION-6K13`.
160
- # --depth N (default 1, max 4) walks further, deduped, and stops at 40 notes
161
- # with a notice when truncated. --rel assumes,depends-on limits which slugs
162
- # are followed. --summary keeps the title and the first real prose paragraph
163
- # of linked notes (the requested notes stay whole). It skips leading headings,
164
- # blank lines, and chip-only lines, so a Metric that starts
165
- # `## Primary measure` returns the sentence after it, not the heading.
166
- # Heading-only notes fall back to the last heading text; list-only notes
167
- # fall back to the first list. --incoming also includes notes that
168
- # link to the target (`assumes <- OTHER-1`).
169
- cnotes notes get DECISION-6KN --expand
170
- cnotes notes get DECISION-6KN --expand --depth 2 --rel assumes,depends-on
171
- cnotes notes get DECISION-6KN --expand --summary --incoming --json
172
- cnotes notes get DECISION-6KN --expand --content-only
173
- # --json with --expand is an object, not the bare array:
174
- # { notes, linked, truncated, cap, omitted, notice }.
175
- # Each linked entry is { displayId, relation, direction, depth, from, label, links, note }
176
- # and note matches a notes get row. A truncation sets truncated and notice, and
177
- # the notice is also printed on stderr so stdout stays valid JSON.
178
- # Reads also cap at 40 relationship rows/inline mentions per note and 512
179
- # candidates across the walk. These limits set truncated and notice too;
180
- # omitted counts only discovered notes skipped at the 40-note output cap.
181
- # Without --expand, reads stay a bare array, so a single note is always at .[0].
182
-
183
- # Reading a LARGE note/transcript: --content-only prints just the raw markdown
184
- # (no JSON envelope, no metadata chrome), so the terminal won't clip a giant
185
- # JSON line. Best for transcripts you want to read or chunk. With --expand,
186
- # linked notes follow the root, each introduced by an HTML comment of its label.
187
- cnotes notes get TRANSCRIPT-1 --content-only
188
- cnotes notes get TRANSCRIPT-1 --content-only > /tmp/transcript.md # then chunk the file
189
-
190
- # A REPLACED note says so. When a live supersedes / superseded-by / invalidates /
191
- # replaces link marks a note as replaced, `notes get --json` carries
192
- # `supersededBy: [{ displayId, title, type, relationship, relationshipId }]`
193
- # (newest replacer first), the plain output prints "Superseded by: …", and
194
- # `canvas read` prints "> Superseded by …" under that note's header. Read the
195
- # replacer before relying on the old note. The field is never inside the body,
196
- # so --content-only and edits are unaffected.
197
- # NO field does NOT mean current: it means no link says otherwise. A note
198
- # superseded only by a prose banner has no field, so still read banners. When
199
- # you write a note that replaces another, add the link
200
- # (`[OLD-1: Title](relationship:supersedes)`) so the next reader is told.
201
-
202
- # Which canvases is this note on? The agent mirror of the editor's "Canvases"
203
- # affordance. Container-aware: counts the note whether it's placed directly OR
204
- # nested inside a list/grid container. Each row has { id, name, via, viewType,
205
- # visibility, isHome, goal, updatedAt }; `via` = node | list | both. Feed `id`
206
- # into `canvas get/read`. (See "See how a found note connects" under Relationships.)
207
- cnotes notes canvases <displayId>
208
- cnotes notes canvases INSIGHT-1 --json --fields id,name,via
209
-
210
- # Who relied on this note, and what they built from it — the read-side
211
- # counterpart to the timeline's "which run wrote this version". Ask it AFTER
212
- # editing a note that other work was written from: it returns the agent runs
213
- # that read an older version, plus the notes each run went on to write. That is
214
- # the "who do I have to tell" list, and it catches reliance the relationship
215
- # graph cannot, because a note an agent read and never cited leaves no mention.
216
- # --json: { note, readers[], staleRuns[], unattributedStaleReads }. A reader is
217
- # `stale` when the note advanced past the version it was served — drift, not
218
- # obsolescence. Reads made before the agent opened its run carry no run id and
219
- # are counted rather than listed. Agent reads only (CLI + MCP); a person reading
220
- # in the browser is deliberately never recorded here.
221
- cnotes notes reads <displayId>
222
- cnotes notes reads FEATURE-1 --quiet # just the display IDs of the derived notes
223
-
224
- # Create one or more notes (always batch-shaped).
225
- # FIRST: read each target type's rubric, then author to it. Do not skip this —
226
- # the create response echoes rubrics after save, which is too late to guide
227
- # the draft. operations begin --json also returns typeRubrics for the workspace.
228
- cnotes types show Insight
229
- cnotes types show PainPoint
230
- # Then create. Pass --notes as a single JSON object or an array. Title comes
231
- # from the # h1 heading in each note's markdown. Use
232
- # [@key: Title](relationship:<type>) to cross-reference another item in the
233
- # same batch — @key is replaced with the new note's display ID after creation.
234
- # Pick <type> from the verb your own prose uses ("blocks", "depends-on",
235
- # "invalidates" — `cnotes rel types` lists the vocabulary; free-form, unknown
236
- # types auto-create). `references` = pure citation ONLY: a verb narrated in
237
- # prose around a references chip is invisible to backlinks and `rel list`.
238
- cnotes notes create --notes '{"key":"A","type":"Insight","markdown":"# Solo note","tags":["ux"]}'
239
- cnotes notes create --notes '[
240
- {"key":"A","type":"PainPoint","markdownFile":"./problem.md"},
241
- {"key":"B","type":"Insight","markdown":"# Fix\n[@A: Problem](relationship:resolves)"}
242
- ]'
243
- # Each item: {key, type, markdown | markdownFile, tags?, changeDescription?}.
244
- # changeDescription is version 1's timeline line: a verb-first headline
245
- # (specific object in the first 40 characters, at most 110 characters), a
246
- # blank line, then a body the agent owns. `{displayId}` is filled in. A
247
- # failing agent headline may be rewritten; the body is kept. The response
248
- # includes `headline` and `headlineWarnings`. Omit the line and the platform
249
- # later writes one. Human-typed editor text only gets the token filled.
250
- # On validation failure the response lists every bad item by index + key + field
251
- # (and `details.items` in --json mode), so you can fix the whole batch in one shot.
252
- # Each .results[] item carries .type + .rubric — keep them when filtering JSON.
253
-
254
- # THEN: grade what you just wrote and revise before ending the run.
255
- # You are the grader. Grading spends no credits. `cnotes quality` does not
256
- # call a server model. It returns a gradeRequest on each ungraded note:
257
- # task "grade_against_rubric", the type rubric, the note content, and the
258
- # instruction "Grade this against the rubric". The create response's
259
- # .selfCheck is this command. Read .items[].gradeRequest (it also sits on
260
- # .gradeRequests). Do not drop it when you keep only the display id.
261
- cnotes quality INSIGHT-12 PAINPOINT-4 --fail-below 4 --json
262
- # Exit 3 until you record a grade. Then:
263
- cnotes quality record INSIGHT-12 --graded-version 4 --level 3 --criteria '[{"criterion":"Evidence","reason":"Grounded in two tickets."}]' --feedback "The pattern is named." --next-step "Say what would falsify it."
264
- cnotes quality --canvas CANVAS-60 --json
265
- cnotes quality --all --limit 200 --no-grade
266
- # Structural codes (free, no credits): missing_title, empty_body, bare_id,
267
- # unknown_type, no_rubric, superseded, missing_section.
268
- # missing_section fires only for headings named in a rubric line
269
- # "Required sections: Problem; Options". A rubric without that line
270
- # requires no headings.
271
-
272
- # Update metadata only (not content — use versions for that)
273
- # NOTE: --title is NOT available. Title is read-only, derived from the # h1 heading in version content.
274
- # To change a note's title, create a new version with a different # h1 heading.
275
- cnotes notes update <id> [--type <t>] [--tags <csv>] [--archive] [--unarchive] [--pin] [--unpin]
276
-
277
- # Delete (archive)
278
- cnotes notes delete <id>
279
-
280
- # Bulk archive/unarchive multiple notes at once
281
- cnotes notes bulk-archive --ids '["MEETING-1","PRD-3","IDEA-7"]' [--unarchive]
282
-
283
- # Bulk retype multiple notes to a new type (atomic per note: creates new, archives old, cross-links)
284
- cnotes notes bulk-retype --ids '["NOTE-1","NOTE-3","NOTE-5"]' --type Insight
285
-
286
- # Text search
287
- cnotes notes search <query> [--type <type>] [--limit <n>]
288
- ```
289
-
290
- ### Dependencies (`cnotes deps`)
291
-
292
- "When this note changes, check that dependent." A dependency is a `depends-on`
293
- relationship: the dependent (an FAQ, a landing page, a deck) depends on a basis
294
- (a behaviour, a decision, a claim). You declare one by writing the chip in the
295
- dependent's body, in a sentence that says why — the sentence is recorded as the
296
- reason:
297
-
298
- ```markdown
299
- No setup is needed because [[depends-on::NOTE-129]] creates the rules automatically.
300
- ```
301
-
302
- ```bash
303
- cnotes deps list --canvas CANVAS-58 # grouped: changed (start here), suggested, unchecked, then checked
304
- cnotes deps show <relationshipId> # both notes now, and as they were when last checked
305
- cnotes deps review <relationshipId> --outcome update_needed \
306
- --explanation "FAQ answer 3 still says no setup; the flow now needs one confirmation." \
307
- --propose "Change 'no setup needed' to 'one confirmation step'."
308
- ```
309
-
310
- Everything `impact review` records is a SUGGESTION. It is attributed to you
311
- (and to the running operation when you are inside one) and waits for a person
312
- to confirm it in the app. It never edits a note or publishes anything. Outcomes:
313
- `update_needed` (dependent no longer matches), `no_change` (checked, still holds),
314
- `updated` (checked after the dependent was updated), `uncertain` (cannot tell
315
- from the evidence). Read `impact show` before you judge: a save names the
316
- versions you looked at and is refused if they changed since.
317
-
318
- After you edit a note, run `impact list` on its canvas: the dependencies that
319
- now read `changed` are the ones your edit may have broken, and you are the one
320
- who knows what changed.
321
-
322
- ### Versions (`cnotes versions` / `cnotes v`)
323
- ```bash
324
- # List versions
325
- cnotes versions list <noteId>
326
-
327
- # Create a new version (updates note content)
328
- cnotes versions create <noteId> --description "Added the pricing objection from the call" --markdown-file <path.md>
329
- cnotes versions create <noteId> --description "what changed" --markdown "<short content>" # inline (short only)
330
- cnotes versions create <noteId> --description "what changed" --markdown-stdin < changes.md
331
- ```
332
-
333
- ### Canvas (`cnotes canvas` / `cnotes c`)
334
- ```bash
335
- # List / get (archived canvases excluded by default)
336
- cnotes canvas list [--include-archived]
337
- # Find a canvas by name, topic, or MEANING — semantic similarity over canvas-digest
338
- # embeddings blended with lexical match (name / themes / digest), so a query sharing no
339
- # words with a canvas can still surface it. This is the canvas-level counterpart to
340
- # `cnotes search semantic` (which searches NOTE content); they are separate corpora, so to
341
- # cover both you search each. Pass '*' or 'all' to enumerate every canvas. JSON results
342
- # carry id, displayId, title, matchedBy (lexical|semantic|both), relevance (0..1),
343
- # purpose, themes, contains, noteCount, snippet, and `open` (deep link).
344
- cnotes canvas search "<query>" [--limit <n>]
345
- cnotes canvas get <canvasId>
346
- # `get` returns each node kind in its own array (nodes/textNodes/richtextNodes/
347
- # listNodes/canvasLinkNodes) AND a unified `allNodes` array — every node flattened
348
- # to {id, kind, displayId, label, positionX, positionY, width, height} — plus
349
- # `contentBounds` (the bounding box of everything). Use allNodes/contentBounds to
350
- # reason about occupancy in one read instead of unioning the per-kind arrays.
351
- # Portals live in canvasLinkNodes, NOT nodes: checking only `nodes` is how a card
352
- # got dropped exactly on a portal. (You rarely need this for placement —
353
- # `cnotes canvas place` already avoids overlaps.)
354
- # See the whole layout before touching x/y: every item's box by kind, the pairs
355
- # that overlap, and with --near a free spot next to an anchor.
356
- cnotes canvas status <canvasId> [--near <displayId|nodeId|x,y>] [--size 280x130]
357
-
358
- # Read a canvas as STRUCTURE, not just content — one round-trip to think across it.
359
- # Returns the notes as concatenated markdown in display order (top-to-bottom, then
360
- # left-to-right) GROUPED UNDER THEIR SECTION FRAME, plus the edges (the argument)
361
- # and the portals (the navigation). --json gives { canvas, sections, elements,
362
- # edges, portals }; every element carries the `section` it sits inside.
363
- # You should not need a second `canvas get` just to see the frames or the wiring.
364
- cnotes canvas read <canvasId>
365
- # A share link someone sent (https://…/shared/<id>) reads directly, no workspace
366
- # needed: same access the link gives this account in a browser. A 404 means it
367
- # isn't shared with this account (or doesn't exist); ask the owner to share it.
368
- cnotes canvas read https://creatornotes.app/shared/<canvasId>
369
-
370
- # Read ONE section frame. Takes the SECTION-<n> handle ALONE — the canvas is resolved
371
- # for you — so this is the right call whenever the user names a frame ("look at
372
- # SECTION-6GC", "what's in the risks section") instead of reading a whole canvas and
373
- # filtering it by eye. Returns the notes, stickies, lists and portals whose CENTER sits
374
- # inside the frame, any frame nested within it (under its own heading), plus the edges it
375
- # touches (an edge leaving the frame is marked with where it goes).
376
- # --json gives { canvas, section, nestedSections, elements, edges, portals }.
377
- cnotes canvas read-section <SECTION-n>
378
-
379
- # AI digest of canvas: narrative summary + per-note summary list for every note on the canvas
380
- cnotes canvas digest <canvasId>
381
-
382
- # Create / update / delete
383
- # NAMING: never put an em-dash (—) or en-dash (–) in a canvas name. Use the interpunct
384
- # · (U+00B7, MIDDLE DOT — a small mid-height dot, NOT a bullet •) as the separator,
385
- # e.g. "Path to Revenue · Funding strategy", not "Path to Revenue — Funding strategy".
386
- cnotes canvas create "<name>" --goal "<text>" [--audience "<text>"] # prints Ref (CANVAS-N) + Link — surface them to the user (see "Surfacing the canvas link")
387
- # --goal is not optional in practice: write it FIRST, for a reader, as the decision or artifact
388
- # the board exists to produce ("Decide whether X; pick the first slice"), never as a brief to
389
- # yourself ("Research Tufte, diverge on..."). The goal renders only inside the (i) popover, so
390
- # nobody sees it before the banner; the banner restates it (hard rule 7).
391
- cnotes canvas update <canvasId> [--title "<text>"] [--goal "<text>"] [--audience "<text>"]
392
- cnotes canvas delete <canvasId>
393
- cnotes canvas set-as-home <canvasId>
394
- cnotes canvas archive <canvasId>
395
- cnotes canvas unarchive <canvasId>
396
-
397
- # Add nodes to canvas — see "Canvas Elements — When to Use What" before choosing.
398
- # Default to NOTES for content; text/list/section are presentation furniture.
399
- # PUT CARDS ON A CANVAS WITH `canvas place` (below): it packs them overlap-free and
400
- # --placement auto finds the space. add-node is LOW-LEVEL: raw x/y, no collision
401
- # check (it warns after the fact). Only use it with a spot from `canvas status --near`.
402
- cnotes canvas add-node <canvasId> --note <noteId> [--x <n>] [--y <n>] # low-level; NOTE nodes only
403
- # text = free-form rich text placed on the canvas (wire type: richtext). Markdown —
404
- # headings, emphasis, images. Optional background tint (--color); DEFAULT IS NO BACKGROUND.
405
- # A HEADING IS JUST `--content '# Q1 Goals'` with no tint — there is no separate heading
406
- # element. CARD-sized framing (at most ~3 sentences; the orientation banner may run to ~5 and follows hard rule 7), emphasis
407
- # quoting a note, image tiles. Unversioned, unsearchable, no display ID (nothing can cite
408
- # it) — never the sole home of a claim. When the card names a note or canvas, write a
409
- # relationship mention with the REAL title, `[NOTE-12: Title](relationship:verb)`: it renders
410
- # as a chip (verified 2026-09-05). A bare display id in card prose is a defect. The chip is
411
- # presentational (no graph edge), so knowledge worth keeping = a typed note.
412
- cnotes canvas add-text <canvasId> --content "<markdown>" [--size small|medium|large] [--color "<hex>"] [--x <n>] [--y <n>] # inline (short only)
413
- cnotes canvas add-text <canvasId> --content-file <path.md> [--size small|medium|large] [--color "<hex>"] [--x <n>] [--y <n>]
414
- cnotes canvas add-richtext ... # DEPRECATED alias of add-text (identical flags). Use add-text.
415
- # THE BOX IS DERIVED, NOT CHOSEN. You pick x/y; the server picks the size. WIDTH is the
416
- # --size preset: small 560px, medium 1120px, large 1680px. HEIGHT follows the content, and
417
- # there is no in-place content update: replacing a text element = remove-node + add-text,
418
- # and the new card is exactly as tall as its new content. So both halves bite — columns
419
- # pitched for a small card while the items are medium overlap by 460px each, and longer
420
- # copy at the same x/y runs over whatever sits below. The write still succeeds either way.
421
- # Longer copy is handled for you: when the card reaches DOWN into what starts below its top
422
- # edge (notes, lists, section frames and their title chips), the server shifts that whole
423
- # band down to clear it and says so (ripple {delta, movedNodeCount}; CLI prints "Made room"
424
- # on stderr). Re-read positions with canvas get before placing next to anything it moved.
425
- # What it cannot move comes back as layoutWarning (CLI also prints it to stderr): a column
426
- # BESIDE the card, or siblings in the frame the card sits inside. Reflow those (bulk-move /
427
- # arrange), or hand the block to `canvas place`, then re-check. Never treat "write succeeded"
428
- # as "layout is fine" after a size bump or a content change.
429
- # A list item is a COLLECTION OF NOTES, not a text block. --description is a one-line FRAME;
430
- # the content is the member notes you pass to --notes. If you have N distinct things
431
- # (questions, risks, options), create N notes first — pick the right type, e.g. a Question
432
- # note per open question — then group them: --notes ID1,ID2,ID3. Pasting a numbered/bulleted
433
- # list into --description with no --notes is the wrong shape (you get a "0 items" container
434
- # masquerading as prose). For a short card-sized framing blurb (at most ~3 sentences, no
435
- # member notes) use add-text; a multi-item markdown block is N typed notes, never a text element
436
- # (see "Canvas Elements — When to Use What").
437
- cnotes canvas add-list <canvasId> --description "<markdown>" [--notes <id1,id2,...>] [--view list|grid] [--x <n>] [--y <n>]
438
- cnotes canvas add-link <canvasId> --target <otherCanvasId> [--x <n>] [--y <n>]
439
- # section = a NAMED REGION frame (Miro-style). Renders behind content; dragging the frame
440
- # carries whatever sits inside it. Mints SECTION-<n>: mention [[SECTION-<n>]] from a note
441
- # body to deep-link readers to that region. Name like a place ("Shaping", "Open Questions").
442
- # Returns the displayId — surface it. Frames are NOT collision obstacles: content is placed
443
- # INTO them (canvas get returns sectionNodes with bounds).
444
- # PREFERRED: --notes creates the frame WITH those notes laid out inside it in one call
445
- # (grid, frame sizes itself around them, collision-aware — no coordinate math).
446
- cnotes canvas add-section <canvasId> --name "<title>" --notes <id1,id2,...> [--columns <n>] [--color "<hex>"]
447
- cnotes canvas add-section <canvasId> --name "<title>" [--x <n>] [--y <n>] [--width <n>] [--height <n>] # empty frame
448
-
449
- # Resize / rename / move / recolor an EXISTING frame, IN PLACE. Takes the SECTION-<n>
450
- # display id. ALWAYS use this to grow a frame around new content — deleting and
451
- # re-adding a section mints a NEW id (SECTION-51 becomes SECTION-57) and silently
452
- # breaks every [[SECTION-51]] mention pointing at the old one.
453
- cnotes canvas update-section <canvasId> --section SECTION-51 --height 1800
454
- cnotes canvas update-section <canvasId> --section SECTION-51 --name "Open Questions" [--x <n>] [--y <n>] [--width <n>] [--color "<hex>"] [--clear-color]
455
- # Edit a Text card's words IN PLACE (same node id, edges and mentions survive).
456
- # Card ids: the `id` on kind:richtext elements in `cnotes canvas read <canvasId> --json`.
457
- # --find must match exactly once; never delete + re-add a card to change its copy.
458
- cnotes canvas update-text <canvasId> --node <nodeId> --find "picks none" --replace "picks none (10 Oct 2026)"
459
- cnotes canvas update-text <canvasId> --node <nodeId> --append "Answered on 10 Oct 2026."
460
- cnotes canvas update-text <canvasId> --node <nodeId> --content-file ./banner.md [--size large] [--color "<hex>"]
461
-
462
- # Place items using a declarative layout (NO x/y math — server packs them)
463
- # This is the PREFERRED way to add multiple items. See "Canvas Layout" below.
464
- cnotes canvas place <canvasId> --spec ./layout.json
465
- cnotes canvas place <canvasId> --spec-stdin # JSON from stdin
466
- cnotes canvas place <canvasId> --spec-inline '<short JSON>' # for tiny specs only
467
-
468
- # Reflow EXISTING nodes (mixed kinds) into a section — preferred over bulk-move + update-section
469
- cnotes canvas arrange <canvasId> --section SECTION-90 \
470
- --nodes '[{"nodeId":"<id>","nodeType":"canvas"},{"nodeId":"NOTE-3","nodeType":"note"}]' \
471
- --layout grid --columns 4 --gap medium
472
-
473
- # Bulk add with explicit positions (escape hatch — only for pixel-perfect templates)
474
- cnotes canvas bulk-add <canvasId> --notes '[{"noteId":"NOTE-1","x":100,"y":100},{"noteId":"NOTE-2","x":400,"y":100}]'
475
-
476
- # Move / remove nodes (--type for non-note nodes, e.g. --type section)
477
- # move-node is LOW-LEVEL: raw x/y, no collision check (it warns when the node lands
478
- # on something). To tidy or reorganize, use `canvas arrange`; to pick a spot by
479
- # hand, get one from `canvas status <canvasId> --near <ref>` first.
480
- # NOTE: `text` in these type lists is the LEGACY heading kind (old canvases only). It can no
481
- # longer be CREATED, but existing ones stay movable and deletable — that is why it is still
482
- # accepted here. Today's Text element is `richtext`.
483
- cnotes canvas move-node <canvasId> --node <nodeId> --x <n> --y <n> [--type note|richtext|list|canvas|section|text]
484
- # remove-node takes a RAW node id only — it finds the canvas from the id, so it has
485
- # nothing to resolve "SECTION-7" against. For a display reference use bulk-remove,
486
- # which is also fine with a single entry.
487
- cnotes canvas remove-node <canvasId> --node <nodeId>
488
-
489
- # Bulk remove — the way to REVISE a canvas instead of only adding to it.
490
- # --nodes entries may be a node id, a SECTION-<n>, or a note display id naming that
491
- # note's card on THIS canvas. Edges on a removed node come off automatically; pass
492
- # --edges only to drop an edge while keeping both of its nodes.
493
- cnotes canvas bulk-remove <canvasId> --nodes '["SECTION-7","DECISION-3"]' [--edges '["edgeId1"]']
494
- # Removal is PLACEMENT-ONLY: the note keeps its content, versions and display id and
495
- # stays on every other canvas. It is not archiving — and archiving a note does NOT take
496
- # it off a canvas, so a superseded card has to be removed here as well as archived.
497
- # Wrap it (canvas agent-run wrap) so the removal is undoable — see the undo rule below.
498
-
499
- # Bulk move multiple nodes at once (more efficient than repeated move-node)
500
- cnotes canvas bulk-move <canvasId> --moves '[{"nodeId":"abc","nodeType":"note","x":200,"y":300},{"nodeId":"def","nodeType":"richtext","x":500,"y":300}]'
501
- # nodeType: note | richtext | list | canvas | section | text (defaults to "note"; `text` = legacy)
502
-
503
- # Connect nodes — edges can join ANY node type (note, richtext, list, canvas-link, legacy text),
504
- # as long as both endpoints live on the same canvas.
505
- # Labels are short verbs ("fixes", "grounds", "then"). `canvas read` DOES return edges now,
506
- # but an edge is still CANVAS-LOCAL: it is not part of the note graph, so it never shows up in
507
- # `rel list`, is not searchable, and means nothing away from this canvas. So when an edge
508
- # encodes a relationship between NOTES, ALSO mirror it as a relationship mention in the note
509
- # bodies — that is the copy that travels. Edges to text/list/canvas-link nodes are diagram
510
- # decoration (labels, portals) and need no mention.
511
- cnotes canvas add-edge <canvasId> --source <nodeId> --target <nodeId> [--label "<text>"]
512
-
513
- # Comments — PRIVATE anchored comments on canvas nodes: the human→agent review
514
- # queue. Visible only to their author + agents acting as them (never to other
515
- # workspace members) UNTIL the author sends them as a review with
516
- # `comments submit`, which hands that canvas's unsent comments to ONE person,
517
- # the canvas owner. Excluded from digests, search, embeds and public
518
- # shares. Process, not knowledge: open→resolved lifecycle; a comment that is
519
- # still true after it resolves should be promoted to a typed note. When asked
520
- # to "address the comments" on a canvas: `comments list`, act on each item
521
- # inside an operations run, then `comments resolve` each — the active run is
522
- # recorded automatically as what addressed it. `--node` takes a raw node id,
523
- # a NOTE display id, or a SECTION display id. `isStale: true` on a listed
524
- # comment = the target note changed after the comment was written (re-read,
525
- # don't skip). `targetMissing: true` = the anchor node was deleted; the
526
- # comment still stands — resolve or rm it explicitly. `list` returns at most
527
- # 100 comments per status; `truncated: true` in --json means more exist
528
- # (resolve some, then list again). Use `comments add` (author defaults to
529
- # agent from the CLI) to leave anchored self-notes for future sessions
530
- # ("don't move SECTION-42 — the filmstrip references it by position").
531
- # OMIT the canvas id to read your open queue across the WHOLE workspace — the
532
- # only entry point when the user names a NOTE and not a canvas ("I left you a
533
- # review comment on STAGE-6H1"), because a note does not resolve to the canvas
534
- # it sits on. Every row is stamped with `canvasId`/`canvasDisplayId`, so you can
535
- # resolve it without a second lookup. Workspace-wide reads are OPEN comments
536
- # only (--status errors rather than quietly narrowing) and cap at 200, with
537
- # `totalOpen` in --json capped the same way — read it as a floor, not a census,
538
- # whenever `truncated` is true.
539
- cnotes canvas comments list [canvasId] [--status open|resolved|all] [--received]
540
- cnotes canvas comments add <canvasId> --node <nodeRef> --text "<content>" [--author human|agent]
541
- cnotes canvas comments resolve <canvasId> --id <annotationId>
542
- cnotes canvas comments reopen <canvasId> --id <annotationId> # Undo a resolve; the comment rejoins the open queue
543
- cnotes canvas comments rm <canvasId> --id <annotationId>
544
- # `--received` switches to a DIFFERENT queue: reviews other members submitted TO
545
- # you (each row carries `submittedByName`), on one canvas or across the
546
- # workspace depending on whether you passed a canvas id. When the user says
547
- # "address the comments Will sent me", you MUST pass --received — the default
548
- # queue is your own comments and will look empty. Resolve received comments the
549
- # same way; you may never delete one (only its author can).
550
- # Reviewing SOMEONE ELSE'S canvas: comment freely (view-only members can), then
551
- # submit once. Nothing you wrote is visible to anyone until you do, and the
552
- # owner then sees each comment anchored to the card it is about, grouped under
553
- # your name in their review queue. Idempotent — a second submit sends only what
554
- # you have written since. There is no unsend. Reviews you RECEIVE arrive in the
555
- # same `comments list` queue and are yours to resolve (never to delete).
556
- cnotes canvas comments submit <canvasId>
557
-
558
- # Templates — create structured canvases from predefined layouts
559
- cnotes canvas templates # List available templates
560
- cnotes canvas from-template <templateId> [--title "<title>"] # Create empty skeleton
561
- cnotes canvas from-template <templateId> --populate # Auto-populate zones with matching notes
562
- # Templates: sprint-retrospective, swot-analysis, kanban-board, feature-prioritization, meeting-notes, product-roadmap
563
-
564
- # Milestones — the same canvasSnapshots rows the web UI saves (kind "milestone").
565
- # The message is one field: the first line is the timeline headline, a blank
566
- # line, then the body. The headline MUST start with a past-tense verb and name a
567
- # specific object in the first 40 characters ("Shipped the public comic canvas",
568
- # never "V1"); the server rejects anything else with exit code 3 and saves
569
- # nothing. Headline at most 110 characters. The platform may tidy an agent
570
- # headline and leaves the body. `headlineWarnings` comes back on the JSON response.
571
- # See https://creatornotes.app/blog/timeline-as-navigation
572
- # An AI summary is stored separately and does not replace this message.
573
- # If an operations run is active, the save attaches to it and records that run's
574
- # actor, so an agent milestone is not labelled as a human edit.
575
- cnotes canvas milestone create <canvasId> --message "Opened pricing question: charge for agents or the workspace?"
576
- cnotes canvas milestone create <canvasId> --message-file ./milestone.txt
577
- cnotes canvas milestone list <canvasId>
578
- cnotes canvas milestone list <canvasId> --json
579
- cnotes canvas milestone show <milestoneId>
580
- cnotes canvas milestone rename <milestoneId> -m "Shipped the public comic canvas" # new headline, body kept
581
-
582
- # Agent-run bracketing — group a sequence of canvas changes into one operation
583
- # with before/after snapshots so the user can see "AI did X" and revert as a unit.
584
- # REQUIRED when an AI agent modifies a canvas — but an open `cnotes operations
585
- # begin` run ALREADY satisfies it (same active-run pointer; canvas writes
586
- # attach to it). Only bracket here when no operations run is open; a second
587
- # `begin` on top of one refuses with CONFLICT. Notes directly below the block.
588
- cnotes canvas agent-run wrap --canvas <id> --prompt "<intent>" -- <command> # one-shot
589
- cnotes canvas agent-run begin --canvas <id> --prompt "<intent>" [--rationale "<plan>"] # multi-step
590
- cnotes canvas agent-run end --canvas <id> # no --run-id needed; ends the active run
591
- cnotes canvas activity <canvasId> # inspect operations + attribution after the fact
592
- ```
593
-
594
- `begin` persists the run as the active run for this server (the same pointer
595
- `cnotes operations begin` uses), so **every subsequent cnotes write attaches to
596
- it automatically** — across separate shells and stateless tool calls, with no
597
- env var to thread through. `end` closes that active run, so it needs no
598
- `--run-id`. Only one run can be open at a time: a second `begin` refuses with
599
- exit 5 (CONFLICT) rather than silently clobbering the first — pass `--force` to
600
- end the prior run server-side and start fresh.
601
-
602
- Prefer `wrap` for a single command (it auto-closes even on failure, and its run
603
- is scoped to the subprocess, so it nests correctly inside an open `operations`
604
- run). Use `begin`/`end` when the batch spans several commands.
605
-
606
- **Always close the run.** If you can't, a later `begin --force` ends the stale
607
- one and starts clean. Verify attribution with `cnotes canvas activity <id>`:
608
- writes made inside a run show `operationType: agent.run` / `actorSource: agent`.
609
- If you see `manual.edit` / `actorSource: human`, the bracket did not take and
610
- the timeline is crediting your edits to the user.
611
-
612
- ### Timeline (`cnotes timeline` / `cnotes tl`)
613
- ```bash
614
- # Show recent changes (default: last 7 days)
615
- cnotes timeline [--since <when>] [--until <when>] [--type <noteType>] [--note <filter>] [--limit <n>]
616
-
617
- # Examples
618
- cnotes timeline # last 7 days
619
- cnotes timeline --since 30d # last 30 days
620
- cnotes timeline --since 2w --type Meeting # meetings in last 2 weeks
621
- cnotes timeline --since 7d --note standup # filter by note name
622
- # Supported --since formats: relative (7d, 2w, 3h, 30m), ISO date (2026-03-21), unix ms
623
-
624
- # Search the change log by MEANING (not just a date range). Answers "when did we
625
- # change X, and why" — a hybrid keyword + semantic search over the change
626
- # descriptions. All-time by default; add --since to bound the window.
627
- cnotes timeline --query "pricing framing" # find the change, get NOTE + version
628
- cnotes timeline --query "auth decision" --since 30d # search within a window
629
- # --json returns { mode: "search", query, results: [{ displayId, versionNumber,
630
- # changeDescription, snippet, createdAt, score, ... }] }
631
- ```
632
-
633
- ### Shared with you (`cnotes shared`)
634
- ```bash
635
- # What teammates shared with the user: direct canvas/note shares, reviews sent
636
- # to them, and review asks they accepted but haven't finished. An INBOX, not
637
- # history — items persist until acted on, they never age out of a window.
638
- cnotes shared [--from <person>] [--limit <n>]
639
-
640
- # Examples
641
- cnotes shared # everything waiting on the user
642
- cnotes shared --from ben # just what Ben pointed at them
643
- cnotes shared --quiet # target refs only (CANVAS-12, ...)
644
- # --from takes a name (case-insensitive, unique substring ok); if it matches
645
- # more than one member the error lists the candidates — use a fuller name.
646
- # --json rows: { kind: "share"|"review"|"ask", senderName, targetKind,
647
- # displayId, title, ts, commentCount? (reviews), ask? (asks) }
648
- ```
649
-
650
- ### Drafts (`cnotes draft`)
651
-
652
- A draft is a private workspace opened FROM the active one. Only the person who
653
- opened it, and agents using their login, can see it. Nothing in it reaches the
654
- shared workspace until the person asked approves it: in the browser, or, for
655
- a proposed version of a board, through their own agent (`cnotes draft accept`
656
- under their key). The key that built a draft can never land it. You build the
657
- draft; the person asked decides it.
658
-
659
- Open a draft before you:
660
- - rework notes other people read (a guide, a decision others cite);
661
- - rework a board other people read (branch it, below);
662
- - write many interlinked notes at once;
663
- - do anything you were asked to "draft".
664
-
665
- **To rework a board other people read, branch it:** `cnotes draft open
666
- --from-canvas CANVAS-390`. The draft holds your working copy (it prints its
667
- id, say CANVAS-412) and the live board does not change. Inside the draft, the
668
- ordinary canvas verbs work on CANVAS-412: `canvas read`, `place` (shared notes
669
- included), `move-node` / `bulk-move` / `arrange`, `remove-node` /
670
- `bulk-remove`, `add-edge`. A canvas write aimed at
671
- CANVAS-390 from inside the draft is refused and names your copy; never pass
672
- `-w <shared workspace>` to reach it, which edits the live board. A person
673
- accepts your copy as the board's next version (V2), on the live board.
674
-
675
- ```bash
676
- cnotes draft open "Pricing rethink" --intent "Rework tiers for teams" # opens AND switches to it
677
- cnotes draft open --from-canvas CANVAS-390 --intent "Restamp screens 4 to 7" # branch a board
678
- cnotes notes create --notes '[...]' # lands in the draft (it is the active workspace)
679
- cnotes notes get DECISION-12 # a SHARED note reads through from the draft (sharedFrom in --json)
680
- cnotes draft propose DECISION-12 --markdown-file new.md --description "Annual is the default"
681
- cnotes draft edits # the proposals: proposed title, base version, conflict marker
682
- cnotes draft discard DECISION-12 # withdraw one; the shared note was never touched
683
- cnotes draft status # who it waits on, what V2 changes, the checks, the link
684
- cnotes draft ask --reviewer sam@example.com # name who decides; then STOP
685
- cnotes draft list # your open drafts across workspaces (--all adds closed)
686
- cnotes draft checkout pricing # resume in a NEW session: id or unique name substring
687
- cnotes draft dismiss # close it; nothing reaches the shared workspace
688
- ```
689
-
690
- The loop:
691
- 1. **Build inside the draft.** New notes and canvases land in it, and a branch
692
- copy takes your canvas edits. Link to shared notes normally:
693
- `[DECISION-12: Title](relationship:builds-on)` resolves to the shared note
694
- and stays a working link once the draft lands.
695
- 2. **Change a shared note by proposing it, never live.** Read it (`cnotes
696
- notes get DECISION-12` works from inside the draft), write the complete new
697
- body, then `cnotes draft propose DECISION-12 --markdown-file new.md
698
- --description "<what changed>"`. The shared note keeps its text until the
699
- draft lands. A live write to a shared note from inside a draft (`versions
700
- create`, `notes update`, archive, retype) is refused and points here.
701
- Proposing the same note again replaces the proposal.
702
- 3. **Run `cnotes draft status` until no check blocks.** Blocking: a link to a
703
- shared note that is archived, a citation of a shared note that moved since
704
- you cited it (`stale-citation`: read it again and save the citing note
705
- again), and a proposal whose base moved (`base-conflict`: read the current
706
- text, fold it in, propose again). Warnings never block: a missing title, an
707
- empty body, `stale-read`. Every finding names the card and the fix. For a
708
- branch, status also prints "V2 of CANVAS-390: 2 added, 5 moved, ...", each
709
- conflict with the live board (a card changed on both sides; make your copy
710
- match the live board's value to clear it), and how many cards changed on
711
- the live board since you branched.
712
- 4. **Ask, then stop.** On a branched board, `cnotes draft ask --reviewer
713
- <their email>` names the person who decides (an editor of the shared
714
- workspace, usually the board's owner). On a plain draft only `--reviewer me`
715
- is accepted: the person whose login you use lands it, and naming anyone
716
- else is refused because a draft is private to them. It prints the link they
717
- open; post it, then stop. Never try to merge or approve what you built:
718
- `cnotes draft merge` and `cnotes review complete --outcome approved` on
719
- your own draft are refused, and pressing Accept or Approve through a
720
- browser tool is not yours to do either.
721
- 5. **When they send it back,** `cnotes draft status` opens with their line
722
- ("Changes requested by <name>: ..."). Fix it in the draft, run status until
723
- no check blocks, then `draft ask` again and stop.
724
-
725
- **Deciding as someone's agent.** When the person whose login you use was
726
- asked to decide a proposed version of their board, `cnotes shared` lists it
727
- as `decide` with the draft id. Read it with `cnotes draft status <draftId>`
728
- (V2 against the live board, each conflict, the checks) and the reworded
729
- notes with `cnotes draft edits --draft <draftId> --note <NOTE-n>`. Then
730
- `cnotes draft accept <draftId> --note "why"` lands it as the board's next
731
- version, as them, or `cnotes draft send-back <draftId> --note "what should
732
- change"` returns one line to the proposer. Accept re-reads everything first
733
- and refuses on a blocking check or a conflict. History shows the landing as
734
- "approved by <them>, through their agent", and Undo stays theirs in the
735
- browser. Decide only when the person told you how; when unsure, say what you
736
- read and let them click.
737
-
738
- What to rely on:
739
- - **One line says who it waits on.** `draft status`, `draft checkout` and
740
- `workspace current` print it: nobody asked yet, the changes a person asked
741
- for, or a named reviewer. When the next move is yours, it ends with the
742
- `draft ask` to run. `--json` carries it as `decision.line`, with
743
- `decision.state` (`awaiting_person`, `changes_requested`,
744
- `waiting_on_reviewer`).
745
- - **Ids survive.** A draft mints display ids from the shared workspace's
746
- sequence, so `DECISION-6K9` written in a draft is still `DECISION-6K9` once it
747
- lands. In the rare clash the id is re-minted, every mention is rewritten, and
748
- `draft status` lists the change (`merge.renamed` in `--json`).
749
- - **A saved switch can be shadowed.** `draft open` and `draft checkout` save the
750
- draft as the active workspace, but `CNOTES_WORKSPACE` and `-w` beat the saved
751
- one. When either names another workspace the command says writes still go
752
- there; unset it to work in the draft. `workspace current` shows what picked
753
- the workspace.
754
- - **After it lands,** `draft status` says who approved it and which ids were
755
- renamed. Your CLI still points at the closed draft: `cnotes workspace
756
- current` names it and prints the `cnotes workspace select` that switches
757
- back. The person can undo the merge while nobody has built on it.
758
- - **Canvases in a draft can hold shared notes.** Place them as usual; the card
759
- points at the shared note, and to change what it says, propose it.
760
- - **It lands all at once:** at most 100 notes, 25 canvases and 100 proposals.
761
- Only live items count: archived notes and canvases stay in the draft, and any
762
- link, card or list item pointing at them is dropped so their titles never
763
- reach the shared workspace. The draft's empty starting canvas stays behind.
764
- - **A draft can't be shared.** Invites, email shares and public links refuse
765
- in a draft. The hand-over is `draft ask`, nothing else: for a branch, it is
766
- what lets the person you name see your version at all.
767
- - **Wrap the work in an operation as usual** (`operations begin` while the
768
- draft is active): runs attribute to the draft like any workspace, and follow
769
- the work onto the shared timeline when it lands.
770
-
771
- ### Review requests (`cnotes review` / `cnotes reviews`)
772
-
773
- Official review requests, both legs. The canvas IS the request: assemble it
774
- first (context notes reused from research, Question notes to answer, an
775
- instruction text node, a portal back), then request the review of it. Never
776
- simulate a review request with private canvas comments — comments are drafts
777
- for a round, not the round itself.
778
-
779
- ```bash
780
- # REQUESTER LEG — create, monitor, manage.
781
- # --reviewer me = SELF-REVIEW, actionable immediately, no invitation step.
782
- # --reviewer <memberUserId> assigns a workspace member the same way.
783
- # --reviewer <email> (or --email) binds an outside reviewer; they accept via link.
784
- # Omit all three for a link any workspace member can claim.
785
- cnotes review request CANVAS-81 \
786
- --reviewer me \
787
- --target SECTION-135 \
788
- --brief "Approve the Gong-faithful customer target" \
789
- --acceptance "Confirm the document boundary" \
790
- --acceptance "Confirm source fidelity" \
791
- --source ATTENTION-6J1 \
792
- --idempotency-key "attention-6j1-second-iteration" --json
793
- # → { requestId, url, … }. url is the CANONICAL human review link, returned by
794
- # the server — never assemble one yourself. requestId is the automation handle.
795
- # Same idempotency key ⇒ the same request comes back (alreadyExists: true),
796
- # never a sibling. --questions '["…"]' still mints new Question notes when the
797
- # canvas doesn't already carry them; --brief falls back to the canvas goal.
798
-
799
- cnotes review list CANVAS-81 # asks out on a canvas + status
800
- cnotes review get <requestId|url> --json # the full envelope (see below)
801
- cnotes review send-again <requestId> --email ana@example.com
802
- cnotes review revoke <requestId>
803
-
804
- # REVIEWER LEG — receive, inspect, complete.
805
- cnotes review list --assigned-to me # the worklist: reviews waiting on you
806
- cnotes review list --assigned-to me --status all
807
- cnotes review get <requestId> --json # brief, acceptanceCriteria, targetRef,
808
- # slate, findings, canvasChanged,
809
- # allowedActions for YOU, url
810
- cnotes review complete <requestId> \
811
- --outcome approved \
812
- --rationale "Matches the source and preserves the agreed boundary" \
813
- --idempotency-key "review-run-123" --json
814
- cnotes review complete <requestId> --outcome changes-requested \
815
- --rationale "The boundary drifts from Gong" \
816
- --criteria '[{"criterion":"Document boundary","met":false,"note":"two extra lines"}]'
817
- # Exactly ONE outcome per round: approved | changes-requested, rationale
818
- # mandatory. Findings you added against the request (canvas comments bound to
819
- # it) are delivered in the same act. If the envelope says canvasChanged, the
820
- # board moved since the ask — re-read it, then add --accept-stale; completion
821
- # never silently applies to a moved version. Same idempotency key ⇒ the
822
- # recorded outcome comes back instead of a conflict.
823
- # If you CANNOT judge it (missing evidence/access), never fake a completion —
824
- # hand it back with the structured blocker:
825
- cnotes review return <requestId> --reason "I can't open the Gong recording"
826
- # `get` accepts a request id, a raw token, or a full /review/<token> URL, so a
827
- # pasted review link is enough to pick the work up here.
828
- ```
829
-
830
- ### Focus plans (`cnotes focus`)
831
-
832
- Protected flow-state blocks, private to the user. The Focus calendar overlays
833
- plans on recorded attention; kept/missed is derived, so there is no
834
- "complete" verb.
835
-
836
- ```bash
837
- # Plan a block. Link the prepared canvas so opening the block orients in
838
- # seconds — and --target to land it on the exact card the block works on.
839
- cnotes focus plan --start 09:00 --duration 90m \
840
- --goal "Decide the pricing wedge" --canvas CANVAS-12
841
-
842
- # --target names a NOTE-… or SECTION-… display id ON that canvas (an
843
- # Attention card, a Decision). Needs --canvas; validated at plan time (a
844
- # ref not on the canvas is refused). The calendar block then renders
845
- # "CANVAS-80 → ATTENTION-6J4 · <title>" and clicking it opens the canvas
846
- # landed on that card.
847
- cnotes focus plan --start 09:00 --duration 45m \
848
- --goal "Approve the customer target" \
849
- --canvas CANVAS-80 --target ATTENTION-6J4
850
-
851
- cnotes focus list [--days <n>] [--past <n>] # target shows in the canvas column
852
- cnotes focus cancel <planId>
853
- # --start takes "HH:MM" (next occurrence), "tomorrow HH:MM",
854
- # "YYYY-MM-DD HH:MM", or full ISO; --duration takes "45m", "90m", "1.5h".
855
- # list --json rows: { id, startMs, endMs, goal, canvasViewId, canvasName,
856
- # canvasDisplayId, targetRef, targetTitle, createdBySource, createdAt }.
857
- # targetTitle null while targetRef is set = the card drifted off the board
858
- # since planning — re-target or re-plan rather than trusting the block.
859
- ```
860
-
861
- **Keep the plan row thin.** Time, goal, destination — nothing else. The
862
- durable clues (decisions, criteria, "complete when") live IN the target note,
863
- never in the goal string: a display id pasted into the goal is inert prose the
864
- graph cannot see, while `--target` is the clickable, validated form of the
865
- same intent. A plan with no `--canvas` renders as a non-clickable block; that
866
- is by design, not a bug — there is nothing to open.
867
-
868
- ### Relationships (`cnotes relationships` / `cnotes rel`)
869
- ```bash
870
- # Backlinks + outbound links for a note. This IS the editor's "Backlinks"
871
- # affordance for agents. --json returns { incoming, outgoing, all }:
872
- # incoming → notes that link TO this note (backlinks — "what cites me")
873
- # outgoing → notes this note links to ("what I cite")
874
- # Each row carries the related note inline so you rarely need a follow-up fetch:
875
- # { id, direction, origin, live, isStale, madeAgainstVersion, relatedNoteCurrentVersion,
876
- # relatedNote: { displayId, title, type, workspaceName },
877
- # relationshipType: { name, label } }
878
- cnotes rel list --note <displayId>
879
- cnotes rel list --note INSIGHT-1 --json --fields incoming # just the backlinks
880
-
881
- # By default you see links that hold RIGHT NOW. --history adds the superseded ones.
882
- cnotes rel list --note <displayId> --history
883
- cnotes rel list [--type implements] [--limit <n>] # workspace-wide
884
-
885
- # Delete a relationship by id (ids come from `rel list`).
886
- cnotes rel rm <relationshipId>
887
-
888
- # List the relationship types defined in the workspace. Check this BEFORE
889
- # using a relationship:<type> label so you reuse an existing type instead of
890
- # creating a near-duplicate.
891
- cnotes rel types
892
- ```
893
-
894
- **Read the two provenance fields before you trust a link.** They answer different
895
- questions, and conflating them is the classic mistake:
896
-
897
- | Field | Meaning |
898
- |---|---|
899
- | `origin: "content"` | Extracted from a `[[type::TARGET]]` chip in the note body. Its lifecycle IS the body's — delete the chip and the link stops being live. |
900
- | `origin: "declared"` | Not attributable to a chip in the current body: a structural link (from a duplicate/move), one created explicitly, **or an old link predating chip tracking** (see caveat below). Editing the body never retires it, so a declared link that no longer holds can ONLY be removed with `rel rm`. |
901
- | `live: false` | A content chip that is **gone from the note's current version**. This is the obsolete one. Hidden unless you pass `--history`. |
902
- | `isStale: true` | **Citation drift, NOT obsolescence.** The link holds; the note it points at has simply advanced since it was cited (`madeAgainstVersion` < `relatedNoteCurrentVersion`). Often the most interesting signal in the graph — a claim resting on a source that moved. Worth re-reading, never worth auto-deleting. |
903
-
904
- Relationships are append-only: every save re-extracts the body's chips into fresh
905
- rows and the old ones become history rather than being deleted. The default read
906
- already hides superseded rows, so `rel list` reflects the CURRENT content — you do
907
- not need to filter it yourself.
908
-
909
- **Caveat on `declared`:** chip tracking was added after the fact, so links created
910
- before it report `declared` even when they DID come from a body chip. Read
911
- `declared` as "not tracked to a chip", not as proof the link was never in the
912
- prose — the note body is the authority. This only ever makes a link too durable
913
- (it stays live), never too fragile, so `declared` is always safe to trust as
914
- "still asserted"; just don't infer from it that the prose never said so.
915
-
916
- **See how a found note connects (the editor header, for agents).** When you
917
- land on a note via `search semantic` / `notes list`, the two affordances the
918
- editor shows at the top of the panel are both one call away — use them to
919
- orient before acting on the note:
920
-
921
- ```bash
922
- cnotes rel list --note INSIGHT-1 --json # Backlinks: .incoming = what links here
923
- cnotes notes canvases INSIGHT-1 --json # Canvases: where this note already lives
924
- ```
925
-
926
- Reach for these to expand context around a search hit (walk `.incoming` to find
927
- who depends on a decision), to avoid duplicating a note that's already placed on
928
- the right canvas, or to gauge a note's importance (many backlinks / on the home
929
- canvas = load-bearing). `cnotes schema --json` carries the same pointers under
930
- its `discovery` key.
931
-
932
- ### Search
933
- `cnotes search semantic` searches NOTE content (vector + BM25); `cnotes canvas search`
934
- searches CANVASES (name / themes / digest, semantic + lexical). They are separate corpora —
935
- to cover both, search each.
936
- ```bash
937
- cnotes search semantic "<query>" [--limit <n>] [--canvas <canvasId>] # NOTES
938
- cnotes canvas search "<query>" [--limit <n>] # CANVASES
939
- ```
940
-
941
- ### Types (`cnotes types` / `cnotes t`)
942
- ```bash
943
- # List all types (supertags) in the workspace
944
- cnotes types list
945
-
946
- # Show one type's quality rubric (validationPrompt) — read before authoring that type
947
- cnotes types show <name>
948
-
949
- # Create a new type (prefix is auto-derived from display name)
950
- cnotes types create <name> [--display-name <name>] [--description <text>] [--color <hex>]
951
-
952
- # Update an existing type (prefix updates automatically when display name changes)
953
- cnotes types update <name> [--display-name <name>] [--description <text>] [--color <hex>]
954
-
955
- # Retype a note (atomic: creates new note with target type, archives old one, cross-links both)
956
- cnotes notes retype <displayId> --type <NewType>
957
- ```
958
-
959
- ### Files (`cnotes files` / `cnotes f`)
960
- ```bash
961
- # Upload an image to the workspace (max 5MB, supports .jpg .jpeg .png .gif .webp)
962
- cnotes files upload <path> [--markdown] # --markdown outputs ![filename](url) syntax
963
-
964
- # Read an image that's INSIDE a note. A note's content prints images as
965
- # ![alt](/api/images/convex/<storageId>) — that path is your storage id. Use
966
- # this to turn it into actual pixels you can look at (authenticates with your
967
- # CLI key, same as `cnotes notes get` does for text).
968
- cnotes files get <storageId> [-o <path>] # download the bytes (default: ./<storageId>.<ext>)
969
- cnotes files get <storageId> --url # just print a directly-fetchable URL
970
- cnotes files get '/api/images/convex/<storageId>' # paste the path straight from a note
971
- ```
972
- To "see" an image in a note: `cnotes notes get NOTE-X` to find the
973
- `/api/images/convex/<storageId>` reference, then `cnotes files get <storageId> -o /tmp/img.png`
974
- and open the saved file.
975
-
976
- ### Init & MCP (`cnotes init` / `cnotes mcp`)
977
- ```bash
978
- # Interactive setup wizard — auth, workspace, AI integrations, skill install
979
- cnotes init
980
-
981
- # Configure MCP server for AI tools (also handled by cnotes init)
982
- cnotes mcp setup # Claude Desktop
983
- cnotes mcp setup-codex # OpenAI Codex
984
- ```
985
-
986
- ### Theme (`cnotes theme`)
987
-
988
- Personal UI theme preference (synced to your account, applies on next browser reload — does NOT live-update an open tab).
989
-
990
- ```bash
991
- # List built-in presets — current one is marked with *
992
- cnotes theme list
993
-
994
- # Show the active theme + any per-token color overrides
995
- cnotes theme get
996
-
997
- # Switch to a built-in preset
998
- cnotes theme set <id> # e.g. dracula, ember, catppuccin-mocha, sage, light, dark
999
-
1000
- # Override a single color (switches the theme to "custom" automatically)
1001
- cnotes theme set-color <token> <hex> # e.g. cnotes theme set-color primary "#ff00aa"
1002
-
1003
- # Drop all custom overrides and return to the base preset
1004
- cnotes theme reset
1005
- ```
1006
-
1007
- **Editable tokens** (anything else is rejected with 422):
1008
- `background`, `card`, `popover`, `muted`, `border`, `sidebar-background`,
1009
- `primary`, `primary-foreground`, `ring`, `accent-teal`,
1010
- `foreground`, `muted-foreground`, `prose-body`, `prose-heading`,
1011
- `code-background`, `code-foreground`, `blockquote-border`,
1012
- `destructive`, `success`, `warning`, `info`.
1013
-
1014
- `set-color` merges into existing overrides — call it repeatedly to build up a custom palette. `reset` returns to the preset that was the base of your custom theme (or `dark` if you started from scratch).
1015
-
1016
- ### Config
1017
- ```bash
1018
- cnotes config get-server
1019
- cnotes config set-server <url>
1020
- ```
1021
-
1022
- ### Feedback (`cnotes feedback`)
1023
- ```bash
1024
- # Report friction, a bug, or praise from inside an agent session.
1025
- # Routes to the CreatorNotes team's central feedback inbox (server-side routing —
1026
- # you never need a canvas or workspace id). See "Closing the loop" in Best Practices
1027
- # for WHEN to use this and the rule to ask the user first.
1028
- cnotes feedback submit --severity <blocking|high|medium|low|praise> --area <area> --title <text> \
1029
- [--body <md> | --body-file <path> | --body-stdin] [--model <id>] [--rating <1-5>]
1030
-
1031
- # Examples
1032
- cnotes feedback submit --severity blocking --area cli/canvas \
1033
- --title "canvas list 500s" --body-file ./report.md --model claude-opus-4-8
1034
- echo "Loved the batch @key cross-links." | cnotes feedback submit \
1035
- --severity praise --area cli/notes --title "Batch create is the right primitive" --body-stdin
1036
- ```
1037
-
1038
- ## Surfacing the canvas link (do this after canvas work)
1039
-
1040
- When you create a canvas — or finish placing/editing notes on one — **end your reply with a link to that canvas.** The user should never have to go hunt for what you just built. Lead with the canvas's **display id** (the memorable, immutable handle like `CANVAS-321` — the CreatorNotes equivalent of a Jira ticket id) as the *link text*:
1041
-
1042
- > Built **[CANVAS-321 · Pricing model](https://creatornotes.app/<workspaceId>?canvasId=<canvasId>)** — 7 notes across 3 columns.
1043
-
1044
- `cnotes canvas create` and `cnotes canvas get` print the two pieces ready to paste — copy them straight through, don't re-assemble:
1045
-
1046
- ```
1047
- Ref: CANVAS-321 ← the display id — use as the link TEXT
1048
- Link: https://…/<wsId>?canvasId=<id> ← the href (uses the raw Convex id)
1049
- ```
1050
-
1051
- (With `--json`, `canvas create` adds the same link as `canvas.url`, and `canvas.displayId` is the ref.)
1052
-
1053
- `cnotes canvas place`, `cnotes canvas bulk-add`, and `cnotes canvas add-node` also print a `Link:` line **when you pass the canvas's raw Convex id** (the `ID:` you captured from `canvas create` / `canvas get`). Pass a `CANVAS-12` display id to those write commands instead and the link is omitted — the display id doesn't resolve in `?canvasId` — so hold the Convex id when you intend to surface a link.
1054
-
1055
- For any canvas you only *added to* (you already hold its id, so you didn't re-`get` it), build the link yourself in this exact shape:
1056
-
1057
- ```
1058
- <origin>/<workspaceId>?canvasId=<canvasId>
1059
- ```
1060
-
1061
- - `<origin>` is `https://creatornotes.app` for prod, or `http://localhost:3000` when the active session / `--server` points at local dev. Match whichever the CLI is currently talking to (read it from `cnotes config get-server` rather than guessing).
1062
- - `<workspaceId>` and `<canvasId>` are the Convex IDs returned by `cnotes workspace current` / `cnotes canvas get` / `cnotes canvas list --json`. Use raw IDs — do not slug-ify.
1063
- - To link a workspace without a specific canvas, omit the query: `<origin>/<workspaceId>`. The app will redirect to the last-visited or home canvas.
1064
-
1065
- **Display id vs link — keep them in their lanes.** The display id (`CANVAS-321`) is the human handle you show as the link *text*; the `?canvasId=` value must be the raw **Convex id**. The web router resolves Convex ids, NOT display ids — `?canvasId=CANVAS-321` will not load. So: display id as the visible text, Convex id inside the URL.
1066
-
1067
- **Do not invent path segments.** These shapes do NOT exist and will 404 or redirect somewhere wrong:
1068
-
1069
- - `/workspace/<id>/canvas/<canvasId>` ← wrong, fabricated
1070
- - `/workspaces/<id>` ← wrong
1071
- - `/canvas/<canvasId>` ← wrong (there is a `/shared/<canvasId>` route, but only for public share links)
1072
-
1073
- ## Best Practices
1074
-
1075
- ### Note IDs
1076
- - Notes have **display IDs** like `MEETING-12`, `PRD-5`, `IDEA-3` — use these in commands.
1077
- - Convex IDs (e.g., `n17a43p7aenrxyr...`) also work but are less readable.
1078
- - When creating notes, capture the display ID from the output for subsequent commands.
1079
-
1080
- ### Note Types
1081
- - The `--type` parameter must reference an **existing supertag** in the workspace. Free-text type strings are rejected.
1082
- - **Pick the type, then read its rubric, then write to it — in that order.** Each type carries a `validationPrompt` (its quality rubric: what a good instance contains). Once you know the type, run `cnotes types show <Type>` (or read `typeRubrics` from `cnotes operations begin --json` / `validationPrompt` from `cnotes types list --json`) and author to that rubric so the note lands well-formed. Example: a Decision needs the alternatives weighed, the rationale, and a revisit trigger, and it cites the cards it depends on (see [Decisions](#decisions)). `cnotes notes create --json` also puts the rubric on **each** `.results[]` item (`type` + `rubric`) and as a top-level `rubrics` array. Do not cut the output down to only `displayId` until you have checked `.results[].rubric`. After the write, you grade: `cnotes quality` hands back `gradeRequest` (rubric + content + "Grade this against the rubric") and spends no credits. Record the grade with `cnotes quality record`. A Decision rubric that declares `Required sections:` fails the free structural check until those `##` headings are present.
1083
- - If the type you need doesn't exist, create it first: `cnotes types create "MyType" --display-name "My Type"`
1084
- - Type names are **case-sensitive** and use PascalCase (e.g., `Update`, `PainPoint`, `Meeting`).
1085
- - The display ID prefix is **auto-derived** from the display name: spaces become hyphens, all uppercase (e.g., display name "Pain Point" → prefix `PAIN-POINT`, display name "Idea" → prefix `IDEA`).
1086
- - Prefix is **immutable** once notes of that type exist. To change a note's type, use `cnotes notes retype <displayId> --type <NewType>`.
1087
-
1088
- ### Milestone headlines
1089
-
1090
- Agents creating or editing canvas milestones (`cnotes canvas milestone create` / `rename`, the REST routes, or the web save dialog) must use a headline that starts with a past-tense verb and names a specific object, e.g. `Shipped the public comic canvas`, never `V1`. The rule is enforced: a milestone create or rename whose headline is not verb-first, or names no object, is rejected (exit code 3) and nothing is saved. Read the error, rewrite the first line, and retry. To fix a milestone that is already saved, run `cnotes canvas milestone rename <milestoneId> -m "<headline>"`; it replaces the headline and keeps the body.
1091
-
1092
- - Good: `Shipped the public comic canvas`, `Narrowed pricing to per-seat`, `Dropped the onboarding survey`
1093
- - Rejected: `V1`, `Launch prep`, `The board after review`, `Shipped`
29
+ 1. **The exit code is the verdict.** `0` is success. Never decide success from the body, and never re-run a write because a key looked empty: a second `notes create` duplicates the batch.
30
+ 2. **Knowledge lives in typed notes.** Text cards, lists, section frames, edges and portals arrange and label; they are unversioned, unsearchable and uncitable. If a future reader needs to find, cite or trust it, it is a note. A text card holds at most three sentences (the orientation banner up to five).
31
+ 3. **Name notes with titled, typed mentions.** `[NOTE-12: Title](relationship:<verb>)`, with the verb your sentence uses (`blocks`, `depends-on`, `answered-by`). A bare `NOTE-12` in prose creates no link and is a defect, in note bodies and on canvas cards. `references` is for pure citation only. Reuse the workspace's types (`cnotes rel types`) before coining one.
32
+ 4. **Edges are local to one canvas.** When an edge connects two notes, write the same relationship as a mention in a note body, or it exists nowhere off that canvas.
33
+ 5. **Place declaratively, edit in place.** Use `canvas place` / `canvas arrange`, never hand-computed x/y. Change a text card with `canvas update-text` and a frame with `canvas update-section`. Deleting and re-adding mints new ids and drops edges and `[[SECTION-n]]` mentions.
34
+ 6. **Content changes are versions.** `cnotes versions create` changes a note's body (the `# h1` is its title); fetch the current body first and edit that, since people edit between sessions. `notes update` changes metadata only (type, tags, pin, archive).
35
+ 7. **Inside a draft, propose and stop.** Shared notes change through `cnotes draft propose`; the hand-over is `cnotes draft ask`, then stop. Never merge or approve work you built. Detail: [references/drafts.md](references/drafts.md).
36
+ 8. **Ask before spending something the user cannot get back:** `cnotes upgrade` uses the workspace's one-time trial, and `cnotes feedback submit` files a report in their name.
37
+ 9. **Timeline headlines start with a past-tense verb and name the object** ("Shipped the public comic canvas", never "V1"). The server rejects milestone headlines that do not.
38
+ 10. **Canvas names use the interpunct** `·` as a separator, never a dash: "Path to Revenue · Funding strategy".
1094
39
 
1095
40
  ### Decisions
1096
41
 
@@ -1100,539 +45,65 @@ Write the citation in the Decision's body, not only as a canvas edge: `[NOTE-12:
1100
45
 
1101
46
  `cnotes notes create` still creates a Decision that has no typed outgoing relationship, then says so on that result as `hint` (so `.results[].hint` survives a `jq` of the rows), again in the top-level `hints` array, and prints the same line on stderr, including with `--json`. The line names the displayId. The check is the relationships the server created: a `references` chip does not count, and neither does a mention that never becomes an edge. Fix the body with `cnotes versions create <displayId>`. Do not run create again.
1102
47
 
1103
- ### Content via Markdown
1104
- - Markdown is the only content format on the wire. For multi-line content, write to a file and pass the path via `markdownFile`:
1105
- ```bash
1106
- cnotes notes create --notes '[{"key":"A","type":"Note","markdownFile":"./note.md"}]'
1107
- ```
1108
- - Use inline `markdown` only for short, single-line content.
1109
- - **Always start markdown content with a `# h1` heading.** This becomes the note title. Follow proper markdown structure: `## h2` for major sections, `### h3` for subsections. Well-structured heading hierarchy is expected for all notes.
1110
- - **Relationship mentions in markdown**: Use `[NOTE-123: Title](relationship:<type>)` — plain text "NOTE-123" does NOT create clickable mentions, and the title-less form renders as "Untitled". Match `<type>` to the verb your prose uses (`blocks`, `depends-on`, …); `references` is for pure citations. The typed wiki form `[[blocks::NOTE-123]]` is equivalent — it's how note bodies serialize mentions back to you, and an untyped `[[NOTE-123]]` is a plain reference.
1111
- - **The classic miss: capturing an answer/outcome that lives in another note.** "The answer is the packaging decision in DECISION-24" saved as plain prose creates no chip, no relationship, no backlink — the graph never learns the question was answered. Write the mention with the verb as its type: `Answered by [DECISION-24: Title](relationship:answered-by)`. `notes create` and `versions create` detect bare IDs that name real notes and return them in `plainTextIdWarnings` (stderr + `--json`), each with a paste-ready rewrite carrying the note's actual title — treat every entry as a fix instruction (save a corrected version) unless the bare ID is deliberate prose.
1112
- - **Reuse an existing relationship type before inventing one.** Run `cnotes rel types` (or read the list printed by `cnotes workspace current`) and pick the closest existing label. The type slot is free-form, so an unknown label is auto-created as a custom workspace type rather than dropped — but that means a typo or a needless synonym (`support` vs `supports`, `relates-to` vs `related-to`) silently pollutes the workspace's type vocabulary forever. Only coin a new type when nothing existing fits.
1113
- - Names are normalized to lowercase + hyphens, so `Depends On`, `depends on`, and `depends-on` all resolve to the same type. When `cnotes notes create` does create new types, it reports them (`+ created N new relationship types: …`) — treat that line as a prompt to double-check you didn't mean an existing one.
1114
- - Common built-in types to reach for first:
1115
- - `depends-on` / `blocks` — dependency ordering between notes
1116
- - `references` — general "see also" link (default if omitted)
1117
- - `implements` — a note that delivers on what another identifies (e.g., feature → requirement, solution → gap)
1118
- - `derived-from` — a note created based on another's content
1119
- - `extends` — adds depth or detail to another note's topic
1120
- - `invalidates` / `supersedes` — supersedes or contradicts another note
1121
- - `related-to` — loose thematic connection
1122
- - `duplicates` — notes covering the same thing
1123
- - Simple mention shorthand: `[NOTE-123]` or `[NOTE-123: Title]` (defaults to "references")
1124
-
1125
- ### Updating Content vs Metadata
1126
- - To change note **content** (including title), create a new **version**: `cnotes versions create <id> --description "..." --markdown-file ./updated.md`
1127
- - Title is derived from the `# h1` heading in the latest version — to rename a note, create a new version with a different heading.
1128
- - To change note **type/tags/pin/archive**, use: `cnotes notes update <id> --type "..." --tags "..."`
1129
- - These are separate operations by design.
1130
-
1131
- ### JSON Mode for Scripting
1132
- - Use `--json` to get raw JSON output for piping between commands, and `-q` / `--fields` to read it without a JSON parser. See [Reading output](#reading-output-start-here) for the contract behind these shapes.
1133
- - Reads emit a bare array; writes emit an envelope. Read created notes from `results`, never from `notes`/`ok`:
1134
- ```bash
1135
- # Capture the display IDs a batch create produced
1136
- IDS=$(cnotes notes create --notes '[…]' -q) # one displayId per line
1137
- cnotes notes create --notes '[…]' -q --fields key,displayId # key<TAB>displayId per line
1138
- ```
1139
- - Treat a `0` exit code as the only success signal. Do not re-run a write because an expected key looked empty; re-running a successful `notes create` duplicates the batch.
1140
- - On validation failure with `--json`, the per-item errors come back in `details.items` (array of `{index, key?, field, message}`) so they can be parsed and surfaced precisely.
1141
- - Use `-q` (quiet) to get just the ID(s), useful for chaining:
1142
- ```bash
1143
- NOTE_ID=$(cnotes notes create --notes '{"key":"A","type":"Note","markdown":"# Quick note"}' -q)
1144
- cnotes canvas add-node <canvasId> --note "$NOTE_ID"
1145
- ```
48
+ ## Reading output
1146
49
 
1147
- ### Canvas Orientation
50
+ Every command follows one contract.
1148
51
 
1149
- **Always start canvas work with `cnotes canvas digest <canvasId> --json`.** The digest returns the narrative summary, key themes, and a per-note summary list covering every note on the canvas. Use this as your single source of context before making any changes — do not read each note individually unless you need full content.
1150
-
1151
- **`--json` field names** (they aren't what you'd guess — the narrative is **`.digest`**, *not* `.narrative` or `.summary`). Top-level shape: `{ status, canvasName, digest, themes[], notes[], noteCount, generatedAt }`. So `--fields digest` gets the narrative, `.canvasName` the title, `.themes[]` the key themes, and `.notes[]` the per-note list (shape below).
1152
-
1153
- The `notes` array entries have the shape `{ displayId, title, type, summary }`. When `summary` is `null`, the AI summary hasn't been generated yet (fresh note, or too short to summarize); run `cnotes notes get <displayId> [<displayId>...]` (batch-fetch in one call) if you need full content.
1154
-
1155
- If `status` is `"none"` or `"stale"`, the `notes` array is still populated and accurate — you can start working immediately. Trigger a narrative refresh with `POST /api/canvas/<canvasId>/digest` only if you need the narrative itself.
1156
-
1157
- ### Canvas Elements — When to Use What
1158
-
1159
- The vocabulary is five elements:
1160
-
1161
- | Element | What it is | CLI |
1162
- |---|---|---|
1163
- | **note** | A reusable knowledge object: typed, versioned, searchable, with a display ID other notes can mention | `add-node`, `place` `type:"note"` |
1164
- | **text** | Free-form rich text placed directly on the canvas — markdown (headings, emphasis, images), optional background tint (none by default). Wire type is `richtext`. | `add-text`, `place` `type:"richtext"` |
1165
- | **list** | A container whose content is its MEMBER NOTES; the description is a one-line frame | `add-list` |
1166
- | **section** | A named region frame (Miro-style). Mints `SECTION-<n>`, mention-addressable | `add-section` |
1167
- | **canvas** | A portal to another canvas | `add-link`, `place` `type:"canvas"` |
1168
-
1169
- **There is no separate heading element.** A heading is a **text** element whose content is a markdown heading and which has no background tint: `add-text <canvasId> --content '# Q1 Goals'`. (An older `text` node kind — plain string + font size — is retired: existing ones still render and can be moved or deleted, but nothing creates them any more.)
1170
-
1171
- A canvas holds two tiers of dependent, and the difference is load-bearing:
1172
-
1173
- - **Notes** are the knowledge tier: typed, versioned, searchable, citable by display ID — the only tier whose content other notes can mention, search can find, and history records. Anything a future reader must find, cite, verify, or build on lives here.
1174
- - **Everything else** — text elements, list containers, section frames, edges, portals — is the presentation tier: orientation, grouping, emphasis, navigation. Text elements, lists, edges and portals have no display ID (nothing can cite them), no version history (they mutate silently), and no search presence. (Sections are the one exception: a frame mints a `SECTION-<n>` you can mention — it addresses a *place*, not knowledge.) They shape how the knowledge lands; they never hold the knowledge.
1175
-
1176
- **The default is a typed note.** Before reaching for any other element, apply one test: *will any future reader — a human, or the next agent session pointed at this canvas for context — need to find, cite, or trust this?* If yes, it MUST be a note. "It renders nicely on the canvas" is never a reason to put knowledge in a text element: that trades permanent legibility (versions, search, citable IDs) for screen presence now. The decision-table rows below are the sanctioned exceptions — when a row matches your content exactly, the row wins.
1177
-
1178
- #### Decision table
1179
-
1180
- | You have | Use | NOT |
1181
- |---|---|---|
1182
- | A claim, fact, decision, risk, question, verdict, score, spec, or example worth keeping | A typed **note** (right supertag, `# h1` title) | a text element |
1183
- | N distinct things (questions, risks, options, findings) | **N notes** grouped in a **list**; `--description` = one-line frame | bullets in one text element or in a list `--description` |
1184
- | A named REGION of the canvas ("Shaping", "Open Questions") | a **section** frame (`add-section`) — draggable region, mention-addressable as `[[SECTION-<n>]]` from note bodies | a floating text heading over an implied area |
1185
- | A heading / one-line label where a frame is too heavy (a column header inside a frame, a lane key) | a **text** element holding a markdown heading — `add-text --content '# Q1 Goals'`, no `--color` (leave it untinted), title case | a tinted card, or a section frame for something that isn't a region |
1186
- | Orientation: what happened, what this board is for, and how to read it | a **text** orientation banner in the fixed shape of rule 7 (one per canvas; a band may add a short one; up to ~5 sentences) | a reading-order-only banner, or a Guide note nobody needs off-canvas |
1187
- | Emphasis — restating a key claim for screen presence | a **text** element that QUOTES a note (the note stays the home) | the text element as the only copy |
1188
- | An image tile (logo, mockup, screenshot) | a **text** element holding the image, beside the owning note; embed the same image in the note body via `cnotes files upload <path> --markdown` so the note stays self-contained | the image as the knowledge itself |
1189
- | A grid of images for review (mood board) | N text-element image tiles in a `grid` place spec + ONE note holding the decision criteria / rationale for the set | a caption note per tile, or rationale in the tiles |
1190
- | "A connects to B" between two notes | a labeled **edge** (short verb phrase), notes only | prose explaining the connection |
1191
- | A pointer to another canvas | a **portal** — `add-link` on the CLI, `{"type": "canvas", "linkedCanvasId": ...}` in place specs, returned as `canvasLinkNodes` by `canvas get` | a text element saying "see other canvas" |
1192
- | Backstage narration (scripts, speaker notes) | NOTES on a PRIVATE sibling canvas (cue-card text elements are fine there); portal FROM the private canvas TO the shared one, never the reverse | narration on the shared canvas |
1193
-
1194
- #### Hard rules (each one has burned a real canvas)
1195
-
1196
- 1. **A canvas element must never be the sole home of a claim.** Verdict tallies, dates, scan provenance, and even a moat-defining sentence have each been authored as text elements — then cited downstream while being unversioned, unsearchable, and uncitable. If a text element says something true and useful, a note says it first; the text element may quote the note. (Canvas-specific wayfinding — how to read THIS canvas — is the one exemption; it has no off-canvas value.)
1197
- 2. **Name notes and canvases from text elements with relationship mentions, never bare ids.** `[NOTE-12: Title](relationship:references)` inside a text element renders as a mention chip carrying the target's real title (the Text node registers the mention schema; verified live 2026-09-05, and a list description renders the same mention as a labelled span). "See RISK-64" as plain prose is a defect: the reader gets no title and no link. Pick the relationship type from the verb the sentence uses and reuse the workspace vocabulary. The chip is presentational: it creates no graph relationship, is not searchable, and is not versioned, so a relationship that must survive off the canvas still lives as a mention in a NOTE body (rule 5).
1198
- 3. **A text element is capped at card size**: at most 3 sentences, one heading at most, never a list of distinct knowledge items (questions, risks, findings — those are N notes; a 3-line color legend or lane key is fine). The one exception is the orientation banner (table row 5, up to ~5 sentences). A heading-only text element (`--content '# Q1 Goals'`) is of course fine — that is the smallest legitimate use. The cap is physical as much as doctrinal: a text element renders its full content inline, so long blocks explode the canvas — one canvas hit 43,000px tall from eight text reference blocks and had to be rebuilt as notes.
1199
- 4. **Detail's HOME is the note body; text detail cards are projections.** Write the full spec/content INTO each note's body first. A parallel text card under a note is allowed only as a projection — it condenses or quotes a note that already contains everything, and says so ("from STAGE-3"). A detail card whose content exists nowhere else is the anti-pattern: one teaching canvas carried its entire method in text cards over one-line stub notes, and an agent reading it back got seven stubs and no method.
1200
- 5. **Edges can connect any node type** (note, text, list, canvas-link, section — plus legacy heading nodes), as long as both endpoints are on the same canvas; labels are short verb phrases ("fixes", "grounds", "depends on"). A section endpoint is addressed by the section node's Convex id (`sectionNodes[].id` in `canvas get --json` — `canvas read` shows only display ids), not its SECTION-n display id, and the edge anchors to the frame's border — use one when the relationship's endpoint is genuinely the whole region ("this cluster feeds that stage"), not as a shortcut for a note-to-note link. `canvas read` returns edges, so they are no longer invisible on read-back — but an edge is still CANVAS-LOCAL: it is not part of the note graph, never appears in `rel list`, is not searchable, and means nothing once you leave this canvas. So any relationship **between notes** that must survive off the canvas has to ALSO exist as a mention inside the note bodies. The mention is the copy that travels; the edge is the copy you can see. Edges to text/list/canvas-link nodes are diagram decoration (pointing a label at a cluster, wiring a portal) and carry no note-to-note relationship to mirror.
1201
- 6. **Color is a ROLE or it is absent.** Default neutral — a text element has NO background unless you pass `--color`, and that is usually the right look (an untinted heading is just type on the canvas). When a tint does mean something, pick from the six role hexes and reuse ONE role per meaning, 2–4 roles per canvas max:
1202
-
1203
- | Role | Hex | Use for |
1204
- |---|---|---|
1205
- | Evidence | `#3B82F6` | input, quote, data |
1206
- | Commitment | `#22C55E` | decided or owned work |
1207
- | Insight | `#EC4899` | the aha — 1–2 per canvas |
1208
- | Warning | `#F59E0B` | caveat, risk |
1209
- | Danger | `#EF4444` | blocker |
1210
- | People | `#8B5CF6` | person, stakeholder |
1211
-
1212
- Do not hand-pick a hex outside this table: the renderer snaps every tint to the nearest role by hue, so an off-palette color does not get you a new shade — it just picks a role imprecisely (`#c2410c` lands on Danger, not Warning). A tint colors the CARD only; text inside it keeps the normal prose colors, so the tint can never make a card harder to read. If you cannot name the role, omit the color.
1213
-
1214
- 7. **The orientation banner opens for a stranger, in a fixed order.** The banner is the first and often the only card a cold reader sees (the goal sits behind the (i) button; nobody reads it first), so a banner that gives only the reading order fails: one shipped as "A story in six frames, read top to bottom. Frames 1 to 3 are the events: a release note is written, an agent writes an ad from it, the scope changes" and the reader could not say which release note, whose agent, or why any of it mattered. Write it in this order, at most ~5 sentences, heading = the board's subject (the canvas title or the goal), never a clever name for the banner:
1215
- 1. **What happened** — one dated sentence naming the people, products and events a stranger can look up ("On 19 September 2026 Deniss asked why CreatorNotes records every note a person opens but nothing an agent reads").
1216
- 2. **What this board is for** — the goal restated in reader's words: the decision or artifact it produces.
1217
- 3. **Who acts on it and how** — who decides, answers, or builds, and where the answer goes (as a mention chip with its real title, rule 2).
1218
- 4. **How to read it** — reading order and what each frame holds.
1219
- Nothing before the banner has defined anything, so no unnamed referents in it: not "the ad", "the app", "the scope", "the card" until the thing has been named or chipped. Wayfind maps and Attention orientation canvases add their own lines (destination, block time) after these four, never instead of them.
1220
-
1221
- #### Three completion tests
1222
-
1223
- Run all three before ending your operation:
1224
-
1225
- **The read-back test (for the next agent):** run `cnotes canvas read` and check that every claim is present as a NOTE section with a display ID, and the reasoning can be followed through note bodies and their mentions. Content that appears only as anonymous text-element prose fails the test even when visible — nothing can cite, search, or version it. List members read back as ID+title links without bodies; that is fine — the IDs are citable and batch-fetchable via `cnotes notes get`. As a heuristic for working canvases, at least ~4 notes per text element (zero text elements is fine); fewer means text elements are carrying content. Explainer canvases using the projection pattern (rule 4) are exempt from the ratio, not from the test.
1226
-
1227
- **The glance test (for the human):** zoomed to fit, a person should grasp what this canvas argues and where to start reading in about 10 seconds. A canvas that passes read-back but renders as an undifferentiated card grid is also not done — that is what section labels, orientation banners, projections, and layout are for.
1228
-
1229
- **The cold-reader test (for the person who was not in the session):** cover everything but the banner. Can someone who never saw the conversation say what happened, what this board decides or produces, and who acts on it? If the banner only gives the reading order, or leans on "the ad" / "the app" / "the card" before naming them, it fails (rule 7). Run this on the banner text itself, not on your memory of the run.
1230
-
1231
- #### Worked example
1232
-
1233
- Right shape (a real competitor scan): 31 typed notes (COMPETITOR profile, FACT evidence row, INSIGHT verdicts per dimension, RISK/IDEA/STRATEGY response bands, QUESTION follow-ups in a list), three short text banners framing the bands ("Threats, Steals, Response — what hurts us, what's worth taking, the plan"), and labeled edges mirrored as mentions (`FACT-44 --grounds--> INSIGHT-361`).
1234
-
1235
- Wrong shape (same dependent): one 5,000-char text element holding a "deep scan writeup", a text scoreboard holding the verdict tally, and a few notes for leftovers. Search finds nothing, versions record nothing, nothing can cite or link any of it — and the headline verdict goes stale the first time someone edits the card.
1236
-
1237
- #### Current platform limitations (re-check before relying on these)
1238
-
1239
- The durable rules above stand on versioning, search, and citability. Four rules also lean on today's platform behavior — if a future release changes these, the corresponding rule can relax:
1240
-
1241
- - Mentions inside text elements and list descriptions are presentational chips only: no graph relationship, no search presence, no versions (motivates rule 1 and the mirror-as-mentions half of rule 5).
1242
- - `canvas read` returns sections, edges and portals, but list containers still read back as their one-line frame only. An edge read back is still canvas-local and ungraphed (motivates rule 5's mirror-as-mentions requirement).
1243
- - Agents have no update verb for **text or list** elements — to change one, remove and re-add it (one more reason content that evolves belongs in notes, which have versions). Section frames are the exception: `canvas update-section` edits a frame in place.
1244
-
1245
- ### Wrapping batch work in an operation (ENFORCED for `notes create`)
1246
-
1247
- When an AI agent (including you, Claude) is doing a **batch of work** — creating notes, modifying 2+ entities, or building a canvas with content — wrap it in a workspace-level **operation**. The batch then shows up in the timeline as a single legible row with intent + evidence + count, and the user can later revert the whole run as one unit. Unwrapped, each write is an isolated timeline row with no shared intent or batch revert — and on canvas and other multi-write paths nothing forces the wrap, so you must open the run yourself.
1248
-
1249
- **This is enforced for note creation.** `cnotes notes create` (the batch-create endpoint) is rejected with `operation_required` (HTTP 422) unless a run is active — the server refuses to create notes outside an operation. Begin one first; the active run then auto-attaches to every subsequent write.
1250
-
1251
- #### When to wrap
1252
-
1253
- | Action | Wrap? |
52
+ | Flag | Effect |
1254
53
  |---|---|
1255
- | Reading: `digest`, `get`, `list`, `activity`, `timeline`, `search`, `rel list` | **No** — read-only |
1256
- | **Any `cnotes notes create`** (even a single note) | **Yes — enforced.** Creates run through the batch endpoint, which now rejects writes with no active run |
1257
- | A single `notes update` / tag / pin / archive change | **No** — single metadata edits don't go through the guarded create path |
1258
- | Two or more writes that belong to one intent (multi-note batch, canvas build-out, multi-step refactor) | **Yes** |
1259
- | Canvas mutations done as part of an agent task | **Yes** — even one canvas command, if it's part of a larger batch |
1260
-
1261
- #### The pattern
1262
-
1263
- `cnotes operations begin` opens a run; **every subsequent cnotes write on this server attaches to it automatically**, across any shell, until you call `cnotes operations end`. No env var to export, no eval trick — the active run is persisted in `~/.cnotes/config.json` per server, so stateless callers (separate Bash invocations, disjoint tool calls) all attach correctly.
1264
-
1265
- ```bash
1266
- # 1. Open the run with the user's intent as the prompt.
1267
- # --json includes typeRubrics: every workspace type that has a validationPrompt.
1268
- # Read the rubrics for the types you will author BEFORE drafting.
1269
- # With --prompt it also returns a brief (brief.notes, brief.canvases,
1270
- # brief.changes): the notes, canvases and recent changes most relevant to the
1271
- # task. Read it BEFORE suggesting anything; a Decision, Guide or Metric there
1272
- # may already settle what you were about to propose. Not opening a run?
1273
- # `cnotes brief "<task>"` returns the same brief, read-only.
1274
- cnotes operations begin --prompt "Reorganize roadmap into quarters" --json
1275
- cnotes types show Insight # or pull from .typeRubrics in the begin response
1276
-
1277
- # 2. Do the work. Every cnotes write here attaches to the run automatically.
1278
- cnotes notes create --notes '[ ... ]'
1279
- cnotes canvas add-text <canvasId> --content '# Q1' --x 0 --y 0
1280
- cnotes canvas place <canvasId> --spec /tmp/q1.json
1281
- cnotes canvas add-edge <canvasId> --source <a> --target <b> --label "depends on"
1282
-
1283
- # 3. Self-check the notes you wrote. You grade them. This spends no credits.
1284
- # `cnotes quality --json` returns gradeRequest on each ungraded item:
1285
- # the rubric, the note content, and "Grade this against the rubric".
1286
- # Place the note on the ladder (1 Fragment, 2 Taking shape, 3 One move
1287
- # from strong, 4 Strong). Write a reason for every criterion. Record it.
1288
- # gradedBy becomes the open run id (this operation), or your agent name
1289
- # when no run is open. Then run quality again. Exit 3 means revise with
1290
- # versions create, record a new grade, and check once more.
1291
- cnotes quality INSIGHT-12 --fail-below 4 --json
1292
- cnotes quality record INSIGHT-12 --graded-version 4 --level 3 --criteria '[{"criterion":"Evidence","reason":"Grounded in two tickets."}]' --feedback "The pattern is named." --next-step "Say what would falsify it."
1293
-
1294
- # 4. Close the run when done.
1295
- cnotes operations end
1296
- ```
1297
-
1298
- **Resume the chat that produced the run.** `operations begin` auto-stamps
1299
- `agentSession` from the host agent when it can: Claude Code via
1300
- `CLAUDE_CODE_SESSION_ID` / the SessionStart hook (`cnotes claude-hook`), Cursor
1301
- Agent via `CURSOR_CONVERSATION_ID` (`bc-…`). The timeline then offers resume —
1302
- `claude --resume <id>` (copy) or `https://cursor.com/agents/<bcId>` (open).
1303
- Override with `CNOTES_AGENT_SESSION_ID` + `CNOTES_AGENT_SESSION_KIND` when needed.
1304
-
1305
-
1306
- **Always close the run.** If `begin` succeeded, `end` must run — otherwise the operation stays `running` and subsequent `cnotes operations begin` calls will refuse (with a clear "active run already exists" message naming the ways out). The server-side reaper marks a stale `running` row as `abandoned` after about an hour; `begin` checks the server and forgets such a run on its own, so a crashed earlier session never needs `--force`. `cnotes operations open` lists the runs this machine has open with the server's view of each; `--prune` forgets the ones no longer running.
1307
-
1308
- **If something goes wrong mid-batch** and you can't recover: `cnotes operations begin --force` ends the prior run server-side and starts a fresh one. Only do this to a run you abandoned yourself: `--force` ends whichever run holds the active slot, which may be another agent's.
1309
-
1310
- **Two agents on one machine.** Each run is tracked on its own. The active run (plain `begin`) is only the implicit default for writes that carry no run id. A second agent opens its own run with `--detached` and carries the returned id in `CNOTES_AGENT_RUN_ID` (or passes it to `end --agent-run-id`); a detached run never touches the shared active-run pointer, so neither agent can clobber or close the other's run:
1311
-
1312
- ```bash
1313
- RUN=$(cnotes operations begin --prompt "Triage inbox" --detached -q)
1314
- CNOTES_AGENT_RUN_ID=$RUN cnotes notes create --notes '[ ... ]'
1315
- cnotes operations end --agent-run-id $RUN
1316
- ```
1317
-
1318
- `end` resolves the run from `--agent-run-id`, then `CNOTES_AGENT_RUN_ID`, then the active pointer, and refuses (exit code 5) a run this machine did not open — only the actor who opened a run can end it server-side too. Ending one run never clears or ends another. `--force` on `end` is the explicit override for a run opened elsewhere.
1319
-
1320
- #### Writing a good `--prompt`
1321
-
1322
- The prompt is the **intent** the user sees on the timeline row. Use the user's own language where you can:
1323
-
1324
- - "Build a fan-out under Goals heading with Q1 milestones"
1325
- - "Reorganize the canvas into a SWOT layout"
1326
- - "Add risks list and connect to the parent goal"
1327
-
1328
- Avoid generic prompts like "make changes" or "update canvas" — they make the timeline useless.
1329
-
1330
- #### Verifying it worked
1331
-
1332
- After your run, the user (or you) can:
1333
- - Look at the **timeline panel** in the workspace → the run appears as one row with a bot icon, your prompt as the headline, and a "N notes" count
1334
- - Expand the row → each member note appears nested
1335
- - Run `cnotes operations get <agentRunId>` → confirms `affectedNoteCount` reflects everything the run touched
1336
-
1337
- If the timeline shows individual note rows instead of one grouped run, the writes didn't attach — usually because `begin` was never called, or `end` was called too early (before the writes).
1338
-
1339
- #### Read before you write
1340
-
1341
- `cnotes operations read-first [--since 7d]` reports how many agent runs that wrote notes read something first, and lists the "cold" runs that wrote without reading. A run counts as read-first when a read carries its run id, or when the same person's agent read in the workspace from 30 minutes before the run until it ended. It also reports orientation: the median reads before a run's first write, and how many runs that changed an existing canvas read it first. Reading the canvas you are about to change, before you change it, is what keeps your run off the cold list and in the second count.
1342
-
1343
- ### Canvas Layout
1344
-
1345
- **Don't compute coordinates by hand. Use `cnotes canvas place` with a layout spec.**
1346
-
1347
- The server measures every item, packs them into a no-overlap layout, and inserts them in a single batch. You describe **structure** (rows, columns, what's near what) — the server resolves pixels. This is what `cnotes canvas place` is for, and you should reach for it whenever you're adding more than one item.
54
+ | `--json` | Raw JSON. The default whenever stdout is not a terminal. |
55
+ | `-q`, `--quiet` | One handle per line: displayId, else name, else id. |
56
+ | `--fields a,b` | Keep only these fields; on an envelope it applies to the rows. With `-q`, tab-separated lines. |
57
+ | `-w`, `--workspace <id>` | Target another workspace for this command. |
58
+ | `--server <url>` | Another server (default `https://creatornotes.app`). |
1348
59
 
1349
- The call is **best-effort, not transactional** — per-item failures are reported in the response (HTTP 207) but the items that succeeded stay on the canvas. Always inspect `items[].error` and `edges[].error` before assuming success.
1350
-
1351
- **You don't have to find a free coordinate.** `place` is collision-aware against content already on the canvas. By default (`placement: "auto"`) it drops your layout in a clear band **below everything that's already there**, and if you do pass an `origin` that would overlap, it slides the whole block straight down until it's clear. So appending a new section to a non-empty canvas Just Works — no need to read existing positions and guess a safe `origin` first. Use `--placement append` to force "below everything", or `--placement exact` (or `"placement": "exact"` in the doc) to honor your `origin` verbatim for pixel-perfect templates.
1352
-
1353
- Use `cnotes canvas bulk-add` with explicit `x/y` ONLY for pixel-perfect templates (e.g. demo recordings or tutorial walkthroughs that need to match a specific screenshot).
1354
-
1355
- #### The layout DSL
1356
-
1357
- A layout document is `{ root, edges?, origin?, placement? }` where `root` is one of four node kinds:
1358
-
1359
- - **`stack`** — items flow along one axis (like CSS flexbox)
1360
- ```json
1361
- { "kind": "stack", "axis": "vertical", "gap": "medium",
1362
- "align": "start", "items": [ /* LayoutNode */ ] }
1363
- ```
1364
- - **`grid`** — N columns, items wrap to new rows (like CSS grid auto-flow)
1365
- ```json
1366
- { "kind": "grid", "columns": 3, "gap": "medium",
1367
- "items": [ /* LayoutNode */ ] }
1368
- ```
1369
- - **`anchor`** — place a sub-tree relative to an EXISTING canvas node
1370
- ```json
1371
- { "kind": "anchor", "to": "NOTE-12", "direction": "right",
1372
- "gap": "medium", "child": /* LayoutNode */ }
1373
- ```
1374
- `direction` is exactly one of `"right"` | `"left"` | `"above"` | `"below"` — NOT `top`/`bottom`/`up`/`down`.
1375
- - **`item`** — a leaf node (no x/y!). One per visible thing on the canvas.
1376
-
1377
- `gap` accepts a preset (`"tight"`, `"medium"`, `"spacious"`) or a raw pixel number. Defaults to `"medium"`.
1378
-
1379
- The schema is strict: an unknown or typo'd key anywhere in the doc (e.g. `gapp`, `positionx`) is rejected with the offending key named, rather than silently ignored. Validation errors return `details.issues` with the full path (`doc.root.items[2].direction`), the allowed values, and what you sent.
1380
-
1381
- `placement` (top-level, optional) controls where the whole layout sits relative to existing content: `"auto"` (default, collision-aware — below existing content / de-collide), `"append"` (always below everything), `"exact"` (honor `origin` verbatim). `origin` is the top-left corner; omit it and `auto`/`append` pick a safe one for you.
1382
-
1383
- #### Leaf item shapes
1384
-
1385
- ```json
1386
- { "kind": "item", "type": "note", "noteId": "NOTE-3", "key": "a" }
1387
- { "kind": "item", "type": "richtext", "content": "# Q1 Goals" }
1388
- { "kind": "item", "type": "richtext", "content": "Read this band left to right.", "size": "medium", "colorHex": "#F59E0B" }
1389
- { "kind": "item", "type": "list", "description": "Risks tracked weekly — owner: @ana", "noteIds": ["A","B","C"], "viewMode": "list" }
1390
- { "kind": "item", "type": "canvas", "linkedCanvasId": "abc..." }
1391
- { "kind": "item", "type": "section", "name": "Open Questions", "width": 800, "height": 500 }
1392
- ```
1393
-
1394
- `richtext` IS the **text** element (the CLI's `add-text`) — the only free-form text leaf. A heading is a `richtext` leaf whose content is `"# Title"` with no `colorHex`. There is no `"type": "text"` leaf: the old heading node kind is retired and the layout engine rejects it.
1395
-
1396
- Leaf enums (exact values): richtext `size` = `small` | `medium` | `large`, `colorHex` = a saturated hex (omit for no background); list `viewMode` = `list` | `grid`, list `size` = `sm` | `md` | `lg` | `xl`.
1397
-
1398
- A richtext `size` is not a hint — it IS the width the card paints: `small` 560px, `medium` 1120px, `large` 1680px, with the height following the content. `place` measures that box for you, which is the whole reason to prefer it over hand-picked coordinates: pitch a row of columns for `small` and then send `medium` items and every card runs 460px into its neighbour.
1399
-
1400
- #### Section container (frame WITH content — preferred)
1401
-
1402
- Beyond the fixed-size leaf above, `section` is also a CONTAINER: wrap any
1403
- stack/grid in a named frame and the solver sizes the frame around the content
1404
- plus padding — no coordinate math, one call. This is how "create a section and
1405
- lay out notes in it" should be expressed:
1406
-
1407
- ```json
1408
- {
1409
- "kind": "section", "name": "Open Questions", "key": "oq",
1410
- "child": { "kind": "grid", "columns": 3, "items": [
1411
- { "kind": "item", "type": "note", "noteId": "QUESTION-12" },
1412
- { "kind": "item", "type": "note", "noteId": "QUESTION-14" }
1413
- ]}
1414
- }
1415
- ```
60
+ | Exit | Meaning | Next move |
61
+ |---|---|---|
62
+ | `0` | success | |
63
+ | `2` | auth required | `cnotes auth status`, then `cnotes auth login` |
64
+ | `3` | validation | fix the input the error names (`details.items` lists each bad batch item) |
65
+ | `4` | not found | the `hint` names the list command to run |
66
+ | `5` | conflict | re-read and retry; an open run blocks `operations begin` |
67
+ | `6` | rate limited | back off and retry |
68
+ | `7` | permission denied | `cnotes workspace current` |
69
+ | `8` | subscription required (writes on a free workspace) | read [references/billing.md](references/billing.md); offer `cnotes upgrade`, never run it unasked |
1416
70
 
1417
- The place response's section item carries its `displayId` (SECTION-<n>) —
1418
- surface it and mention it as `[[SECTION-<n>]]` from note bodies. For the
1419
- simple case, `add-section --notes id1,id2` is the same thing as a one-liner.
1420
- To **reflow content that ALREADY sits on the canvas** into a section (mixed
1421
- kinds — notes, canvas-links, richtext, lists), use `canvas arrange` — do NOT
1422
- hand-compute coordinates with `bulk-move` + `update-section`. To grow or
1423
- rename a frame without moving its contents, use `canvas update-section` —
1424
- never delete + re-add, which mints a new SECTION-<n> and breaks every
1425
- `[[SECTION-<n>]]` mention pointing at the old one.
71
+ - **Reads return data; writes return an envelope.** `notes list/get/search` emit a bare array (one note is `.[0]`). `notes create` returns `{ results, relationshipsCreated, rubrics?, hints? }`; read new notes from `results`. `canvas create` returns `{ canvas: { id, displayId, url } }` with `id`, `displayId` and `url` mirrored at the top level.
72
+ - **Errors go to stderr** as `{ error, code, exitCode, hint }`. The `hint` names the command that fixes it; read it before retrying.
73
+ - **No `jq` needed.** `cnotes notes list --type Decision -q`, `cnotes notes create --notes '[...]' -q --fields key,displayId`, `CANVAS=$(cnotes canvas create "<name>" -q)`. Use a JSON parser only for nested values these flags cannot reach.
1426
74
 
1427
- #### Arrange existing nodes (reflow)
75
+ Display IDs (`DECISION-12`, `CANVAS-406`, `SECTION-7`) work everywhere a command takes an id; Convex ids work too.
1428
76
 
1429
- `place` is create-only. When the nodes are already on the canvas, use
1430
- `cnotes canvas arrange`:
77
+ ## Getting started
1431
78
 
1432
79
  ```bash
1433
- cnotes canvas arrange <canvasId> --section SECTION-90 \
1434
- --nodes '[{"nodeId":"<id>","nodeType":"canvas"},{"nodeId":"NOTE-3","nodeType":"note"}]' \
1435
- --layout grid --columns 4 --gap medium
1436
- ```
1437
-
1438
- The server measures each card from its on-canvas footprint, packs them with
1439
- no overlap, moves them in one batch, and auto-resizes the target section in
1440
- place (`SECTION-<n>` stays stable). `--no-auto-resize` moves without growing
1441
- the frame. `--dry-run` previews positions.
1442
-
1443
- Full DSL alternative: a layout doc whose leaves are
1444
- `{ "kind":"item", "type":"existing", "nodeId":"…", "nodeType":"note"|"text"|"richtext"|"list"|"canvas" }`
1445
- (plus an optional section container + `--section` / `targetSectionId`).
1446
-
1447
- The optional `key` lets edges and other items reference this leaf later (`@<key>`).
1448
-
1449
- `richtext.content` (the **text** element) accepts markdown directly — the server converts to TipTap before measuring. Markdown including relationship mentions: `[NOTE-X: Title](relationship:verb)` renders as a chip with the real title, so use one wherever the card names a note or canvas (a bare id is a defect), and keep it card-sized per "Canvas Elements — When to Use What".
1450
-
1451
- `list.description` is a one-line **frame**, never the content itself — the content is `noteIds` (the member notes). For N distinct things, create N notes (right type per item, e.g. `Question` for open questions) and list their ids. A `list` with a multi-item description and an empty `noteIds` is the wrong shape — use a card-sized **text** element (`richtext`, at most ~3 sentences) only for a short framing block with no members; anything longer, or any set of distinct items, is N notes.
1452
-
1453
- #### Edges
1454
-
1455
- Edges live at the top level alongside `root`. Each endpoint is resolved in this priority order:
1456
-
1457
- 1. **`@<key>`** — any item placed in the same call that carries a matching `key`
1458
- 2. **Original `noteId`** of a note placed in this call (e.g. `"NOTE-7"`) — no `key` needed
1459
- 3. **Display id or convex id** of a node already on the canvas
1460
-
1461
- ```json
1462
- "edges": [
1463
- { "from": "@a", "to": "@b", "label": "depends on" },
1464
- { "from": "NOTE-7", "to": "@a" }
1465
- ]
1466
- ```
1467
-
1468
- #### Examples
1469
-
1470
- **Fan-out under an orientation banner** (the failure case the agent kept getting wrong):
1471
- ```json
1472
- {
1473
- "root": {
1474
- "kind": "stack", "axis": "vertical", "gap": "medium",
1475
- "items": [
1476
- { "kind": "item", "type": "richtext",
1477
- "content": "# Goals\nWhat we're committing to this quarter.",
1478
- "size": "medium" },
1479
- { "kind": "grid", "columns": 4,
1480
- "items": [
1481
- { "kind": "item", "type": "note", "noteId": "GOAL-1" },
1482
- { "kind": "item", "type": "note", "noteId": "GOAL-2" },
1483
- { "kind": "item", "type": "note", "noteId": "GOAL-3" },
1484
- { "kind": "item", "type": "note", "noteId": "GOAL-4" }
1485
- ] }
1486
- ]
1487
- }
1488
- }
1489
- ```
1490
-
1491
- **SWOT-style four-quadrant layout**:
1492
- ```json
1493
- {
1494
- "root": {
1495
- "kind": "stack", "axis": "vertical", "gap": "spacious",
1496
- "items": [
1497
- { "kind": "stack", "axis": "horizontal", "gap": "spacious", "items": [
1498
- { "kind": "grid", "columns": 2, "items": [
1499
- { "kind": "item", "type": "note", "noteId": "STR-1" },
1500
- { "kind": "item", "type": "note", "noteId": "STR-2" }
1501
- ] },
1502
- { "kind": "grid", "columns": 2, "items": [
1503
- { "kind": "item", "type": "note", "noteId": "WEAK-1" }
1504
- ] }
1505
- ] },
1506
- { "kind": "stack", "axis": "horizontal", "gap": "spacious", "items": [
1507
- { "kind": "grid", "columns": 2, "items": [
1508
- { "kind": "item", "type": "note", "noteId": "OPP-1" }
1509
- ] },
1510
- { "kind": "grid", "columns": 2, "items": [
1511
- { "kind": "item", "type": "note", "noteId": "THR-1" }
1512
- ] }
1513
- ] }
1514
- ]
1515
- }
1516
- }
1517
- ```
1518
-
1519
- **Anchor a new column to the right of an existing note**:
1520
- ```json
1521
- {
1522
- "root": {
1523
- "kind": "anchor", "to": "NOTE-12", "direction": "right", "gap": "medium",
1524
- "child": {
1525
- "kind": "stack", "axis": "vertical", "gap": "tight",
1526
- "items": [
1527
- { "kind": "item", "type": "note", "noteId": "NEW-1" },
1528
- { "kind": "item", "type": "note", "noteId": "NEW-2" }
1529
- ]
1530
- }
1531
- }
1532
- }
1533
- ```
1534
-
1535
- **Diamond topology with edges**:
1536
- ```json
1537
- {
1538
- "root": {
1539
- "kind": "stack", "axis": "vertical", "gap": "medium", "align": "center",
1540
- "items": [
1541
- { "kind": "item", "type": "note", "noteId": "A", "key": "root" },
1542
- { "kind": "stack", "axis": "horizontal", "gap": "medium", "items": [
1543
- { "kind": "item", "type": "note", "noteId": "B", "key": "left" },
1544
- { "kind": "item", "type": "note", "noteId": "C", "key": "right" }
1545
- ] },
1546
- { "kind": "item", "type": "note", "noteId": "D", "key": "tail" }
1547
- ]
1548
- },
1549
- "edges": [
1550
- { "from": "@root", "to": "@left" },
1551
- { "from": "@root", "to": "@right" },
1552
- { "from": "@left", "to": "@tail" },
1553
- { "from": "@right", "to": "@tail" }
1554
- ]
1555
- }
1556
- ```
1557
-
1558
- #### Workflow
1559
-
1560
- 1. Write the layout doc to a temp file (`/tmp/layout.json`).
1561
- 2. Run `cnotes canvas place <canvasId> --spec /tmp/layout.json --json`.
1562
- 3. The response includes `items[]` (with resolved `positionX/Y`, `width`, `height`, `id`, and your `key`), `edges[]` (with resolved edge ids), and `bbox` (the bounding box of the whole layout).
1563
-
1564
- #### Constraints
1565
-
1566
- - **Anchors take zero space in their parent** — when nested inside a `stack` or `grid`, an anchor reserves no slot, so siblings collapse together. Anchors are best used at the root or as their own top-level branch.
1567
- - **Anchor `to:` must be a node already on the canvas** — local `@key` refs only work for edges, not for anchor targets in this version.
1568
- - **Never use ALL CAPS** in a text element — headings included. Use title case (e.g., "Key Tensions" not "KEY TENSIONS").
1569
- - **Text-element content** is authored as markdown — the server converts it server-side. A heading is `"# Key Tensions"` with no `colorHex`. Keep it card-sized (at most ~3 sentences; see Canvas Elements hard rule 3).
1570
-
1571
- #### When the layout engine isn't enough
1572
-
1573
- A few cases still need explicit `x/y` via `bulk-add`:
1574
- - Reproducing a canvas pixel-for-pixel for a demo/screenshot
1575
- - Templates with intentional off-grid placement
1576
- - Adding a single item next to a known coordinate without invoking the solver
1577
-
1578
- In all other cases — and especially when adding 3+ items at once — use `place`.
1579
-
1580
- ### Interlinking Notes
1581
-
1582
- When creating multiple related notes, interlink at two levels:
1583
-
1584
- **1. Relationship mentions inside note content** — connects notes in the knowledge graph:
1585
- - Use `cnotes notes create` with an array and `@key` placeholders for cross-references.
1586
- - Example: `[@B: The Problem](relationship:extends)` in markdown.
1587
- - The server resolves placeholders to real display IDs in one atomic transaction.
1588
-
1589
- **2. Canvas edges between nodes** — visual connections on the canvas:
1590
- - After adding nodes, connect them with `cnotes canvas add-edge`, using short verb labels ("triggers", "depends on").
1591
- - Edges can join any node type, as long as both endpoints are on the same canvas.
1592
-
1593
- Both levels are needed — edges are canvas-local, mentions are content-level. `cnotes canvas read` does return edges, but only the mention creates a real graph edge that `rel list` and search can see, so any relationship that matters must also exist as a mention in the note bodies (see Canvas Elements hard rules 2 and 5).
1594
-
1595
- #### Placeholder Syntax for `cnotes notes create`
1596
-
1597
- Use `[@key: Title](relationship:type)` where `key` matches a note's `key` field in the `--notes` JSON:
1598
- ```markdown
1599
- This builds on [@B: The Problem](relationship:extends) and enables [@C: The Workflow](relationship:enables).
80
+ npm install -g @creator-notes/cnotes
81
+ cnotes auth login # opens a browser; --token <key> for an API key
82
+ cnotes workspace list
83
+ cnotes workspace select <id>
84
+ cnotes workspace current # the active workspace and its relationship types
1600
85
  ```
1601
86
 
1602
- The relationship type is free-form, but **reuse an existing type before inventing one** — see [Content via Markdown](#content-via-markdown) above for the reuse rule, why needless synonyms are harmful, and the built-in types to reach for first.
1603
-
1604
- **Match the type to your own verb.** If your sentence says "blocks", the mention must say `relationship:blocks` — a verb narrated in prose around a `references` chip (or an untyped `[[NOTE-12]]`) is an edge the graph can't see: backlinks and `rel list` will file it as a plain citation. `notes create` and `versions create` detect this and return a `mentionWarnings` array (--json) plus a stderr note with the exact retyped mention; treat each warning as a retype instruction unless the flagged word genuinely isn't asserting a relationship.
1605
-
1606
- ### Gathering Context with Search
87
+ ## Surfacing the canvas link
1607
88
 
1608
- Before creating or updating notes on a topic, **search existing notes first**:
89
+ After you create a canvas or finish changing one, end your reply with its link, the display id as the link text:
1609
90
 
1610
- 1. **Notes:** `cnotes search semantic "<topic>"` — find conceptually related notes.
1611
- 2. **Canvases:** `cnotes canvas search "<topic>"` — separate corpus from notes.
1612
- 3. **Follow up:** Open hits with `cnotes notes get` / `cnotes canvas get`. To load a note with everything it rests on, `cnotes notes get DECISION-6KN --expand` (add `--incoming` for backlinks). Otherwise chase `rel list` and in-note mentions.
1613
- 4. **Synthesize:** Combine what you found from 2-3 searches before acting.
91
+ > Built **[CANVAS-321 · Pricing model](https://creatornotes.app/<workspaceId>?canvasId=<canvasId>)**: 7 notes across 3 columns.
1614
92
 
1615
- ### Error Handling
1616
- - Branch on the **exit code** first (see the table in [Reading output](#reading-output-start-here)) — it classes the failure without parsing prose — then read the `hint` in the `{ error, code, exitCode, hint }` JSON error on stderr; it names the command that fixes it.
1617
- - If a command fails with auth errors (exit `2`), run `cnotes auth status` to verify credentials.
1618
- - If a workspace error occurs (exit `4` not found, or `7` permission), verify with `cnotes workspace current` and list options with `cnotes workspace list`.
1619
- - If a **write** fails with exit `8` (`subscription_required`), the workspace is on the free plan. Don't dead-end the user on a billing URL: if they own it and haven't used the trial, offer to run `cnotes upgrade` (free, no card) and retry. See [Paid actions](#paid-actions-writes-need-pro).
93
+ `canvas create`, `canvas get`, `canvas place`, `canvas bulk-add` and `canvas add-node` print a `Ref:` and a `Link:` line (`url` in `--json`). Copy them; never assemble a URL yourself. The only valid shape is `<server>/<workspaceId>?canvasId=<Convex canvas id>`; paths such as `/canvas/<id>` or `/workspace/<id>/canvas/<id>` do not exist.
1620
94
 
1621
- ### Closing the loop: submit feedback when you hit friction
95
+ ## Where the detail lives
1622
96
 
1623
- CreatorNotes is built for humans *and* agents, so feedback from an agent is real feedback. When you hit something worth reporting, offer to log it with `cnotes feedback submit` (above).
1624
-
1625
- **When to offer it** (be selective, not noisy):
1626
- - A reproducible bug: a command 500s, returns wrong/empty data, or a documented path doesn't behave as described.
1627
- - A real capability gap that blocked the task (not a transient blip, not your own mistake — rule those out first).
1628
- - Standout praise is welcome too, but lead with friction; it's the actionable signal.
1629
-
1630
- **Always ask the user first.** The report is attributed to them and goes to the CreatorNotes team. Say in one line what you'd report and ask if they want it sent. Never file silently, and never file the same issue twice.
1631
-
1632
- **Make it directly fixable.** In the `--body` (markdown), include:
1633
- - **What happened** — the exact command you ran and the exact error/behavior.
1634
- - **Root cause (suspected)** — your best read from the outside; say what's uncertain.
1635
- - **Suggested fix** — what would resolve it.
1636
- - **Severity** — who/what is blocked.
1637
-
1638
- Set `--severity` honestly (`blocking` only if it stops the task), `--area` to where it bites (e.g. `cli/canvas`, `editor`, `api/notes`), and `--model` to your own model id so the team knows which agent reported it. One note per issue.
97
+ | When you are | Open |
98
+ |---|---|
99
+ | Writing any prose a person will read | [references/humanizer.md](references/humanizer.md) |
100
+ | Creating, reading or revising notes; types and rubrics; markdown rules | [references/notes.md](references/notes.md) |
101
+ | Linking notes, reading backlinks, checking what an edit affects (`deps`) | [references/relationships.md](references/relationships.md) |
102
+ | Deciding what goes on a canvas as a note, text card, list, frame, edge or portal; the banner; completion tests | [references/canvas-elements.md](references/canvas-elements.md) |
103
+ | Placing or rearranging several items (`canvas place`, `arrange`) | [references/canvas-layout.md](references/canvas-layout.md) |
104
+ | Using any other canvas command: read, add, edit, move, remove, edges, templates, milestones, digest | [references/canvas.md](references/canvas.md) |
105
+ | Running two agents at once, bracketing canvas edits, verifying attribution, reading the timeline | [references/operations.md](references/operations.md) |
106
+ | Reworking notes or a board other people read, or asked to draft | [references/drafts.md](references/drafts.md) |
107
+ | Addressing comments, reviewing, requesting a review, checking what teammates shared | [references/reviews-and-comments.md](references/reviews-and-comments.md) |
108
+ | Hitting exit `8`, or asked for another workspace | [references/billing.md](references/billing.md) |
109
+ | Planning focus blocks, handling images, setup, theme, config, or reporting a CLI problem | [references/more-commands.md](references/more-commands.md) |