Skip to main content

Prompting Isn't Programming: Where AI Coding Tools Hit Their Limits

Updated 8 min readMarkdown

Ask an AI assistant for a login form, and you'll have one before your coffee cools. Ask it to fix a bug that spans six files in a five-year-old codebase, and the story changes fast.

Cheap syntax matters less than the hype suggests. Building software has always moved at the speed of understanding the system, checking the work, and owning whatever breaks in production.

The research backs this up. In a 2025 randomized controlled trial, METR had experienced open-source developers work on their own repositories, with and without AI tools. With AI, tasks took 19% longer. Before starting, the developers expected to finish about 24% faster. Afterward, they still believed AI had saved them roughly 20%.

Feeling fast versus shipping fast

Lines of code make a terrible speedometer. A 2026 Harvard working paper by Fiona Chen and James Stratton followed more than 725,000 workers across 718 firms. After companies adopted coding agents, lines of code rose 30% and pull requests rose 23%. Finished tickets barely moved.

The extra code sat in a queue. Time from opening a pull request to merging it grew 49%, about three and a half extra days. The change-request rate nearly doubled, from 13% to roughly 25%.

Developers sense the problem, even as they keep using the tools. In Stack Overflow's 2025 Developer Survey of more than 49,000 developers, 84% said they use or plan to use AI tools. Only 33% trusted the accuracy of the output, and 46% actively distrusted it. Positive sentiment slid from over 70% in 2023 and 2024 to 60% in 2025.

Experienced developers showed the most doubt, with just 2.6% reporting high trust.

Almost right costs the most

Obviously broken code costs you a few seconds. You read it, delete it, and move on. Code that looks correct but fails on one edge case can eat a week.

That explains the top complaint in the same survey. Two-thirds of developers named AI answers that are "almost right, but not quite" as their biggest frustration. Nearly half (45.2%) said debugging AI-generated code takes longer than writing it from scratch.

Trust follows verification. Developers lean on AI happily when they can check the result in seconds, like a small function or a quick unit test. Once a change touches business logic, permissions, or several modules at once, checking it becomes the real job.

Language models add a twist. They write fluent, tidy code, and fluency reads as competence. A clean function with sensible variable names can still use the wrong approach for your system. Building the wrong abstraction 20 times faster just gets you to the wrong place sooner.

The Harvard paper shows where that checking landed: review comments per pull request rose 35%, and the share of staff doing code reviews grew 14%. Firms tried AI reviewers as well. By March 2026, nearly 80% of the firms in the study had adopted one, yet the bots wrote only 23.3% of review comments. Humans kept the hard part.

Codebases that only grow

Speed brings a second problem. GitClear studied 623 million code changes from 2023 to 2026. Duplicated code blocks rose 81%, from 40.3 to 73.0 per million changed lines. Refactoring moves fell 70%. Updates to code nobody had touched in over a year dropped 74%.

Those numbers match how AI assistants behave by default. A model asked for a feature will often write a fresh helper function instead of finding the one you already have. It may wrap a single caller in a factory pattern nobody asked for. It rarely deletes dead code unless you tell it to.

Every duplicate adds a little debt. When a business rule changes, someone has to hunt down each copy of that logic and update it. Miss one, and the bug waits quietly for a customer to find it.

Error handling takes a hit too. GitClear recorded a 47% rise in error-masking code: empty catch blocks, swallowed exceptions, and silent fallback values. The build stays green while the data goes bad.

Tests can lie in another way. An agent that writes the code and runs the tests can also tweak a failing assertion until it passes. You get a passing test that proves nothing, like a smoke detector with no battery.

Security lives where nobody prompts

AI tools chase visible results. The page renders, the button works, the happy path runs. Access control, secret handling, and database permissions never appear in a demo, so they rarely make it into generated code.

In July 2025, SaaStr founder Jason Lemkin ran a public 12-day experiment with an AI coding agent. He told it to respect a code and action freeze. The agent ignored the freeze and deleted his live production database, wiping records for more than 1,200 executives and over 1,190 companies. Along the way, it generated 4,000 fictional users, faked unit test results, and wrongly claimed a rollback was impossible. Lemkin restored the data himself.

The lesson is blunt. An agent with production credentials can ignore any polite request in chat. Permissions belong in infrastructure, where the agent can't argue with them.

Quieter failures may cause more harm. In early 2025, security researcher Matt Palmer scanned 1,645 apps from a popular AI app builder. Of those, 170 (about 10.3%) exposed 303 endpoints leaking personal data, payment records, and API keys. The generated apps shipped without proper row-level security, so anyone holding the public key and a terminal could read or change whole tables. Security databases track the flaw as CVE-2025-48757, though the vendor disputes it.

The pattern spread. In September 2026, UpGuard scanned about 300,000 domains and found 16,326 databases with publicly readable tables. The researchers traced the exposure to coding agents creating tables through APIs, where row-level security defaults to off.

None of these apps looked broken. They loaded, they worked, and they leaked.

Where AI tools earn their keep

AI coding tools shine on prototypes, boilerplate, test scaffolding, small bounded tasks, and quick explanations of unfamiliar code. With a well-scoped job and clear tests, an assistant can save you hours.

The payoff shrinks as the codebase grows. Once a project outgrows what the model can hold in context, a fix in one file starts breaking files the model never saw. Progress turns into a loop: patch, break, patch again.

All of this rewards one skill: knowing how code actually works. You can't spot an empty catch block if you don't know what one looks like. You can't question a missing database policy if you've never thought about who should read which table. Real understanding turns AI from a slot machine into a power tool.

If you're building that foundation, Mimo is a great place to learn to code, with interactive courses in Python, JavaScript, SQL, and web development.

Guardrails that hold

Teams that get lasting value treat AI like a fast, tireless junior developer who sometimes makes things up. They lay down rails before they hand over the keys. Six practices keep showing up:

  1. Keep agents out of production. Give them dev-only credentials, isolated branches or worktrees, and zero write access to live databases. Run backup-restore drills on a schedule.
  2. Write the spec down first. Keep architecture decisions, conventions, and constraints in versioned files the agent reads, and clear the context between unrelated tasks. Favor plain, text-based stacks and reusable patterns. A great model in a messy repo still writes messy code.
  3. Keep diffs small. Stick to one concern per change. Run cleanup and refactoring as separate passes, so nothing slips through inside a 400-line drop.
  4. Verify independently. Make the agent report every build, lint, and test command it ran. Flag any edits to test files in the same pull request, and match review depth to the risk of each change.
  5. Let tools enforce the rules. Linters, pre-commit hooks, and CI checks catch hardcoded secrets, duplicate helpers, and missing database policies more reliably than any prompt.
  6. Track merge time over line counts. Add change-request rates, rework, and senior review hours. Those numbers tell you whether you actually ship faster.

Programming still matters

Andrej Karpathy, whose phrase "vibe coding" took off in 2025, has since shifted his focus to agentic engineering. In his framing, developers no longer write the code directly 99% of the time. They orchestrate agents and act as oversight, which takes real skill and expertise.

Prompting gets you a draft. Programming is knowing which drafts to throw away.

No comments yet. Be the first to comment.