Claw Code
- ID:
clawcode - Store:
${CLAW_CONFIG_HOME:-~/.claw}/sessions/*.jsonland legacy*.json - Read override:
DEJA_CLAWCODE_ROOTorDEJA_CLAWCODE_ROOTS - Format: JSONL transcripts (
session_meta,prompt_history,messagewithtool_use/tool_resultblocks) plus legacy JSON snapshots - Needs: none
Claw Code writes append-only session JSONL transcripts and legacy JSON snapshots
under ${CLAW_CONFIG_HOME:-~/.claw}/sessions/. The reader parses
session_meta, prompt_history timestamps (deduplicating against the user
message turn), and tool blocks (read_file, write_file, edit_file,
bash), while skipping .meta.json and .deleted.json sidecars.
- Wiring:
deja install clawcoderegistersmcpServers.dejain
${CLAW_CONFIG_HOME:-~/.claw}/settings.json, writes the skill at
${CLAW_CONFIG_HOME:-~/.claw}/skills/deja-history/SKILL.md, and adds the
/deja command at ${CLAW_CONFIG_HOME:-~/.claw}/commands/deja.md.
- Auto-recall:
deja install clawcode-autowiresPreToolUse(deja hook-tool),
PostToolUse (deja hook-tool-after), and PostToolUseFailure
(deja hook-tool-after) hooks into ${CLAW_CONFIG_HOME:-~/.claw}/settings.json.
- Resume:
claw --resume <id>from the recordedworkspace_rootdirectory.
Last verified: 2026-11-15
deja reads this format and forty-six others, and turns what it finds into memory your agents can search. See the harness matrix for what is wired where, or install it and search your own history.
Found this useful? Star deja-vu on GitHub.