Parse Claude Code auto-memory files.
<markdown body>
We deliberately don't pull in a YAML lib: the frontmatter is a tiny key-colon-value block and regex handles it cleanly.
Parse Claude Code auto-memory files. File shape: --- name: <string> description: <string> type: user|feedback|project|reference --- <markdown body> We deliberately don't pull in a YAML lib: the frontmatter is a tiny key-colon-value block and regex handles it cleanly.
(discover)Find every memory file under ~/.claude/projects/*/memory/ and the top-level /home/<user>/.claude/projects/-home-<user>/memory/ index. Returns a seq of absolute path strings.
Find every memory file under ~/.claude/projects/*/memory/ and the top-level /home/<user>/.claude/projects/-home-<user>/memory/ index. Returns a seq of absolute path strings.
(parse-all)Parse every memory file under ~/.claude/projects. Returns a seq of Memory records, dropping files that fail to parse (errors logged as nil).
Parse every memory file under ~/.claude/projects. Returns a seq of Memory records, dropping files that fail to parse (errors logged as nil).
(parse-file path)Parse a single memory file into a Memory record. Returns Result<Memory>.
Parse a single memory file into a Memory record. Returns Result<Memory>.
(parse-text content)Parse a memory-file string. Returns Result<Memory-without-path>.
Files without frontmatter are tolerated and represented with an empty map.
Parse a memory-file string. Returns Result<Memory-without-path>. Files without frontmatter are tolerated and represented with an empty map.
cljdoc builds & hosts documentation for Clojure/Script libraries
| Ctrl+k | Jump to recent docs |
| ← | Move to previous article |
| → | Move to next article |
| Ctrl+/ | Jump to the search field |