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.ts
Shared finding board; agents post, challenge, respond, resolve
handoff.ts
Structured handoffs between agents with context envelope
feedback-loop.ts
Cross-agent feedback for revision cycles
Quality & verification
evaluator-gate.ts
Automated pass/fail with revision loops
scoring-engine.ts
Score findings against rubrics
verification-engine.ts
10-pass verification pipeline driver
grounding-verifier.ts
String-match every cited quote against the parsed document
quality-check.ts
Lightweight self-check before posting findings
document-checks.ts
Document-level invariant checks
Memory & knowledge
memory-system.ts
Per-session and persistent agent memory
knowledge-base.ts
FTS5 retrieval across seeded datasets (CUAD, MAUD, ACORD, UNFAIR-ToS, LEDGAR)
baselines.ts
Compare against standard-position baselines
Workflow control
workflow-engine.ts
Template-driven pipeline execution
generic-workflow-engine.ts
Custom ad-hoc workflows
approval-gate.ts
Human gate request + decision
pre-engagement.ts
Intake / briefing analysis
Reporting & pricing
report-card.ts
Final scorecard for the deliverable
risk-pricing.ts
Error probability + loss magnitude
legal-md-compiler.ts
Assemble structured legal markdown
session-replay-testing.ts
Deterministic replay for regressions
document-reader.ts
Read 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.