compile

Solid

Knowledge compiler. Reads raw .agents/ artifacts (learnings, research, patterns, retros, findings) and compiles them into an interlinked markdown wiki at .agents/compiled/. Pluggable LLM backend via AGENTOPS_COMPILE_RUNTIME (ollama|api). Also runs Mine → Grow → Defrag maintenance cycle and Lint pass for gaps/contradictions. Triggers: "compile", "compile knowledge", "build wiki", "knowledge compile", "lint knowledge", "mine and grow", "knowledge defrag", "clean flywheel".

AI & Automation 458 stars 44 forks Updated 5 days ago Apache-2.0

Install

View on GitHub

Quality Score: 91/100

Stars 20%
89
Recency 20%
100
Frontmatter 20%
70
Documentation 15%
100
Issue Health 10%
50
License 10%
100
Description 5%
100

Skill Content

# 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 When running headless, set `AGENTOPS_COMPILE_RUNTIME` to `ollama` or `openai` for the compilation backend. ## Execution Steps ### Step 0: Setup ```bash mkdir -p .agents/compiled ``` Determine mode from arguments: - `$compile` — Full cycle: Mine → Grow → Compile → Lint → Defrag - `$compile --compile-only` — Skip mine/grow, just compile + lint - `$compile --lint-only` — Only lint the existing compiled wiki - `$compile --defrag-only` — Only run defrag/cleanup - `$compile --mine-only` — Only run mine +...

Details

Author
boshu2
Repository
boshu2/agentops
Created
1 years ago
Last Updated
5 days ago
Language
Go
License
Apache-2.0

Integrates with

Bundled in these plugins

Similar Skills

Semantically similar based on skill content — not just same category