Repository navigation
Add the mdbase.memory contract and Memory starter type - #25
Merged
Merged
Conversation
Memories that AI assistants share: one record per thing to remember, indexed by a kebab-case name, a one-line description and a kind (user, feedback, project, reference), with the memory in the Markdown body. The Memory starter stores the name in the file name (Memories/<name>.md) and carries the rules assistants need in its description and field descriptions.
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.
Adds
mdbase.memory1.0.0 and a pack with an editable Memory starter type, for AI assistants (Claude, ChatGPT, Codex via MCP) that share one set of memories in an mdbase collection. The upcoming Memory app installs this pack.name(kebab-case, the identity),description(one line, ≤200),kind(user/feedback/project/reference), optionalby(which assistant saved it). The body is the memory. It covers one memory per name, list-then-read recall, update-don't-duplicate,Why:/How to apply:lines, absolute dates, no secrets, and forgetting by deleting.types/memory/1.md:Memories/{name}.mdviacollection.path.fields, unique onname, display name is the description. The recall/save rules are in the type description and field descriptions, because assistants see those indescribe_collectionbut not the type's body. That gap came up in hands-on tests with Claude.ai and ChatGPT.packs/mdbase.memory/1.0.0.pack.yaml: managed schema and contract, seed type at_types/memory.md.scripts/memory-contract.test.mjs. The starter is also added to the type-key test. README section and generateddist/included.Run locally:
node --testfor the memory, daily-note and type-key tests (24 pass) andnpm run build. The engine install tests run in CI only. I didn't build the runtime engine locally.