Artificial Intelligence

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.

StartupHub.ai Staff

By StartupHub.ai Staff, reviewed by Daniel Singer, Editor

4 min read

Denys Linkov presenting on a stage about AI coding agents and refactoring.
Credit: 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.

Mentioned in this story

Markets

SpotifyNYSE:SPOT

Get the free daily brief every morning

Every morning the day's AI news, new AI startups and new funding rounds. Free and takes a few minutes to read, unsubscribe at any time.

Join 64,000 other subscribers.

TopicsDenys LinkovWiseDocsAI Engineer World's FairLLMsRefactoringTechnical DebtAI Development

StartupHub.ai Staff

Written by

StartupHub.ai Staff

Editorial team

The staff writers of StartupHub.ai, ranging from investment analysts to avid AI tool users, early adopters and critical enthusiasts. Backgrounds span engineering, business and the arts. We hold every piece to rigorous standards of research and review.

Daniel Singer

Written by

Daniel Singer

Editor, reviewed this article

Daniel Singer is an AI expert who has been writing about, covering and building AI technology since 2018.

Test your Agent Readiness now

Paste your website. How well ChatGPT, Claude and the other agents can read and use a site, in about a minute.

Watch

The videos behind the news, one flip at a time

The feed mixes the videos from our articles with startup demos and you flip through them like TV channels for free with no signup.