Sign inSign up

zoharbabin/due-diligence-agents

By zoharbabin

โ€ขUpdated about 2 months ago

13 AI agents find what's buried in your contracts โ€” cited, cross-referenced, exportable.

Image
Machine learning & AI
0

2.3K

zoharbabin/due-diligence-agents repository overview

โ Due Diligence Agents

Legal flags a risk. Finance flags another. We connect and cite. Open-source forensic M&A due diligence โ€” 13 AI agents read your entire data room across 9 specialist domains (Legal, Finance, Commercial, ProductTech, Cybersecurity, HR, Tax, Regulatory, ESG), cross-reference the findings no single reviewer connects, and trace every one to an exact page and verbatim quote.

GitHub PyPI License

๐Ÿ“„ Documentationโ  ยท ๐Ÿ“Š Sample Reportโ  ยท ๐Ÿ’ป Source Codeโ 


โ Quick Start

docker pull zoharbabin/due-diligence-agents:latest

# Generate a deal configuration
docker run --rm \
  -e ANTHROPIC_API_KEY="$ANTHROPIC_API_KEY" \
  -v ./data_room:/data \
  zoharbabin/due-diligence-agents auto-config "Buyer Corp" "Target Inc" --data-room /data

# Run the full analysis pipeline
docker run --rm \
  -e ANTHROPIC_API_KEY="$ANTHROPIC_API_KEY" \
  -v ./data_room:/data \
  -v ./deal-config.json:/workspace/deal-config.json \
  zoharbabin/due-diligence-agents run /workspace/deal-config.json

Output appears in your data room at _dd/forensic-dd/runs/latest/report/.

โ What It Does

CommandPurpose
run deal-config.jsonFull 38-step pipeline across 9 domains with 5 blocking quality gates
run --quick-scanRed flag triage (GREEN/YELLOW/RED) in minutes
search prompts.jsonTargeted contract questions with citations
chat --report ...Interactive multi-turn chat about findings
assess /dataData room quality check before running
auto-configAI-generated deal configuration from data room scan
doctor [--config ...] [--probe]Pre-flight: verify Bedrock/Vertex/gateway routing + validate a deal config
cost <run_dir>Per-provider / per-model cost rollup for a completed run

โ What Gets Analyzed

  • Legal โ€” Change of control, anti-assignment, termination, IP ownership, indemnification, liability caps
  • Finance โ€” Revenue cross-referencing, unit economics (CAC/LTV/NRR), cost structure, projections
  • Commercial โ€” Renewal mechanics, customer concentration, SLAs, pricing models, MFN clauses
  • ProductTech โ€” DPA analysis, security certifications, technical SLAs, migration complexity
  • Cybersecurity โ€” Security governance, incident history, vulnerability management, disaster recovery
  • HR โ€” Compensation, key talent retention, labor compliance, workforce classification
  • Tax โ€” Transfer pricing, NOL/tax attributes, deal structure, income tax compliance
  • Regulatory โ€” License transferability, antitrust, data privacy, AML/sanctions
  • ESG โ€” Environmental contamination, climate risk, supply chain sustainability

โ Output

  • Interactive HTML report โ€” Go/No-Go verdict, executive narrative, severity filtering, cross-domain synthesis
  • 16-sheet Excel report โ€” structured findings for downstream modeling
  • Per-subject JSON โ€” every finding with severity, citations, and cross-references

โ Architecture

Data Room โ†’ Python Orchestrator (38 steps, 5 blocking gates)
         โ†’ 9 Specialist Agents (parallel) + Judge + Cross-Domain Analysis
         โ†’ Merge & Audit (dedup, citation verification, 31 QA checks)
         โ†’ Executive Synthesis (Go/No-Go signal)
         โ†’ HTML + Excel + JSON output

โ Environment Variables

VariableRequiredDescription
ANTHROPIC_API_KEYYes*Anthropic API key
AWS_PROFILEAltAWS profile for Bedrock
AWS_REGIONAltAWS region for Bedrock

*Either Anthropic API key or AWS Bedrock credentials required.

โ Docker Compose Example

services:
  dd-agents:
    image: zoharbabin/due-diligence-agents:latest
    environment:
      - ANTHROPIC_API_KEY=${ANTHROPIC_API_KEY}
    volumes:
      - ./data_room:/data
      - ./deal-config.json:/workspace/deal-config.json
    command: run /workspace/deal-config.json

โ Tags

  • latest โ€” most recent stable release
  • x.y.z โ€” pin a specific release (matches the PyPI version; see Releasesโ )
  • x.y โ€” latest patch within a minor series

โ Security & Privacy

  • Local execution โ€” documents only leave your machine as API calls to your LLM provider
  • No telemetry โ€” no phone-home, no usage data collection
  • Read-only โ€” never modifies files in your data room
  • No persistent credentials โ€” API keys read from environment, never stored in output

โ License

Apache 2.0 โ€” free for commercial use.

Tag summary

Content type

Image

Digest

sha256:8d2b3e220โ€ฆ

Size

318.3 MB

Last updated

about 2 months ago

docker pull zoharbabin/due-diligence-agents