feat(metadocs): living project memory distilled from sessions into a git repo - #26
Merged
Conversation
…40K budget The first live run measured a 55K-char batch (75 turns) blowing straight through the 300s subprocess timeout: writing several complete documents takes minutes. Nightly unattended job — patience is free; a smaller batch plus a generous ceiling beats a fast failure that retries forever. Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>
AbsoluteMode
force-pushed
the
fix/metadocs-timeout
branch
from
July 31, 2026 09:31
a0f4b10 to
63655ed
Compare
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.
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