Files
loki/scripts
Mao NakamotoandClaude Opus 4.8 69634ef896 feat(loki): index goals + essays; source-aware retrieval
Ask: "everything I have, Loki should have." The RAG index held only project
dossiers + dev logs. Extended reindex-knowledge.ts to also embed:
  • goal — every project's roadmap/task-list (title, description, %, milestones,
    joined to its project) — the raw material for cross-project synthesis.
  • thought — the published strategic essays, where the operator has written
    down HOW the projects relate (three-layer thesis, the two halves) — so Loki
    reasons about synergies from first-hand sources, not guesses.
Added "goal" to KnowledgeSourceType (free-text column, no migration).

Loki's retrieved-context block is now source-aware: each line is labelled by
kind + project (or essay title) — "[BiasLens · goal]", "[essay: The Two
Halves]" — and Loki is told to cite the [source], so it shows its work.

Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
2026-07-09 00:08:22 +02:00
..