llm-seo-lab
Path-breaking AEO / LLM-SEO platform. Closed-loop autonomous citation engineering powered by the Claude Code CLI subscription (no per-token API), TRIZ-driven design, and attractor-flow orchestration.
What this is
The AEO / GEO / LLM-SEO category in 2026 is dominated by monitoring dashboards (AthenaHQ, Profound, Otterly.AI, Peec.ai, Geol.ai, Goodie, Search Party, SerpAPI). They surface visibility gaps but they do not close them. llm-seo-lab exists to close that loop: detect the gap, generate the fix, publish the artifact, verify the citation lift.
v0.3.0 — citation-pull mode (current)
v0.3.0 adds a second, substrate-agnostic mode alongside the v0.2.0
competitor-gap loop. The new question is: how does any page — owned,
hosted, or third-party — pull AI-engine citations more strongly over
time, regardless of whether it lives on Wikipedia or Reddit real
estate?
Three substrates are first-class: web (own domain), substack
(post URL), youtube (video). For each, the plugin runs a fresh
TRIZ + attractor-flow + Pratyakṣa pipeline against five charter
principles — atomic-snippet-density, semantic-anchor-stability,
q-shaped-subhead-lattice, cross-engine-intermediary, and
inverted-retrieval-target — and produces paste-ready artifacts.
Measurement leaves the plugin. Users self-report engine observations
(ChatGPT, Perplexity, Google AIO, Claude.ai, Gemini) on a Supabase-
backed dashboard. Every state-machine transition is human-triggered;
the plugin only runs work on transitions.
See docs/v0.3.0/ and the v0.3.0 entry in
CHANGELOG.md for the full reorientation. The
/aeo:* commands and v0.2.0 flow are untouched.
North-star contradictions (TRIZ frame)
- v0.2.0 — Measure vs. Act. Every incumbent improves measurement
of AI citation share at the cost of human effort to act. The Ideal
Final Result is a system in which measurement and intervention are
the same loop — the act of measuring closes the gap.
- v0.3.0 — Pull without authority real estate. Standard SEO/AEO
tactics (schema, citations, headings, FAQ) are still in the toolkit,
but they're now means, not ends. The end is citation-pull from any
substrate, including substrates the user does not own at the URL
level (Substack, YouTube). Resolved via the five-charter set above.
Components
| Surface | Purpose | Status |
|---|
Dual-target plugin (plugin/) | Same source tree, two manifests (.cursor-plugin/plugin.json for Cursor, .claude-plugin/plugin.json for Claude Code CLI). v0.2.0 commands /aeo:bootstrap, /aeo:loop, /aeo:audit, /aeo:track, /aeo:fix, /aeo:results, /aeo:compete. v0.3.0 commands /pull:recommend, /pull:apply, /pull:measure, /pull:analyze, /pull:state. Agents: aeo-loop (v0.2.0), pull-orchestrator (v0.3.0). Hooks: SessionStart (Sākṣī witness), PreToolUse (claude-CLI guard), Stop (compaction nudge). | v0.3.0 |
MCP server (mcp/) | 21 JSON-RPC tools at POST http://127.0.0.1:7301/rpc — 16 v0.2.0 (audit/brief/citation/PR side) + 5 v0.3.0 (pull_recommend, pull_apply_artifact, pull_analyze, read_use_case_state, record_use_case_event). track_citations and read_citation_trend return v0.3.0 deprecation envelopes. Token-bucket rate limiting, fail-open Claude fallbacks, full HTTP integration test in CI. | v0.3.0 |
Pratyakṣa epistemology gate (vendored at tools/pratyaksha/) | Witness invariants (Sākṣī), conflict detection, sublation-with-evidence. Wired into the AEO loop runner as the Manas/Buddhi pair: Manas drafts the brief, Buddhi consults Pratyakṣa before the PR opens. Adoption rationale in docs/decisions/2026-04-26-pratyaksha-integration.md. | v0.2.0 |
Claude Code skills (skills/) | aeo-audit, citation-oracle-loop, content-brief-from-gap, schema-generator, freshness-radar, competitive-citation-intel | v0.2.0 |
Next.js web dashboard (apps/web) | Multi-user, Supabase-backed (Auth + Postgres + RLS). v0.3.0 routes: /login, /dashboard, /use-cases/new, /use-cases/[id], /use-cases/[id]/measurements/new. v0.2.0 sites/PRs routes archived but still mounted. Orchestrates the Claude Code CLI worker via MCP HTTP bridge (POST /rpc on :7301) and WebSocket. | v0.3.0 |
CLI worker daemon (packages/cli-worker) | Drives the Claude Code CLI subprocess; persistent JSONL job queue; rate-limits to subscription quotas; streams events to the web app over WebSocket; honours payload.dry_run for safe end-to-end smokes | v0.2.0 |
Repository layout