CAI Audit

Runs an audit agent against Langfuse traces or a cloned repository, then files proposed improvements as GitHub issues.

Modes

Mode Description
cost Audits the most costly session of the last 10 issue-solving runs.
errors Audits the 10 most recent traces that contain error-level observations.
duplication Clones the repo, runs jscpd, and audits copy-paste findings.
architecture Clones the repo and audits structural health.
security Clones the repo and audits for common vulnerability patterns (hardcoded secrets, unsafe subprocess, injection vectors, insecure deserialization, etc.).

Graph

---
title: audit_graph
---
stateDiagram-v2
  RunAuditNode --> CreateIssuesNode
  RunAuditNode --> [*]
  CreateIssuesNode --> [*]

This site uses Just the Docs, a documentation theme for Jekyll.