@zosmaai/pi-llm-wiki
Version:
Self-maintaining LLM Wiki for Pi — Karpathy-pattern knowledge base with immutable source capture, automated ingestion, search, linting, and Obsidian-compatible vault. auto-updating personal & company wiki.
57 lines (38 loc) • 2.08 kB
Markdown
# Configuration
Wiki configuration lives in `.llm-wiki/config.json`.
## Modes
### Personal
The personal vault lives at `~/.llm-wiki/` (or `$WIKI_HOME`) and is always available as a fallback when no project wiki exists. It accumulates knowledge across all your sessions.
- Extra folders: `wiki/journal/`, `wiki/goals/`
- Track: learning, books, health, reflections
### Company
- Extra folders: `wiki/changes/`, `wiki/decisions/`
- Track: competitors, market, strategy
- Frontmatter: `confidence: high | medium | low`
## Settings
| Setting | Default | Description |
| -------------------------- | ------- | ---------------------------------- |
| `max_sources_per_discover` | 8 | Sources fetched per discovery run |
| `auto_fix_lint` | false | Auto-fix lint issues |
| `batch_ingest_size` | 3 | Sources processed per ingest batch |
## Environment Variables
| Variable | Default | Description |
| ----------------------------- | ----------- | ----------------------------------------------- |
| `WIKI_HOME` | `~/.llm-wiki` | Override the personal wiki vault location |
| `WIKI_MARKITDOWN_TIMEOUT_MS` | 180000 | Timeout (ms) for MarkItDown PDF/text extraction |
## Vault Resolution
The vault root is resolved in this priority order:
1. **Project vault**: walk up from current directory looking for `.llm-wiki/`
2. **Personal vault**: fall back to `$WIKI_HOME` or `~/.llm-wiki/`
This means when you're in a project with its own `.llm-wiki/`, that project wiki is active. When you're outside any project wiki, your personal `~/.llm-wiki/` takes over automatically.
## Page Frontmatter
```yaml
type: entity | concept | source | synthesis | analysis
created: YYYY-MM-DD
updated: YYYY-MM-DD
sources: [sources/SRC-YYYY-MM-DD-NNN]
```
Entity: add `category: person | organization | tool | project | product`
Concept: add `domain: ai | engineering | business | product | design | personal`