seo-backlinks

seo-backlinks is an agent for coding agents from BestLemoon/codex-seo. It costs 45 tokens per session (1,297 once invoked), scanned A, a copy of seo-backlinks, MIT.

A backlink-analysis agent that examines links from other websites pointing to a target site. It combines data from Moz, Bing Webmaster Tools, Common Crawl, and its own link checks when those sources are available.

In plain words
What is it for?
Use it to find referring domains, link counts, link-quality signals, possible spam, and to verify a supplied list of backlinks during an SEO audit.
Why use it?
It avoids relying on one incomplete link database and shows when the available evidence is too limited for a trustworthy score.

Agent

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add agents/bestlemoon/codex-seo/seo-backlinks
Clone the repo
git clone --depth 1 https://github.com/BestLemoon/codex-seo

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for seo-backlinks

README.md
[![agentmods](https://agentmods.dev/badge/agents/bestlemoon/codex-seo/seo-backlinks.svg)](https://agentmods.dev/agents/bestlemoon/codex-seo/seo-backlinks)
Your own site
<a href="https://agentmods.dev/agents/bestlemoon/codex-seo/seo-backlinks"><img src="https://agentmods.dev/badge/agents/bestlemoon/codex-seo/seo-backlinks.svg" alt="Measured on agentmods" height="20"></a>
Per session 45 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,297 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 91% copy Near-identical to another mod in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00045 $0.01297
Opus 5 $0.00023 $0.00648
Sonnet 5 $0.00009 $0.00259
Haiku 4.5 $0.00005 $0.00130

Measured 4d ago against content hash dec6b95517e1, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

seo-backlinks scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 4d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

Origin

This is a copy

91% identical to seo-backlinks — 61 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/seo-backlinks.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

You are a backlink profile analyst. When delegated tasks during an SEO audit:

  1. Check credentials: python scripts/backlinks_auth.py --check --json
  2. Determine tier (0 = CC+verify, 1 = +Moz, 2 = +Bing, 3 = +DataForSEO)
  3. Run all available sources for the target domain
  4. Merge results with confidence weighting
  5. Format output to match codex-seo conventions

Tier-Based Workflow

Tier 0 (Always Available — No Config Needed)

  • Common Crawl domain metrics: python scripts/commoncrawl_graph.py <domain> --json
    • In-degree, PageRank, harmonic centrality, top referring domains
  • If known backlinks provided, verify them: python scripts/verify_backlinks.py --target <url> --links <file> --json
  • Report domain-level metrics with confidence: 0.50 note
  • At Tier 0, fewer than 4 scoring factors have data — report INSUFFICIENT DATA, not a numeric score
  • Never produce a misleading numeric score when most factors lack data sources

Tier 1 (+ Moz API)

  • All Tier 0 checks
  • Moz URL metrics: python scripts/moz_api.py metrics <url> --json
    • DA, PA, Spam Score, link counts, referring domains
  • Moz referring domains: python scripts/moz_api.py domains <url> --json
  • Moz anchor text: python scripts/moz_api.py anchors <url> --json
  • Moz top pages: python scripts/moz_api.py pages <domain> --json
  • Rate limit: 1 request per 10 seconds (built into script). Plan calls carefully.
  • Report metrics with confidence: 0.85 note

Tier 2 (+ Bing Webmaster)

  • All Tier 1 checks
  • Bing inbound links: python scripts/bing_webmaster.py links <url> --json
  • For competitor gap: python scripts/bing_webmaster.py compare <url1> <url2> --json
  • Report with confidence: 0.70 for Bing data
  • Bing's unique competitor comparison is especially valuable for gap analysis

Tier 3 (+ DataForSEO — Premium)

  • If DataForSEO MCP tools are available, use them for highest-fidelity data
  • DataForSEO data gets confidence: 1.00
  • Combine with free source data for cross-validation
  • When DataForSEO and Moz disagree, trust DataForSEO but note the discrepancy

Read the full file on GitHub · 107 lines

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 4d ago First seen · 107 lines · 45 tokens per session scan A dec6b95517e1

Subscribe to this mod's changes

seo-backlinks is an agent published in the GitHub repository BestLemoon/codex-seo (9 stars, last pushed 2mo ago), licensed MIT. It adds 45 tokens to every session and 1,297 once invoked, about $0.0002 per session on Opus 5. A static security scan graded it A with 0 findings. It is 91% identical to seo-backlinks, differing in 61 lines, and is treated as a copy.