OKForest App
The OKForest App, at app.okforest.ai, is where you sign up, add your trees, and share them with groves. It shows people the same trees that AI assistants read over MCP: every concept rendered from its markdown, with its status, trust tier, and links, and its diagrams drawn from their source.
How it works
Section titled “How it works”- You sign in to see anything. Each account’s trees are visible only to the people given access to it.
- Your content stays in your repository. OKForest reads it through the same GitHub App as the MCP server, and shows the latest commit of the tree’s branch. People need no GitHub account to read it.
Addresses
Section titled “Addresses”Every page belongs to an account, so a link means the same thing to everyone who can open it:
| Address | What it shows |
|---|---|
/@/<account>/ |
The account’s trees |
/@/<account>/<tree>/ |
A tree’s top directory |
/@/<account>/<tree>/<directory>/ |
A directory: its index.md, or a listing of its concepts |
/@/<account>/<tree>/<concept id> |
A concept, by its path without .md (policies/refunds) |
/@/<account>/-/search?q=… |
Search across the account’s trees |
/@/<account>/<tree>/-/freshness |
The tree’s freshness report |
/@/<account>/<tree>/-/checks |
The tree’s findings from OKForest’s checks |
/@/<account>/<tree>/-/stats |
The tree’s size, against what OKForest indexes |
/@/<account>/<tree>/-/history |
The tree’s history: its commits, newest first |
/@/<account>/<tree>/-/history/<path> |
One file’s history (customers/acme-corp.md) |
/@/<account>/<tree>/-/blame/<path> |
Who last changed each of a file’s lines |
/@/<account>/<tree>/-/commit/<sha> |
What one commit changed in the tree |
/@/<account>/<tree>/-/editor/<path> |
The editor for one of the tree’s pages |
/@/<account>/<tree>/-/ask |
Asking for a change in plain words |
/@/<account>/<tree>/-/new |
A new page (?folder= where it goes, ?type= its type) |
/@/<account>/<tree>/-/move |
Moving or renaming a page (?page= its path) |
/@/<account>/<tree>/-/deprecate |
Deprecating a page (?page=) |
/@/<account>/<tree>/-/delete |
Deleting a page (?page=) |
/@/<account>/<tree>/-/changes |
The tree’s changes (?path= only one page’s) |
/@/<account>/<tree>/-/changes/<id> |
One change: its details, diff, checks, and comments |
Accounts are identified by a random ID, and trees by a short name the account chooses; a tree’s former names redirect to its current one. Anything you can’t read looks exactly like something that doesn’t exist.
- Concepts show their body, their status and trust tier as badges, their
type, tags, and provenance, the concepts they link to and the concepts that
link to them, their history, and a link to the file in the repository.
Their Details show what they are (type, tags, and resource), then their
other fields, those of their type’s schema first, in its
order, labeled with each field’s
title(or its name, withoutx-), then any others, in the page’s order; then where they came from (sources, verifications, and what generated them). A schema that names one of OKF’s fields places it in its own order: a Vendor’sresourcebeside its status page, say. A URL is a link, a path to a page links to that page, and an amount with acurrencyand aperiodreads as money (“$10 a year”). Frontmatter below them shows the YAML as written, comments included, to copy. - Directories show their
index.md, or a listing of their concepts and subdirectories. Where the tree takes changes, Edit and Ask for a change on a directory change itsindex.md, as they do a page: its list as text, since only the tree’s rootindex.mdhas front matter (its OKF version, and from OKF 0.3 its title, description, and license). - Search finds concepts matching every keyword, and concepts that mean
what you ask in other words, or in another language (“Similar in
meaning”), ranked as the MCP
search_conceptstool ranks them, and filters by tree, type, tag, status, and trust tier. Searching one tree for one type that has a schema shows the type’s fields above the results. Where an account can chat, Ask in Chat asks the search’s words as a question. - Chat answers questions about a tree, in your own words: OKForest’s AI reads the tree as your assistant does over MCP, searching it, reading the pages it needs, and comparing pages by their fields (“our top 3 vendors by cost”). Its answer links each page it relies on, says when one is a draft, stale, or unverified, and lists the pages it read with their trust tier. It answers from the tree only. Ask it to change the tree (“add our new payroll vendor”) and it proposes a change, shown under its answer with a link: a request for the tree’s editors, or, from an editor, a change in review. Asking for more, or for something different, revises that same change, until an editor takes it up; nothing reaches the tree until one of them applies it, as with any change. Where it may change the tree, it follows the tree’s own conventions for agents, as drafting does. Follow-up questions keep the conversation; nothing else is kept once you leave the page. Anyone who reads the tree can ask, on the account’s own Anthropic key, which its admins set in Settings › AI, up to 200 questions a day for the account.
- The freshness report lists the concepts that need attention: stale, draft,
unverified, deprecated, and, when there are any, those with a status OKF
doesn’t define. Due soon lists those whose
stale_aftercomes in the next 30 days (or 7, or 90), soonest first, to review before they go stale. - Checks lists the tree’s findings from the rules that
okforest validateand the GitHub Action run, checked once for each new commit. Findings never stop a tree from being served. - Stats shows how big the tree is against the most OKForest indexes of one: 50 MB of markdown text, and 1 MB for one markdown file. Past 90% of either, it warns, as does the tree’s row in Settings; a commit past one isn’t indexed, and the pages keep showing the commit before, while Stats says which limit it passed. A tree past one when it’s added is refused.
- Graph shows how a tree’s concepts link to each other: a drawing of them (each a dot colored by its area and sized by how many concepts link to it; hover one to see its links, click it to open it), the most linked concepts, the concepts no link reaches, and the tree’s areas (concepts more linked to each other than to the rest), marking an area linked to no other, where links may be missing. Trees of more than 5,000 concepts aren’t drawn. Its form finds how two concepts connect: the shortest chain of links between them, either way, up to 6 links. Type part of each one’s title or ID, and choose it from the list.
- History reads Git, so it shows changes made in OKForest and directly
in Git alike: the commits that changed the tree, or one of its files,
newest first, each with who made it, when, and its message (why). A
commit’s page shows what it changed in the tree: each page’s front matter
field by field (before and after) and its text line by line, with the
words that changed marked; other files are listed. It shows the changes of
a commit’s first 20 files, each up to 1 MB; binary files are listed
without them. History ends at the commit the tree is at, so a tree that
follows a fixed tag or commit shows the history up to it. A file’s history
goes back past where it was renamed or moved within the tree, each older
commit marked with the path it had then. Its Blame tab shows who last
changed each line, and why: the commit, its author, and when, beside the
lines as written; for a page, each front matter field too, so you can see
who set its
status. The MCP server’sget_historytool gives your assistant the same. - Indexing: until OKForest has read a tree, its pages say how far it is, and update themselves; most trees take a few seconds.
- Usage shows what you’ve done in an account over the last year, a square a day, and the last 30 days beside everyone in it: concepts and directories read, files opened, searches, questions asked in Chat, and your AI assistants’ tool calls. Trees you can’t read are counted together as “Other trees”, never named. Admins also see each person’s counts. OKForest counts only how many, never what was searched for or read.
Changing a tree
Section titled “Changing a tree”Everyone who reads a tree OKForest can change (one that isn’t read-only) can ask for a change; its editors decide, and apply it. Nothing reaches the repository until an editor applies it.
-
Edit on a page opens the editor: the page’s front matter as fields (OKF’s own with one value,
type,title,description,resource,tags,status, andstale_after, then those its type’s schema describes, a list of allowed values as a menu and a date as a date picker), the rest of its front matter as YAML (butgeneratedandverified, which OKForest sets itself and an edit keeps as they are), and its body in Markdown, with a preview. A field the page didn’t have goes in its place, in that order (OKF’s own fields as the spec introduces them, then its type’s as the schema lists them); the fields it has stay where they are. A new page’s front matter, written by anyone or by OKForest’s AI, is put in that order. Saving makes a change: an editor’s goes straight to review; anyone else’s is a request, with its edits written. Its title, at most 100 characters, is its commit’s first line; its details, in Markdown and optional, say why, show on the change, and start its commit’s message. An editor who may draft with OKForest’s AI can have it suggest both from the edit (Suggest), to change as they like; nothing is saved until they save. Editing the page again continues the same change. Files dropped on the body, or on the zone under it (or chosen there), are added beside the page and linked where they’re dropped, or where you are (shown, for an image); they’re saved with the change. -
Verify, beside a page’s trust badges, is for the tree’s editors who haven’t verified the page since it last changed (its
generateddate), while it isn’t stale (past itsstale_after, it needs new content first): it adds you to the page’sverified(OKF’s trust: a person’s verification makes it Human-reviewed) as it stands, in one commit that changes nothing else, and brings you back to the page, which shows it once OKForest has read that commit (usually within seconds). Git keeps the commit; Changes doesn’t list it. On a draft, which OKF calls not reviewed yet, it’s Mark stable and verify: the same commit also setsstatus: stable, keeping who wrote the page. -
Ask for a change, on a page or on the tree’s Changes page, asks in your own words: what should change, and the details, why included, in Markdown (bold, italics, lists, tables, links), with a preview, and any files that go with it, dropped or chosen beside it. It shows how many open changes the page and the tree have, each a link to them, so nobody asks twice. Each file joins the change beside the page it’s about (or under
references/), where an editor can remove it before applying it. -
Attached files are named as pages are (
Q3 Plan.PDFbecomesq3-plan.pdf), and a Markdown file becomes a page, listed in its folder’sindex.mdif that has one. A change’s files can come to 10 MB in all, as GitHub takes them in one commit, and none can go where the tree has a file by that name, or where its repository’s.gitattributeshas Git LFS keep them. Until the change is applied, its page shows each one, and its editors can attach more there. -
New page, on a folder (the tree’s top included), starts a page: its file name and type, which is all OKF requires, and a title and description if you like, then the editor to write it, with the type’s fields. Beside it, a menu of the tree’s types starts a page of one: its schemas’ types first, then those only its pages use. Its folder’s
index.md, if it has one, lists it. -
More changes on a page:
- Move or rename gives it a new path. The links to it point at the
new path, each written as it was (relative or from the tree’s top), and
its own relative links are rewritten from its new folder. As OKF has an
index.mdlist its own directory’s contents, its entry leaves the indexes it’s no longer within and joins its new folder’s, if that has one (an entry left pointing outside its directory is whatokf/index-scopewarns about). Its files go with it unless you untick them, each keeping its place beside it (images/chart.pngstays in animages/folder next to it). Its files are those it links to, in its folder or below, that no other Markdown file links to. A file that would take the change past 10 MB, or whose new place the tree already uses, stays where it is, and the page’s link to it still works. Tick Leave a deprecated page to keep one at the old path, naming the new one, for links from outside the tree: bookmarks, other trees, and assistants that remember it. - Deprecate marks it
status: deprecated, kept for its links and its history, its body starting by naming what replaces it, if something does. In a tree on OKF 0.3, itssuperseded_bynames the replacement too, and its page links there. - Delete removes it, with its entries in the
index.mdfiles above it, and its files unless you untick them. Its page lists the pages that link to it, whose links would break. A deleted page stays in the repository’s history.
Each makes a change, as an edit does.
- Move or rename gives it a new path. The links to it point at the
new path, each written as it was (relative or from the tree’s top), and
its own relative links are rewritten from its new folder. As OKF has an
-
The Changes page shows the tree’s changes to everyone who reads it, so nobody asks twice, in four columns: Requested, Drafting, In review, and Done (applied, declined, or withdrawn, the most recent). A page with an open change says so.
-
Editors are emailed about each new request, from
noreply@okforest.ai: who asked, in which tree, when, and a link to it. What it changes isn’t in the email, only behind sign-in. The tree’s editors are told (the people, and the members of its editor groups), or the account’s admins when it has none; an editor’s own change, already accepted, emails nobody. -
Editors decide. Accepting a request with edits puts it in review, where an editor can change its edits to fit the tree before applying them; accepting one in words moves it to drafting, where an editor edits pages for it (“Edit a page for it”). An editor can decline a change, saying why, and its author can withdraw it, until it’s done. Anyone who reads the tree can comment on an open change, in Markdown, with a preview. A change’s page shows its diff, and what the checks find on its pages.
-
Drafting with AI. On a change in drafting, an editor can choose Draft with AI: OKForest’s AI reads the tree, as an assistant does over MCP, and drafts the change’s edits from what was asked, checked like any other. It follows the tree’s own conventions for agents, written in
AGENTS.mdfiles: every one from the repository’s root down to the tree’s, and a folder’s own as it reads or writes pages there. Where two disagree, the one nearer the page wins, and what was asked comes before them; OKForest’s rules come first, so a request there to commit, or to mark pages verified, is left to the editors. While it works, the change’s page lists each step it takes (each page it reads, and its proposal) and the time so far, and shows its edits as soon as it’s done. The change goes to review, its page naming the model and the editor who asked, with the AI’s comment on what it did and what it left. It never applies anything. When it can’t draft the change, its comment says why, and the change stays in drafting. It runs on the account’s own Anthropic key, which its admins set in Settings › AI; the key is kept encrypted, and only its last four characters are shown again. Anthropic bills the account directly, and so that a fault or a script can’t run up that bill, OKForest drafts at most 100 changes a day on it. If Anthropic refuses the key, the account’s admins are emailed once, with a link to replace it. -
Applying commits the change to the branch the tree follows, as one commit, signed by GitHub as the OKForest App, whose message says who asked and who applied it. Each page is stamped as OKF intends:
generatednames who wrote it (okforest-ai/<model>for a page OKForest’s AI wrote and no editor changed since), andverifiedgains whoever applied it, ashuman:<email>, unless the page is a draft: applying doesn’t vouch for a page OKF calls not reviewed yet. Either way, verifications from before the change no longer count (they’re of the old text), so a page moved back to draft is unverified until it’s marked stable and verified. A tree with alog.mdat its root gains a line in the same commit. OKForest reads the tree again at once. -
Several people at once. When a page a change edits has changed on the branch since (another change applied, or a push in Git), the change is marked Outdated, and applying merges the two, as a rebase would: front matter field by field, and the body line by line, so changes to different fields or lines both land. Where both changed the same field or lines, the change’s page shows both versions, and applying is refused; Bring up to date merges it now, keeping the branch’s version there (a comment says where), so an editor can edit those pages again.
-
Applying is also refused when the checks find errors, when a page it edits is gone from the branch, when the branch now has a page where it adds or moves one, when a page it deletes changed, or when the branch takes changes only through pull requests.
-
Only a field the editor changes is rewritten; every other line of the page stays exactly as it was, so the commit’s diff shows only what changed.
Markdown
Section titled “Markdown”Concepts are GitHub-flavored markdown: tables, task lists, and footnotes work. Raw HTML is dropped, so a concept can’t add scripts or styles to the page.
- Links between concepts become browser links. A link to something the tree doesn’t have is marked as broken.
- Images in the tree are shown.
- Other files in the tree open through OKForest, so anyone who reads the tree can open them without access to its repository. PDFs open in a new tab, in your browser’s viewer. Everything else downloads: Word, Excel, and PowerPoint files open in Office. A file stored in Git LFS can’t be opened through OKForest yet: the app links to it on GitHub instead.
- Images and diagrams zoom when you click them: fitted to the window, or at actual size to pan around.
- Code blocks are highlighted when they name a language (
```sql,```python): Bash, CSS, diff, Dockerfile, Go, INI and TOML, Java, JavaScript, JSON, Markdown, Python, Rust, SQL, TypeScript, XML and HTML, and YAML. Other code blocks stay plain.
Diagrams
Section titled “Diagrams”Diagrams are code blocks in the concept (diagrams as code), shown as a drawing with the source underneath. Each is drawn in a light and a dark version, which follow the browser’s theme. A diagram that can’t be drawn shows its source, with the reason above it.
```d2customer -> support: asks for a refundsupport -> billing: approves```OKForest draws D2 diagrams on its servers and keeps them, so a diagram is drawn once, not on every view; a new one can take a few seconds the first time.
- Layouts: dagre (D2’s default) and ELK (
vars: { d2-config: { layout-engine: elk } }). TALA isn’t available, and a diagram can’t import other files. - Themes: the light version uses the diagram’s theme; the dark version uses its dark theme, or D2’s Dark Mauve.
- Limits: 100 KB of source, 500 shapes, and 1,000 connections. Split anything larger into several diagrams.
- Icons and images (
icon: …) can be files in the tree, by a path relative to the concept, or https images from hosts the account allows. No hosts are allowed unless you ask; for now, email support@okforest.ai to add one. Other images are left out of the drawing.
Mermaid
Section titled “Mermaid”```mermaidsequenceDiagram Customer->>Support: Asks for a refund Support-->>Customer: Approved```Mermaid diagrams are drawn in your web browser, in a sandbox that can’t reach the page or the network. Labels are plain text, and links and click handlers in a diagram are ignored. A diagram is drawn when the page is showing, so one opened in a background tab is drawn when you switch to it.
A tree can instead have Pele draw its Mermaid diagrams,
with diagrams.mermaid.renderer: pele in its
.okforest/settings.yaml. Pele draws them on OKForest’s server, so they show
as soon as the page does, but it lays them out its own way, so they won’t look
exactly as they do on GitHub, and it lacks some of Mermaid’s features, such as
plugins like ZenUML. Mermaid still draws, in your browser, any diagram Pele
can’t.
The okforest/d2-syntax and
okforest/mermaid-syntax rules check
that diagrams parse, in the CLI and the
GitHub Action, so a broken diagram is caught before
it’s merged.
Security
Section titled “Security”- It writes only what editors apply. The app reads trees through a GitHub App, on the repositories you choose, and writes to one only when an editor applies a change, on a tree whose editing an account admin turned on. The token for that commit is made for it alone; every other read uses a read-only one.
- Content can’t run anything. Raw HTML in markdown is dropped, and pages allow only OKForest’s own scripts. Diagrams are shown as images, which can’t run scripts or load anything; Mermaid runs in a sandbox, never in the page.