cairn
Server Configuration
Describes the environment variables required to run the server.
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||
Instructions
Guidance the server publishes about itself, which clients place ahead of the tool catalog so the model reads it before choosing anything.
This server is the project's Cairn brain: ideas, tasks, decisions, notes and a daily journal kept as plain Markdown in the repo. Before answering questions about why the project works the way it does, search it (decisions record the reasons). When the user settles on something, capture it as a decision; when work is agreed, capture a task; when you finish a step, log it to the journal and move the task with update_note. Call context first for a one-page brief of open tasks, accepted decisions and active ideas. The brain may be shared by several computers: call handoffs at the start to see what another computer left for this one, and leave what only another computer can do or check with handoff_send.
Capabilities
Features and capabilities supported by this server
Protocol revision2025-11-25
| Capability | Details |
|---|---|
| tools | {
"listChanged": false
} |
| prompts | {
"listChanged": false
} |
| resources | {
"subscribe": false,
"listChanged": false
} |
Tools
Functions exposed to the LLM to take actions
| Name | Description |
|---|---|
| searchA | Search ideas, tasks, decisions, notes and journal pages. Every word must match; titles and tags rank first. Use it before answering 'why did we...' questions. |
| read_noteA | Read one note in full (frontmatter and Markdown body) plus the notes that link to it. |
| list_notesB | List notes, optionally filtered by type, status (e.g. task todo/doing/done, decision accepted) or tag. |
| contextA | One-page project brief: goals, open tasks, accepted decisions, active ideas and the latest journal lines. Read this first. |
| recentB | What happened lately: journal entries of the last N days and the most recently changed notes. |
| code_todosB | TODO, FIXME and HACK comments found in the repo's code, with file:line. |
| captureA | Create a note from one line. Prefix picks the kind: 'idea:', 'todo:', 'decision:', 'note:', 'feedback:'; #tags become tags. Example: 'decision: cache in SQLite, not Redis #storage'. |
| update_noteA | Change a note in place: set its status (task todo/doing/done, idea raw/exploring/ready/parked, decision proposed/accepted/superseded), add or remove tags, or append Markdown. Other fields are kept as they are. |
| logA | Add a timestamped line to today's journal page. 'todo:'/'idea:'/'decision:' lines also create that note and link it. |
| precedent_briefB | Before starting a delegated goal: a brief built from the user's own history. Draft Definition of Done, hidden asks (what they asked for next after similar goals), closest past prompts, lessons, related notes, their working profile, the queue and the work loop. |
| queue_nextA | The next open item of the work queue (tasks tagged #queue), skipping items blocked on the user (#needs-me). |
| queue_addA | Add a follow-up to the work queue instead of asking the user. auto: safe to run unattended; needs_me: blocked until the user acts (a login, a purchase, a decision only they can make). |
| precedent_logA | When a goal is done: record what was delivered and any correction the user made, so the next brief learns from it. queue_path also marks that queue task done. |
| handoffsB | What the user's other computers left for this one, and what this one is waiting for. Several computers can share one brain and leave each other messages: what one found, what is left hanging, what only another can do. Call it at the start of a piece of work. With thread, one conversation in full. |
| handoff_sendA | Leave a message for another of the user's computers: something only it can do or check, or what was left unfinished here. It shows on that computer's Today page and in its handoffs. Use it instead of only telling the user. |
| handoff_answerA | Add to a conversation between computers. says: 'picked-up' when this computer takes it on, 'done' when its part is finished (put the result in text), 'note' for a question or an answer, 'closed' to end it for every computer. |
Prompts
Interactive templates invoked by user choice
| Name | Description |
|---|---|
| project-brief | Open tasks, accepted decisions, active ideas and the recent log, as context for this chat. |
| precedent | Hand over a goal: the brief from your own precedents plus the loop to build, verify, publish and log it without check-ins. |
Resources
Contextual data attached and managed by the client
| Name | Description |
|---|---|
| context | Open tasks, accepted decisions, active ideas, recent log |
| 0001-plain-markdown-in-the-repo | decision (accepted) |
| 0002-github-is-the-backend | decision (accepted) |
| 0003-no-vanity-metrics | decision (accepted) |
| 0004-sign-in-through-a-tiny-worker | decision (accepted) |
| agents-as-members | idea (ready) |
| cross-brain-links | idea (raw) |
| proof-of-work-profiles | idea (exploring) |
| structured-debates | idea (exploring) |
| 2026-11-05 | journal |
| claim-built-cairn | note |
| design-principles | note |
| collect-feedback | task (doing) |
| debate-note-type | task (todo) |
| editorial-redesign | task (done) |
| explore-and-profiles | task (done) |
| join-requests-inbox | task (todo) |
| mcp-server | task (todo) |
| ship-v1 | task (done) |
| sign-in-with-github | task (done) |
TDQS
Scored across 16 tools
Most tools target clearly distinct actions (search vs read_note vs list_notes, queue_next vs queue_add, handoffs vs handoff_send vs handoff_answer). The weakest boundary is log vs capture, since both parse 'todo:'/'idea:'/'decision:' prefixes and both can create notes, and context/recent/precedent_brief all read as 'give me an overview' with only subtle differences. Descriptions do enough to resolve these in practice.
Three conventions coexist: bare verbs (capture, log, search), noun-only names (context, recent, code_todos, handoffs, precedent_brief), and prefixed verb/noun pairs (queue_add, handoff_send, list_notes, update_note, read_note, precedent_log). Families like handoff_* and queue_* are internally consistent, but note_* is not (list_notes vs update_note vs read_note). Still readable, just not predictable.
16 tools is on the heavy side but each covers a real surface area of the domain: notes, journal, queue, cross-machine handoffs, and precedent/history. No obvious duplicates or filler tools, though the count is at the upper edge of comfortable.
Create (capture), read (read_note/list_notes/search), and update (update_note with status/tags/append) are covered, plus journal, queue and handoff lifecycles. The main gap is deletion/archival — there is no remove tool, and completing a queue item is only possible indirectly via precedent_log's queue_path, which agents can work around but not cleanly.