Skip to content
ClickHouse Loom
Esc
↑↓navigate↵open⌘Jpreview
On this page

Shared memory for a software factory and multi-agent workflows

Choose shared agent memory for a software factory. Test one coding-agent handoff for source freshness, scoped access and evidence a reviewer can reuse.

Choose shared agent memory when implementation and review run in separate sessions or tools. The review agent should be able to recover the implementer’s lesson, issue and source revision with its own credentials. Start with a pilot on one repository.

Loom is a self-hosted MCP server. Agents share memory, task inboxes and decision records through namespaces with separate read and write roles. Your agents and orchestrator run the workflow.

What you get

  • Shared memory with provenance. Every row records which agent wrote it, and under the default auto_reinforce policy a contradiction between two agents is flagged for review instead of silently overwritten. Namespaces and sharing · Test a conflict
  • Task inboxes. Each agent has a durable queue with leases, retries and review rules; a claimed task has one owner at a time. Tasks, decisions and policies
  • Decisions. What was decided in a case like this, why, and whether it worked. Decisions
  • Working memory. Text an agent is given every time instead of finding it by search, separate from long-term memory. Working memory and profiles
  • Context packs. context.pack builds the bounded bundle an agent loads at the start of a task. Unified search and context packs
  • Session briefs. The resumable state of one line of work: goal, status, decisions, dead ends and what is done. One agent saves it with session.brief_save and the next loads it with session.brief_get. Session briefs
  • Framework adapters. The SDKs present Loom through agent frameworks’ own memory interfaces, including Mastra threads, messages and resource working memory. Agent frameworks

Two agents sharing a research note

On one person’s laptop, the single-user quickstart lets two connected agents read the same namespace. Connect both clients with the connect guide; for example, use Claude Code to collect a finding and Cursor to write from it.

  1. In the first client, ask it to use loom_memory_set to save example/research/next-step with the value “Check the paper’s evaluation dataset before adding it to the reading list.” Check the returned memory_id and find the row in the dashboard.
  2. In the other client, ask it to use loom_memory_get to read that exact key. Require the tool response, including found, value and agent, before it drafts a next step. It should read the first client’s value and identify its writer.
  3. Delete the example key from the client that wrote it when finished.

The agents share a saved fact; Loom does not run them or schedule their work. For agents on different people’s machines, use an authenticated team deployment, with each person’s own token granting access to the same namespace. A local single-user run does not test those access controls.

Memory for a software factory

When autonomous coding agents take an issue through implementation and review, Loom keeps shared context, source-linked lessons and reported outcomes between those stages. Your agents and orchestrator execute the work and enforce review and CI requirements.

Use an indexed repository and separate agent credentials with access to the shared namespace. Check shared recall and denied access before relying on the deployment for team work.

  1. Recover the task. Load relevant context with context.pack, keeping the issue, acceptance criteria and current revision with the task. With a registered tracker, check prior reports and candidate changes. An unavailable or degraded duplicate check leaves that question unresolved.
  2. Inspect the source. Read the current definitions, callers and affected code before changing it. Follow the code intelligence walkthrough; use local tools for uncommitted changes the index has not seen.
  3. Keep the reason. Save a durable lesson or decision with its evidence and the qualified definitions it concerns. Follow the repository tag and namespace rules so the code-link worker can resolve it. Keep the current plan in working memory.
  4. Hand off the evidence. Pass the issue, revision, lesson keys, completed checks and open questions to the next agent. The planner and worker example shows fenced task ownership, separate credentials and result provenance.
  5. Review against current code. Inspect the diff and the lesson’s link state. A changed link calls for checking the claim; it does not establish that the claim is false. Follow check a lesson after a code edit. Treat the agent’s reported completion separately from review and CI results.
  6. Record the outcome. Correct an outdated claim at the same memory key. Record which memories each run relied on and close the run once, following the run and procedure reporting rules. Keep failed checks and unresolved questions with the handoff.

The Python software-factory reference implements this evidence handoff with separate implementation and review credentials. Start with its indexed public repository and review-inbox setup. It compares the served function body and reports operation receipts; it does not generate a patch, decide whether a lesson is true or run code review. The example documents cleanup limits and supplies no captured live output.

Choosing memory for a software factory

Pick an issue that an implementer and reviewer already handle in your repository. Record the starting commit. Save one source-linked lesson during implementation, then start a fresh review session with its own token. Push a change to an expression in the cited definition on the indexed trunk. Keep the lesson as written. After the index and link worker process the commit, have the reviewer read the same lesson again and check its link state. Keep the issue, revision and check results with each handoff so the reviewer can reproduce what the implementer saw.

Question Evidence to collect
Can another agent use the handoff? Read the saved result with the review identity; check the writer, issue, revision and unresolved work.
Does the lesson still apply? Inspect the current definition and its link state. Record the reviewer’s judgment rather than treating a changed hash as an invalid lesson.
Can unrelated agents read it? Run a separate denied-access check with a token outside the shared namespace. A different agent name alone is not an access boundary.
Did memory help the task? Compare task outcomes under the same model, repository revision, tasks and review criteria. Include failed checks and the cost of storing and retrieving context.

The reference above exercises an evidence handoff; it is not a measured software-factory benchmark. A reported completion is not a passing test, an accepted patch or proof that memory helped. Your orchestrator remains responsible for enforcing those gates.

For a single coding assistant, start with coding-agent memory and its cross-session check. For architecture trade-offs, read Choosing memory for a software factory. Use the code-linked lesson example to evaluate source freshness separately from recall. To evaluate the full toolchain, use the software factory tools pilot to check planning, execution, review and release on one repository.

Test a conflict in shared agent memory

Use a disposable team namespace to check how two agents report different values for the same rule. Set its conflict policy to manual_review and give each writer its own token. Use a sample runbook that fixes a service’s retry timeout at 30 seconds. Keep its revision handy so the reviewer can verify the value against the source.

  1. Check shared recall. Have the first writer save “The retry timeout for this service is 30 seconds.” with memory.set as a semantic memory. Leave user_id unset for a namespace-wide fact. Wait until the second writer finds its key with memory.search using agent="*" and search_mode="semantic".
  2. Check the review queue. Have the second writer save the same statement with 60 seconds under a different key, with dry_run=true first. Look for conflict_verdict="conflict" and the first memory among the peers. Repeat the write without dry_run, then confirm both rows appear in the Review queue or conflicts.list. If the dry run returns another verdict, check the type, scope and namespace policy before evaluating the resolution step.
  3. Check the correction. Have a namespace admin check the runbook revision and keep the supported row with conflicts.resolve, decision="revise" and the source revision in reason. Check the resolution in audit.list. Have a fresh authorized reader use memory.get on both keys. The supported value should be active, the other key should return found=false, and the pair should be gone from conflicts.list.

Start

Integrate Loom into an agent covers the identity each agent sends and what to write; tokens and grants gives each agent its own token.

Run the planner and worker example to follow a task from posting through fenced completion and read its result with provenance. It uses separate tokens and deletes the result memory after the handoff.

Some ops on this page are marked experimental on the status page.

Last updated on

Was this page helpful?