compilelisted
Install: claude install-skill boshu2/agentops
# Compile — Knowledge Compiler
Reads raw `.agents/` artifacts and compiles them into a structured, interlinked
markdown wiki. Inspired by Karpathy's LLM Knowledge Bases architecture.
## What This Skill Does
The knowledge flywheel captures signal reactively (via `$retro`, `$post-mortem`,
`$forge`). `$compile` closes the loop by:
1. **Mining** unextracted signal from git and `.agents/` (existing)
2. **Growing** learnings via validation, synthesis, and gap detection (existing)
3. **Compiling** raw artifacts into interlinked wiki articles (core value)
4. **Linting** the compiled wiki for contradictions, orphans, and gaps
5. **Defragging** stale and duplicate artifacts (existing)
**No vector DB.** At personal scale (~100-400 articles), the compiled wiki fits
in context windows. The wiki IS the retrieval layer.
**Output:** `.agents/compiled/` — encyclopedia-style markdown with `[[backlinks]]`,
`index.md` catalog, and `log.md` chronological record.
## Pluggable Compute Backend
Set `AGENTOPS_COMPILE_RUNTIME` to pick the LLM backend:
| Value | Backend | Notes |
|-------|---------|-------|
| `ollama` | Ollama API | Needs `OLLAMA_HOST` (default `http://localhost:11434`). |
| `openai` | OpenAI-compatible | Needs `OPENAI_API_KEY`. |
When unset, `ao compile` attempts to auto-detect a local CLI backend. If none
is available, headless compile fails fast with an actionable error.
### Large-corpus batching
`ao compile --batch-size N` caps changed files per LLM prompt (default 25),