Use project memory
Memory finds decisions and evidence in your project’s Markdown. Edit a document and the next query reads the new text. You can start independently of judgment disciplines; first install the memory extension.
Configure a document collection
Section titled “Configure a document collection”Run in a new example directory. In an existing project, merge the memory key into your
configuration instead. Make this edit in your own terminal because configuration is protected in
sessions.
mkdir pdks-memory-examplecd pdks-memory-examplemkdir notescat > polydeukes.config.yaml <<'YAML'memory: include: ["notes/**/*.md"]YAMLWrite a decision
Section titled “Write a decision”The title and H2 sections become searchable locations. A stable section ID lets you reopen the same evidence later.
cat > notes/storage.md <<'MARKDOWN'---title: Storage decisiontype: adr---# Storage decision
## Local files {#local-files}
We store project decisions in Markdown so they can be reviewed with code.MARKDOWNFind and read the source
Section titled “Find and read the source”Look for notes/storage#local-files in search results, then open it with show. Search retrieves
evidence; it does not generate an answer.
pdks memory search Markdownpdks memory show notes/storage#local-filespdks memory statspdks memory lintUse memory during development
Section titled “Use memory during development”Before a task, open search hits and check the assumptions behind earlier decisions. After the task, write changed decisions and executed checks in Markdown, linking related documents with relative links. If lint exits 1, repair the document IDs and links it reports. If search finds nothing, check that memory.include matches the file and that your query words occur in the text.
Document type, status, sources, and verification metadata help interpret a result. unverified
means human verification metadata is absent, not that the content is false. Follow replaced
decisions with supersession and retrieve unfinished work with your project’s obligations
configuration. Configure both in the
configuration reference.
Search, show, and obligations append to .polydeukes/memory-log.jsonl. Run pdks memory usage to
inspect frequently returned documents and candidate search misses. Share documents through Git; the
local query history cannot be recovered from them, so preserve it separately when needed.
Read the CLI reference for JSON shapes and exit codes, or the SDK references for programmatic calls.