Collavre

One living tree for docs, tasks, discussions, and AI agent context.
Today those are three copies you keep in sync by hand, plus an agent wired to all of them
that still has to guess which one is true. A block in Collavre is all four at once — one
object. Pin a rule at the root and every task below it inherits it, for people and agents alike.
Live demo · Watch the 90-second demo · Features · AGPL-3.0
The problem
You write the same thing three times.
- The doc. You write the spec.
- The tracker. You retype it as tickets — and the link back to the paragraph it came from is never written down anywhere.
- The thread. You explain it a third time in chat, where the decision scrolls away attached to nothing.
Then you bring in an agent. Nobody pastes context by hand anymore — you connect it over
MCP and it can read all three. But it reads three copies that have drifted apart, with no
record of how they relate, and no boundary telling it where this task ends. So it guesses,
from keywords, every single session.
The duplication was always waste, but people carry the missing structure in their heads,
so it stayed tolerable. An agent carries nothing between calls. That is what turns a quiet
tax into a daily one.
How it works
One object, not three copies. A block is simultaneously a document, a task, a
discussion thread, and a unit of agent context. Blocks nest into a tree.
Markdown in, task tree out. Import a spec and heading depth becomes tree depth, one
to one. Nothing is retyped. Progress rolls up from leaf to root on its own.
Context is lexically scoped. Pin a context block at any node — coding conventions, a
design doc, deploy rules — and every descendant inherits it. Call an agent on a leaf task
three levels down and it arrives with that context already attached. From there it can
traverse the rest of the tree itself over MCP.
That last one is the whole idea: the unit of work is the unit of agent context. It is
lexical scoping, but for work.
The document is the tree
A structure this good is worthless if writing in it feels like filing a ticket. So the tree
is not a list of task titles with documents hidden behind them — it is the document. A
heading, a paragraph, a fenced code block, a table: each is a block, rendered in place,
each carrying its own progress and its own thread.
- Markdown-first. Any block flips between rich text and raw markdown; markdown is what
gets stored. Import a
.md file by dropping it on the tree, export any subtree back out.
- A real editor. Fenced code with syntax highlighting (Prism), tables, images, video,
attachments, links, colors — Lexical, not a textarea.
- Drag a block and its subtree comes with it, re-parenting included.
- Presence. See who is in the document and who is editing which block.
Why not just MCP?
We ship an MCP server too, and agents search and traverse the tree through it. Still:
- Retrieval answers "what matches this query." Inheritance answers "what is always true here." The hard part was never reaching the data — it is knowing the boundary of the task. An agent over a flat store re-guesses that boundary from keywords every session. In a tree it does not guess; the structure already knows.
- Connectors reconstruct at read time the relationships that were destroyed at write time. When you retyped the spec into a ticket, the link between them was never written down. No amount of retrieval recovers a link that was never recorded.
- A flat store has nothing to inherit. That is the part a connector cannot add from the outside.
An MCP server over a doc store returns documents. An MCP server over a tree returns a scope.
Quick start
Requires Ruby 3.4 (via mise), Node, and libvips
(brew install vips on macOS).
git clone https://github.com/sh1nj1/plan42.git && cd plan42
mise install && npm ci
bin/setup # bundle, prepare + seed the DB, then start the dev server on :3000
Sign in as [email protected] / password123 — set DEFAULT_USER_EMAIL and
DEFAULT_USER_PASSWORD before the first run to override.
To point an agent at it over MCP, see docs/mcp-configuration.md.
What's inside