AI Agents & LLM Pair Programming
Docboot is architected from the ground up for modern engineering workflows where humans and AI coding assistants (Antigravity, Cursor, Copilot, Claude) collaborate on documentation.
1. Workspace Agent Guidelines (.agents/AGENTS.md)
#
Docboot repositories support a standardized .agents/AGENTS.md configuration at the repository root. This file provides AI assistants with instantaneous, high-precision context regarding:
- Repository Layout & Subsystems: Clear mapping of CLI entrypoints, compiler engines, search indexers, and test suites.
- Testing Commands & Standards: Explicit CLI invocations for unit tests (
node --test tests/<suite>.test.js) and full regression suites (npm test). - Formatting & Escaping Rules: Guidelines for directive syntax, sub-item parsing, and XSS-safe HTML escaping.
- Link Integrity & Quality Gates: Rules enforced by
docboot doctorto prevent broken links or outdated references.
2. LLM-Friendly Markdown Primitives #
Traditional documentation often requires manual, fragile HTML tables or custom JSX components that confuse LLM generators. Docboot solves this with declarative, token-efficient directives:
API & Endpoints
Structured :::endpoint, :::params, :::request, and :::response blocks that LLMs can author reliably.
Interactive Previews
Live sandbox :::preview and :::sandbox blocks without complex bundling setups.
High-Impact Metrics
Benchmark KPIs :::metrics with automated trend calculation.
Process Roadmaps
Structured :::timeline and :::faq directives with schema microdata.
3. Automated Agent Verification with Doctor #
AI agents can validate the health of documentation changes before submitting Pull Requests using docboot doctor:
Verified Checks #
- Broken Internal Links: Detects missing routes, invalid anchors, and typos.
- Stale Content: Flags documentation files uncommitted or untouched for configured periods.
- Redirect Loops: Prevents cyclical redirects.
- WCAG 2.2 AA Audits: Automatically flags missing image
altattributes, heading level skips, and inaccessible frames.
4. Best Practices for AI Pair-Programming #
- Keep
.agents/AGENTS.mdUpdated: Whenever new directives, flags, or configuration keys are added, update the guideline document so AI agents stay synchronized. - Run Doctor in Git Hooks: Add
docboot doctortopre-commitor CI pipelines to catch agent hallucinations early. - Use Declarative Directives: Leverage rich content primitives instead of raw HTML tables or complex JSX components.
Next Steps #
- Rich Documentation Content — Complete cheatsheet of 47+ directives
- Docboot Doctor — Validating links, redirects, and accessibility
- Configuration Reference — Full configuration options