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
portent
/
draft
/
src
/
assistant
10 files
at
main
robin.berjon.com
·
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
45d8dc2e
claude.ts
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
code.ts
Natural: the assistant pane grows to the work and says what the agent is doing — wide while a question is composed, out or just answered (narrow again back in the text; pin to keep), the steps as they happen with the current one marked, the files Claude Code reads and what it finds, the words as they stream, the thinking when the road carries it, Stop, and the record folded under the reply with its cost. draft: AssistantEvent/onEvent/signal on every assistant (OpenAI-compatible as SSE, Claude through the SDK stream, the fake in steps, Claude Code's stream-json mapped), the Activity reducer, draft.activity and draft.stop; sidecar: the proxy streams the answer behind its headers, /code/stream and the lender's /stream as JSON lines, a run stopped when the page lets go
1mo ago
fake.ts
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
halfmind.ts
halfmind's LAN address is plain http://halfmind.local/gw/v1
1mo ago
http.ts
Natural: the assistant pane grows to the work and says what the agent is doing — wide while a question is composed, out or just answered (narrow again back in the text; pin to keep), the steps as they happen with the current one marked, the files Claude Code reads and what it finds, the words as they stream, the thinking when the road carries it, Stop, and the record folded under the reply with its cost. draft: AssistantEvent/onEvent/signal on every assistant (OpenAI-compatible as SSE, Claude through the SDK stream, the fake in steps, Claude Code's stream-json mapped), the Activity reducer, draft.activity and draft.stop; sidecar: the proxy streams the answer behind its headers, /code/stream and the lender's /stream as JSON lines, a run stopped when the page lets go
1mo ago
openai.ts
Natural: the assistant pane grows to the work and says what the agent is doing — wide while a question is composed, out or just answered (narrow again back in the text; pin to keep), the steps as they happen with the current one marked, the files Claude Code reads and what it finds, the words as they stream, the thinking when the road carries it, Stop, and the record folded under the reply with its cost. draft: AssistantEvent/onEvent/signal on every assistant (OpenAI-compatible as SSE, Claude through the SDK stream, the fake in steps, Claude Code's stream-json mapped), the Activity reducer, draft.activity and draft.stop; sidecar: the proxy streams the answer behind its headers, /code/stream and the lender's /stream as JSON lines, a run stopped when the page lets go
1mo ago
settings.ts
Natural: Claude Code as the assistant — this Mac's own, run by the sidecar beside the stored .nat with the reading tools only; another Natural's on the LAN, lent behind a password (Settings → Lend Claude Code, share.js on :7474); Check for both
1mo ago
stream.ts
Natural: the assistant pane grows to the work and says what the agent is doing — wide while a question is composed, out or just answered (narrow again back in the text; pin to keep), the steps as they happen with the current one marked, the files Claude Code reads and what it finds, the words as they stream, the thinking when the road carries it, Stop, and the record folded under the reply with its cost. draft: AssistantEvent/onEvent/signal on every assistant (OpenAI-compatible as SSE, Claude through the SDK stream, the fake in steps, Claude Code's stream-json mapped), the Activity reducer, draft.activity and draft.stop; sidecar: the proxy streams the answer behind its headers, /code/stream and the lender's /stream as JSON lines, a run stopped when the page lets go
1mo ago
style.ts
Natural: supram's buttons and icons, style presets, git, Obsidian, and a lighter chrome
1mo ago
types.ts
Natural: the assistant pane grows to the work and says what the agent is doing — wide while a question is composed, out or just answered (narrow again back in the text; pin to keep), the steps as they happen with the current one marked, the files Claude Code reads and what it finds, the words as they stream, the thinking when the road carries it, Stop, and the record folded under the reply with its cost. draft: AssistantEvent/onEvent/signal on every assistant (OpenAI-compatible as SSE, Claude through the SDK stream, the fake in steps, Claude Code's stream-json mapped), the Activity reducer, draft.activity and draft.stop; sidecar: the proxy streams the answer behind its headers, /code/stream and the lender's /stream as JSON lines, a run stopped when the page lets go
1mo ago