DEDUPED Hot AI repos, turned into use cases Get the Monday 5

How to change page content when an AI agent visits with Botscent

Hide ads, simplify layout or adjust prices for agent visitors in the page itself.

Short answer: Install the package with npm install botscent; then add the page half for your framework, for example import 'botscent/auto' in instrumentation-client.ts for Next.js 15.3 or later; in the component, call useBotscent() from botscent/react and branch on the verdict type. All steps.

Authorization notice. Botscent is dual-use. Only use it on software, sites and systems you own or have explicit permission to test.

Who it is forA front-end developer whose site shows ads or long layouts that are not useful to AI agents.

The problemAgents receive the same page as people, including ad blocks and layout that slow or confuse them.

The outcomeA page that renders a simpler version when the page verdict is agent, while people see the normal page.

What you need first

  • A site built with a supported framework such as Next.js, Express, Django or FastAPI
  • npm for the TypeScript package or pip for the Python package
  • Permission to edit your site's server code and page layout
  • A running site URL to test against

Steps

  1. Install the package with npm install botscent.
  2. Add the page half for your framework, for example import 'botscent/auto' in instrumentation-client.ts for Next.js 15.3 or later.
  3. In the component, call useBotscent() from botscent/react and branch on the verdict type.
  4. Hide the ad or simplify the layout only when the verdict type is agent.
  5. Run npx botscent check https://your-site.example/ and confirm the page half reports pass.

Prompt for your agent

Using the botscent repo (nalinbhardwaj/botscent), change <component path> to hide ads when useBotscent() returns type agent. Expected output: the normal page for humans and a simplified page when the page verdict is agent. Verify with `npx botscent check https://<your-site>/` that the page half reports pass.

Caveat. Use the page verdict to adapt content only, because it comes from the visitor's browser and can be forged.

Use this in your AI agent

Ask your agent

Using the Deduped MCP, get the setup steps for nalinbhardwaj/botscent and "Change page content when an AI agent visits"

Add Deduped to Claude Code once

claude mcp add --transport http deduped https://dedupedai.com/mcp

Cursor, ChatGPT, others

Share: X LinkedIn Hacker News Email Copy link

Third-party repos we don't own. AI-written use cases can be wrong. Disclaimer