About
Resources
Blog
Docs
Source
Status
Social
Discord
IRC
Bluesky
X/Twitter
Contact
team@tangled.org
security@tangled.org
Legal
Terms of Service
Privacy Policy
Sign in
Join now
portent
robin.berjon.com
/
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
A monorepo for writing specs and other serious text on the AT Protocol.
Star
Starred
Star
0
Something went wrong. Try again.
Fork
0
Eye filled
Watch
Watching
Watch
Overview
Overview
Issues
Issues
Pulls
Pulls
Pipelines
Pipelines
Version history of
draft/src/components/
draft-editor.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
·
3w ago
eeb7580c
Copied
Failed
Copy SHA
robin.berjon.com
eeb7580c
Copied
Failed
Copy SHA
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>
3w ago
Natural: notes at every step, fourth of four — each ask carries the vault with it. Before it goes out, the brief, what the scope says (its titles, its notes, the first sentences of its prose) and the guidance are matched against the vault and the best passages go to the assistant as context it may quote but not edit, marked as found for this step (the notes pulled or attached already are not repeated); the sidecar does the matching, POST /notes/related, BM25 over chunks of every note (paragraphs joined to about sixty words, long ones cut at sentences), the index kept while the vault's files are unchanged, the scorer a seam an embedding model slots into with the same index. After it answers, the reply names the notes to draw on next (title, for, why): they show as Named for §3 in the bar, for the scope the caret is in (a note counts what was named for its section), and as Suggested for this step in the ask, each with its vault note once found and whether it is pulled; pull keeps it for the asks on that scope, drop is remembered in the file (.nat gains dropped, by scope). Every outline part and every block written from notes carries draws, the notes' titles, shown in a line under it in the text and under its row in the outline view (a row counts what its parts draw on). Wherever a vault note is named, a square before its title gives its kind in the vault's own colour: the kinds are the tag selectors of the vault's supercharged-links plugin, read from its data.json and the snippet it generates (POST /notes/kinds); a note's kind is the first selector one of its tags satisfies (front matter and #tags), carried by search, read and related alike, and the app writes a stylesheet for the squares. The house assistant names the vault notes it was shown and draws on the first, so the whole loop runs offline in the drive (nine new checks); the notes module is tested against a made-up vault with the plugin's files. draft: draws on insert-block and on outline parts, an attribute of paragraphs and lists; named and draws asked for in the protocol; the editor draws the line under a block and takes the kind of a title from its host Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
robin.berjon.com
·
3w ago
45d8dc2e
Copied
Failed
Copy SHA
robin.berjon.com
45d8dc2e
Copied
Failed
Copy SHA
Natural: notes at every step, fourth of four — each ask carries the vault with it. Before it goes out, the brief, what the scope says (its titles, its notes, the first sentences of its prose) and the guidance are matched against the vault and the best passages go to the assistant as context it may quote but not edit, marked as found for this step (the notes pulled or attached already are not repeated); the sidecar does the matching, POST /notes/related, BM25 over chunks of every note (paragraphs joined to about sixty words, long ones cut at sentences), the index kept while the vault's files are unchanged, the scorer a seam an embedding model slots into with the same index. After it answers, the reply names the notes to draw on next (title, for, why): they show as Named for §3 in the bar, for the scope the caret is in (a note counts what was named for its section), and as Suggested for this step in the ask, each with its vault note once found and whether it is pulled; pull keeps it for the asks on that scope, drop is remembered in the file (.nat gains dropped, by scope). Every outline part and every block written from notes carries draws, the notes' titles, shown in a line under it in the text and under its row in the outline view (a row counts what its parts draw on). Wherever a vault note is named, a square before its title gives its kind in the vault's own colour: the kinds are the tag selectors of the vault's supercharged-links plugin, read from its data.json and the snippet it generates (POST /notes/kinds); a note's kind is the first selector one of its tags satisfies (front matter and #tags), carried by search, read and related alike, and the app writes a stylesheet for the squares. The house assistant names the vault notes it was shown and draws on the first, so the whole loop runs offline in the drive (nine new checks); the notes module is tested against a made-up vault with the plugin's files. draft: draws on insert-block and on outline parts, an attribute of paragraphs and lists; named and draws asked for in the protocol; the editor draws the line under a block and takes the kind of a title from its host Co-Authored-By: Claude Fable 5.1 <noreply@anthropic.com>
3w ago
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
has
robin.berjon.com
·
3w ago
7e110e15
Copied
Failed
Copy SHA
robin.berjon.com
7e110e15
Copied
Failed
Copy SHA
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
3w ago
October 2026
Natural: outlining as the writer's work, part by part — the dialog outlines one level finer at the grain asked (chapters, sections, subsections, paragraphs, sentences) with a guidance box on every ask, every part of the proposed outline its own suggestion to take or turn down, a note planned down to its sentences as a list of points beside it, chapters made from a top-level outline with their sections inside them (a model's stray sections too, whatever their anchor), no prose unless asked (the wand buttons are gone; Write from the Outline… in the menu). draft: the outline op (parts nested by ref) laid out by applyOps with each part re-marked as a suggestion of its own (the library joins abutting ones), outline lists, isOutlineNote, the Changes list descending into proposed blocks and naming proposed sections, outline notes and sentences, reject dropping whole inserted blocks by hand (the library's revert reads past the end of the document), the fake outlining at every grain, Claude's schema with parts, points, target and
words
words
robin.berjon.com
·
1mo ago
22e0a868
Copied
Failed
Copy SHA
robin.berjon.com
22e0a868
Copied
Failed
Copy SHA
Natural: outlining as the writer's work, part by part — the dialog outlines one level finer at the grain asked (chapters, sections, subsections, paragraphs, sentences) with a guidance box on every ask, every part of the proposed outline its own suggestion to take or turn down, a note planned down to its sentences as a list of points beside it, chapters made from a top-level outline with their sections inside them (a model's stray sections too, whatever their anchor), no prose unless asked (the wand buttons are gone; Write from the Outline… in the menu). draft: the outline op (parts nested by ref) laid out by applyOps with each part re-marked as a suggestion of its own (the library joins abutting ones), outline lists, isOutlineNote, the Changes list descending into proposed blocks and naming proposed sections, outline notes and sentences, reject dropping whole inserted blocks by hand (the library's revert reads past the end of the document), the fake outlining at every grain, Claude's schema with parts, points, target and words
1mo ago
Natural: the outline as a drill-down — the dialog works per level (the piece or chapter, the book, a section, the note at the caret), with the brief in a real editor kept in the .nat and sent with every ask, Outline / Write / Ask at each level, the level's notes editable in place, Make them chapters; word targets on the piece, the chapters and any section, measured in the count note and under the outline rows. draft: section targets (schema, protocol, the target op applied as a knob), blocks inserted after one block land in the order given, <draft-text>, the fake outlines level by
level
level
robin.berjon.com
·
1mo ago
d97ddd7d
Copied
Failed
Copy SHA
robin.berjon.com
d97ddd7d
Copied
Failed
Copy SHA
Natural: the outline as a drill-down — the dialog works per level (the piece or chapter, the book, a section, the note at the caret), with the brief in a real editor kept in the .nat and sent with every ask, Outline / Write / Ask at each level, the level's notes editable in place, Make them chapters; word targets on the piece, the chapters and any section, measured in the count note and under the outline rows. draft: section targets (schema, protocol, the target op applied as a knob), blocks inserted after one block land in the order given, <draft-text>, the fake outlines level by level
1mo ago
draft: the words and characters of the text as a discreet note at the bottom left of every editor; Natural adds the book's beside the
chapter's
chapter's
robin.berjon.com
·
1mo ago
d5af2d96
Copied
Failed
Copy SHA
robin.berjon.com
d5af2d96
Copied
Failed
Copy SHA
draft: the words and characters of the text as a discreet note at the bottom left of every editor; Natural adds the book's beside the chapter's
1mo ago
Natural: chapters in an outline bar, outline-then-expand with the assistant, notes from the vault and Igneous as context; draft: outline notes, page tooltips, white comment
notes
notes
robin.berjon.com
·
1mo ago
571c83ae
Copied
Failed
Copy SHA
robin.berjon.com
571c83ae
Copied
Failed
Copy SHA
Natural: chapters in an outline bar, outline-then-expand with the assistant, notes from the vault and Igneous as context; draft: outline notes, page tooltips, white comment notes
1mo ago
draft: replace ops as a word-level diff, comments as notes in the margin; Natural centres the
text
text
robin.berjon.com
·
1mo ago
4f097f2d
Copied
Failed
Copy SHA
robin.berjon.com
4f097f2d
Copied
Failed
Copy SHA
draft: replace ops as a word-level diff, comments as notes in the margin; Natural centres the text
1mo ago
Natural: supram's buttons and icons, style presets, git, Obsidian, and a lighter
chrome
chrome
robin.berjon.com
·
1mo ago
42307371
Copied
Failed
Copy SHA
robin.berjon.com
42307371
Copied
Failed
Copy SHA
Natural: supram's buttons and icons, style presets, git, Obsidian, and a lighter chrome
1mo ago
restructure as the portent
monorepo
monorepo
robin.berjon.com
·
1mo ago
740b6528
Copied
Failed
Copy SHA
robin.berjon.com
740b6528
Copied
Failed
Copy SHA
restructure as the portent monorepo
1mo ago