An evidence-first, multi-agent audit application for detecting accounting fraud in mixed German/English company dossiers.
The system deliberately separates responsibilities:
- DuckDB proves numbers and performs deterministic reconciliations.
- Cognee stores investigation memory and connects entities, evidence, and counter-evidence.
- OpenAI Agents SDK coordinates specialist investigators and guardrails.
- Next.js gives auditors an interactive investigation workspace.
The initial implementation can:
- Read the practice general ledger and payment-approval policy.
- Normalize creditor payments into DuckDB with exact source-line provenance.
- Extract the approval threshold from the Word audit plan.
- Detect same-day split payments just below the threshold.
- Return candidates and evidence through FastAPI.
- Display the results in the Next.js investigation dashboard.
The detector contains no hard-coded vendor IDs, dates, or expected answers.
cp .env.example .env
docker compose up --buildThen open:
Press Load practice dossier in the web app. The API imports the source data and runs the first detector.
Backend:
cd apps/api
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
uvicorn app.main:app --reloadFrontend:
cd apps/web
npm install
npm run dev- Never commit
.env. - Cognee and OpenAI keys remain in the API container only.
- Rotate any key that has been pasted into chat, logs, or screenshots.
- The frontend never communicates with Cognee or OpenAI directly.
See PLAN.md for the full delivery plan and acceptance criteria.
For installation on another computer, environment configuration, dataset loading, health checks, upgrades, and troubleshooting, see DEPLOYMENT.md.