Skip to content

Releases

v0.7.1

Choose a tag to compare

@github-actions github-actions released this 04 Dec 06:24

0.7.1 (2026-12-04)

Upgrading: nothing to merge, no new hook event. One new setting, brief.save_paths.

The stop check's decision nudge fired on the wrong turns (field report, section 13): on "Nothing has been decided yet", on a summary reporting a decision already saved and committed, and on an explanation of the check that quoted its words. Each false block cost a full extra request and showed as "Stop hook blocking error".

  • A stated decision no longer blocks the stop. When the main agent's last message states a decision and the turn saved and committed nothing, the next prompt carries a one-line note (UserPromptSubmit context), said once, in that session only. It costs no request, and a wrong guess costs a line. Blocking stays for what it was made for: a change to configuration, rules or agent definitions with nothing saved, and any edit under nudge_when: "edits". A sub-agent's decision is left to its hand-back.
  • More saves are seen. An edit to a file matching the new brief.save_paths (Claude Code's memory folder */.claude/projects/*/memory/*, HANDOFF.md, ROADMAP.md, DESIGN.md, docs/design/, docs/decisions/, docs/adr/) and a shell command that names the memory folder count as saves; a git commit in the turn counts as recorded.
  • Claude Code's own files are not rules changes. */.claude/* in nudge_paths matched the whole path of ~/.claude/projects/.../memory/*.md, so saving to Claude Code's memory beside a project edit could itself be reported as a rules change. Files outside the project and save_paths files are now never rules changes.
  • The decision test reads the sentence. A match does not count inside quotes or back-quotes, in a question, within six words after a negation, condition or contrast ("nothing has been decided", "if the turn settled a decision", "the opposite of a decision", "can't"), or in a sentence that reports it kept ("already saved", "committed"). A message that quotes one of brief.decision_words is talking about the words and does not count. The three messages from the report are tests.
  • The note names where each kind belongs: a decision about the project goes to its own records or Claude Code's memory; a rule for every agent to relatum_new; your own decisions and dead ends to libellus_note; a result to adsertio_claim (only stores that exist are named).

v0.7.0

Choose a tag to compare

@github-actions github-actions released this 29 Nov 00:43
ce512a4

0.7.0 (2026-11-29)

Upgrading: nothing to merge, no new hook event.

  • Quiet sub-agents are named to the lead. In the field two sub-agents sat stuck for eight hours between them (one waiting for a notification that could not come, one on a bare wait), and the lead saw nothing: an agent that never stops to wait is invisible until it is done. Each sub-agent tool call is now its heartbeat (a small file written by the PostToolUse hook; SubagentStart writes the first, SubagentStop removes it). At the main agent's tool calls, prompts and stops, checked at most every 3 minutes, a sub-agent of the session with no tool call for brief.quiet_minutes (30; 0 turns it off) is named once, most quiet first: its name, type, agent id and how long. The header says a single long tool call looks the same (a 25-minute build makes no call until it returns), so the lead checks before acting. At three times the figure it is said once more, plainly. A call ends the quiet spell; a later one is told anew. At Stop the news keeps the agent going once, as ended jobs do. A resumed sub-agent with no new SubagentStart is picked up by its next call; a restart (session start with startup or resume) drops the old process's agents; another session's agents are never named. The hub heartbeat is not sent from the hook (38 ms of process start per tool call, and it would register every sub-agent in the hub).
  • One hint at the first edit. The routes table is shown at session start, hours before the moment it helps. After an agent's first edit-tool call of a session (brief.edit_tools) it is told once: which tests to run for the change (chisel_diff_impact), who breaks if the file or symbol changes (wikifier_get_dependents, stele_impact_radius), and whether a test would notice a wrong line (probatio_mutate_diff with estimate: true). Only tools that are on are named; with none of those backends configured nothing is said. Only the main agent and sub-agents with the general card get it (role cards already carry these moments). Off with brief.first_edit_hint: false. The text is the first-edit template in your own config, else the built-in one; a project file cannot set it.
  • The post-tool hook stays at about 6 ms median on Windows (5.8 ms before, 5.8 to 6.1 ms after: 20 runs each, release build, a 3 MB record).

v0.6.1

Choose a tag to compare

@github-actions github-actions released this 28 Nov 23:42
363638f

0.6.1 (2026-11-29)

  • The context figures say something different to the main session. 0.6.0 told every agent past 350,000 tokens to "write your hand-off and hand back, whatever state the work is in". That is right for a sub-agent, which has a lead to hand back to. The main session has no one to hand back to, and being told to stop would drop the user's work. It is now told to keep the work going, save decisions and state as notes, give long reading and long runs to sub-agents, and tell the user that a compact or a fresh session is due. Sub-agents are told what they were told before.

v0.6.0

Choose a tag to compare

@github-actions github-actions released this 28 Nov 23:26
255b0ba

0.6.0 (2026-11-29)

Upgrading. Re-run mem-harness install and merge the hooks it prints: it now wires a PostToolUse hook (mem-harness hook post-tool). Upgrade the tools to the versions that answer ready --json and the new forms: Stele 2.6.0, Wikifier 5.7.0, Chisel 0.26.0, Trammel 4.6.0, Probatio 0.10.0, CoordinationHub 1.4.0, Relatum 1.5.0, Adsertio 1.6.0, Libellus 1.5.0. Older tools still work; the brief says "too old to report readiness", and an older Libellus is not fed spend (doctor says so). The stop check now asks only about configuration, rules and decisions; set brief.nudge_when: "edits" for the 0.5 rule.

The hooks and the brief:

  • The brief says which backends can answer. Session start runs the readiness check beside the brief's sections: one ready: line for the ready ones, one line for each that is not (state, summary, the call that fixes it), one line for tools too old to answer. A store the first write makes is no longer sent to harness_init. The check is saved for sub-agent briefs and harness_brief (6 hours).
  • Where working files go. The Setup section says: working files go in .swarmwork/, never in .swarmnotes/; and that hub locks matter only when several agents share one working tree.
  • Relatum's damage has a cause. The native reader follows Relatum 1.5's store format: .relatumignore patterns and .not-notes folders are skipped, title stands in for a missing summary, and a log is not a rule (the brief names a log and its newest heading). The damaged-notes line gives causes by class with counts, the folders that hold most, and what to do ("642 files have no header: list their folders in .relatumignore").
  • Finished jobs and last session's use reach the agent. Session start prints the jobs that ended (failed first) and "Last session's calls: 0 calls: probatio, adsertio; stele 41". The main agent's next prompt, tool call (PostToolUse) or Stop says the same, once, even with two sessions in one project; Stop keeps the agent going once to hear it.
  • Context figures, enforced by the harness. After each tool call every agent, sub-agents included, is told once when its context (input + cache read + cache write tokens of its latest request, from the end of its own session record) passes templates.plan_tokens (300,000) and again at templates.handback_tokens (350,000). It reads at most 256 KB and starts no command (7.6 ms median on Windows). Off with brief.context_check: false.
  • Spend is fed. At Stop and SubagentStop the requests written since the last feed go to libellus spend --stdin, one line each with the agent's name, model, token counts, context and the request id as key; only where the project's Libellus store exists. Off with brief.feed_spend: false.
  • Role cards. SubagentStart gives the card for the agent's role (builder, reviewer, finisher, checker) chosen by templates.roles (agent type -> card), then by words in the type, else a short general card; each states the context figures. Template filling moved to mh-core, shared with harness_template.
  • A sharper stop check. It asks to save after a turn that edited a file matching brief.nudge_paths (.claude/, AGENTS.md, CLAUDE.md, .mem-harness/, .swarmnotes/, CI workflows, ...) or whose last message states a decision (a whole-word match of brief.decision_words); plain code edits stay quiet. At SubagentStop a builder that edited files and handed back with neither a Claims: nor an Untested: line is asked once for them (brief.ask_handback). The report's "nudge arrived twice" is the host showing one block twice (the session record holds one hook run, written as both feedback and a blocking-error attachment); the harness emits it once.
  • Protected files. brief.protected (path patterns; a project file may set it) is listed in the brief as files a lead must never brief an edit to.
  • doctor no longer calls .swarmwork, .probatio or .wikifier_staging an old store. Wikifier keeps its map in the project and builds it on first use, so the advice to delete that folder was wrong.
  • A tool's version is read from its --version JSON version field when it prints JSON (Trammel 4.6.0 was read as its schema_version 4.0.0 and called too old); a never-built or empty index that builds on its first call reads "builds on first use".
  • Templates: the hand-back and review texts name hub_hand_back and adsertio_view tag=<lane>; the route "hand back so it survives a restart" is hub_hand_back.

From the field report on Specula (HARNESS_LOG_REPORT.md). The MCP server, its native tools and the config:

  • Readiness, not liveness. harness_status now says per backend whether it can answer for this project: ready, state, summary and the fix to call, from each tool's <cli> ready --json (new backends[].ready setting), run at once, in the project, with the server's environment. A tool too old for ready is unknown: upgrade <tool> to <version> or later; it is asked --version first and never sent ready (Trammel 4.5.1 runs ready as a plan goal). mem-harness doctor shows the same.
  • Tools learn they run behind the harness. Every server and command gets MEM_HARNESS=1 and MEM_HARNESS_TOOL_PREFIX, so a tool can name its tools as the agent sees them and leave out standalone advice.
  • A reviewer's allow-list. harness_status lists read_only_tools (tools marked readOnlyHint: true) and the allow_list line to paste into an agent definition; mem-harness read-only-tools prints it. Backends without annotations are named with the version to get.
  • Evidence still resolves. Every server, Adsertio's included, gets every backend's store variable, so trammel: and chisel: evidence finds the stores kept outside the project. git_exclude adds .probatio and .swarmwork.
  • A finished job reaches the agent. A reply with a job_id still queued or running is waited on by the harness through the backend's job_status; when the job ends, one record goes into the project's inbox (_harness/inbox), failed and lost jobs marked. A job the agent read or cancelled itself is not announced; a backend exit or the session's end records its jobs as lost.
  • Use is counted. Calls per backend and per tool, saved per session in _harness/usage, so the next brief can say which tools went unused. Counts are per session: MCP does not say which agent called.
  • New tools. harness_ask (which tool answers this question, schema included), harness_template (role cards for builder, reviewer, finisher and checker, a hand-back, a review brief and the lead's loop, with this session's tool names; text from the user's config only), harness_lint_brief (how much reading a brief asks for, as bytes / 4).
  • Routes in the agents' words. "seeded faults", "does a test hold this fix", "take nothing on its word", "who breaks if I change this file", "what is waiting, running, blocked", "check the commit before a push", "hand back so it survives a restart", "which agent has gone quiet"; routes[].also and routes[].phrases. The instructions say when the hub's locks apply.
  • Set-up on first use. harness_init's text says the stores are made by their first write; a store tool that still fails for want of its store gets the line naming harness_init.
  • Proxy tests wait up to 30 s (a loaded machine needed more than 10 s for the 64 MB line test).

v0.5.2

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:37
2c055eb

0.5.2

macOS test fixes. No change to the harness itself.

  • a_hung_server_behind_a_wrapper_is_stopped_at_the_handshake_timeout gave the handshake 500 ms. When the shell wrapper was slow to start the fake server, the harness stopped it before the fake had logged its pid, and the test failed (2 runs in 7 on a Mac). The limit is now 2 s.
  • drop_stops_a_server_behind_a_wrapper gave the server 200 ms between closing its stdin and the kill. Under load the fake behind the wrapper was sometimes killed before it logged the EOF, and the EOF check failed. The grace is now 1 s. In both tests the server was stopped correctly; only the check came too early.

v0.5.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 03:14

0.5.1

Windows test coverage. No change to the harness itself.

  • The process and pipe edge-case tests (pipes.rs, groups.rs, threads.rs in mh-backend) ran only on Unix. They now run on Windows too: each test names its /bin/sh server and the same steps for a new mh-fake-mcp script mode, and the test body is shared. On Windows they exercise the job object that stands in for a process group: shutdown behind a wrapper, an exit stopping what the server started, keep_children, a grandchild holding stdout or stderr, a stalled writer, the backlog limit, thread leaks and idle CPU. The Unix servers are unchanged.
  • Two mh-proxy tests read a backend's status before its failing first start had finished and failed about one run in five on Windows under a parallel load. They now wait for the failed state (harness_status does not wait for a start, by design).

v0.5.0

Choose a tag to compare

@github-actions github-actions released this 27 Nov 02:38
82ba9c8

0.5.0

Backend stores no longer go in the repository. Opening a repository used to leave .stele-context, .chisel, .coordinationhub and, after a Trammel call, .trammel in it, untracked and easy to commit. Now the harness points each of those tools at a folder outside the project, using the setting the tool already reads:

  • stele's index (rebuildable, and large on big repositories) goes to the OS cache folder: ~/Library/Caches/mem-harness, ~/.cache/mem-harness or %LOCALAPPDATA%\mem-harness\cache.
  • chisel (test results and issues), trammel (plans) and coordinationhub (locks and messages) go to ~/.mem-harness/projects.
  • One folder per project under each, named after the project and a hash of its path, with a project.json. MEM_HARNESS_DATA_DIR and MEM_HARNESS_CACHE_DIR move them.
  • New backend setting storage (kind: cache or data; env or arg), so a third-party server can be given a store folder the same way.
  • The brief's commands get the same folders, and the chisel issues section now checks chisel's store there (only_if_store).
  • mem-harness env prints the variables for a shell. mem-harness projects lists every project's stores, and projects move and projects forget carry them over after a rename or delete them. doctor shows where each store lives and warns about store folders left in the project.
  • Safety net: the store folder names (new top-level git_exclude, user config only) are kept in a marked block in the repository's .git/info/exclude, which is never committed. The opt-in memory stores (.swarmnotes, .libellus, .adsertio) are in it too. They stay in the project as before.

Upgrading: each tool starts its store afresh in the new place; existing store folders in your projects are left alone, and doctor lists them so you can delete them. Chisel's results and issues and Trammel's plans from before are not carried over: to keep them, copy the old folder's contents into the folder doctor shows.

v0.4.2

Choose a tag to compare

@github-actions github-actions released this 27 Nov 02:04
9da1d7b

0.4.2

Fixes from a review of the 0.4.0 and 0.4.1 changes and from a stress run on real repositories (linux, llvm-project, rust and about 30 smaller sample projects). Each review fix has a test that fails without it, except the Linux-only one. Also a bench re-run on 0.4.1 (bench/).

Hooks

  • The stop check no longer asks to save after a turn whose only change is a git pull, checkout or reset to commits made earlier. HEAD moving now counts as an edit only when the turn made a commit. A snapshot saved by 0.4.x is not read as a baseline, so the first stop after upgrading falls back to the edit tools in the transcript.
  • The stop check reads transcript lines written with spaces after the colons ("type": "user").
  • PostCompact still saves at most 20 "not yet recorded" items, but now reports how many more it left out.
  • A third-party line made only of -, =, * or _ is bracketed in the brief ([---]): under a line of text it made that text a Markdown heading.
  • Linux: a hook timeout takes all its process facts from one ps snapshot, so a process that a still-running command starts at that moment is no longer taken for an orphan and killed. Before the KILL that follows TERM, each pid is checked again: still there under the same parent, or re-parented to init or to us. A pid that exited and was reused is not sent KILL.

Backends

  • One call larger than 32 MiB to a server busy with another call no longer gets the server stopped as "not reading its stdin" at the next message: the line being written is not counted as backlog.
  • A malformed request from a server (its line has a "method") no longer fails our pending call that has the same id; servers number their own requests. A malformed reply still fails its call at once.

Proxy

  • A call that starts a failed backend itself now does so on its own thread, so a cancel ends the call at once instead of after the backend's whole handshake limit.
  • A request longer than the 64 MiB line limit is answered with its own id (read from the line's start), not null, so the client stops waiting.
  • A call cut short because the harness is shutting down says so, instead of advising to install the backend.

v0.4.1

Choose a tag to compare

@github-actions github-actions released this 27 Nov 00:37
c52bbf9

0.4.1

Windows compatibility fixes from an adversarial review on Windows 11. Each one was reproduced there except the env_pass additions and the USERPROFILE order. macOS and Linux behave as before, apart from the JSON and Relatum changes, which apply everywhere.

Processes (Windows)

  • Backend servers and hook commands are put in a job object as soon as they start, and the job is ended where Unix stops the process group. Before, only the direct child was killed, so a server behind npx, uvx or a .cmd shim kept running after shutdown, a crash restart or a handshake timeout, and a hung one never exited. The README and the 0.4.0 notes said otherwise.
  • The MCP server and the hooks no longer hand their own stdin, stdout and stderr to every process they start. A process a hook command left running used to hold Claude Code's pipe open, so the hook looked hung until that process exited (10 s past the timeout in the repro).
  • Tests that check this now run on Windows too: servers behind a .cmd wrapper are stopped at shutdown and at a handshake timeout, and a timed-out hook command's background process is stopped with it.

Files and paths (Windows)

  • A harness.json that starts with a byte order mark (Notepad, Set-Content -Encoding utf8) loads. Before, every hook went silent and mcp refused to start. A UTF-16 file (Windows PowerShell 5.1's >) gets an error saying to save it as UTF-8.
  • The project root is shown as C:\repo, not \\?\C:\repo. The model built paths from the old form, and CoordinationHub took a lock on \\?\C:\repo\a.txt to be a different file from a.txt.
  • ~ is %USERPROFILE% (where cargo and PowerShell look) before HOME.
  • The stop check's snapshot is saved even when a virus scanner holds the old file for a moment: a busy rename is retried for up to 1 s. Before, the save failed silently, and the next stop asked again about changes that had already been asked about.
  • Command lookup skips a file with no extension (such as a Git Bash shell script), which Windows cannot start (os error 193).
  • env_pass keeps more of the Windows basics: HOMEDRIVE, HOMEPATH, USERNAME, USERDOMAIN, COMPUTERNAME, OS, PROCESSOR_ARCHITECTURE, NUMBER_OF_PROCESSORS, ProgramFiles(x86), ProgramW6432, CommonProgramFiles (and its (x86) form), ALLUSERSPROFILE and PUBLIC.

JSON-RPC (all platforms)

  • A lone UTF-16 surrogate escape ("\ud83d", which JSON.stringify writes for a string cut inside an emoji) is read as U+FFFD. Before, the whole message was refused. A backend reply refused that way was dropped, and its call waited out call_s (1 hour by default).
  • A backend reply that does not parse fails its call at once, with -32700.
  • A client request that does not parse (for example, nested over 256 levels) is answered with its own id, not null, so the client is not left waiting.
  • A byte order mark before a message is skipped (PowerShell pipes add one).

Relatum

  • One sub-folder of .swarmnotes that cannot be read is reported as damaged. Before, it hid every rule from the brief.

v0.4.0

Choose a tag to compare

@github-actions github-actions released this 26 Nov 19:58
763e705

0.4.0

Fixes from a second adversarial review (30 confirmed, 15 plausible findings), and the known limits, except Windows-specific work.

Security

  • A project's .mem-harness/harness.json may now set only profile (one of yours), brief and main_agent. profiles, ownership and routes moved to your own config, because a repository could otherwise:
    • hide a feature's owner by replacing the ownership table or defining its own trims;
    • put its own text into the instructions the model reads.
  • A trim is one name ([A-Za-z0-9_-]). A comma or a NUL character used to get past the owner and core checks.
  • Each ownership entry lists the owner's protected groups and tools (protect). Before, the check only worked when a feature's name equalled a group name.
  • Unknown keys are errors inside every object, not only at the top level, so a typo cannot silently turn off env_pass.
  • MEM_HARNESS_CONFIG must be an absolute path. A relative one would have been read from the repository.
  • Command lookup skips files without an execute bit, as the shell does.
  • Command lookup ignores relative and empty PATH entries (since 0.3.0), so a program is never found through the folder the harness was started in.
  • Value::obj with a repeated key keeps one entry, as parsing does.
  • print-config and the usage text point at ~/.mem-harness/harness.json and list MEM_HARNESS_PROFILE.

Backends (Unix; Windows is unchanged)

  • Each server runs in its own process group, which is stopped (TERM, then KILL) when its connection ends. A server started through sh -c or npx no longer survives shutdown, and a process it leaves holding the pipes no longer leaks two threads per restart. Set keep_children to opt out.
  • A connection that ends late no longer overwrites a newer connection's status.
  • Cancelling a call is honoured while its server is still starting.
  • A large reply that arrives just before the server exits is no longer lost.
  • initialize is never cancelled (the spec forbids it).
  • Memory and CPU:
    • the read buffer shrinks after a huge line;
    • ping replies are dropped while the write backlog is large;
    • a server that stops reading stdin is stopped once 32 MiB is waiting;
    • an idle server costs far less polling: 9 idle backends now use about 0.3% of a core.

Proxy

  • Calls waiting on a backend that failed to start share one start and one 60 s deadline, instead of starting it once each.
  • A call is no longer answered "unknown tool" when another fetch replaced its own.
  • A cancelled call stops waiting at once.
  • logging is declared, logging/setLevel works, and relayed log messages below the set level are dropped.
  • Shutdown takes at most about 3 s, down from about 6 s.
  • A message of exactly the 64 MiB cap is accepted.
  • A duplicate in-flight request id gets -32600.
  • Refetches after tools/list_changed are coalesced.
  • The retry timer no longer loses a backend after a thread-spawn failure.

Hooks

  • New hook event prompt-submit (UserPromptSubmit; mem-harness install wires it). It prints {} and records where the working tree stands, so the stop check sees edits made with shell commands too. Re-run mem-harness install and merge the new UserPromptSubmit entry.
  • The stop check, in a git repository: the turn edited files when the tree changed since the turn began (git HEAD, git status and each listed file's size and time) and the turn ran an edit or shell tool. Edits you make in your editor while the agent only reads are not blamed on it. Outside git it still goes by the edit tools in the transcript.
  • The stop nudge is asked once per set of changes. It used to repeat on every later turn started by a background task or a sub-agent's hand-back, for edits it had already asked about.
  • The stop check lets the agent stop when the last prompt is older than the part of the transcript it reads, instead of judging a turn it cannot see.
  • PostCompact retries line by line only when Libellus refused the batch, not after a timeout, and the whole hook stops after 30 seconds, reporting what it did not save. A hanging Libellus used to keep it waiting about 220 seconds.
  • PostCompact reads earlier notes page by page, so the duplicate check works in a store of any size (it was skipped once the listing passed 4 MB), and makes at most 40 libellus get calls. When the check cannot finish, the lines are saved anyway and the report says so.
  • Lines in the "Not yet recorded" list that end in a colon, and bold sub-headings in it, no longer end the list. A line starting with a note kind and a colon is always an item.
  • A text section's output and Chisel's issue lines can no longer start a heading in the brief (## x is shown as [##] x); control characters are dropped. Libellus, Relatum and Adsertio output is unchanged.
  • A symlinked .swarmnotes, which Relatum uses, is no longer called refused. Each tool's own rule applies: Libellus refuses a symlink or file, Adsertio walks past one, Relatum follows a symlink. The brief's rules and its Setup section use the same lookup.
  • The trim marker names the section's tool (chisel_issues, not issues).
  • A section with a small weight keeps its heading and trim marker instead of vanishing when space is short.
  • Hook command timeouts signal through mh-sys, so they no longer need a kill binary. A process that left the command's group (setsid) is found before the kill and stopped too; on Linux the hook process is a subreaper, so one that double-forked out is found as well.