Updated

The Codebase AI Couldn't Read

How Lemonsoft's CTO turned years of ERP code into something coding agents could finally work from.

By Susanna Kämäräinen, CRO, ModernPath

Customer case card: "The codebase AI couldn't read." How Lemonsoft made a mature ERP codebase legible to coding agents. Lemonsoft logo, ERP software, ModernPath customer.
At a glance
CustomerLemonsoft, ERP software (SaaS)
Starting pointDevelopers already using Copilot, ChatGPT, and Cursor
ProblemEvery AI session started from zero, and the code it produced didn’t fit the architecture
What changedThe codebase became legible to AI: a structured model of its architecture, patterns, and decisions that coding agents can query
Result“A step change in how effectively our developers can work with AI tools.” Janne Tammi, CTO

The Challenge

Lemonsoft team started using the AI tools in coding back in 2025. They tested out Copilot, ChatGPT, Cursor and understood the productivity boost that these tools brought to their development: routine work had decreased, and team sentiment was positive. On paper, everything looked good.


But something was quietly wrong, and Janne Tammi, CTO, couldn't name it for a long time. The problem wasn't the tools themselves; it was what they didn't know. Each AI session started from zero, with no memory of the architectural decisions made the week before and no recollection that a certain approach had already been tried and abandoned a month ago. With ten developers each starting fresh ten times a day, that added up to a hundred zero-start sessions every day. The watching and correcting got old fast, and trust eroded slowly.


There was also a deeper problem: the AI could not understand Lemonsoft’s mature, complex codebase at all. Lemonsoft's software has been built and refined over years: millions of lines of business logic, architectural patterns, and accumulated decisions that reflect how the company actually operates. That knowledge doesn't live in any single file or document. It lives in the codebase itself, and in the heads of the people who built it. When an AI tool generated code, it produced something syntactically correct but architecturally foreign: code that didn't fit the patterns, didn't respect the conventions, and didn't account for the decisions that had already been made. Developers would catch it in review, correct it, explain the context to no one, and start over the next day.


This created a quiet but persistent bottleneck. Senior developers became the connective tissue between AI output and architectural reality, fielding corrections and questions that the tools should have been able to answer on their own. The more AI tools were used, the more human time was consumed keeping the output aligned with a system the tools couldn't see. The productivity gains were real, but they were smaller than they should have been and the gap between what AI promised and what it delivered in practice was growing harder to ignore.

Sound familiar? See how the Knowledge Core gives coding agents your architecture.


Why ModernPath


In 2025, Janne spoke with ModernPath and walked through the situation together with the company founder and AI-development pioneer Pasi Vuorio. The conversation wasn't about which tools to use or how to prompt them better. It was about the underlying problem: a codebase that AI tools couldn't read, and an organization paying the cost of that gap every single day. True to his style, Pasi promised he would solve the problem. He would get Lemonsoft's mature codebase into a form that AI could understand and work with reliably.


"I wish I had shared his confidence," Tammi says. "Honestly, I didn't believe the project would succeed."


The skepticism was reasonable. Lemonsoft's codebase isn't a greenfield project or a clean microservices architecture. It's the kind of system that carries years of real-world decisions, workarounds, and domain-specific logic that no documentation fully captures. Making that legible to AI, not just at the surface level but in terms of structure, patterns, and intent, is a different challenge from anything a tool license or a prompt template can solve. The codebase itself needed to become a structured knowledge layer, something AI agents could query accurately and build on reliably. That was the step Lemonsoft had to take before anything else could change, and it required trusting that someone else could do what hadn't been done before.

What changed

“ModernPath solved a problem we had been living with for years without being able to name it. They made our codebase legible to AI — not at the surface level, but in terms of structure, patterns, and intent. The result was a step change in how effectively our developers can work with AI tools.”

Janne Tammi, CTO, Lemonsoft

That structured knowledge layer is what ModernPath now calls the Knowledge Core, the foundation of the Agentic Engineering OS: one queryable graph of requirements, business rules, architecture, code, tests, and regulation. Coding agents work from it instead of starting from zero, so the decisions made last week and the approaches already abandoned are part of what they know. The engineering OS sits above the coding tools a team already uses and works with any of them.

We run our own delivery on the same platform. Our release timeline moved from 3 months to 1, with the same team and the same quality bar.

Frequently asked questions

Why do AI coding tools struggle with a mature codebase?

Each session starts without the context the system was built on: the architectural decisions, the patterns, and the approaches already tried and abandoned. The code comes out syntactically correct but architecturally foreign, so senior developers spend their time correcting it in review.

Do we have to replace our coding tools?

No. Harnesses such as Claude Code, Cursor, Codex, and Copilot keep doing the coding work. The engineering OS sits above the harness and works with any of them.

What is the Knowledge Core?

One queryable graph of requirements, business rules, architecture, code, tests, and regulation. It grounds every agent and every person working on the system, and it is layer 2 of the platform.

Where is our code processed?

In the EU by default. Other regions are used only if selected in the Offer and in Annex 2 of the Data Processing Agreement.

Refactoring a brownfield codebase with AI? Read the framework

A practical framework for grounded AI-assisted refactoring in brownfield codebases: the five recurring failure modes, a three-role architecture, and a Pre-flight → Plan → Patch → Verify pipeline.

The Cognitive Split Hypothesis · PDF

We'll send you related ModernPath content. You can unsubscribe at any time. See our Privacy Notice.

The download starts right after: no email confirmation loop.