WiseDocs Refactor: AI Coding Agents and Tech Debt

Denys Linkov of WiseDocs discusses the six-month refactor of their AI pipeline, highlighting improvements in speed, complexity, and developer experience, and the evolving role of AI coding agents.

Denys Linkov presenting on a stage about AI coding agents and refactoring.
AI Engineer
Visual TL;DR
Scaling Medical ClaimsDriver
From the articleWiseDocs processes complex medical claims, which often involve PDF documents exceeding 10,000 pages.
Tech Debt IssuesDriver
system too slow, complicated to update, legacy codebase unappealing for developers
WiseDocs RefactorCore
six-month refactoring of their AI pipeline to address performance and complexity
From the article 5 mentionsIn a presentation at the AI Engineer World's Fair, Denys Linkov, Head of AI at WiseDocs, detailed the company's decision to undertake a six-month refactoring of their AI pipeline.
AI Coding AgentsContext
evolving role of AI coding agents in the refactoring process and development
From the articleThe presentation also touched upon the advancements in AI coding assistance.
Improved PerformanceOutcome
significant improvements in speed, complexity, and developer experience achieved
From the article 2 mentionsHe pointed to uptime data from leading companies showing reliability below 39% or even 49%, indicating that increased shipping velocity hasn't always translated to improved product stability.
Enhanced Business OpsEffect
better handling of workload and overall enhancement of business operations
Worthwhile EndeavorOutcome
the refactor was a worthwhile endeavor for the company's future growth
From the articleUltimately, Linkov concluded that the monorepo refactor was worthwhile.
Contents(6)

In a presentation at the AI Engineer World's Fair, Denys Linkov, Head of AI at WiseDocs, detailed the company's decision to undertake a six-month refactoring of their AI pipeline. This initiative was driven by three core issues: the system was too slow to meet customer demand, it was overly complicated to update, and the legacy codebase, spread across more than ten repositories, was unappealing for developers to work with.

WiseDocs Refactor: AI Coding Agents and Tech Debt - AI Engineer
WiseDocs Refactor: AI Coding Agents and Tech Debt, AI Engineer

The Challenge: Scaling Medical Claims Processing

WiseDocs processes complex medical claims, which often involve PDF documents exceeding 10,000 pages. This scale presents significant challenges for processing and requires a robust and adaptable AI pipeline. The company aimed to improve its underlying technology to better handle this workload and enhance business operations.

Understanding technical debt in AI development

Linkov began by discussing the concept of technical debt, likening it to financial debt that compounds over time. He emphasized that while taking on technical debt to achieve business goals like acquiring new customers is sometimes necessary, it must be managed rigorously. Introducing unnecessary complexity can quickly outweigh the benefits gained. He noted that even with the rapid advancements in AI engineering, as seen in case studies from companies like Anthropic, Spotify, and Stripe, there's a risk of degrading product quality and maintainability. He pointed to uptime data from leading companies showing reliability below 39% or even 49%, indicating that increased shipping velocity hasn't always translated to improved product stability.

The Refactoring Process and AI's Evolving Role

The refactoring effort, which began in April 2025, involved several key tasks, including evaluating orchestrators and refactoring code. Linkov highlighted that the initial two-month evaluation of orchestrators for their AI pipeline, which involved benchmarking five open-source projects, was done before the widespread availability of capabilities like web search in LLMs. He contrasted this with current methods, where an agentic workflow using tools like Deep Research could perform the same task approximately 90% faster. He cautioned against 'AI psychosis,' where the impressive output of research reports doesn't translate into practical product features.

The presentation also touched upon the advancements in AI coding assistance. Linkov shared an experience where a previous model, GPT-3, took three hours and made ten major mistakes when refactoring a piece of code. In contrast, recent benchmarks with models like Sonnet 4.6 and Opus 4.8 showed significant improvements, with Opus 4.8 achieving the task in a single attempt ('one-shot'). These newer models demonstrated better tool usage, including sub-agent calls and verifiable commands, leading to a process that was far less manual, even if slightly more expensive computationally.

The Impact of the Refactor

The consolidation of ten repositories into a single monorepo resulted in a dramatic increase in development velocity. While the legacy output took six years to reach a certain point, the refactored pipeline matched that output in just 67 weeks. The commit rate increased significantly, and more developers became involved in contributing to the codebase. This improved developer experience and productivity were key outcomes of the refactor.

The Question of 'Why Now?'

Linkov addressed the question of whether it was the right decision to refactor at that time or if waiting for further AI advancements would have been more beneficial. He acknowledged that the tooling and model capabilities are continuously improving, making future refactoring potentially easier. However, he argued that the immediate benefits of addressing technical debt and improving the codebase were crucial for the business, especially to avoid the accumulation of 'legacy code' even within AI-native development.

Conclusion: A Worthwhile Endeavor

Ultimately, Linkov concluded that the monorepo refactor was worthwhile. The company achieved its business goals, including reducing processing time, lowering costs, supporting larger files, and enabling faster feature releases. Furthermore, the refactored codebase proved more attractive to developers, fostering a more positive and productive work environment. He advised that AI native delivery should be viewed as a layered approach, emphasizing the importance of strong models, effective tooling, and robust development practices.

© 2026 StartupHub.ai. All rights reserved. You may not republish this article in full without a license. Search engines and AI research tools may crawl and summarize for reference. Bulk reproduction or model training requires a license. See our terms.
Daniel Singer

Written by

Daniel Singer

Editor, StartupHub.ai

Daniel Singer is the editor of StartupHub.ai, a technology expert and thought leader on AI and its applications across sectors, from fintech and healthcare to developer tooling and consumer software. He writes and tests the tools covered here thoroughly and regularly, and built StartupHub.ai to give founders, operators and buyers a clearer read on what they are actually being sold.