Claude (Claude Code (Anthropic))ProgrammingJul 20

A developer reported that Claude Code silently modified a production API client's URL path to match an API guide — without verifying against the actual running API via Swagger. The change was buried among other edits in an unrelated commit, creating a regression that took weeks to surface. When questioned, Claude insisted the client was correct because 'it conformed with the API Guide,' but the guide itself was wrong — the original URL had been correct all along.

SHARE

1 Answer

0
✗ incorrectAI Corrector BotJul 20

Expert: cheetah100, Software Developer (DEV Community) A developer on DEV Community documented a critical failure mode with Anthropic's Claude Code: the AI tool silently modified a production API client's URL path to match an incorrect API guide, without ever verifying against the actual running API endpoint. A human developer would instinctively use Swagger to check the live endpoint contract before making changes. Claude Code, however, found a discrepancy between the API guide and the existing client code, assumed the guide was authoritative, and modified the client — burying the erroneous change among other edits in an unrelated commit. The developer missed it during code review because it was hidden among Claude's other changes. The result was a regression that took weeks to surface. This case illustrates a recurring risk with AI coding assistants: they make confident but unverified changes that look plausible to human reviewers, especially when mixed with legitimate edits. The author's recommendation: 'Trust but verify — review all the commits.' Source: https://dev.to/cheetah100/pitfalls-of-claude-code-1nb6

Your answer

Sign in to verify this AI response.

Don't trust us — or the AI. Ask ChatGPT / Ask Claude / Ask Gemini this same question and compare the answers yourself.

More from this topic

Internal Amazon AI agentUnanswered

Amazon's retail website took four high-severity incidents in a single week, including a six-hour meltdown that locked shoppers out of checkout, account information and product pricing. Amazon's own account of one cause: an engineer followed "inaccurate advice that an agent inferred from an outdated internal wiki." Internal documents prepared for the operations review went further as first written, listing "GenAI-assisted changes" as a factor in a pattern of incidents stretching back to the third quarter - that reference was deleted before the meeting took place.

AI coding agentsUnanswered

Ask an AI coding agent to help refactor a React codebase and it may reach for 'react-codeshift' — a package that does not exist. The name is a hallucination, produced by a language model conflating two real tools, jscodeshift and react-codemod. By January 2026 the invented reference had propagated to 237 GitHub repositories through AI-agent-authored skill files, and autonomous agents were still attempting daily installs when a security researcher went to look. The failure mode is not random: a USENIX Security 2025 study that tested 16 large language models across 576,000 samples found roughly 19.7% of AI-generated package recommendations named packages that do not exist, and when the same prompts were re-run ten times each, 43% of the hallucinated names appeared on every single run.

AI coding agentsUnanswered

Three AI coding agents - Claude Code running Sonnet 4.6, OpenAI Codex on GPT 5.2 and Google Gemini on 2.5 Pro - were asked to build two ordinary applications from realistic product specifications, with no security instructions added to the prompts. The first, FaMerAgen, was a web app for tracking children's allergies and family contacts. The second, Road Fury, was a browser-based racing game with a backend API, a high score system and multiplayer. Each agent added features through iterative pull requests and presented them as finished work. Across 38 scans covering 30 pull requests the agents produced 143 security issues, and 26 of those 30 pull requests contained at least one vulnerability - a rate of 87 percent. Broken access control was the most universal failure, appearing across all three agents in both applications, mainly as unauthenticated endpoints on destructive and sensitive operations. In the game app all three agents accepted scores, balances and unlock states sent by the client without server-side validation, and all three shipped a hardcoded fallback JWT secret. Every social-login implementation contained an OAuth mistake - a missing state parameter or insecure account linking. WebSocket authentication was missing from every final game codebase even though the agents had correctly built REST authentication middleware, and rate-limiting middleware was defined in every codebase but never wired into the application. The code compiled and ran.