Repository navigation
Releases
Cairnmind 0.12.0
Cairnmind 0.12.0 runs on macOS with Apple silicon. It was installed and used on one Mac, an Apple M3 Pro with 18 GiB of memory and macOS 27.0.1, in two acceptance runs, and the fast test tier now runs on a macOS runner for every pull request as a required check. On Linux and WSL the upgrade changes no data or configuration; it brings a few fixes to stopping and to answers.
Highlights
- macOS on Apple silicon. The installer runs with the bash macOS ships, finds Java 21 through
JAVA_HOME,/usr/libexec/java_homeorPATH, and gives Homebrew hints. docs/INSTALL.md describes the installation with Homebrew. - Processes found and stopped without /proc. The engine, the interface broker, native runs, check runs, agent commands and MCP servers are identified on macOS as on Linux, and a stop is still refused when a process id belongs to another process or its identity cannot be read.
- A stable identity for a Mac. An installation on macOS is identified by the Mac's hardware UUID, so a new network or host name no longer turns it into a reader of its own store.
- Sockets that every terminal finds. On macOS the workspace and coding-session sockets live in one private folder per user under
/tmp, and do not depend onTMPDIR, so a terminal app, ssh and launchd use the same folder. Finding a workspace from an ssh session was not tried on a Mac. - Answers on a model that refuses structured output. With an MLX build of Ollama on Apple silicon, answers, their correction, the support check and extraction ask again without a response format and check the JSON themselves, instead of ending partial.
cairnmind doctorsays when the server refused. - A longer question budget on macOS. A new installation on macOS gives each question 120 seconds instead of 60, and
cairnmind installlets Codex wait the budget plus 15 seconds for a Cairnmind tool. Linux keeps 60. doctoron a Mac names the chip and its unified memory, and its install hints name Homebrew.- Stopping the last run stops its terminal server.
cairnmind workspace stop --clientsalso stops the private terminal server of the last coding-session run, on every system.
Install or upgrade
- New installation, on Linux, WSL2 or macOS with Apple silicon: docs/INSTALL.md. The source archive
cairnmind-0.12.0.tar.gzcontains the installer. - From 0.11.0: make a backup, close the workspace and coding sessions, run the installer, then run
cairnmind install <project>for each project, as described in docs/UPGRADING.md. The schema and the backup format do not change. On Linux and WSL nothing in the data directory or the configuration changes. A data directory that 0.11.0 or an earlier build used on a Mac has to take over writing its store once and keeps a question budget of 60 seconds until you change it; UPGRADING.md says how. - From 0.10.0 or earlier: upgrade to 0.11.0 first.
How it was checked
- First acceptance run on a Mac (18 November), on
mainat 2bb0373, on an Apple M3 Pro with 18 GiB and macOS 27.0.1. It found failures that were fixed in #264: a stop that left a terminal server running, answers that ran out of time on the MLX model, and parts of the test suite that failed on macOS. - Second acceptance run (18 November), on
mainat 9d272e7, on the same Mac. Passed: the installation;doctor, which named the chip; answers about the sample project, complete with verified citations on the MLX model, in 42.7 s and 58.8 s, within the 120 s budget; stopping, with nothing left running; memory packages under/tmp; the installation keeping its writer role across a change of host name; and an agent command. The whole test suite on the Mac had 5 failures, fixed in #270; the whole suite was not run on the Mac again after those fixes (CI runs the fast tier there). - CI. The fast test tier runs on a macOS 15 runner on Apple silicon (
macos-fast-tests) for every pull request and push tomain, and is a required check besidelint,fast-testsandfull-tests. The full suite with the real engine and tmux runs on Linux only. - Evaluations of the release gate, one run each on the release code with the default models (
qwen3.5:9b,qwen3-embedding:0.6b) under WSL2, not on a Mac:eval run,eval memoryandeval extractionpassed with the same results as 0.11.0, andeval repository .passed with 19 of 20 complete and right and none wrong; the extra run with questions about things the project does not have failed as in 0.11.0 (see Known limits). The figures are in docs/EVALUATION.md. - The hand-off pilot (
pilot/README.md) was not run for this release.
Known limits
- Tried on one Mac only. Both acceptance runs used one Apple M3 Pro with 18 GiB and macOS 27.0.1. Not tried on a Mac: questions about a large repository, whose indexing queue takes hours there, partly because each chunk is queued for embedding twice (#262); an Intel Mac, which
doctoronly notes; and a Mac where the only Java is Homebrew'sopenjdk@21. - Extraction on a Mac can time out on the 120 s budget with the local model (#266).
- The full test suite does not run on macOS in CI. Only the fast tier does; tests that need the real engine or tmux run on Linux.
doctorkeeps a structured-output refusal. The note "structured output: unavailable on this server" is kept per server and model and is not cleared by a later successful request, so after a model that supports structured output is pulled again under the same name,doctorstill shows it. Removemodels.capabilities.jsonfrom the data directory to clear it.- While extraction is still adding records, an acknowledgement can be refused as stale and the client has to read its memory again (#256).
- Deferred to 0.13.0: an external MCP session needs the service already running (#258); a snapshot of a real repository can exceed the manifest budget, and the error does not say which limit (#261); the packet's instruction for an unknown record kind is cut off when the archive path is long (#263); a second data directory cannot set its own port from the environment, and the collision is reported only in
service.log(#267); the approval dialog starts with focus on its body, so Enter does nothing (#268); the workspace process ends with exit code 1 when it is stopped (#269). - A question about something the project does not have can still get a complete answer when its name is written in lower case or all in capitals, or the question is in headline case (the rest of #245). The evaluation with such questions fails for this reason on the release code, as on 0.11.0: of 21 questions, 20 were refused and the one about the default nginx port was answered with the port of Cairnmind's own service. The four evaluations of the release gate passed.
- Native Windows is not supported; use WSL2.
Full list of changes: CHANGELOG.md. Verify downloads with sha256sum -c SHA256SUMS.
Cairnmind 0.11.0
Cairnmind 0.11.0 makes a person the only one who confirms what the project knows, and lets a team share what it confirmed through Git. The database and the knowledge agent's models can now run on another computer you control, and the store stays bounded as it grows. Before it was tagged, a build of main was tried on ten separate installations, and its fixes were tried again on the same installations; the last round of fixes is shown by tests, not by a third trial.
Highlights
- Only a person confirms. A coding session, an MCP client or the built-in agent can store a finding only as proposed, and cannot change a record you confirmed. Every confirmed record says who confirmed it, and the upgrade marks the old confirmations that your own review on this computer covers.
- Team memory through Git.
cairnmind memory publishwrites the records a person confirmed as one readable file each, after a secrets scan, and teammates import them after review withmemory import-publishedormemory import-commit.cairnmind memory diffand a pull request workflow show what changed in the team's decisions. - A database you run yourself. Cairnmind can connect to ArcadeDB in a container, on a server or in Kubernetes, with a user that has rights on its own database only and, on another host, over HTTPS with the certificate verified. The repository has the image, a Compose file and Kubernetes manifests, and one installation writes a store while others only read it.
- Other model servers.
cairnmind models setputs the chat or the embedding model on another Ollama or on a server with the OpenAI-compatible API. A server on another computer needs HTTPS and your consent, and receives only the kinds of content you allow, by default project files only. - Answers that say "not here". An answer is withheld when the quoted sources never name what the question asks about, when that name is capitalised, an identifier or in backticks. On Cairnmind's own repository the default models answered 19, 19 and 20 of 20 questions complete and right in three runs before the release and 20 on the release code, none complete and wrong. Of 21 questions about things the project does not have, 20 were refused and one was answered wrong (see Known limits).
- Fewer useless proposals. Extraction no longer turns the session protocol, one-off requests and an assistant's narration into proposed records. On the evaluation set the share a person would reject fell from 65% to 29%, with no kept record lost.
- A safer built-in agent. Before it asks you to approve a command or a third-party tool call, it lists the files it changed since your last approval, and a change to a file that configures execution, such as hooks, CI workflows or
AGENTS.md, needs its own approval. Another letter case or a Windows short name no longer gets past its guards. - A store that stays bounded.
cairnmind store sizeshows what takes space, old chunks and safety backups can be removed, and engine logs and job history are trimmed. Backup and restore run as streams, and restoring the store of this repository's source takes 1,140 requests and 18 s instead of 281,451 and 239 s. - Secrets masked in conversation text. Cairnmind's own token and database password, saved API keys, the values of
env:references in saved profiles, private key blocks and well-known key shapes are replaced by[REDACTED]before conversation and session text is indexed or given to extraction. Project files are indexed as they are. The raw archived text is kept as it was received.
Install or upgrade
- New installation: docs/INSTALL.md. The source archive
cairnmind-0.11.0.tar.gzcontains the installer. - From 0.10.0: make a backup, close the workspace and coding sessions, run the installer, then run
cairnmind install <project>for each project, as described in docs/UPGRADING.md. The schema does not change. The first start marks the confirmed records that a person's review on this computer covers, and coding sessions acknowledge their memory once more. - A database in a container, on a server or in Kubernetes: docs/DEPLOYMENT.md.
- From 0.9.0 or earlier: upgrade to 0.10.0 first.
How it was checked
- First trial (15 and 16 November). Ten testers used ten separate installations of the package built from
main: 175 steps. A second, independent run tried to reproduce and refute each finding, and 76 findings were left. 75 were fixed (#252). - Second trial. The fixes were retried on the same installations, upgraded in place with nothing lost: 55 fixed, 17 partly fixed, 1 not fixed, 2 could not be tried. The 25 items it left, 13 still there and 12 new, one of them blocking, were fixed in a second round. That round is shown by tests, not by a third trial.
- Not tried by the trials: team memory between two stores or with a real teammate (imports that move a record on or that diverge,
--take-published,--replace-confirmed, the Team memory pull request workflow); a model server other than the local Ollama (cairnmind models setwith another Ollama or an OpenAI-compatible server,memory_remote_classes); GitHub Copilot; and the installer for a connect-only installation. These are covered by the automated tests only. The second trial found a blocking failure ofmemory import-publishedinto a new store, which was fixed and is shown by tests. - Deferred with issues: #246 and #247, which need a change across modules, and the rest of #245.
- A database on another host was checked locally, on one machine (Docker Compose and a local Kubernetes cluster), not between two machines.
- Work with coding assistants over hours, how the screens read to a person, and use over a long time are checked by the author in his own daily work with Cairnmind, not by the trials.
- After the release pull request, the first real use of an external MCP session found that
ack_resumecould fail with an expired database transaction (503) when reading the project's files took a few seconds, as for a project on/mnt/cunder WSL. It was fixed before tagging (#255): with the fix installed over the author's data, three acknowledgements for a project on/mnt/cthat took 5.5 to 6.6 s each succeeded while the queue was working. - A reconnaissance on macOS found what has to change there (#226 to #229 and #231 to #237, milestone 0.12.0).
- Evaluations of the release gate, one run each on the release code with the default models (
qwen3.5:9b,qwen3-embedding:0.6b):eval runpassed, 20 of 20 recall cases;eval memorypassed;eval extractionpassed, three identical runs with 28 proposals, 29% of them rejected or duplicate, and all 15 kept records found;eval repository .passed, 20 of 20 complete and right, none complete and wrong. The run with the questions about things the project does not have failed: 20 of 21 refused, one answered complete and wrong (see Known limits). The figures are in docs/EVALUATION.md. - The hand-off pilot (
pilot/README.md) was not run for this release. In the first trial one tester ran short real sessions of Codex and Claude Code in the workspace: each read and acknowledged its memory, and a write before the acknowledgement was refused. The pilot's three-session hand-off, compaction, restart andstalechecks were not done.
Known limits
- A database between two machines was not tried; only one machine was (#225).
- macOS and native Windows are not supported yet. Linux and Windows through WSL2 are. macOS is planned for 0.12.0, native Windows later.
- A question about something the project does not have can still get a complete answer when its name is written in lower case or all in capitals, or the question is in headline case, which the subject check does not read (#245). The evaluation with such questions fails for this reason on the release code: of 21 questions, 20 were refused and "What is the default nginx port in the settings?" was answered with the port of Cairnmind's own service. The four evaluations of the release gate passed; this extra one did not.
- A complete answer can still be wrong. On a second set of 22 questions about Cairnmind's own repository, 15 were answered complete and right and 2 complete and wrong (the size of a resume packet and the shortest quote) on the final tree. Check the quoted source before you rely on an answer.
- The built-in agent on a small local model such as
qwen3.5:9bdoes not always read and acknowledge its memory before it asks for its tools. It is now told that its tools come only after the acknowledgement, and it asks for a checkpoint near the end of its context window; how well this holds in long work was not measured. - Deferred from the trials: Start work blocked by an unknown transcript record kind shows only a general notice (#246); a confirmation's audit names the branch and commit of the project root, not of the worktree in use (#247).
- A project on the Windows drive is slow under WSL. Reading a project on
/mnt/ctakes seconds where the same project in the WSL filesystem takes a fraction of one (ack_resume4.6 s against 0.1 s); keep projects in the WSL filesystem when you can. While extraction is still adding records, an acknowledgement can be refused as stale and the client has to read its memory again (#256). - Two tests fail now and then in CI (#221).
Full list of changes: CHANGELOG.md. Verify downloads with sha256sum -c SHA256SUMS.
Cairnmind 0.10.0
Cairnmind 0.10.0 lets a plan drive the work: each stage of a plan step can be handed to the assistant or the check mapped to it. It adds a built-in agent that runs on your own model server, a way in for any MCP client, and a workspace with one look. It is also the first release that was tried end to end by hand on a real installation before it was tagged.
Highlights
- Stage router. More → Plan stages maps the
implement,reviewandteststages of a plan step to Codex, Claude Code, the built-in agent, GitHub Copilot or a check profile. Run next stage, orcairnmind stage next, starts what is mapped to the next step. - Built-in agent. A coding agent in its own pane that talks to OpenAI, Anthropic, an OpenAI-compatible server or Ollama. It reads and acknowledges project memory like the other clients, can use the tools of up to four MCP servers you configure, and asks for approval per call. It cannot replace or delete an existing file it has seen only in part.
- Any MCP client. Cursor, Cline, Zed and others can use project memory with
cairnmind mcp --client external --project PATH. What such a session writes is marked and never shown as verified. - Impact of a change.
cairnmind impactand the inspector list the records and documentation that mention definitions changed since a commit, and a person records a verdict on each. - A workspace with one look. Every panel, dialog and menu shares one theme. An activity panel under
Ctrl+B ashows what runs, the plan, the tasks and recent notices. Notices are kept, so a replaced one can be read again.Ctrl+B nsaves a finding without leaving your work.Ctrl+Qin a view detaches instead of ending it. - Answers about a real repository. A question is shown the definitions of the names it uses, an answer is returned as complete only after a separate support check, and
cairnmind eval repository ROOTmeasures answers on your own code. - Usage.
cairnmind usageshows the tokens of the built-in agent and of Codex per day or week, with an optional warning threshold. - Faster and quieter. Indexing a new file needs 13 requests instead of 47. Commands that only read open the store without starting the engine or the service.
- English as the source language. Fixed messages of the memory agent, the providers, the broker and the checks are written in English and translated in a Polish workspace.
Install or upgrade
- New installation: docs/INSTALL.md. The source archive
cairnmind-0.10.0.tar.gzcontains the installer. - From 0.9.0: close the workspace and coding sessions, run the installer, then run
cairnmind install <project>for each project, as described in docs/UPGRADING.md. New data goes to~/.local/share/cairnmind; an existing~/.local/share/devbrainis used where it is. A version up to 0.9.0 does not read what this one writes into a shared repository, so upgrade collaborators together. - From DevBrain 0.8.0: upgrade to 0.9.0 first. A direct upgrade to 0.10.0 was not tested.
How it was checked
- The trial checklist was run by hand on a real installation of the release candidate: 65 steps, which found 42 defects that the automated tests had not. 39 were fixed before the release (#152 to #158).
- The fixes were then checked again on an installation upgraded in place to this release: 26 were seen fixed, 11 partly, and 3 could not be checked. The two deferred ones are listed below.
Known limits
- The built-in agent on a small local model often runs out of its turn. Records extracted from the agent's own conversation make its memory acknowledgement stale in the middle of a turn, and each new acknowledgement costs context. With
qwen3.5:9bon Ollama, three of six turns in the check ended with "Limit reached" before the step was done. No file content was lost in any attempt (#168). - Memory extraction proposes records from throwaway conversation, such as instructions given to an assistant for one step. They stay proposals until a person confirms them, and have to be rejected by hand (#160; fixed on
mainafter this release). - Smaller things the check still found are listed in #169, among them: the command menu at 80x24 still scrolls, although the changelog of this release says it does not; the workspace's key hints are not shown in the status rows (#161); stopping everything leaves the interface broker and an empty tmux server running.
- The installer refuses to upgrade while it finds a running terminal session of any Cairnmind data directory. Close the workspace with
cairnmind workspace stop --clientsfirst. - Nothing was tried with GitHub Copilot connected, or with a hosted model and a real key, in the manual trial.
- The measured recall and portable-memory results in the README are from 0.8.0 and were not repeated for this release. Answers about a real repository do not yet meet their target: 13 of 20 questions complete and right in the worst of three runs, against a target of 16 (#104).
- Linux, and Windows through WSL2, are supported. macOS is planned (#105).
Full list of changes: CHANGELOG.md. Verify downloads with sha256sum -c SHA256SUMS.
Cairnmind 0.9.0
Cairnmind 0.9.0 is the first release under the new name (formerly DevBrain). It makes stored knowledge easier to trust and to inspect, and it stops repeating work on an unchanged project.
Highlights
- Renamed to Cairnmind. The command and the Python module are
cairnmind;devbrainremains as a command alias and, for one release, as an import alias. Data paths,DEVBRAIN_*variables,.memory/devbrainand.devbrain/checks.tomlkeep their names for now. - Evidence state and time. Every record shows whether its evidence is
anchored,evidence_replaced,orphanedorunverified, and when the evidence was stated or observed.cairnmind memory orphans PROJECTlists records whose evidence is gone, and a resume packet warns about them. - Conflicts view. Pairs of findings that may contradict each other are shown side by side in the memory inspector. You let one supersede the other, keep both for different scopes, or dismiss the alarm; every decision is saved with an audit note.
cairnmind brief PROJECTand Brief in the command palette: where work stopped, in at most 40 lines, without a model.cairnmind memory show PATH: read a portable snapshot as text, with--kind,--statusand--grep. It needs no Java, engine, model or service.cairnmind doctor --contract --format text: one aligned line per client and check.- Faster on an unchanged project. A question no longer re-indexes a project that did not change (5,000 files: 52 s to 0.05 s for the index check), and the code fingerprint is about twice as cheap while still reading every file.
- English command line. Help pages and the messages of the command line module are in English; search ranks confirmed findings before proposed and disputed ones.
Install or upgrade
- New installation: docs/INSTALL.md. The source archive
cairnmind-0.9.0.tar.gzcontains the installer. - From DevBrain 0.8.0: make a backup, run the installer, then run
cairnmind install <project>for each project, as described in docs/UPGRADING.md. There is no guarded updater for this release. - From 0.7.2: upgrade to 0.8.0 first. A direct upgrade to 0.9.0 was not tested.
Known limits
- The upgrade from 0.8.0 was tested on an isolated installation with one small project, not on a large real store.
- The measured recall and portable-memory results in the README are from 0.8.0 and were not repeated for 0.9.0.
- The first question after editing a file still re-indexes the whole project (#62).
- Messages raised outside the command line module are still Polish (#60).
Full list of changes: CHANGELOG.md. Verify downloads with sha256sum -c SHA256SUMS.
DevBrain 0.8.0
DevBrain 0.8.0 makes stored knowledge stricter about evidence, brings memory questions into the terminal, and slims the project down.
Highlights
- Ask memory in the command palette (
Ctrl+B, thenSpace): ask the project memory and get the answer with cited sources, missing evidence and how much of the answer the quotes cover. Nothing is written. - Stricter grounding. Citations must be at least 12 characters long, findings link to code symbols as well as files, the format-repair step keeps verified citations, and the knowledge agent answers
unknownwhen the project does not contain the requested information. - Focus view and English interface by default. One view across the terminal width; the multi-pane Cockpit layout and the Polish interface remain options.
devbrain doctor --contractshows every Codex and Claude Code compatibility check with the output line that proved it.- Removed: the browser cockpit, the
devbrain cockpit opencommand and the legacytui.pyapp. The local broker API still serves the terminal panels.
Measured
With qwen3.5:9b on isolated databases: recall 20/20 in 6 of 6 runs, portable memory 3 of 3 runs, and a Codex → Claude Code → Codex hand-off with real clients. Method and limits: docs/EVALUATION.md.
Install or upgrade
- New installation: see the README. The wheel and source distribution are attached.
- Existing 0.7.2 installation: use the attached guarded updater
devbrain-update-0.8.0.pyas described in docs/UPGRADING.md. Applying it requires a passed runtime qualification of the host.
Full list of changes: CHANGELOG.md.