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.
