How crow-hq/llm-wiki-v2 works
LLM Wiki v2 turns documents into linked Markdown notes, then answers questions with citations to those notes. The main workflow enters through the CLI or browser/API, reaches the Wiki facade, and uses ingest or ask agents before returning results; notes and source provenance persist in a local bundle. The README also documents CROW classification, classic mode, sync, audit, health/taxonomy, graph and linting, settings, and usage reporting. Some subsystem links below rely on README descriptions or SOURCE INDEX references; unsampled implementations are not assumed to have been inspected.
Main entry points: wiki.py Wiki facade · steps.py Ingest and ask steps · store.py Bundle store · cli.py CLI
Components 22
Wiki workflows
- Wiki facade
src/llmw2/wiki.py - Ingest librarian
src/llmw2/agents/librarian.py - Ingest and ask steps
src/llmw2/agents/steps.py - Classic steps
src/llmw2/agents/steps_classic.py - CROW steps
src/llmw2/agents/steps_crow.py - Question researcher
src/llmw2/agents/researcher.py
Models and accounting
- Writing model
src/llmw2/models/llm.py - CROW classifier
src/llmw2/models/classifier.py - Usage tracker
src/llmw2/models/usage.py - Configuration
src/llmw2/config.py
Wiki bundle
- Bundle store
src/llmw2/bundle/store.py - Wiki tree
src/llmw2/bundle/tree.py - Markdown documents
src/llmw2/bundle/document.py - Origin tracking
src/llmw2/bundle/origin_index.py
Management and sync
- Folder sync
src/llmw2/sources/sync.py - Routing audit
src/llmw2/audit.py - Bundle lint and graph
src/llmw2/bundle/check.py
Other components
- Wiki user
- AI provider
Connections 30
- Wiki user → CLI: runs commands
README.md - Wiki user → Web UI: uses wiki
README.md - Web UI → HTTP API: calls endpoints
README.md - CLI → Wiki facade: runs operations
src/llmw2/cli.py - HTTP API → Wiki facade: dispatches requests
src/llmw2/server.py - Wiki facade → Ingest librarian: ingests sources
src/llmw2/wiki.py - Wiki facade → Question researcher: answers questions
src/llmw2/wiki.py - Ingest librarian → Ingest and ask steps: uses steps
src/llmw2/agents/librarian.py - Ingest and ask steps → Classic steps: dispatches classic
src/llmw2/agents/steps.py - Ingest and ask steps → CROW steps: dispatches CROW
src/llmw2/agents/steps.py - Ingest librarian → Bundle store: files notes
src/llmw2/agents/librarian.py - Question researcher → Bundle store: reads notes
src/llmw2/agents/researcher.py - Bundle store → Wiki tree: loads tree
src/llmw2/bundle/store.py - Bundle store → Markdown documents: parses notes
src/llmw2/bundle/store.py - Bundle store → Origin tracking: tracks origins
src/llmw2/bundle/store.py - Classic steps → Writing model: requests generation
- CROW steps → CROW classifier: routes candidates
src/llmw2/agents/steps_crow.py - Ingest and ask steps → Writing model: asks model
src/llmw2/agents/steps.py - Ingest and ask steps → CROW classifier: classifies choices
src/llmw2/agents/steps.py - Writing model → AI provider: sends requests
README.md - CROW classifier → AI provider: sends requests
README.md - Writing model → Usage tracker: records tokens
src/llmw2/models/llm.py - CROW classifier → Usage tracker: records tokens
src/llmw2/models/classifier.py - Wiki facade → Configuration: uses settings
src/llmw2/wiki.py - CLI → Folder sync: starts sync
src/llmw2/cli.py - Folder sync → Wiki facade: files sources
src/llmw2/sources/sync.py - CLI → Routing audit: runs audit
src/llmw2/cli.py - HTTP API → Routing audit: serves audit
src/llmw2/server.py - Wiki facade → Bundle lint and graph: checks bundle
src/llmw2/wiki.py - HTTP API → Web UI: serves interface
README.md