WorkThoth
KNOWLEDGE SYNCINFRASTRUCTURE

Thoth

Every merged PR becomes a permanent memory.

Thoth interface
GitHub + Akashic
Sources
Bidirectional
Sync Mode
PR merge
Trigger
Knowledge Base
Output
// What It Does

Thoth (repo: doc-sync) converts GitHub activity into permanent organizational memory. Scans merged PRs across every Invictus Labs repo every day, identifies architectural decisions and significant changes, synthesizes them into structured knowledge articles via Claude, and writes both the article and an episodic memory to Akashic Records. 74 tests, 96% coverage.

The pipeline: GAMMA scan → PR diff extraction → Claude synthesis → KB article → Akashic semantic memory write. The --sync-back flag triggers bidirectional write-back: Akashic memories flow back to source files (lessons → {project}/lessons.md, knowledge-base → kb/projects/{repo}.md, memory → Claude Code memory files). This closes the loop — code produces knowledge, knowledge shapes future code.

PR #12 (March 2026) added full Akashic integration: every processed PR writes a semantic memory, every sync run records an episodic memory, KB health computation routes through Akashic's gap detection API, and Discord notifications now include memory coverage stats and uncovered repo counts. On February 28, 2026 alone: 86 total PRs merged across 10 repos, 22 needing documentation, 21 memories written.

The mythology is deliberate. Thoth, Egyptian god of knowledge — who recorded the deeds of souls for the final judgment. This system records the deeds of code, ensuring architectural decisions outlast the sprint they were made in. Launchd-managed. Runs at ~/.openclaw/workspace/ level.

// Live Interface
THOTH · KNOWLEDGE SYNC
PR webhook received
09:38:02PR_MERGEDfeat/warm-reload-state-checkpointer (#114)
09:38:05DIFF_EXTRACT432 lines changed · 3 files · StateCheckpointer class
09:38:18SYNTHESISClaude: 'Warm reload preserves signal state on restart...'
09:38:31KB_WRITEArticle: 'Foresight StateCheckpointer Architecture'
09:38:33AKASHIC_WRITEepisodic memory: foresight-warm-reload-feb2026
09:38:34COMPLETEKnowledge cycle complete · 32s total
bidirectional · PR → Memory · Memory → Articles● Akashic synced
// Architecture
THOTH — DOCUMENTATION SYNC PIPELINE
Daily cron · 11:30 PM ET · No LLM required
GitHub · Invictus-Labs
47 repos · merged PRs · gh CLI
STAGE 01
Scanner
gh pr list
5s timeout · skip archived
STAGE 02
Analyzer
Classify PRs
≥50 adds · no .md changes
STAGE 03
Generator
Extract + Template
parse body · sanitize tables
STAGE 04
Publisher
gh pr create
max 5 per run · human review
Knowledge Base
kb/projects/*.md · doc PRs
report.json
scan results · KB health metrics
Mission Control
/doc-health panel · stat cards
// Ecosystem Connection
CONSUMES SIGNALS FROM