For developers, and for the owners of the system

Legacy systems, with AI working beside the people who run them

Developers get the system read, the change prepared and compiled.Owners see who changed what, and why.

IBM iIBM ZOracleNatural/AdabasSAP ABAP/BW

Application overview

The Overview explains the system's purpose first.Then come its processes, programs and data.
The Employees application in Afunana, starting with its business purpose.

Screenshots on this site show Afunana with a demonstration application.They do not contain real customer data.

Two partners, one record

What Afunana does, and what people decide

Afunana reads the system, prepares each change and checks it on the machine.The developer decides and executes.Every step lands in one record that owners and management can open.

Afunana does
Reads the systemcatalogues, source, calls, files, fields
Documents itoverview, processes, programs, checked
Prepares the changeblast radius, plan, real code, risk
Checks it on the IBM icompiled in the developer's library, diff
Developer
decides, executes, owns the codeweb app · VS Code
Governance record
every model call: user, model, tokensevery save and its line historysign-offsplans and their compile resultssecurity logcomments never sent to the model
Owners and management
see, approve, auditthe same workspace

Keeps the record

Who changed what, why, and what the AI did

Owners and management see every step in one record, inside the application workspace.Evaluation informs the decision to use an AI result; governance records who made it.

Comments never reach the model

The model reads source with every comment blanked.Every line and its number stay, so citations and plans still match.

Only in the developer's library

Plans are applied to copies in the developer's own library and compiled there.AI edits change the open member in the editor, never the IBM i.

Every model call recorded

Each call is recorded with its user, collection, model and tokens.Usage and cost reports feed internal reviews.

Approved models only

Only models on the approved list run, checked on every call.A model change is tested first and waits for a second administrator.

Every save kept in history

Each member save is kept in the collection's own history.Line history shows who changed a line and when.

Approval on a specific version

Thumbs up or down on a document or a change plan, with a remark.Each decision holds for the exact version; a later change asks again.Nobody approves their own change; the Approvals screen lists every decision.

Purpose and accountability

Record intended use, responsibilities, risks and review dates.Incidents and concerns are tracked with status, resolution and who closed them.

Security log

Sign-ins and security-relevant actions are logged with who did them.Records can be forwarded to your SIEM.

Prompts and switches

Nearly every instruction the model receives is a versioned file.Most new capabilities arrive switched off, each with its own settings.

Personal data map

Afunana finds which fields hold personal data from their names and descriptions.A data check counts matching values and never shows or keeps them.

Governance draws on NIST AI RMF, ISO/IEC 42001 and ISO/IEC 23894 as references.

Reads the whole system

The knowledge graph comes from the machine

Code assistants see one file. Your application is a system.Afunana starts from system metadata, source, copybooks and table definitions.On IBM platforms, system cross-references set the structure; on Oracle, the data dictionary does.Deterministic source analysis adds calls, data usage and other relationships.

From the host's catalogues to checked documents Host catalogues programs · calls · files fields · keys · copybooks SQL · CICS · JCL Knowledge graph deterministic built on every extraction Documents written by the AI from graph and source every claim cited Checks each claim tested against the source findings on record
Facts come from the machine.The AI writes on top of them, and every document is checked.

Meta map

Every collection's extraction tables side by side, with row counts.It shows what joins them and what changed since the last extraction.

Screen X-ray and batch flow

Clicking a screen field opens one window with its definition, uses, checks and path.On IBM Z, batch flow follows jobs, steps and datasets.

The machine's own catalogue

Each night Afunana reads what the host knows beyond the source.Triggers, constraints, scheduled jobs and journals appear on each card.A change to a file also reaches its trigger programs.

Submitted jobs and other systems

A program a CL job submits with SBMJOB is followed like a call.Files named only in SQL members and queries are read from the machine.A program that is another collection's root links to that collection.

Runtime use

On IBM i, the system's own counters show which programs run and when they last ran.Programs unused for the months each collection sets go on a retirement list.

Documents it

Afunana explains the system, its programs and its data

A collection holds an application's source, definitions and analysis.It explains what the system does for the business and how its programs do it.

Business processes and rules

Afunana documents purpose, steps, rules and exceptions, linked to programs.Each rule links to the source line behind it.A glossary explains business terms and cites the programs and files that use them.

Programs, jobs and database logic

It explains program logic, inputs, outputs and calls.A collection holds programs, copybooks, job control and database definitions.SQL members, queries and the system's own commands are documented too.

Tables and field usage

It brings together field definitions, usage and business terms.File use shows which program reads, writes, updates or deletes each file.Display files, BMS maps, dynpros, Forms and Natural maps are drawn as screens.

Documentation to take away

Download a collection or program as one file that opens in any browser.It holds only what the person downloading it may see.Specifications, manuals and internal documents add what the code cannot say.

Checked

Every explanation is checked

Verification covers program and file documents, the overview and business processes.Each record states what was examined, what was found and what was not checked.Reviewer sign-off sits in the record, above.

Source behind the explanation

Afunana links explanations to their supporting source.Chat checks examine citations and named objects against the evidence.For streamed answers, verification follows the displayed text.

Checked against the code

Build checks compare references and claims with the code, and record the gaps.On request, an AI evaluation checks each section for omissions and contradictions.A fixed set of fact questions measures answer accuracy per collection.

Prepares the change

Before anyone edits, the change shows its scope

Start from a plain-language request.Afunana finds the affected programs and data.It states its reasoning, risks and assumptions, and writes the plan as real code.

Explains current behavior

Code gathers the facts first: names, definitions and source lines.The model decides only what needs judgement, and cites each line.It says what could not be established.

Blast radius

Pick a field or program and see everything a change reaches.Each affected place comes with the evidence that links it.It covers programs, files, SQL, queries, commands and triggers.

Field lineage

A field is followed from file to program to screen and report.Definition conflicts between files are listed.

A plan with tests and risk

It lists the changes by program, their order and the tests to run.A risk label weighs missed places, data at its limit and run frequency.

Checks it on the machine

Compiled on the IBM i before anyone sees the diff

A plan's changes compile in the developer's own library first.In VS Code, every IBM i member is checked as it is written, and on the machine on request.The developer reads the result and executes.

Compiled before it is used

The plan is applied to copies of the members in the developer's library.The diff shows every changed line.A failed compile gets up to two recorded fix rounds.

Executed after review

The developer reads the diff and compile results, then executes the plan.Source changes only after every changed program compiles.

Checks as you type

VS Code checks COBOL, RPG, CL, DDS and SQL members while they are written.It finds undefined and unused names, missing paragraphs, subroutines and copybooks.Completion, rename and folding come from the same analysis.

Check on the IBM i

One command compiles the editor's text on the IBM i, without creating an object.It runs in QTEMP under the developer's own sign-on.The compiler's own messages appear beside the source.

Saved with Ctrl+S, as in SEU

Ctrl+S opens the SEU exit window and writes the member to the IBM i.It keeps its own name and lands in the developer's own library.A member that is not there yet is created there on the first save.

Develop in a library

Outside a collection, Tools opens on the members of a library.Work in a PDM look or a project tree, with the 5250 terminal on Shift+F9.Saves run under the developer's own IBM i profile and its authority.

Performance suggestions

Performance suggestions appear in Problems, in the program's own names.Apply the Afunana rewrite shows the change as a diff of the member.A small-key file, for example, is read once into a table.

Fix with Afunana, and edit here

Fix with Afunana corrects a problem; edit here changes a selected block.A fix can compile itself on the IBM i, up to three rounds, before it is shown.Both show a diff, and only Apply puts the change in the editor.

MCP for AI assistants

Afunana answers AI assistants through read-only MCP tools.Assistants sign in with OAuth and see only the collections the user may see.In VS Code 1.101 or later, the extension adds the tools to the editor's agent.

Knowledge that stays

The system stays understood when people move on

Legacy systems carry the business.Afunana keeps them understood, by everyone who works on them.

Written down, with its source

Afunana records purpose, processes and program behavior.Each point links to the source behind it.It no longer depends on who is in the office.

A newcomer finds the way

Start at the overview and its subsystems, then go down to the line.Every name opens what it is and what it touches.

Documentation follows every build

Incremental builds re-document only changed programs.People who follow a program, file or process get one message a day on what changed.

Each program's change history

Changes are read from the date on every source line.Each change is summed up in a few plain lines.Unchanged programs are skipped on the next build.

Notes and expert knowledge

Afunana keeps page notes alongside the documentation.It turns unclear rules and dependencies into questions for specialists.Their recorded answers add attributed knowledge for future searches and chat.

Five application platforms

IBM i, IBM Z, Oracle, Natural and SAP

One working environment, built from each platform's source and metadata.

IBM i

IBM system metadata connects programs, copybooks, files and fields.Source analysis covers COBOL, RPG, CL, DDS and SQL.A small Afunana library on the machine runs the extraction.

IBM Z

On z/OS, Afunana reads COBOL, PL/I, copybooks, JCL, BMS maps and DB2.CICS definitions show which transaction starts which program.A BMS map's page runs its CICS transaction as a web form.It works through z/OSMF; optional CICS features add a small program to the region.

Oracle

The data dictionary links packages, procedures, tables and views.Nothing is installed on the database.A dictionary export can stand in for a live connection.

Natural and Adabas

Afunana imports exported Natural programs, DDMs, maps and data areas.No connection to the host is needed.Adabas files are described from their DDMs; trial data is simulated and marked.

SAP ABAP and BW

Afunana imports an abapGit export of ABAP packages.No connection to the SAP system is needed.BW data flows come from their metadata; each rule cites its routine.

FAQ

Questions we get

Does our source leave our site?

Afunana runs on your own servers, with Docker or Podman.Source, documentation and the search index stay in that installation.The AI reads relevant source through the AI service you configure.With a model hosted inside your network, nothing leaves it.

Does the model see our comments?

Comment text is blanked on every path to the model.Every line and its number stay, so citations still point to the right place.The screens show the comments as written.

Where does Afunana write?

Plans are applied to copies in the developer's own library and compiled there.AI edits change the open member in the editor, never the IBM i.A member reaches the IBM i when the developer saves it, under their own sign-on.

Request a demo

Tell us what you need

Start with one bounded area and questions your specialists can judge.Together we agree what to check and how to judge the results.

+1 888 890 2534

Please share only a high-level description.Do not include source code, credentials or personal customer data.