Case StudyFounder, Architect & AI Engineer

Docutron.

An AI document-intelligence SaaS that turns raw project documents into compliant, investor-grade technical reports using a 15-agent Claude pipeline with strict anti-hallucination sourcing.

Client
Independent Product
Year
2026
Tools
Claude API, FastAPI, Python, PostgreSQL, Celery, Redis, React, TypeScript, Stripe
A Docutron report workspace: the West Side Placer 43-101 project with its processing pipeline and 26 documents queued for review.

Overview

Docutron takes a pile of raw project files — drill logs, permits, assay results, surveys, photos — and produces a compliant, investor-grade technical report. The founding use case is the NI 43-101 mining standard, where accuracy is a regulatory requirement. The core principle is anti-hallucination by construction: every AI-generated claim must cite a source document and page reference, and missing data produces an explicit gap statement rather than a guess.

The life of a claim: every generated statement passes a source-and-page gate — cited claims enter the report pinned to the citation ledger, uncited claims become explicit gap statements.

The Multi-Agent Pipeline

Fifteen specialized Claude agents collaborate on each report: an orchestrator coordinates ingestion, classification, section extraction, QA, editorial review, economic analysis, permit and timeline agents, image handling, and a final report builder. A schema-discovery agent researches regulatory standards via web search, so the system adapts to new report formats. Model selection is tiered: Haiku for high-volume classification, Sonnet for extraction and writing, Opus where depth matters.

The fifteen-agent pipeline: documents flow through an orchestrator into ingest, extract-and-write, and verify-and-ship lanes of specialized agents, each marked with its model tier, ending in a cited report.

How Work Flows

Three views of the same machine. The shape of a report's computation — parallel where work is cheap, serial where truth must pass single-file:

A report's workflow drawn as widths: 84 documents narrow through classification, explode into 312 parallel claim drafts, squeeze single-file through the citation gate, and emerge as one report.

Where the human sits — the pipeline runs unattended until the review gate, where a person accepts, holds, or rejects every document before it may feed the report:

The review workflow as a state machine split across machine time and human time, with the NEEDS REVIEW state straddling the boundary.

And what the output actually is — a report as the visible surface of its evidence, every sentence rooted to a page in the source strata or admitting it isn't:

A report paragraph drawn above a geological cross-section: sentences root down to specific pages in strata of drill logs, assays, and permits; the rootless sentence is an explicit gap statement.

Engineering Highlights

  • Prompt caching on agent system prompts cuts AI costs by more than 80% across the pipeline
  • Per-call AI usage tracking, cost estimation, and circuit breakers around every Claude integration
  • Async FastAPI backend with SQLAlchemy 2.0, Celery/Redis task queues, and schema-per-tenant PostgreSQL multi-tenancy
  • Security-first auth: JWT RS256, bcrypt, and TOTP two-factor authentication
  • Stripe billing across three subscription tiers, with Whisper-powered voice transcription for interview ingestion
The production systems: prompt caching cuts pipeline cost by more than 80 percent, a circuit breaker guards every model call with a safe fallback, and schema-per-tenant PostgreSQL isolates every customer by construction.

Outcome

A working demonstration of production multi-agent design — orchestration, cost control, resilience, verifiable output — in a domain where hallucination is disqualifying.

Docutron — view 1 of 4Docutron — view 2 of 4Docutron — view 3 of 4Docutron — view 4 of 4

Key Outcomes

  • 15-agent Claude pipeline: orchestration, ingestion, classification, extraction, QA, editorial, economic, and report-building agents
  • Strict anti-hallucination design — every AI claim cites a source document and page, with explicit gap statements for missing data
  • Prompt caching on agent system prompts for 80%+ AI cost savings, plus per-call usage tracking and circuit breakers
  • Schema-per-tenant multi-tenancy on PostgreSQL with JWT auth, TOTP 2FA, and Stripe subscription tiers
  • Founding use case: NI 43-101 mining technical reports assembled from drill logs, permits, assays, and surveys