Repository navigation
v0.6.0
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 toharness_init. The check is saved for sub-agent briefs andharness_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:
.relatumignorepatterns and.not-notesfolders are skipped,titlestands in for a missingsummary, and alogis 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 attemplates.handback_tokens(350,000). It reads at most 256 KB and starts no command (7.6 ms median on Windows). Off withbrief.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 withbrief.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 withharness_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 ofbrief.decision_words); plain code edits stay quiet. At SubagentStop a builder that edited files and handed back with neither aClaims:nor anUntested: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. doctorno longer calls.swarmwork,.probatioor.wikifier_stagingan 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
--versionJSONversionfield when it prints JSON (Trammel 4.6.0 was read as itsschema_version4.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_backandadsertio_view tag=<lane>; the route "hand back so it survives a restart" ishub_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_statusnow says per backend whether it can answer for this project:ready,state,summaryand thefixto call, from each tool's<cli> ready --json(newbackends[].readysetting), run at once, in the project, with the server's environment. A tool too old forreadyisunknown: upgrade <tool> to <version> or later; it is asked--versionfirst and never sentready(Trammel 4.5.1 runsreadyas a plan goal).mem-harness doctorshows the same. - Tools learn they run behind the harness. Every server and command gets
MEM_HARNESS=1andMEM_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_statuslistsread_only_tools(tools markedreadOnlyHint: true) and theallow_listline to paste into an agent definition;mem-harness read-only-toolsprints 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:andchisel:evidence finds the stores kept outside the project.git_excludeadds.probatioand.swarmwork. - A finished job reaches the agent. A reply with a
job_idstill queued or running is waited on by the harness through the backend'sjob_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[].alsoandroutes[].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 namingharness_init. - Proxy tests wait up to 30 s (a loaded machine needed more than 10 s for the 64 MB line test).