A monorepo for writing specs and other serious text on the AT Protocol.

Version history of draft/src/draft.ts

November 2026

Natural: the four follow-ups of the re-imagining — the proposal the keyboard is on is outlined by a decoration (on the block, or over the text of a change within one) instead of a class set on the text's own DOM, which had ProseMirror read the text back at every step (the section view now sets its depth class without wiping what a decoration or the working mark put there); retrieval ranks by an embedding model when the settings name one (any OpenAI-compatible /v1/embeddings with its model and a key if it wants one: bm25's forty best chunks go to the model with the passage, half their lexical score and half the cosine, the vectors kept so a chunk is embedded once; without an endpoint, or when it cannot be reached, the lexical ranking stands and the sidecar says why; halfmind serves no embeddings as it is, llama-swap would need a model started with --embeddings, so this is tested against a stand-in only); the notes an assistant names get their vault note in one call (POST /notes/by-title, case and spacing aside) instead of a search each; asks sent together share a batch, and with nothing named for the scope the caret is in the bar shows what the last batch named, as Named for these sections; and a named note carries the scope it was named for, so pulling it from the bar or the ask is for that scope (a note in §3 pulls for §3), as is dropping it; pull all pulls each where it belongs (the event the bar and the ask sent for it had no handler). .nat: batch on an ask Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
robin.berjon.com
·
Natural: the outline view, third of four steps — Text or Outline in the bar (⌘⇧U, the chord the outline dialog had) shows the document as its plan: a row per top-level section with its number, its title, its words against its target, its note (or its first sentences once written) and its parts nested: the subsections, or the paragraphs and notes once there are several, counted once written (a row with parts shows no note line, as the mockup has it). Rows are edited in place: double-click a title, a note or a target (Enter or ⌘⏎ commits, Esc leaves it) and the text follows; rows drag into order (a plain change, not a suggestion). On hover, or on the rows picked with the box in the gutter (⇧ and ⌘ extend, the status line counts them): Finer with its grain (subsections, paragraphs, sentences), Write or Write the rest, Tighten, Ask. Several rows picked make one ask each, queued in turn, the button named for all of them ("Outline both"), the ask closing when the last answer lands; the rows at work pulse, the proposals land as parts on the selection wash. Section titles no longer count as words (a section with only a note read "5 / 600"). draft: Draft.moveBlock; count leaves titles out; repairBody, run by setContent, gives a section whose subsections follow its title the paragraph the schema wants — found the hard way: the drive's plan document had such a section, and ProseMirror's next DOM re-read of it (a class toggled on a proposal) put an empty paragraph and an empty section into §2 after every ask; a hand-made .nat would fare the same Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
robin.berjon.com
·
Natural: the ask, second of four steps — no chat: an ask is made about a place (the piece, a section, an outline note, the selection) with a verb by what is there (Write and Finer for notes, Tighten, Review and Proofread for prose, Outline and Review the structure for the piece, Anything always), and lands there as proposals. Ask in the bar, ⌘J, or Finer… on an outline row brings it up at half the window (46 rem at most, the text at 40, the outline column and the bar out of the way); the scope follows the caret or the selection or is picked; Finer's knobs (into, about: empty leaves it to the model); the guidance a real editor that grows with its text; Draw on with a search over the vault and the library (pull a note for the scope, cite or add a work), the notes pulled for the scope and the ones attached to every ask; one heavy button named for the verb; ⌘⏎ sends; Esc or the cross closes, and it closes by itself when the answer lands. While it works: the section's heading gets a moving ink line, the margin says who is at it, for how long and the step, with Stop, the chip says "writing §4"; the ops are parsed as they arrive and applied as each closes, an outline part by part (chosen over a prose-first Write protocol: it works for every verb and every assistant with no change to what the models are asked for, and a paragraph still lands as soon as it is whole). What lands: a group head before the first proposal (what, who, how long, Take all, Drop all), the keyboard on the first (⇥ ⇧⇥ step, ⌘⏎ takes, ⌘⌫ drops, Esc leaves them), the assistant's note in the margin with the receipt folded under it, "n proposals" in the bar as the list. The bar of notes at rest is one panel: the last receipt in a line, the search, pulled and attached, the bibliography, Igneous and the settings folded; the Assistant, Changes, Library and Notes tabs are gone. The outline dialog is gone too, a step early: the ask does everything it did (chapters still made at once from the book scope). The .nat gains asks (the receipts) and pulled (by scope). draft: Draft.ask takes a scope, a verb, guidance and context, answers with an Ask that carries its receipt, and runs asks one at a time in a queue (stop one out or waiting); asks in place of messages, takeAsk/dropAsk/pendingOf/askOf; applyOps keeps a batch across calls; an op-arrival scanner (suggestions/arrival.ts, tested) that yields ops and the parts of an outline op as they close; the editor marks the sections at work, draws the at-work line and the receipts in the margin, puts a group head before each ask's proposals (a widget decoration), and steps through proposals from the keyboard; the protocol's reply may carry named notes (read, not yet shown); the sidebar's conversation reads asks, so stan-app keeps what it has
robin.berjon.com
·
Natural: the chrome re-imagined, first of four steps — supram 0.5 (Risograph on white) in place of 0.4 across the workspace, hairlines where there were green surfaces and heavy rules; one document per window (a second file opens a second window through mollusc, the windows come back at the next launch) and no document tabs; a bar of five things: the brand, the title, Suggesting, the assistant chip with the picker as a popover under it, Ask; the brief folded at the top of the page as a definition list (its text in a real editor, the length, the voice as chips with the picker behind "more"; fields above the title rather than a node in the body, as the mockups show); the page forty-four rem wide, headings with their number and their words against the target, the add rows on hover; the outline column with ink measures and no buttons on the rows (rename on double-click, the rest in a row menu, + section at the foot); the bar of notes on the right at a fixed nineteen rem; one status line (the scope and its count, the piece against its target, git, the last save) in place of the count note; the properties dialog gone (a field hides from its label and comes back as "+ field"). draft: the stylesheet on the role tokens (proposals on the selection wash, comments on the ok wash, no offset shadows), a core switch on the sidebar so a host can keep the assistant and changes for itself, the pickers anchored as popovers, retitle/removeSection/appendSection on Draft, a draft-line's placeholder reaching its editor
robin.berjon.com
·

October 2026

robin.berjon.com
·