AFA has been retired. Its hosted API was withdrawn in September 2026. These pages are an archive and describe behavior that is no longer offered. See https://undercurrentholdings.com/status/
AFAdocs

AFA Documentation

Archive of retired AFA documentation. The hosted API was withdrawn in September 2026.

AFA documentation archive

AFA has been retired. Its hosted API was withdrawn in September 2026. These pages are an archive and describe behavior that is no longer offered. See https://undercurrentholdings.com/status/.

How it works

1. ANALYZE    Parse functions via tree-sitter + LLM semantic analysis
2. GENERATE   Create enhancement candidates via model-agnostic agents
3. VALIDATE   Run every candidate through the gate set
4. COMMIT     Commit if the gate set clears (risk or profit, plus the rest) and utility ratio > 1.0
5. LEARN      Track acceptance/rejection to improve over time

AFA uses a tri-plane architecture: the control plane (governance) never generates code; the data plane (execution) never makes governance decisions; the auth plane (identity, billing, access control) resolves tier and enforces rate limits but never evaluates gates or generates code.

Surfaces documented here

SurfaceUse case
CLIDeveloper workflow: afa analyze ., afa enhance src/
REST APIHosted API (withdrawn September 2026)
GitHub AppHosted PR analysis app (withdrawn September 2026)
MCP ServerIDE agents (Claude Code, Cursor) invoke AFA as a tool

On this page