Skip to content

About

Multi-agent accounting-fraud auditor: OpenAI Agents SDK orchestrating investigators over DuckDB provenance and Cognee memory, with a Next.js audit workspace.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

8 Commits

Folders and files

Repository files navigation

Cortea Fraud Auditor

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.

Current vertical slice

The initial implementation can:

  1. Read the practice general ledger and payment-approval policy.
  2. Normalize creditor payments into DuckDB with exact source-line provenance.
  3. Extract the approval threshold from the Word audit plan.
  4. Detect same-day split payments just below the threshold.
  5. Return candidates and evidence through FastAPI.
  6. Display the results in the Next.js investigation dashboard.

The detector contains no hard-coded vendor IDs, dates, or expected answers.

Quick start

cp .env.example .env
docker compose up --build

Then open:

Press Load practice dossier in the web app. The API imports the source data and runs the first detector.

Local development

Backend:

cd apps/api
python -m venv .venv
source .venv/bin/activate
pip install -e '.[dev]'
uvicorn app.main:app --reload

Frontend:

cd apps/web
npm install
npm run dev

Security

  • 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.

About

Multi-agent accounting-fraud auditor: OpenAI Agents SDK orchestrating investigators over DuckDB provenance and Cognee memory, with a Next.js audit workspace.

Topics

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages