Liking cljdoc? Tell your friends :D

cleanx.memory.claude-md

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.

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.
raw docstring

discoverclj

(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.
sourceraw docstring

parse-allclj

(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).
sourceraw docstring

parse-fileclj

(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>.
sourceraw docstring

parse-textclj

(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.
sourceraw docstring

cljdoc builds & hosts documentation for Clojure/Script libraries

Keyboard shortcuts
Ctrl+kJump to recent docs
Move to previous article
Move to next article
Ctrl+/Jump to the search field
× close