Capture what your retiring experts know — the business rules and intent — straight from the source code, before it's gone.
Afunana reads the systems that actually run your business — and reconstructs the knowledge buried inside them. It builds a queryable map of every program, file, and field, then turns it into documentation a business can read, plain-language answers with citations, detection of the defects that never throw an error, and safe, validated change plans. Installed on your own infrastructure, with the AI provider you choose.
The applications that run core operations at many IBM i, Oracle, and mainframe organizations are decades old. The people who built and maintained them are retiring, the documentation is out of date, and the knowledge of why the code does what it does leaves with them. That makes every change risky, every audit slow, and modernization hard — because no one can say exactly what the system does. Afunana closes that gap.
Capture what your retiring experts know — the business rules and intent — straight from the source code, before it's gone.
See the full blast radius of any change — every program, file, and field affected — and get a validated plan before it reaches production.
Find the costliest, best-hidden defects — the ones that produce no error message and only surface when real data hits them.
Documentation on demand, every claim cited to a source line, backed by a tamper-evident audit trail and field-level data lineage.
Afunana connects to your system, extracts the source, and builds a persistent knowledge graph of how everything connects. On top of that graph it describes what every program does in business terms — not a transcript of the code, but what it means and why it matters — with every statement traced back to the exact source line, so any claim can be verified.
Every program gets a structured document at three levels — business, systems, and program — covering what it does, the business rules it enforces, its data flows, error handling, and dependencies. Every statement traced to its source line.

Searchable lists of every program and file with business descriptions and auto-generated tags. An interactive call tree shows the full dependency web, and a system-wide data dictionary catalogs every field with the programs that use it and the consequences of changing it.

Ask in plain language — "which programs update the customer balance?" or "what breaks if we lengthen the policy number?" — and get answers with clickable source-line citations. Describe a change and Afunana returns a full impact analysis and compile order. Fold in your own specs and manuals so it reasons over what the code reveals and what your team already wrote.

Deterministic checks — no probabilistic guessing — catch the costliest, best-hidden defects across program boundaries: callers and callees that disagree about a parameter's size, moves that silently truncate an amount, unhandled file status, unsafe control flow, and (on Oracle) swallowed exceptions, DML without a WHERE clause, and dynamic-SQL injection.

Code tools help you write the next line. Afunana captures the business logic and data relationships embedded across decades of programs — and keeps that map current. Silent-failure detection and a governed multi-model gateway are claimed by Afunana and nobody else in this field.
A chat window over a context window can explain a snippet pasted into it. It does not maintain a cross-referenced map of an entire system, updated as the system changes. Afunana does — and that persistent graph is what powers every other feature.
Built on a model of how these systems really break: cross-program parameter mismatches, truncating data moves, unhandled status, unsafe control flow. The costliest, best-hidden defects — caught structurally, before they ship.
From understanding to a validated change plan to an approved edit written back to the live system — in the codebase's own coding style, automatically enforced. Human approval at every step; stopping at the plan is the default.
Every model call routes through one governed gateway. Each phase uses the model tuned for it, with automatic fallbacks, and every call is metered so you can see what a build or a query costs. Switch providers freely, with no rebuild — a disruption to any one model is a setting to change, not an outage.
Nothing leaves your network. Run entirely offline with a local model and self-hosted embeddings. Secrets drawn from your own vault; controls mapped to OWASP Top 10, ISO/IEC 27001:2022, and SOC 2 — the questions a bank's security team asks, answered.
Fold the specs, manuals, and analysts' notes you already have into the same searchable, cited knowledge base — and Afunana documents your system in whatever language your teams read.
Builds a living knowledge graph of the whole estate
Business-level documentation, cited to the source line
Silent-failure detection — the defects that throw no error
Plain-language chat grounded in your code, with citations
Validated change plans, optionally executed in your own style
Runs on-premise or fully air-gapped, with zero vendor access
Governed multi-model gateway — switch providers freely
Documentation and answers in any language
Run a build once. After that, every change triggers a delta rebuild — only the affected programs get re-analyzed — so the documentation never goes stale. Structural mapping is deterministic; only the documentation step uses AI.
Extract the source, build the knowledge graph, and generate multi-level documentation, visual maps, a data dictionary, and a cited chat assistant.
Describe a change and get a structured, validated modification plan grounded in the live codebase — what to change, in what order, and what it impacts.
Optionally write the approved change back to the live system, in the codebase's own style — under explicit human approval. Available as an option, not a default.
As code changes, an incremental rebuild re-analyzes only what changed. The documentation keeps itself up to date — nothing goes stale.
Afunana extracts source from each platform into one common model, then documents, checks, and searches it the same way.
Connect and extract via a server-side agent, map and document, detect silent failures, plan changes, and — under approval — write the fix back to the live box.
Read-only extraction of PL/SQL and the Oracle data dictionary into the same knowledge graph, with PL/SQL-aware documentation, quality checks, and code-flow diagrams.
Plain SQL goes through the same pipeline — documented, cross-referenced, and searchable alongside the programs and data it touches.
Next on the roadmap: IBM z/OS mainframe COBOL, built on the same foundation.
The same documentation serves the whole organization — each role gets what it needs from one source of truth.
System overviews and functional maps derived from the source. Assess risk, plan resourcing, and decide on evidence — not memory.
Business rules, process flows, and data dictionaries in plain language. No IDE or terminal needed — open a browser.
Understand programs you didn't write, trace dependencies, run impact analysis, and generate a validated change plan. VS Code extension available.
Every finding traced to a source line. Tamper-evident audit trail, cross-reference reports, and change history.
The "why" layer and cross-reference data reveal the real system and its traps, so modernization starts with the facts.
Afunana runs as a set of Docker or Podman containers on your own network. Your source code never leaves your environment, and Afunana has no access to it.
Your server, your data, your AI. Choose the provider per role — Anthropic, OpenAI, Azure, or a fully local model via Ollama for air-gapped sites. Embeddings are computed locally and never leave the box.
One command installs the full stack on Docker or Podman. Use the bundled database and reverse proxy, or bring your own. Pull images from a registry or install fully offline. RHEL, AlmaLinux, Ubuntu, Rocky, and Debian supported.
SSO/OIDC, role-based access, encryption in transit and at rest, secrets from your own vault (CyberArk or HashiCorp), and a tamper-evident SHA-256 audit log with SIEM forwarding — mapped to OWASP, ISO 27001, and SOC 2.
Afunana fits into existing workflows — in the browser, in the editor, and through AI assistants via the Model Context Protocol.
An authenticated endpoint (OAuth 2.0 with PKCE) lets Claude, Cursor, Copilot, and claude.ai query your programs, files, fields, and documentation directly.
One self-contained extension — no companion plugins, and no vendor connectivity client to reach the AS/400. Program docs, hover intelligence, diagnostics, call hierarchy, chat, and live source editing, right in the editor.
A full API for authentication, programs, files, chat, tags, builds, and admin operations. Build your own integrations and automations.
Tell us about your environment — how many programs, which platform and languages, and what you're trying to understand. The on-premise proof of concept runs on your own real source.