EPS
Bug-fix agent in daily useAgentic code migration
Legacy 4GL modernisation with AI agents
- legacy modules migrated to .NET
- 17
- production defects resolved
- 20–30
- maintenance team uses it daily
- 5-person
The challenge
The client relied on a legacy 4GL codebase that no modern LLM had training coverage of and that few engineers could maintain. I owned the AI approach end to end, from feasibility spike through production rollout.
Code migration: Legacy 4GL, then Grounding layer (grammar, samples, RAG), then Migration agent, then Compile & test (validation loop), then Human review, then .NET.
Bug fixing: Defect report, then Locate fault, then Proposed patch + explanation.
What I built
- Built a code-migration agent that translated the 4GL application to .NET module by module, with automated compile-and-test validation loops so generated code was verified before human review; migrated 17 modules.
- Built a bug-fixing agent that ingests defect reports, locates the fault in the legacy 4GL code, proposes a patch and explains the change; it has resolved 20–30 production defects and remains in daily use by the client’s 5-person maintenance team.
- Taught the model 4GL from scratch by engineering a grounding layer: language grammar references, annotated code samples, and RAG over the client’s own codebase and documentation.
- Claude API
- AI agents
- RAG
- .NET