AI Code Documentation for IBM i Teams, One Page per Program

  • October 10, 2026
  • Ty Woods
  • 10 min read

A new developer joins your IBM i team on a Monday morning. By nine o’clock they have a sign-on and a production library full of RPG programs to learn. Not one of those programs comes with a page that says what it does or what else depends on it. So the developer opens a source member and goes looking for the senior colleague who wrote it.

That colleague answers the question, and the answer stays in one head until somebody writes it down. AI code documentation puts that answer on a page for every program in the library, and the best pages start from a structured read of the source. The developer opens the page first and the code second. For an IBM i team, a page like that helps only when a person on the team can check each line of it against the source.

What AI code documentation is, and what changes with RPG

AI code documentation is software that builds a plain-English description of what each program does from the program’s own source. IBM’s Think article on AI code documentation lists automating documentation, keeping it up to date, holding code to standards, API documentation and legacy code modernization among its uses. Every one of those uses works only when the description matches the code.

RPG changes the work in two ways. In fixed-format RPG, the column where a character appears changes what the line means. A tool has to parse those columns correctly before it can describe the program, because a description built on a misread column describes the wrong logic.

Copy members bring the second change. A copy member pulls source from another member into the program at compile time. The member you open in the editor shows only part of what the compiler built. An unresolved copy member is one the reading tool could not find. A description written without that member leaves out whatever the member adds to the program.

What one page of program documentation contains

We built AS/Forward to give every program in your library a page of its own. AS/Forward writes a plain-English description of every program from the ingested source. Each program page then pairs the source with that description, its dependency edges, warnings for anything unresolved and a readiness status.

Part of the page What it gives you
The source The program’s own code, so you can check any sentence on the page against the lines it came from
The plain-English description What the program does, in words a new developer or an auditor can follow
Dependency edges The links between this program and the rest of the codebase, taken from the interconnection graph
Warnings Anything the ingestion layer could not resolve, such as a copy member it could not find or a missing dependency
Readiness status Ready when the program is clean, or a flag for human review when the page has gaps

Because each page covers one program, your team can plan the work program by program. When AS/Forward finishes the pages, you can count how many programs are ready and how many wait for a person’s review. A manager can plan the next step from that count.

Before you trust any generated page, check it against the source member on two points. Every file the description mentions should appear in the source member or in one of its copy members. Every warning should match a real gap, such as a copy member your library no longer has. When you want the whole tool in one view, start with the AS/Forward product page, because it shows the dependency maps and the deployment options.

Why the model gets the structured read first

You may be asking a plain question: can AI document RPG code at all? It can, when the work runs in two steps and the first step builds the plain-English description from a structured read of the source. Our rule for this work is short: “We don’t hand raw code to a language model and hope for the best.” Raw source alone also leaves gaps, because a source member does not contain the code from the copy members the compiler pulls in.

In the first step, AS/Forward parses all six RPG dialects through a proprietary ingestion layer before any model sees the code. A tool that handles only the newest dialect leaves your oldest programs without a page. When the ingestion layer cannot find a copy member, AS/Forward flags it as a warning on the program page, and it flags a missing dependency the same way. AS/Forward then writes the plain-English description from that ingested source.

In the second step, AS/Forward feeds the model the source code and the generated description together. The model works from that pair, and it produces the analysis and the reports your team uses before a change. For each program marked ready, it also produces the conversion output. The model starts with the structure in hand, because the description arrives with the code.

Because of that order, every page shows what the ingestion layer found in the source, with a warning wherever it found a gap.

We tested AS/Forward against about 5,000 IBM i programs from public sources such as PUB400. Your own code is the better test for your own team. Pick a program your senior developer knows well, and compare its page with what that developer says it does.

Where the model runs

Your security team will ask one question before anything else: does our source code have to leave our network? It does not. AS/Forward runs air-gapped inside your own infrastructure. With a local model, the source stays on your network from the first parse to the finished page.

AS/Forward works with Claude, OpenAI, Gemini or local models, and your team picks the model. On-prem and air-gapped setups keep the model on hardware you control. When your policy allows a hosted model, the ingestion layer still does the same structured read first, and the model you pick works from that read.

Give your security team two answers early: the model you plan to use and the hardware it runs on. Our post on running models where the source cannot leave explains the air-gapped setup in more depth. Send that post along with those two answers.

Who uses the page

Four kinds of reader open these pages, and each one needs something different from them.

A new developer opens the page before the source member. On that first Monday, they learn what a program does and what it connects to before they scroll through any fixed-format code. The dependency edges show which programs and files it touches before they change a line. The senior colleague still answers questions, and those questions now start from a written page. From there, a knowledge transfer plan written from the code turns the programs marked for review into an agenda for the senior colleague.

An auditor gets a plain-English description of each program next to the source it came from, and the auditor can compare the two line by line. Before a page goes into an audit file, read our guide to checking AS400 documentation against the compiled source. It goes through the contents of one generated description in detail. The warnings on each page also show the auditor where a description stops short of the source. An auditor may also ask which programs can change one field, and database documentation built from the RPG source answers that question.

A manager who plans a change asks one question first: if we touch this, what else moves? The answer comes from the interconnection graph behind the pages. Your team scopes a change to a file in AS/Forward and sees what else moves before anyone touches production. The list of affected programs then gives the manager a scope to plan against ahead of any approval.

The team that converts the code starts with the readiness status. Ready programs can go into the conversion plan, and a person checks each program marked for review first. Our post on AI legacy code modernization shows how the map and the code go to the model together during that work.

Four questions to ask any AI code documentation tool about RPG

When you compare AI code documentation tools, put four questions to each one before it parses a line of your RPG.

  • Ask which RPG dialects the tool parses, because a program in a dialect it skips gets no page at all.
  • Ask what the tool does when it cannot find a copy member, because the answer should be a warning a person can see.
  • Ask where the model runs, because a model on your own hardware keeps your source on your network.
  • Ask who reviews a page before anyone acts on it, because a page with gaps needs a person’s check first.

AS/Forward answers all four. It parses six RPG dialects and flags unresolved copy members as warnings. It runs air-gapped inside your infrastructure, and it sends programs with gaps to human review. Ask every tool you compare to show you those four answers on a program from your own library. Put the questions in the same order each time, and keep the answers side by side for the people who approve the tool.

What the page cannot show you

Some RPG programs build the name of the program they call from a parameter at run time. That name does not appear in any static cross-reference, because no tool that parses source can see a value that exists only while the job runs. The page shows every dependency edge the source spells out. A person who knows the job has to write a call like this into the plan, because the source never spells out its target.

Ask the developers who run your nightly jobs which programs build a call this way. Each call they list goes into the plan beside the pages, and the scope of any change then includes it.

A page also does not replace the person who checks it. The warnings and the readiness status show that person where to start.

Ask us to document your RPG library

When you want AI code documentation for your own RPG library, we start with the IBM i modernization assessment, because the assessment sizes the work. Then we run AS/Forward on your RPG library inside your own network, and we hand every program a plain-English page.

Those pages can feed an audit file, a new developer’s first week, a change plan or a conversion plan. Every one of those outcomes is valid, and you decide which one fits your system.

We build AS/Forward at Golden Path Digital in Hot Springs Village, Arkansas. AS/Forward has one US patent pending. Call 501-232-7188 and tell us how many programs your production libraries contain and whether your source can leave your network. Also tell us who needs the pages first, an auditor or a new developer. If email suits your team better, send the same details through our contact page.

If your team needs an AI tool built around its own process, our page on custom AI software development describes the work we take on.