VisiblyRank
All posts
coding agentsAI crawlersdeveloper docs

Field notes: how AI coding agents like Claude Code decide which libraries and APIs to install

Iris ColemanEditor, AI search programs

Field notes for API and SDK teams on how Claude Code and other coding agents choose libraries: task prompts, crawler access to docs, citations, and attribution gaps.

Developer-tool companies have a version of the AI search problem that most guides skip: a buyer can hand the choice to a coding agent and never read a comparison article. These are our working notes on that channel, kept to what we can source and what we can measure.

Note 1: the selection rule is not published

Start here, because it saves money. Anthropic's Claude Code documentation explains the agentic loop (gather context, act, verify) and says the model chooses tools based on your prompt and what it learns as it goes. OpenAI documents that Codex reads AGENTS.md first and uses a cached search index by default. Neither explains how the agent ranks one package against another.

So we do not sell "coding agent optimization" as a formula. We treat it as a visibility channel with a few known inputs: the developer's prompt, the repo's instruction files, the code already present, and whatever the agent reads on the web. Only the last one is reachable from the vendor's side.

Note 2: prompts are tasks, not categories

Chat prompts for developer tools tend to read like "best vector database for startups." Coding-agent prompts read like work orders: "store embeddings for these documents and add a similarity search endpoint." The second kind is what Claude Code actually receives, and the library choice is a side effect of solving it.

We write prompt sets in that style and keep them neutral on vendor names. In Promptwatch these run against Codex, Claude Code, and OpenCode, which are tracked alongside ChatGPT, Gemini, and Perplexity. When the coding agents recommend a competitor and the chat engines recommend you (or the reverse), that gap is the finding.

Note 3: check the crawlers your docs depend on

Each agent reaches the web differently, so docs access has to be checked bot by bot.

  • Claude: Anthropic lists ClaudeBot (training), Claude-SearchBot (search indexing), and Claude-User (fetches when someone asks Claude). Anthropic says all three honor robots.txt.
  • OpenAI: OAI-SearchBot surfaces sites in ChatGPT search, GPTBot is for training, and ChatGPT-User makes user-initiated visits. Codex's cached search draws on an index OpenAI maintains.
  • OpenCode: it searches the web through Exa. Exa's index is built by ExaSearchBot, and live fetches for users or apps go out as ExaUser.

Promptwatch's Agent Analytics (Professional plan and up) logs these, IP-verified where the operator publishes ranges. Exa publishes none, so ExaSearchBot and ExaUser appear without a verified badge. The citation rate per page separates "never crawled" from "crawled but never used," and those call for different fixes.

Before paying for anything, the free Agentic Readiness Check from Promptwatch tests robots.txt against nine AI crawlers and checks for llms.txt, MCP server cards, and A2A agent cards. On a docs domain, it takes a minute.

Note 4: docs pages hold their citations

When chat engines cite developer content, they tend to keep citing it. Promptwatch's report "What Is the Half-Life of Content in ChatGPT?" followed every page ChatGPT cited on July 6, 2026 for 90 days. Documentation was still cited for 76% of pages at 30 days and 67% at 60 days. News lost half its pages after about 36 days.

Promptwatch chart showing how long ChatGPT keeps citing pages by content type over 90 days

Promptwatch's "What Is the Half-Life of Content in ChatGPT?" report, captured November 14, 2026.

That report is about ChatGPT, not coding agents, and we would not stretch it further. But it supports spending on reference docs and quickstarts rather than launch-week news posts if you want durable AI citations.

Note 5: attribution mostly stops at the terminal

Chat engines send clicks we can count: Promptwatch's Visitor Analytics attributes visits from ChatGPT, Claude, Perplexity, and others. A coding agent that installs your package sends nobody to your site. We have found no source that describes referral data from Claude Code or Codex installs, and we will not pretend otherwise.

What we use instead is a chain of indirect signals. Recommendation share in the coding-agent monitors, crawler hits on the docs pages those prompts need, and, on the client side, package registry downloads and signups. None of these proves causation alone. Together they show the direction.

Where to start

Write twenty task-style prompts, open your docs to the search crawlers, and measure for a month before rewriting anything. If you want the measurement side set up with someone who knows it, book a Promptwatch demo and ask to see the coding-agent monitors.