We raised $4M to scale our Agent-Led Growth Platform:Read more
Lightsage
Blog

How Do I Get Recommended by AI Coding Agents?

Jun Liang LeeJun Liang Lee9 min read

TL;DR: Make your product easy for coding agents to discover, understand, choose, and use. Publish clear guidance for real customer tasks, provide a reliable setup and integration path, and test whether agents select your product without being told its name. Use competitor choices and failed tasks to find what to improve, then measure recommendation and task completion separately.

A developer asks a coding agent to add password-reset emails to an application. The agent chooses a provider, installs its SDK, writes the integration, and sends a test message.

Your product could have completed the same task. But the agent chose another one before the developer visited your website.

Getting recommended starts with understanding that journey. The agent needs to find your product, recognize why it fits, and have enough useful information to move from a recommendation to a working result.

That is a practical part of Agent-Led Growth: helping agents working for customers discover, evaluate, select, and use your product.

How do coding agents choose a product?

A coding agent's choice depends on the customer's task and the information available in its environment. It may use existing model knowledge, project files, documentation, web search, package information, or connected tools.

The available tools and permissions matter. An agent working inside an existing application has different context from one starting with an empty project.

Claude Code's documentation describes a loop of gathering context, taking action, and verifying results. Its tools can read project files, fetch documentation, and run commands. That helps explain why both the information about a product and the experience of using it matter.

For your team, the useful questions are straightforward:

  • Can the agent find the product for this task?
  • Can it understand the product's fit and limitations?
  • Can it identify the correct package, API, or tool?
  • Can it complete the task and verify the result?

Our guide to how coding agents decide which SDK to use explores that selection process in more detail.

If Claude Code is already skipping your library, start with why Claude Code isn't recommending your library to investigate specific discovery and integration gaps. This guide gives you a broader playbook for testing recommendations across the coding agents your customers use.

Start with a task your product serves well. A general goal such as “be recommended by AI” is difficult to turn into a useful change.

For an email provider, a better starting point is: “Help a developer add password-reset emails to a Next.js application.” That gives you a customer, a framework, a workflow, and a result to verify.

Build a small set of prompts around those real needs:

  • “Add password-reset emails to this Next.js application.”
  • “Which email API should I use for a Node.js application?”
  • “Compare email providers for transactional messages and delivery tracking.”
  • “Set up email delivery and verify that a test message is sent.”

Include the constraints customers actually care about, such as language support, deployment environment, or required capabilities.

Keep branded and unbranded tasks separate. “Use Acme to send an email” tells the agent which product to use. “Add password-reset emails” lets it choose. The first tests use after selection; the second also tests discovery and recommendation.

Run a baseline before making changes. Define success first, such as confirming that a test email was delivered. Save the prompt, agent and model versions, project context, available tools, authentication status, product choice, and verified result. Record whether credentials were available without saving their values, and redact secrets from any saved traces. You will need that record to compare improvements later.

2. Make your product easy to discover

An agent cannot evaluate a product it never encounters. Give it clear, current information in the places it can access.

Your public website, documentation, package metadata, and repository README should agree on:

  • What the product does and which tasks it supports.
  • Its official name, package names, and documentation links.
  • The languages, frameworks, and environments it works with.
  • Where to begin for a common customer task.

A use-case page should answer a specific question. For the email example, a page explaining how to send password-reset emails in Next.js is more helpful than a broad claim that the product is “built for developers.”

Check how those pages are retrieved. Can the agent read the main content directly? Do the links resolve? Is the useful information accessible without a login or an unexplained browser interaction?

Agents may retrieve documentation without running browser JavaScript. Test what your documentation returns to a direct request as well as what a person sees in a browser.

This is agent discoverability: helping the product enter the candidate set for the right task, with accurate information about why it fits.

3. Explain why the product fits the task

Discovery creates a chance to be considered. Clear product information helps the agent evaluate that chance.

Make the decision criteria explicit. If your product supports a framework, explain which integration path to use. If a feature requires a particular plan or permission, say so before setup begins. If the product does not fit a use case, describe the limitation accurately.

Useful documentation answers the questions that otherwise force an agent to guess:

QuestionWhat to provide
Which package should I install?The maintained package and supported runtime
How do I authenticate?Required credentials, permissions, and setup steps
Does this support my use case?A current guide with the relevant constraints
What does success look like?Expected output and a way to verify the outcome
What happens if it fails?Common errors and the next action to take

For the email provider, a complete example might show how to configure a sender, create the password-reset message, send it in a test environment, and confirm the expected result.

Comparison pages can help when they explain meaningful differences. Use accurate fit criteria and evidence that a customer can check. A page that repeats a competitor's name without explaining the choice gives the agent little to work with.

The broader factors influencing coding-agent API recommendations include documentation, discovery, and successful tool use. Treat those as areas to investigate for your product, rather than a fixed formula for ranking.

4. Make the product reliable to use

A recommendation can still end in abandonment if the agent cannot complete setup or recover from a failure.

Agent Experience (AX) describes the complete experience of understanding and operating a product. The recommendation is one point in that journey.

Test your quickstart from a clean environment. Check that the install command works, the example uses the current API or SDK, prerequisites appear before they are needed, and authentication is explained clearly.

Then check the full task. Can the agent submit valid inputs, interpret the response, handle expected errors, and verify the customer's outcome?

An error should explain what failed and what the agent can do next. For example, a fictional email API might report that a sender is unverified and point to the verification step. That gives the agent a path forward instead of leaving it to guess.

Anthropic's guidance on writing tools for agents emphasizes clear descriptions, meaningful responses, actionable errors, and evaluations using real tasks. These are useful principles when assessing your own product interfaces.

Do you need an MCP server or an llms.txt file?

Choose interfaces around the task and the environments your customers use. A maintained SDK or command-line tool may already provide a practical integration path. A Model Context Protocol (MCP) server can expose tools to a compatible agent client, but the customer still needs access to that server.

The MCP tool specification describes tool names, descriptions, input schemas, results, and error reporting. A useful implementation still needs clear operations and reliable behavior behind those definitions.

An llms.txt file can offer a compact guide to your documentation for tools that consume it. It does not replace the documentation or prove that an agent can use the product.

Evaluate these additions by whether they help complete a real task. This is the purpose of agent usability: measuring the working journey after a product is selected.

5. Find out why agents choose a competitor

Use your baseline tasks to inspect where alternatives are preferred. Focus on the prompts that represent customers and workflows your product supports.

Record three stages independently:

StageWhat to look for
DiscoveryDid the agent find or consider your product?
SelectionDid it choose your product or an alternative?
CompletionDid the chosen product produce a verified result?

Then read the available trace. Which documentation did the agent retrieve? What reasons did it give? What did it try, and where did it stop or switch products?

For example, the agent might select a competitor because its Next.js guide makes the setup path easier to understand. Or it might choose your product first, fail at sender verification, and switch to another provider.

Those findings call for different changes. The first suggests investigating product fit and documentation. The second gives you a concrete setup or recovery problem to test.

Treat explanations and cited sources as leads, not proof of one cause. A competitor may also be a better fit for the customer's constraints. Verify the difference before publishing counter-content or changing the product.

Repeat the same tasks across the coding agents your customers use. For each agent, compare before-and-after runs using the same model version, starting project, tools, and permissions, with a fresh session for each run. Results can vary between runs, models, and environments. A single recommendation gives you an example; a repeated pattern gives you a stronger basis for prioritizing work.

For a practical measurement framework, see how to track agent recommendations across API, SDK, CLI, and MCP.

6. Fix the specific gap and test again

Start with a few tasks where the customer need matters, the failure repeats, and the team can identify a useful next step.

Match the change to the evidence:

  • The product is not found: Improve relevant use-case coverage, product descriptions, or public documentation access.
  • The agent cannot confirm fit: Clarify compatibility, capabilities, prerequisites, and limitations.
  • Setup fails: Correct the quickstart, credentials guidance, or installation path.
  • The agent cannot recover: Improve the error response and the documented next step.
  • The competitor meets a requirement you do not: Assess the product gap or clarify which customers your product serves.

Assign an owner and write a simple hypothesis. For example: “Our guide omits sender verification, so the agent fails before it can send a test message.”

Make the smallest useful change. Validate it directly, then rerun the original task. If the change is to public content, allow time for the updated information to be discovered; if it is a runtime fix, test the corrected product behavior.

Check discovery, selection, and completion separately. If the agent recommends your product but still fails to integrate it, there is more work to do. If it completes the task only when you name the product, unbranded discovery still needs attention.

Our API benchmark research illustrates how recommendations and usability can be evaluated through real tasks. Apply the same principle to your changes: record what the agent actually did and verify the result.

AI coding-agent recommendation FAQs

Make the product easy to discover for a relevant task, explain when it is a good fit, and provide a working path from setup to a verified result. Test unbranded tasks across the coding agents your customers use, inspect where they choose alternatives, and improve the specific content, documentation, or product gap.

Is ranking in AI answers enough?

No. An answer can mention or recommend your product without proving that a coding agent can use it. Measure discovery and selection, then separately check setup, authentication, error recovery, and task completion.

Do I need an MCP server or an llms.txt file?

They can help in environments that use them, but neither guarantees a recommendation. Start with clear public documentation and a reliable interface. Add an MCP server or machine-readable summary when it helps agents complete a real customer task, and test that path.

Why does an agent recommend a competitor instead?

The competitor may be more familiar, have clearer documentation, offer a better fit, or provide an easier path to a working result. Inspect the recommendation and the agent's actions before deciding what to change. Treat explanations and cited sources as leads to investigate rather than proof of a single cause.

How do I know whether a change worked?

Save the original prompt, environment, product choice, and task outcome. Repeat the same task under comparable conditions after the change. Check discovery, recommendation, and completion separately, and look for a repeated pattern rather than relying on one successful run.

Make the recommendation lead to a working result

You cannot guarantee that a coding agent will recommend your product. You can improve the information and product experience it encounters when trying to help a customer.

Start with a task you serve well. Make the product easy to identify, explain its fit, provide a working path, and verify that the agent can complete the journey.

Lightsage helps Agent-Led Growth teams measure that journey through discovery and usability testing. Pair those results with agent analytics to understand how agents interact with your product and where the next improvement belongs.

Is your API ready for the agent economy?

Developer tools and APIs use Lightsage to get discovered, recommended, and used by AI coding agents.