Kompyla – a self-hosted research monitor that builds a cited wiki Kompyla is a self-hosted research monitor that treats an LLM like a compiler, turning raw documents into structured, cited wiki pages. The tool extends Andrej Karpathy's LLM Knowledge Base pattern with an active retrieval layer that automatically fetches sources from the web, arXiv, GitHub, RSS and YouTube, plus a self-evolving feedback loop that detects gaps and flags stale knowledge. It adds a presentation pipeline exporting HTML, DOCX, PPTX, Marp, PDF, Markdown and charts, and supports scheduled full cycles via daemon or cron. Autonomous research agent that builds and evolves a structured knowledge base. Kompyla treats an LLM like a compiler: raw documents go in, structured wiki pages come out. It extends Andrej Karpathy's LLM Knowledge Base pattern with an active retrieval layer that fetches new sources automatically, a self-evolving feedback loop that detects gaps and flags stale knowledge, and a full presentation pipeline HTML, DOCX, PPTX, slide decks, charts . Research query │ ▼ ┌──────────────┐ web · arxiv · GitHub · RSS · YouTube │ Search Agent │────────────────────────────────────────── └──────┬───────┘ dedup + relevance filter │ clean .md files ▼ raw/ directory │ ▼ ┌──────────────┐ │ Compiler │──── LLM: raw → structured wiki page └──────┬───────┘ │ ▼ wiki/ the KB ◄──── Health check · Gap detection · Feedback │ ▼ ┌──────────────┐ │ Present │──── Q&A · slides · charts · HTML · DOCX · PPTX └──────────────┘ flowchart TD %% ============ 1. INITIALISATION ============ subgraph INIT "1 — Initialisation" U1 /User: research domain/ I1 kompyla init I2 LLM: generate schema I3 Domain Schema I4 KB directory structure U1 -- I1 -- I2 -- I3 I2 -- I4 end %% ============ 2. RETRIEVAL ============ subgraph RETR "2 — Retrieval" R0 Retrieval Orchestrator R1 Source connectors: