TokenRollAI/llmdoc

TokenRoll LLMDoc for Coding Agent

What it solves

Coding agents (like Claude Code, Codex, or Antigravity) often lose track of a repository's architecture between sessions, forcing them to rediscover decisions, constraints, and cross-module contracts every time. llmdoc stores that durable engineering meaning in a llmdoc/ folder, so agents can retrieve only the context a task needs, verify exact facts against the live repository, and recheck knowledge semantically as code evolves—instead of accumulating stale notes.

How it works

llmdoc/ holds stable knowledge (as Markdown .mdx files with YAML front matter), not a copy of the code. An agent first retrieves the smallest useful knowledge set via the CLI (e.g., search, context, tree, index, show), then uses source and tests for current facts, and later verifies affected knowledge. A code change creates a review obligation, not an automatic rewrite. Two layers operate together: agent workflows (init, update, prune, upgrade) handle judgment and safe closeout, while the runtime CLI (npx -y @tokenroll/llmdoc) handles deterministic retrieval and mechanics. Lifecycle hooks inject startup guidance and can preload specific documents via an optional llmdoc.config.json. All workflows report one result state (success, no_change, dry_run, incomplete, failed), and knowledge maintenance is strictly confined to the llmdoc/ boundary—never source code.

Who it’s for

Developers working with coding agents on Git repositories (Node.js 18+). It supports Claude Code and Codex via plugins, Antigravity via a plugin, and any other agent through a portable AGENTS.md recipe. It’s useful for teams that want agents to keep architectural context across sessions without manual re-explanation.

Highlights

  • Plugins for Claude Code, Codex, and Antigravity (Google) with lifecycle hooks and skills.
  • Four explicit workflows: init (create knowledge base), update (semantic verification), prune (reduce redundant knowledge), upgrade (migrate legacy V2 knowledge).
  • CLI commands for mapping, searching, showing, and serving the knowledge surface.
  • Optional llmdoc.config.json for startup preloading and operating guidance.
  • Safety boundaries: only recorder role writes tracked knowledge; hooks are read-only and fail-open.
  • Chinese queries and document content are fully supported; all fixed CLI text is English.

Related

  • Project
  • Project
  • Project
  • Project
  • Project