feat(metadocs): living project memory distilled from sessions into a git repo - #25
Merged
Conversation
…git repo A daily launchd job reads the new dialogue out of the index (user messages and final answers only — the surface layer the indexer already stores) and keeps four documents current in a repo of the owner's choice: per-project bugs.md (how each bug was recognized, diagnosed, fixed, proven fixed), actions.md (procedures an agent can follow alone), decisions.md (what was decided, why, what was rejected), and a global USER.md — a map of where the owner's information lives and how to FIND it, retrieval instructions only. Design decisions, recorded in docs/decisions/2026-07-31-metadocs-living- project-memory.md: a git repo instead of a database (diff is review, revert is undo, blame is audit, pushing the repo is team sharing); per-session watermarks that advance only after a safe write (a crash re-processes, never skips); a strict output protocol (complete files between markers, a filename whitelist, garbage discarded whole); the share secret scanner as a hard gate before any byte reaches the repo; the distiller caged exactly like the share composer (claude -p, no tools, argv prompt, empty cwd, dialogue pinned as data-not-instructions). Selector: --projects git (default) tracks every project whose cwd is still a git checkout; all, or explicit names. launchd over cron so a missed run fires once on wake; the enabling user's PATH is frozen into the plist so the distiller finds claude. 29 new tests; suite 293 passed. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
The
meta docstool: a daily launchd job distills each session's dialogue (user messages + final answers — the surface layer the index already stores; tool noise never enters) into living documents in a git repo:<project>/bugs.md— how each fixed bug was recognized, diagnosed, fixed, proven fixed<project>/actions.md— procedures written so an agent asked again can follow the entry alone<project>/decisions.md— contested choices: decided what, why, rejected whatUSER.md— where the owner's information lives and how to find it (retrieval instructions only, never stored values)metadocs init <repo> [--projects git|all|name…] [--daily-at HH:MM] [--push]/run/enable/disable/status.Key properties (decision doc included):
claude -p --tools "" --strict-mcp-config, prompt on argv, empty cwd, dialogue pinned as data-not-instructions29 new tests; suite 293 passed.
🤖 Generated with Claude Code