Skip to content
Back to Guavy Wire
Stocks

Anthropic's AI Tool Sparks Fear of 'Lost in the Middle' Risks and Legacy Code Failures

Instruments
IBM
Share

Anthropic's COBOL tool, Claude Code, has sent shockwaves through the industry after claiming it can automate much of the analysis behind COBOL modernization. This technology allows for mapping dependencies, documenting workflows, identifying risks, and giving teams a structured approach to migration. The promise is that this will save organizations years of time and effort in migrating their legacy code.

However, researchers have pointed out that general-purpose language models still struggle with COBOL due to its unique logic patterns and low resource availability. A study by AgentModernize found that line-by-line legacy translation can compile and run while still breaking edge-case handling, validation logic, or hidden constraints.

IBM took a hit when Anthropic announced Claude Code, with shares sinking 13.2% in one day. IBM's senior vice president for software, Rob Thomas, pushed back, arguing that translating COBOL and modernizing a platform are not the same job. He pointed out that decades of hardware-software integration cannot be replicated by moving code.

Despite these warnings, many organizations are rushing to adopt AI-powered tools for mainframe migration. The IRS's Individual Master File, dating back to the late 1960s, is just one example of a massive legacy system that needs modernization. With an estimated 775 billion to 850 billion lines of COBOL in daily use, the stakes are high.

Researchers have identified 'lost in the middle' as a specific risk in AI-powered translation. This occurs when models lose accuracy on information buried in the middle of a long prompt. A single COBOL program can pull in copybooks thousands of lines long, and the dependency that matters may not sit at the top or bottom where the model is most likely to keep its grip.

More on Stocks

Disclaimer: Guavy is a data and market intelligence provider, not an investment advisor. The information, signals, and market analysis provided by the Guavy API and related services are for informational purposes only and are not intended as financial advice, investment recommendations, or an endorsement of any particular trading strategy. Trading in volatile markets, including cryptocurrency, carries significant risk and may not be suitable for all investors. Past performance is not indicative of future results. Users should consult with a qualified financial professional before making any investment decisions. Guavy makes no guarantee of trading profits or financial returns.

Real-time market sentiment intelligence for apps, funds & agents

Location

729 55 Ave SW
Calgary AB T2V 0G4
Canada

© 2026 Guavy Inc