memoforge
From one legal question to a finished .docx memorandum — researched, quoted, footnoted and stress-tested — in a single command.


~60-second walkthrough, recorded on v1.1.1: intake → research plan → parallel researchers → reviewer stress test → exported .docx. v2 is the same shape with fewer, better-checked steps.
What it does
memoforge turns a research-grade legal question into a structured, footnoted memorandum. It runs the pipeline a small legal team would run: an analyst clarifies the missing facts, researchers pull primary sources in parallel (statutes, case law, regulator guidance), a currency check confirms the law is still good, a writer produces an IRAC draft, reviewers stress-test it against fixed checklists, a mediator consolidates the findings, and the writer revises before export. It assumes no jurisdiction — the plan step classifies the query and routes research accordingly. EU data protection (GDPR, AI Act, NIS2, DSA), US privacy and sectoral regulation, UK consumer law and cross-border compliance are its strong ground.
What changed in v2 is where the pipeline lives. Phases, budgets, source freezing, citation provenance and every state.json write belong to a Python package (scripts/memoforge/, the mf CLI) with ~3,600 offline tests behind it. The orchestrating model follows one three-command protocol — next → act → report — and holds no pipeline knowledge that context summarisation can eat.
What you get
memo-<slug>.docx — Arial 12pt, 1″ margins, numbered sections, IRAC per issue, in English, German, French, Spanish or Russian. Citations are OSCOLA-style: by default a short inline citation linked to the source, with the full record in a Sources annex; with citation_style: footnotes, real Word footnotes. Without python-docx the run still delivers a markdown memo with a banner explaining the downgrade: a run never ends empty-handed.
- A frozen source pack — every statute, case and regulator document the analysis relies on, each with a saved raw copy, a SHA-256 and a currency date. Once frozen, nothing new gets in.
- Verifiable quotations — every blockquote was extracted from that raw copy by exact string match, not recalled by a model. A quote that cannot be matched is refused, and the refusal is recorded.
- Reviewer findings — binary checklist verdicts per reviewer, plus what the mediator kept, dropped or flagged as a conflict.
- An honest verdict —
approved_on_v<N>, forced_exit_on_v<N>_with_remaining_issues (revision budget spent with blockers left), manual_review_required_on_v<N>, or fallback_summary_delivered when a dependency failed, with reasons. No false confidence.
- A full audit trail —
state.json, events.jsonl, every draft version and every lint report.
Install
Claude Code: /plugin marketplace add gregmos/memoforge then /plugin install memoforge.
Cowork: Settings → Plugins → drag and drop memoforge-2.0.0.zip from the Releases page.
Dependencies
The CLI, the hooks and the status line are stdlib-only, so the plugin installs and answers without anything extra. Schema validation, research and the docx renderer need three packages (requirements.txt: jsonschema, python-docx, mistune). Install them into the plugin's own data directory, where they never touch your project environment:
<plugin>/scripts/mf deps install # Windows: scripts\mf.cmd deps install
<plugin>/scripts/mf deps check
pip install -r requirements.txt works too if you prefer the ambient interpreter. A SessionStart hook reports what is missing; without the packages the pipeline degrades to the markdown fallback instead of failing.
Connect the legal databases
The plugin registers ten MCP servers through .mcp.json: