Visibility Score
All posts
visibility scorecoding agentsClaude Code

How AI coding agents like Claude Code decide which libraries and APIs to install, and what it does to your visibility score

Maya SantosEditor, visibility scores

If coding agents like Claude Code pick libraries and APIs for your buyers, here is how those prompts fit into a monthly visibility score and where they distort it.

We report one number each month: the share of agreed buyer prompts in which AI engines name you. For most clients, those engines are ChatGPT, Gemini, Perplexity, and Google's AI answers. For developer-tool and API companies there is a second audience to count, because some of their buyers never ask a chat engine anything. They ask Claude Code to build the feature and accept whatever library it reaches for.

So the question "how do coding agents decide what to install?" turns, for us, into a scoring question. Do these prompts belong in the number, and what do they do to it?

What we know about the decision

Less than people assume. Anthropic's documentation says Claude Code works in a loop of gathering context, acting, and verifying, and that the model chooses its tools from the prompt and what it learns along the way. It can search the web, fetch documentation, and run package managers. It reads CLAUDE.md or AGENTS.md for project rules. OpenAI says Codex reads AGENTS.md before it works and searches a cached, OpenAI-maintained index unless set to live search.

Anthropic's How Claude Code works page describing the agentic loop of gathering context, taking action, and verifying results

Anthropic's "How Claude Code works" documentation, captured November 21, 2026.

Neither company publishes how the agent picks one package over another. We never present a coding-agent score as if we knew the selection rule.

Do coding-agent prompts belong in the score?

Only when buyers actually work that way. For a payments API, an auth provider, or a database host, yes. For a project management tool sold to operations teams, no, and adding them would only add noise.

When they do belong, we keep them in a separate group with its own line in the report. The main number stays your share across chat engines. The second line is your share across coding-agent prompts in Codex, Claude Code, and OpenCode. Blending them would let a good month in one hide a bad month in the other.

What counts as "named" in a coding agent

A chat answer names you or it does not. A coding agent's output is messier. It might recommend your SDK in a sentence, write code that imports it, or mention you only as an alternative it decided against.

We agree the rule before the first run. Our default: you are named when the agent recommends your product or writes code that uses it. A passing mention as a rejected option does not count. Whatever rule we agree goes in writing, so the number means the same thing every month.

Four ways these prompts distort the number

Repo context

Claude Code reads the project's instruction files and the code already there. The same prompt in a repository that already uses a competitor's SDK can produce a different library choice than in an empty one. A score has to be run under the same conditions each month, which a developer's laptop cannot guarantee.

Search mode

Codex's cached default answers from OpenAI's index, while Claude Code's web tools fetch documentation. A docs release can show up in one agent's choices before the other's, so a jump in one agent alone is not proof of anything yet.

Prompt phrasing

Developers phrase tasks ("add webhooks to this Express app"), not categories ("best webhook service"). A set written in marketing language will overstate or understate you. We write these prompts with the client's engineers, not their copywriters.

Small samples

A coding-agent group is usually small. Moving from 4 of 20 prompts to 6 of 20 is a ten-point swing in that line. We show the raw counts next to the share for exactly that reason.

What can move it, honestly

Your docs need to be reachable by the crawlers these agents depend on: ClaudeBot, Claude-SearchBot, and Claude-User for Anthropic; OAI-SearchBot for ChatGPT search; and Exa's ExaSearchBot, since OpenCode searches through Exa. They need to be clear HTML that answers the task, with .md versions where coding agents fetch docs directly, as Promptwatch's markdown report recommends. None of that guarantees a pick. It removes reasons not to be picked.

And as with every score we run, we do not promise 99. The name points at a direction, not a guarantee.

Where the number comes from

We measure every score on Promptwatch. It tracks what Codex, Claude Code, and OpenCode recommend next to the chat engines, and its create-monitor dialog keeps coding agents in their own group, which matches how we report them. A monitor runs the same prompts on the same models on a schedule, which is as close to fixed conditions as we can get. Agent Analytics, from the Professional plan, shows whether the crawlers above reach the docs pages those prompts depend on.

To see where a developer product starts before asking us for a score, try Promptwatch's 7-day free trial and load ten task-style prompts into a coding-agent monitor.