How they collaborate

21 MCP tools

Tools are how agents move information between each other — shared state, not direct messages. Built with the Claude Agent SDK's tool() helper and Zod schemas. Live in src/mcp/tools/, registered into a per-session server in src/mcp/server.ts.

By category

Collaboration & debate

debate-board.tsShared finding board; agents post, challenge, respond, resolve
handoff.tsStructured handoffs between agents with context envelope
feedback-loop.tsCross-agent feedback for revision cycles

Quality & verification

evaluator-gate.tsAutomated pass/fail with revision loops
scoring-engine.tsScore findings against rubrics
verification-engine.ts10-pass verification pipeline driver
grounding-verifier.tsString-match every cited quote against the parsed document
quality-check.tsLightweight self-check before posting findings
document-checks.tsDocument-level invariant checks

Memory & knowledge

memory-system.tsPer-session and persistent agent memory
knowledge-base.tsFTS5 retrieval across seeded datasets (CUAD, MAUD, ACORD, UNFAIR-ToS, LEDGAR)
baselines.tsCompare against standard-position baselines

Workflow control

workflow-engine.tsTemplate-driven pipeline execution
generic-workflow-engine.tsCustom ad-hoc workflows
approval-gate.tsHuman gate request + decision
pre-engagement.tsIntake / briefing analysis

Reporting & pricing

report-card.tsFinal scorecard for the deliverable
risk-pricing.tsError probability + loss magnitude
legal-md-compiler.tsAssemble structured legal markdown
session-replay-testing.tsDeterministic replay for regressions
document-reader.tsRead parsed-document spans on demand

Tool permissions are phase-gated

src/permissions/ resolves which tools each agent can call at this step. A researcher can read the knowledge base; only the orchestrator can call resolve_debate. This is enforced before the SDK dispatches the call.

Remote bridge (preview)

src/mcp/remote-bridge/ exposes 12 Counsel tools over a JSON-RPC 2.0 HTTP bridge with shared-secret auth, for use by Anthropic Managed Agents. Gated by LAVERN_MANAGED_AGENTS_BRIDGE=1.