Add LLM Wiki Agent — persistent LLM-maintained knowledge base
Replaces dual-agent demo with a full personal knowledge base system where Claude reads source documents and incrementally builds and maintains a structured, interlinked wiki of markdown pages. - tools/ingest.py: reads a source, extracts knowledge, updates wiki pages - tools/query.py: queries the wiki with Claude, optionally files answers back - tools/lint.py: health-checks the wiki (orphans, contradictions, gaps) - tools/build_graph.py: two-pass graph builder (wikilinks + Claude inference) with Louvain community detection and vis.js interactive HTML output - CLAUDE.md: schema and workflow instructions for the LLM - wiki/: starter index, log, and overview pages - raw/, graph/: directory scaffolding Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
14
wiki/index.md
Normal file
14
wiki/index.md
Normal file
@@ -0,0 +1,14 @@
|
||||
# Wiki Index
|
||||
|
||||
This file is maintained by the LLM. Updated on every ingest.
|
||||
|
||||
## Overview
|
||||
- [Overview](overview.md) — living synthesis across all sources
|
||||
|
||||
## Sources
|
||||
|
||||
## Entities
|
||||
|
||||
## Concepts
|
||||
|
||||
## Syntheses
|
||||
9
wiki/log.md
Normal file
9
wiki/log.md
Normal file
@@ -0,0 +1,9 @@
|
||||
# Wiki Log
|
||||
|
||||
Append-only chronological record of all operations.
|
||||
|
||||
Format: `## [YYYY-MM-DD] <operation> | <title>`
|
||||
|
||||
Parse recent entries: `grep "^## \[" wiki/log.md | tail -10`
|
||||
|
||||
---
|
||||
17
wiki/overview.md
Normal file
17
wiki/overview.md
Normal file
@@ -0,0 +1,17 @@
|
||||
---
|
||||
title: "Overview"
|
||||
type: synthesis
|
||||
tags: []
|
||||
sources: []
|
||||
last_updated: ""
|
||||
---
|
||||
|
||||
# Overview
|
||||
|
||||
*This page is maintained by the LLM. It is updated on every ingest to reflect the current synthesis across all sources.*
|
||||
|
||||
No sources ingested yet. Add your first source with:
|
||||
|
||||
```bash
|
||||
python tools/ingest.py raw/your-source.md
|
||||
```
|
||||
Reference in New Issue
Block a user