elecnix

Pi Claude Memory — Data skill for Claude Code

Data community

Shared memory layer for pi and Claude Code: read & write the same ~/.claude/projects//memory store without sync overhead or parallel data.

How to install Pi Claude Memory

This entry records only its repository, not the path inside it, so there is no exact command to give. Open elecnix/pi-claude-memory and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What Pi Claude Memory does

Shared memory layer for pi and Claude Code: read & write the same ~/.claude/projects/*/memory store without sync overhead or parallel data.

Alternatives in Data

  • App Store Compliance — Avoid common App Store and Google Play rejections 3.6k ★
  • Memory Commands — Commands for viewing, updating, and managing the entrepreneur's persistent context — identity, company profile 46 ★
  • Anatomy Park — Three-phase subsystem deep review — trace data flows, fix without regression, catalog trap doors 31 ★

README

pi-claude-memory

[![Ask DeepWiki](https://deepwiki.com/badge.svg)](https://deepwiki.com/elecnix/pi-claude-memory)

A pi extension that reads and writes **Claude Code's own memory store**. Not a parallel store, not a sync job — the same files, so a memory saved in either agent is immediately visible to the other.

Why

Claude Code keeps one memory per file under `~/.claude/projects//memory/`, with a `MEMORY.md` index holding one pointer line per memory. Cross-agent memory tools generally stand up a *new* store and teach both agents to use it, which leaves your existing memories behind and gives Claude Code two memory systems at once. This extension just uses the directory that is already there.

What it does

Mirrors Claude Code's two-tier design, so a large store stays cheap:

  • Index injected once per session. The MEMORY.md pointer lines are added to pi's system prompt at the first turn — titles and one-line hooks only, never the bodies.
  • Bodies read on demand. memory_read fetches one memory when the index suggests it is relevant.

Tools

Tool Purpose
memory_read Read one memory by name
memory_write Save or update a memory, or delete it with an empty body
memory_list List every memory with its description

Tool output is compact by default and expands with `ctrl+o` (`app.tools.expand`), matching pi's built-in tools: `memory_write` shows the new body — or a diff against the previous body when updating an existing memory, or a one-line confirmation when deleting — and `memory_read` shows the full body in place of the one-line description.

Deleting a memory

Call `memory_write` with an empty body (`""`) and the name of the memory to remove. A JSON `null` body and the literal text `"null"` are accepted as the same request, because a client that encodes a null body as the string `"null"` would otherwise overwrite the memory with those four characters and report a successful update. A