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 timeAFA 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
| Surface | Use case |
|---|---|
| CLI | Developer workflow: afa analyze ., afa enhance src/ |
| REST API | Hosted API (withdrawn September 2026) |
| GitHub App | Hosted PR analysis app (withdrawn September 2026) |
| MCP Server | IDE agents (Claude Code, Cursor) invoke AFA as a tool |