Skip to content

Datatypes say what they are for - #115

Open
pvh wants to merge 1 commit into
mainfrom
datatype-descriptions
Open

pvh wants to merge 1 commit into
mainfrom
datatype-descriptions

Conversation

@pvh

@pvh pvh commented Dec 1, 2026

Copy link
Copy Markdown
Member

Adds a one-line description to each listed datatype in the site's packages:

datatype description
folder A folder that holds other documents, to organise a project.
markdown A Markdown text document: notes, plans, reports and write-ups, with comments.
chat A chat room: messages between people, with replies, attachments and presence.
tldraw5 A freeform tldraw whiteboard for sketches, diagrams and drawings.
patternwitch A colourwork pattern drawn on a grid of cells with a palette of two to six colours, such as a knitting or cross-stitch chart.
new-file A file of any kind, named by its extension: code, data, plain text, an image or a PDF, for work that has no richer document type.

Why: the agent now lists every installed, listed datatype in its system prompt, in the type's own words. In a test run, a model that had to search for types guessed drawing|svg|cad|sketch|markdown|… and never found the notebook or the assumptions register, because it can only search for words it already has. A name alone ("PatternWitch", "New File") says little about when to choose a type.

description isn't part of core's DatatypeDescription type. It travels through the registry as plain data, like the description the assumptions package already sets. All four TypeScript registrations here are untyped arrays, so there's no type change.

Tests: folder 7, codemirror-markdown 180, file 79 pass; chat, tldraw5 and patternwitch have no tests.

🤖 Generated with Claude Code

Each listed datatype of the site's packages gets a one-line `description`
beside its name: folder, markdown, chat, tldraw5, patternwitch, new-file.
The agent names every installed type in its prompt, in the type's own words,
so a model picks from what is there instead of searching for words it
already has; a name alone ("PatternWitch", "New File") says little about
when to choose it.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@patchcrow

patchcrow commented Dec 1, 2026 •

Copy link
Copy Markdown
Collaborator

✅ Patchwork glance ready

https://patchwork-preview-115--patchwork-base.netlify.app

Patchwork from inkandswitch/patchwork.inkandswitch.com, packages from this PR at 4fb67c5.

build-info.json

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants