Repository navigation
feat(mcpx): agent-markdown twins for every docs page (#1947) - #11144
Conversation
docs-twins emit/check tool (twins via docs-history render --agent), hand-written home twin with the install prompt in agents-docs, llms.txt/llms-full.txt/llms-compendium.txt, discovery link injection, twin-currency gate inside the .#mcpx-docs derivation.
Codex Review Summary: ❌ FailedThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
|
Warning Review limit reachedYou've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository. Next included review available in 3 minutes. View limit details
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. |
|
You have reached your Codex usage limits for code reviews. You can see your limits in the Codex usage dashboard. |
|
🤖 Agent note · review disposition (task 19668, lane any-i)
|
Refs #1947 — the site half, step 1 (Approach B+C), built to task 15179's recorded design defaults.
What lands
New tool
pkgs/mcpx/tools/docs-twins(stdlib-only Go, same build pattern asdocs-history), two subcommands:emit— aftermdbook build, writes into the site tree:<page>.html.md(index.html.mdfor the home page), whose content is the page rendered through the existingdocs-history render --agentseam — the preprocessed book source, not raw markdown;llms.txt— H1 + summary +## Docs(level-1 pages with one-line notes) +## Optional(everything deeper). Budget enforced at ≤10 KB: notes are sacrificed from the end of the Docs list first, and emit fails rather than silently truncating if the book outgrows the index;llms-full.txt— levels 1–2 concatenated, compendium excluded;llms-compendium.txt— the compendium's own full-text file;<link rel="alternate" type="text/markdown">to its twin and<link rel="describedby">tollms.txt.check— the CI gate: regenerates everything in memory and fails unless every twin and llms file is byte-current,llms.txtis within budget, and every HTML page carries its discovery links.Overrides (drift guard). Hand-written agent sources live in
pkgs/mcpx/agents-docs/, named by book-relative source path. Only the home page ships one here:agents-docs/index.md, the bot home page carrying the one-shot install prompt — install latest via the channel that exists (nix), verify withmcpx --version+mcpx doctor, prefermcpx helpon any mismatch (the version guard; no pinned copies), full opencode wiring steps, other harnesses as "run mcpx as an MCP server". Any other override must state anoverride-reason:comment or emit/check refuse it.Wiring.
docs.nixbuilds the tool, addsagents-docsto the book source, and runsemit+checkinside the.#mcpx-docsderivation — so the ordinary flake build is the twin-currency CI check.mcpx-docs.ymladditionally asserts the agent surface is present in the staged site.Verification
go test ./tools/docs-twins/— pass (fixture book: twins, llms structure/budget, full-text split, compendium file, link injection, check catches missing/stale twins, override rule enforced both ways).llms.txt= 8,788 bytes.nix build .#mcpx-docs— succeeds; build log showsdocs-twins: wrote 107 files (twins + llms) for 104 chaptersanddocs-twins: check passed; the result tree containsllms.txtandindex.html.md, andindex.htmlcarries the alternate link.Open in [code]smith · Need help on this PR? Tag
@codesmith-botwith what you need.