Clara Docs
All docs

Concepts

Get started8 min readEdit on GitHub

On this page

The ideas Clara is built on, one short section each. FORMAT.md has the exact files and fields, and CLI.md has every command.

The board

A board is the .clara/ folder in your repository: one Markdown file per ticket, a config.json of settings, and an activity log. It is committed with your code, so it is versioned, reviewed and merged the same way. There is no database and no server you must run.

One board has one ticket prefix, its key, such as WEB. Ticket ids are WEB-1, WEB-2, and commands take 12, web-12 or WEB-12.

Tickets

A ticket has a title, a type, a status, a priority and a body. The types are epic, story, task, bug, chore and spike. The priorities are p0 (most urgent) to p3. A ticket can also have points, labels, an assignee, a due date, a sprint, a release, a parent and acceptance criteria, written as a checklist in its body.

Tickets link to each other with depends_on, relates and duplicates (clara link 13 depends_on 12). Clara refuses a dependency that would make a loop.

Every open ticket has a rank, a short string that puts the whole board in one order. clara rank moves a ticket, and the order breaks ties when Clara picks what is next.

Statuses

There are six: backlog, todo, in_progress, blocked, in_review and done.

People may move a ticket from any status to any other. Agents may only make these moves:

From To
backlog todo
todo in_progress, backlog
in_progress in_review, blocked, todo
blocked in_progress, todo
in_review in_progress
done nothing

So an agent can never mark its own work done: only an approval does that. A person adding a ticket puts it in todo; an agent adding one puts it in backlog, for a person to look at.

The board's rules

The rules live in the library (library/rules/), not in the CLI or the web app, so they hold the same way through every door: the CLI, MCP, the REST API and the SDK. A refusal is an error with a stable code, a message and the next step, such as MOVE_NOT_ALLOWED or CLAIM_HELD. CLI.md lists the codes.

People and agents

Every change is made by an actor. A person is a plain name, such as ada. An agent is agent:<name>, such as agent:claude. The CLI takes the name from --as, then CLARA_ACTOR, then git's user.name. The MCP server names the agent from outside the model, so an agent cannot change who it is part way through.

What differs:

  • Agents may only make the moves in the table above.
  • Agents cannot claim a ticket in backlog, and are refused past a work-in-progress limit where people are only warned.
  • Agents cannot approve their own work, and approve at all only when the board says so.
  • Agents cannot trust commands, start runs, open the web board or undo.

An agent may have a profile in .clara/agents/<name>.md with its adapter, model and permissions. An agent named after an adapter, such as claude, works without one.

Claims

To work a ticket you claim it (clara claim 12). A claim is atomic: when two agents claim the same ticket at once, one holds it and the other gets CLAIM_HELD. A claim is refused when someone else holds the ticket, when a dependency is not done, or when it would go past a work-in-progress limit for an agent.

Claims do not expire by themselves. A holder who has made no change for stale_after_minutes (120 by default) is stale: clara doctor reports it, and clara doctor --fix releases the claim while the flag_stale automation is on. clara release 12 gives a ticket back by hand.

Blocking, answers and handoffs

An agent that cannot go on blocks the ticket with a reason and a question (clara block 12 "..." --question "..."). The question shows in what needs you (clara inbox). clara answer 12 ... answers it and the work can carry on.

clara checkpoint rewrites the ticket's Handoff section: what is done and what is next, so the next person or agent, or the same one after a restart, can pick it up. clara resume shows the ticket you were working on and its last handoff.

Hand-in, checks and review

clara complete 12 "summary" hands work in: the ticket goes to in_review. When the board has checks, it needs a passing clara verify on the commit being handed in, or it fails with COMPLETE_UNVERIFIED. Who may then approve depends on review.mode: a person (human, the default), another agent (agent), or the checks themselves (gates). The author never approves their own work, except a person, and that is recorded. See REVIEW.md.

Ready work

A ticket is ready when it is in todo, every ticket it depends on is done, and it is unassigned or yours. clara next lists ready work in order: the active sprint first, then priority, then rank. clara work uses the same order.

Epics

An epic groups stories and tasks through their parent. An epic cannot be claimed. Its progress is worked out from its children. With the epic_auto_done automation on (the default), an epic moves to done when all its children are done, and back to in_progress when one of them reopens.

Sprints

A sprint is a stretch of time with a goal: planned, then active, then closed. Only one sprint is active at a time. Starting a sprint records what it committed to; closing it writes a report. The burndown is worked out by replaying the log. Commands: clara sprint create, start, close, show, list.

Releases

A release groups tickets for a version (clara release create, ship). It is separate from clara release <id>, which gives a claimed ticket back.

Work-in-progress limits

wip_limits in config.json caps how many tickets may sit in a status, such as "in_progress": 5. People going past a limit are warned. Agents are refused, with WIP_LIMIT or CLAIM_WIP_LIMIT. Epics do not count.

Mentions

@ada in a comment, a question or a review note puts the ticket on Ada's needs you list. @agent:claude names an agent.

The activity log

Every change appends one event to activity/<year>-<month>.jsonl. The log is the history: who did what, when. clara log reads it, and clara standup sums it up.

Because the log has every change, Clara can replay it. clara board --at 2026-11-12 shows the board as it was at that moment, and the web board's activity view has a scrubber for it. Sprint burndowns and the insights (clara stats, clara forecast) are worked out the same way. git merges the log by keeping the lines of both sides.

Undo

clara undo puts back what your last change on this machine wrote, when nothing has changed those files since, and records that it did. It reaches up to your last 50 changes. Agents get no undo record.

Archive

clara archive 12 moves a ticket out of the board into archive/, and clara restore 12 brings it back. Only people archive. Nothing is deleted.

Plans

A plan is a set of changes an agent proposes for a person to look at before anything is written. clara plan turns the project's idea (clara idea) into epics and stories, clara split breaks a ticket up, and clara estimate proposes points. A plan waits in .clara/.local/ until a person runs clara plan apply, plan edit or plan discard.

Playbooks, decisions and docs

An agent may propose a playbook or a decision with clara_brain, action propose. It stays a draft until a person runs clara docs accept or clara docs reject. Free pages, such as specs and conventions, live in .clara/docs/ and are read with clara docs pages and clara docs page.

The brain

Every Markdown file in .clara is a note, and the brain is the graph of them (D-165), kept as a wiki over the project (D-170). Notes link with [[wikilinks]], Markdown links, a ticket's id, or a field of their front matter such as tickets or related. Besides the notes written in .clara, the brain holds:

  • each person, agent and label on the board, as a page under people/, agents/ and tags/ before anyone writes one, so every ticket is tied to who has it and what it is about;
  • the repository's own documents, README.md, CHANGELOG.md and docs/**/*.md unless brain.sources says otherwise, under @repo/, read and never written;
  • each file of code a note names, such as cli/run.ts, under @code/, so tickets that touch the same file meet.

index.md lists every page with a line on each, and log.md says what was added and when. A chat reads the index first. When it settles something, it writes the page, links what the page is about, and runs clara brain index, which rewrites the index and adds a line to the log. clara brain lint finds what a wiki left to itself loses: links to pages not written, pages nothing links, tickets in no epic, labels on three tickets or more with no page, decisions no ticket names, documents nothing links, and an index that is out of date.

The brain remembers without being asked (D-171). Handing a ticket in writes its note in conversations/, with a round for each hand-in; starting a sprint writes its planning note in meetings/ and closing it a retro; applying a plan writes a note in phases/ for each sprint; clara standup --save writes the day in daily/; and clara meeting files any other meeting. A chat's first message carries the status page's ## Now and the notes that bear on its ticket, inside the context budget. brain.remember: false stops the notes, and brain.private: true keeps the whole board out of git (clara init --private).

Routines

routines in config.json make tickets on a schedule (daily, weekly:<day>, monthly:<1-28>), such as a weekly dependency check. clara work makes the ones that are due as it starts, and so does the routines workflow on GitHub.

Origin

A ticket made by a routine or an import carries where it came from in origin: routine:<name>/<date> for a routine, or <source>:<id> for an import such as jira:PAY-41. Clara uses it so the same routine on the same day, or the same item imported twice, never makes a second ticket.

Doctor

A merge or a hand edit can leave a board that breaks a rule, such as two holders of one ticket. clara doctor finds what is wrong, and clara doctor --fix repairs what it can.

Workspaces

One folder can hold the boards of many repositories. Each repository points at its board with a committed .clara.json. clara init --workspace <folder> makes a project there or joins one, and clara workspace shows them all. See FORMAT.md.