← Back to blog

Vibe Coding Tools Play Favorites With Dependencies

Coding assistants play favorites with dependencies—and silently pick libraries for you. Discover the hidden defaults reshaping your code.

Vibe Coding Tools Play Favorites With Dependencies

Vibe coding tools have made it normal to describe a feature in plain English and watch working code appear. But there is a quiet habit baked into every one of these assistants: when you ask for functionality, the agent already has a favorite library in mind. It reaches for that choice whether or not it fits your project, your budget, or your tolerance for risk. The code compiles, the demo works, and a decision you never consciously made just shipped into your dependency tree.

Picture the common situation. Deep into a coding session, you decide beta testers should try a new feature before everyone else. You ask the agent to add feature flags — a dimmer switch for functionality, so you can turn a feature up to 10% of users and back down if something breaks. The agent writes clean code in seconds. What it does not tell you is that it wired your app to one specific vendor's SDK, pulled in a transitive dependency you have never audited, or invented a package name that does not exist at all. This is dependency favoritism, and it is one of the least-discussed costs of building with AI.

The feature-flag moment: how favoritism shows up

Feature flags are a good lens because the market is genuinely crowded. You could self-host Unleash, reach for open-source Flagsmith, use PostHog if you already run it for analytics, buy LaunchDarkly, or write a fifty-line config toggle for a small app. Each has real trade-offs in price, latency, and operational overhead.

An AI agent rarely surfaces that map. It picks one — usually the option that appeared most often in its training data — and writes code against it as if the decision were settled. The agent behaves like a contractor who only ever shops at one hardware store: convenient, fast, and you get whatever is on their shelf rather than what your house actually needs.

The problem is not that the agent is wrong every time. It is that the choice is invisible. A feature-flag SaaS with per-seat pricing looks identical in a code review to a free self-hosted option — until the first invoice arrives, or until a vendor outage takes your flags offline and every gated feature flips to its default state in production.

Why the best vibe coding tools default to the same dependencies

Even the best vibe coding tools share this blind spot, and the reason is structural rather than a bug anyone can patch quickly.

Popularity is not the same as fit

Large language models learn from public code — GitHub, Stack Overflow, package registries, tutorials. A library that was popular for the last decade shows up in millions of examples. A better, newer, lighter alternative that shipped eighteen months ago is thinly represented. The model does not weigh "correct for your stack in 2026." It weighs "frequently seen." Popularity in the training corpus becomes a recommendation, and the two are not the same thing.

The clearest example is date handling. Ask most assistants to parse or format dates in JavaScript and a large share still reach for Moment.js. The Moment team itself has declared the project done and steers new projects elsewhere on its official project status page. Real numbers: Moment.js weighs roughly 290 KB minified; Day.js does nearly the same job in about 2–3 KB, and date-fns lets you import only the functions you use. Shipping the heavy default to every visitor is like mailing a full toolbox when the job needed a single screwdriver — the customer pays for the shipping in slower page loads.

The training-data time capsule

The same effect explains why agents still suggest deprecated packages. The Node request library was deprecated in 2020, yet it lives on in millions of weekly downloads and, therefore, in model output. An assistant trained on years of code that used request will happily reintroduce it into a fresh 2026 project. The agent is not reckless; it is quoting the internet's average answer, and the average lags reality by years.

AI agents examples: three defaults that quietly cost you

Across the AI coding landscape — from ai voice agents that dictate code to full autonomous build tools — the failure modes repeat. Three are worth watching for on every project.

1. The deprecated or bloated default

The date-library case above generalizes. Agents reach for HTTP clients, state managers, and utility grab-bags that were dominant when the training data was collected. The cost is rarely a crash. It is bundle weight, slower builds, and a maintenance burden your team inherits without ever deciding to.

2. The heavyweight vendor SDK

When an agent picks a commercial SDK for something like feature flags, auth, or email, it embeds a business relationship in your codebase. The code review shows an import statement; it does not show the pricing tier, the data-residency implications, or the fact that a free open-source equivalent would have covered your scale for the next two years. We have watched this pattern add recurring monthly costs to projects that had no need for them, discovered only when someone finally read the bill.

3. The package that does not exist

This is the sharpest edge. Models sometimes hallucinate dependency names — confident, plausible, and entirely fictional. An academic analysis of sixteen code-generating models found that roughly one in five package suggestions pointed to libraries that did not exist, amounting to hundreds of thousands of unique phantom names (Spracklen et al., 2024). Open-source models hallucinated far more often than commercial ones, but no model was clean.

That gap has become an attack surface. Security researchers at Lasso Security showed that an AI assistant repeatedly recommended a Python package that did not exist; the researcher registered the name himself, and within months it had been downloaded thousands of times — even referenced inside a large company's own instructions. The industry now calls this "slopsquatting": attackers watch for the fake names agents love to invent, register them, and wait. Leaving a hallucinated package name in your build is like leaving a fake shop sign on an empty storefront — sooner or later someone rents the space and starts selling to your customers.

If you want the full blast radius of this dependency problem, we walked through how a single poisoned package can escalate in AI coding tools and the CVSS 10.0 supply-chain attack path.

What dependency favoritism costs your business

The technical details roll up into four business risks.

Cost. A vendor SDK an agent picked by default can turn into a monthly line item nobody signed off on. Multiply that across auth, flags, email, and analytics and the "free" AI-built prototype carries recurring costs its budget never planned for.

Performance. Heavy defaults ship to every user. A 290 KB library where 3 KB would do is real weight on every page load, and page speed maps directly to conversion and search ranking. The customer pays for the extra kilobytes in seconds of waiting.

Security. Every dependency is a door into your system, and a hallucinated one is a door you did not know you left unlocked. The left-pad incident of 2016 — where unpublishing an eleven-line package broke builds across React, Babel, and thousands of projects — showed how fragile the dependency chain already is without an AI adding phantom links to it.

Lock-in and maintenance. A dependency the agent chose becomes a dependency your team maintains for years. Ripping out a vendor SDK later is far more expensive than choosing correctly in the first hour. This is a close cousin of the slow-burn problem we described in vibe coding's month-three problem, where the bill for early convenience arrives long after the demo impressed everyone.

Alternatives and trade-offs: keeping the speed without the baggage

None of this is a reason to abandon AI-assisted development. The speed is real and worth keeping. The fix is process, not retreat. Here is what we recommend on the projects we run.

Pin the stack before you prompt

Decide your core libraries once — date handling, HTTP, state, flags — and write them into a project file the agent reads on every request (a rules file, a CLAUDE.md, or the equivalent). An agent told "use Day.js, never Moment; use our internal flag config, not a vendor SDK" stops guessing. This single step removes the majority of favoritism, because the agent no longer falls back on its training-data average.

Ask for options, not an implementation

Before you let the agent write the code, ask it to list two or three approaches with trade-offs: cost, bundle size, self-hosted versus SaaS. Turning a silent default into an explicit choice takes thirty seconds and moves the decision back to a human. Honest take: the model is a decent researcher and a dangerous default-picker — use it for the first job, not the second.

Gate every new dependency

Treat any package the agent introduces as untrusted until verified. Confirm it exists, is actively maintained, and matches its expected download and star history. Lockfiles, a private registry mirror, and automated dependency scanning turn slopsquatting from a live threat into a caught one. If it takes an agent to add a dependency, it should take a human to approve it. This is the same verification discipline we apply to AI security findings, which we covered in solving the 50% false-positive problem in AI pentesting.

AI agents news in 2026: the risk is getting priced in

The encouraging shift is that the ecosystem is catching up. Slopsquatting now has a name, security scanners flag AI-suggested packages that lack a real download history, and registries are watching for the phantom names models tend to invent. The direction of travel in AI agents news through 2026 is clear: dependency provenance is becoming a first-class concern rather than an afterthought. The tools are improving, but the responsibility for what lands in your package.json still sits with your team.

Key takeaways for business

Key takeaway for business: AI coding agents do not choose dependencies for your project — they replay the most common answer from their training data, and popular is not the same as correct. Left unmanaged, that default quietly sets your costs, your page weight, and your attack surface.

Put simply: the agent is a fast junior developer with strong opinions and no context about your budget or your stack. Give it the context — a pinned library list and a review gate — and the opinions stop being a liability.

What this means for your project: keep the speed of AI-assisted building, but put a human decision in front of every new dependency. Pin your core libraries, ask for trade-offs instead of implementations, and verify that every package the agent names actually exists and is maintained. Those three habits cost minutes now and save the far larger bill — in money, performance, and security — that dependency favoritism otherwise sends you months down the line.

This article is based on publicly available sources and may contain inaccuracies.

Related articles

✦SqueezeAI
  1. AI coding assistants pick dependencies based on what appeared most often in their training data, not what fits your project — the choice is invisible in the code and never surfaced to you.
  2. Popularity in the training corpus is not the same as correctness for your stack: a better library that shipped 18 months ago is underrepresented, so the model systematically favors older, heavier options.
  3. The real cost is delayed and hidden: a vendor SaaS dependency looks identical to a free self-hosted one in a code review — until the first invoice or an outage flips every gated feature to its default in production.

Powered by B1KEY