Your migration guide is on the web. An agent upgrading your library reads it only if it decides to search, and many runs never do. In my last round, whether an agent searched depended on the agent, on the model, and on something maintainers rarely think about: the language the user wrote the task in.
This is a follow-up to Coding agents keep installing the old version of your library. That piece was about where agents pick a version. This one asks what changes when the user doesn't write in English, and what a maintainer can do about it.
The test
Two upgrade tasks, each a small working project on the old version:
-
Hedera. "Update the Hedera SDK to the current supported version." The supported SDK moved from
@hashgraph/sdkto@hiero-ledger/sdk, and the old name still shows aslateston npm, not deprecated. To pass, the agent has to find the new name. -
Prisma. "Upgrade Prisma to version 8." Prisma 8 has no
@prisma/client: the client is now@prisma/orm-postgres, while@prisma/client@lateststill points to 7.
Four agents: Codex (GPT-6-Sol, effort low), Claude Code with Haiku 5.5, Kimi Code with K3.1, and Claude Code with DeepSeek V4.1 Flash. The same task text in English, Spanish, Ukrainian and Russian, with code and package names left in English. Three setups: no help, four lines in AGENTS.md, or a colleague's note about a similar case. Five runs per cell, a hidden grader for each run, 591 graded runs in total.
Searching decided the result
Without help, on Hedera, 13 of the 15 runs that searched the web found the new package. Of the 65 that didn't search, 7 did. npm view @hashgraph/sdk version says nothing about the move; the announcement does, and it's on the web.
The language changed whether the agent searched
Share of runs without help that actually upgraded the library:
Across both tasks: English 21 of 39, Spanish 19 of 39, Ukrainian 17 of 40, Russian 8 of 39. The gap between English and Russian is unlikely to be chance (Fisher's exact test, p = 0.005). Spanish and Ukrainian sit between the two.
Codex shows it most clearly. Runs without help in which it searched at least once, both tasks together:
With the task in English, Codex searched and passed Hedera 5 times out of 5. With the same task in Russian, it never searched and passed 0 of 5. I found the same pattern a few weeks earlier on different tasks, and I still don't know why it is Russian in particular: Ukrainian uses the same alphabet, and Codex searched there. If you have a theory, I'd like to hear it.
The model matters too. Inside the same Claude Code, without help, Haiku passed 3 of 20 runs on Prisma and DeepSeek 18 of 20. Haiku searched in 2 runs of 40, DeepSeek in 10.
Four lines in AGENTS.md closed the gap
These four lines, in English, in every language arm:
When you add or update a dependency:
1. Before you pick a package or a version, run the full `npm view <package>`
and read `deprecated` and the dist-tags, not only `version`.
2. Check whether the package has moved to a new name.
3. Read the docs that ship inside the package (AGENTS.md, README, type files)
before the website.
4. Search the web for the official upgrade guide before you change code.
With them, every agent passed every run in every language: Hedera 80 of 80, Prisma 76 of 76. Codex with the Russian task searched in 9 runs of 10, up from 0. Haiku searched in 36 of 40, up from 2. The colleague's note passed everything too.
These lines live in your users' projects, not in your package, and most users won't have them.
The same lines can read your tags differently than you meant
The first version of the Prisma task said "upgrade to the current version", not "version 8". There, the four lines barely helped: 13 of 80 runs. The agents did exactly what the lines asked. They read the dist-tags, saw that prisma@latest is 8.0.0-rc.33, a release candidate, while @prisma/client@latest is still 7.10.1, and most of them wrote in their answer that they were staying on the stable 7.10.1 on purpose. That's a reasonable call. Only the note, which says plainly that current Prisma is 8, got them there.
An agent that reads your dist-tags carefully takes them at their word. If latest points at a release candidate next to a stable 7 on another package, careful agents will choose 7.
What a maintainer can do
A user's agent that skips the search still reads npm, the install output and the package itself. Put the upgrade facts there and they reach users in every language:
-
Deprecate the old package with a message that names the new one.
npm deprecateshows up in the install output and in the fullnpm view. In Hedera's case npm says nothing, so only a search finds the move. - Ship one last release of the old package whose README says where it moved. The README is what an agent reads after installing it.
-
Decide what
latestmeans, and keep related packages consistent. A release candidate onlatestwith the client still on 7 sends careful agents back to 7. - Ship the upgrade note inside the package. Docs in the package were read; docs sites mostly weren't.
- Publish a few lines your users can copy into AGENTS.md. The four above, or your own version naming your package. They worked in every language I tried.
The previous article has the measurements behind items 1 to 4.
If you want to see what agents do with your own package, including with tasks in other languages, Ready for Agents runs these checks for library teams.
Limits
Two tasks, both on npm. Five runs per cell, so a single cell says little; the language gap holds across both tasks together, and the four-line result holds in all 32 cells. The Spanish and Ukrainian prompts were machine-translated and checked by two models, not by native speakers. Kimi is missing 9 runs on the Prisma task because of subscription limits. Effort is the default for every agent except Codex (low).
Scripts and the table of every cell: worklore-mcp.


Top comments (0)