Coding Agent Session Finder
code-yeongyu/oh-my-openagent
Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.
Manage persistent memory across sessions. An agent skill from espennilsen/pi.
$ npx skills add espennilsen/pi --skill pi-memory -a claude-codeProject install by default; add -g for ~/.claude/skills/.
$ gh skill install espennilsen/pi pi-memory --agent claude-codeProject scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .claude/skills && cp -r skills-src/extensions/pi-memory/skills/pi-memory .claude/skills/pi-memory && rm -rf skills-srcUse ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.
Claude Code skills documentation · loads skills from .claude/skills/
Install the "pi-memory" agent skill from https://github.com/espennilsen/pi/tree/main/extensions/pi-memory/skills/pi-memory into .claude/skills/pi-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pi-memory", then confirm the skill loads.Claude Code copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$skill-installer install https://github.com/espennilsen/pi/tree/main/extensions/pi-memory/skills/pi-memoryType this inside Codex. $skill-installer <name> installs a curated skill from openai/skills. The installer writes to $CODEX_HOME/skills (default ~/.codex/skills). Restart Codex if the skill does not show up.
$ npx skills add espennilsen/pi --skill pi-memory -a codexProject install goes to .agents/skills/; add -g for ~/.codex/skills/.
$ gh skill install espennilsen/pi pi-memory --agent codexProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .agents/skills && cp -r skills-src/extensions/pi-memory/skills/pi-memory .agents/skills/pi-memory && rm -rf skills-srcUse ~/.agents/skills/ instead of .agents/skills for a personal install.
Codex skills documentation · loads skills from .agents/skills/
Install the "pi-memory" agent skill from https://github.com/espennilsen/pi/tree/main/extensions/pi-memory/skills/pi-memory into .agents/skills/pi-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pi-memory", then confirm the skill loads.Codex copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add espennilsen/pi --skill pi-memory -a cursorProject install goes to .agents/skills/; add -g for ~/.cursor/skills/.
$ gh skill install espennilsen/pi pi-memory --agent cursorProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .cursor/skills && cp -r skills-src/extensions/pi-memory/skills/pi-memory .cursor/skills/pi-memory && rm -rf skills-srcUse ~/.cursor/skills/ instead of .cursor/skills for a personal install.
Cursor skills documentation · loads skills from .cursor/skills/, .agents/skills/, .claude/skills/, .codex/skills/
Install the "pi-memory" agent skill from https://github.com/espennilsen/pi/tree/main/extensions/pi-memory/skills/pi-memory into .cursor/skills/pi-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pi-memory", then confirm the skill loads.Cursor copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gemini skills install https://github.com/espennilsen/pi.git --path extensions/pi-memory/skills/pi-memory--scope user (default) or --scope workspace; --path is the subfolder of the repo that holds the skill; --consent skips the security confirmation prompt.
$ npx skills add espennilsen/pi --skill pi-memory -a gemini-cliProject install goes to .agents/skills/; add -g for ~/.gemini/skills/.
$ gh skill install espennilsen/pi pi-memory --agent gemini-cliProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .gemini/skills && cp -r skills-src/extensions/pi-memory/skills/pi-memory .gemini/skills/pi-memory && rm -rf skills-srcUse ~/.gemini/skills/ instead of .gemini/skills for a personal install, then run /skills reload.
Gemini CLI skills documentation · loads skills from .gemini/skills/, .agents/skills/
Install the "pi-memory" agent skill from https://github.com/espennilsen/pi/tree/main/extensions/pi-memory/skills/pi-memory into .gemini/skills/pi-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pi-memory", then confirm the skill loads.Gemini CLI copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ gh skill install espennilsen/pi pi-memoryInstalls for Copilot at project scope by default; add --scope user for a personal install. Preview a skill first with gh skill preview. Needs GitHub CLI 2.90.0 or later (public preview).
$ npx skills add espennilsen/pi --skill pi-memory -a github-copilotProject install goes to .agents/skills/; add -g for ~/.copilot/skills/.
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .github/skills && cp -r skills-src/extensions/pi-memory/skills/pi-memory .github/skills/pi-memory && rm -rf skills-srcUse ~/.copilot/skills/ instead of .github/skills for a personal install. Commit .github/skills so cloud agent and code review can use it.
GitHub Copilot skills documentation · loads skills from .github/skills/, .claude/skills/, .agents/skills/
Install the "pi-memory" agent skill from https://github.com/espennilsen/pi/tree/main/extensions/pi-memory/skills/pi-memory into .github/skills/pi-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pi-memory", then confirm the skill loads.GitHub Copilot copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
$ npx skills add espennilsen/pi --skill pi-memory -a opencodeOpenCode documents no install command of its own. Project install goes to .agents/skills/; add -g for ~/.config/opencode/skills/.
$ gh skill install espennilsen/pi pi-memory --agent opencodeProject scope by default (.agents/skills/); add --scope user for a personal install.
$ git clone --depth 1 https://github.com/espennilsen/pi.git skills-src && mkdir -p .opencode/skills && cp -r skills-src/extensions/pi-memory/skills/pi-memory .opencode/skills/pi-memory && rm -rf skills-srcUse ~/.config/opencode/skills/ instead of .opencode/skills for a personal install.
OpenCode skills documentation · loads skills from .opencode/skills/, .claude/skills/, .agents/skills/
Install the "pi-memory" agent skill from https://github.com/espennilsen/pi/tree/main/extensions/pi-memory/skills/pi-memory into .opencode/skills/pi-memory/ in this project. Copy the whole folder (SKILL.md and every file beside it), keep the folder name "pi-memory", then confirm the skill loads.OpenCode copies the folder itself, the same result as the manual copy. Check what it changed before you commit it.
pi-memoryManage persistent memory across sessions. An agent skill from espennilsen/pi.
Pi Memory is an agent skill from espennilsen/pi. Manage persistent memory across sessions. Use when asked to remember, recall, forget, or review what was stored. Covers long-term facts (MEMORY.md), daily session logs, search, and memory housekeeping.
Its SKILL.md is about 990 tokens, which your agent loads only when the skill is triggered. It is a single SKILL.md file with no bundled scripts.
It sits in Agent Workflows, covering Agent memory. The licence is MIT.
4 steps, taken from the first numbered list in SKILL.md.
Read from SKILL.md and the folder at commit 79d019b. It shows what the files ask for, not the result of running them.
Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.
From allowed-tools in the SKILL.md frontmatter.
No scripts in the folder and no shell commands in SKILL.md (its code samples are json and markdown).
From the folder's file list and the shell code blocks in SKILL.md.
No URLs in SKILL.md.
From URLs in SKILL.md, links to its own repository left out.
Names no API keys, tokens, secrets or passwords.
From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.
Pi Memory loads about 985 tokens when it runs. Until then it costs about 53 tokens; SKILL.md has 347 words of instructions outside code blocks.
Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.
The automated check found no risky patterns in SKILL.md.
Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.
The full file from espennilsen/pi at commit 79d019b, republished under its MIT licence (© espennilsen). 347 words, ~985 tokens.
.claude/skills/pi-memory/SKILL.md (or your agent's skills folder).A file-based memory system that persists knowledge across sessions using plain Markdown.
<base-path>/
├── MEMORY.md # Long-term curated memory (facts, preferences, decisions)
└── memory/
├── 2026-02-11.md # Daily log — append-only session notes
├── 2026-02-10.md
└── ...## Sections. Survives compaction. Editable in place.The base path defaults to cwd. Override with settings.json:
{ "pi-memory": { "path": "/path/to/memory/dir" } }Read memory contents.
| target | description |
|---|---|
long_term | Read full MEMORY.md |
daily | Read a specific date's log (default: today). Pass date: "YYYY-MM-DD" for other dates. |
list | List all available daily log files |
Write to memory.
| target | description |
|---|---|
daily | Append a timestamped entry to today's log. Used for session notes, progress, decisions. |
long_term | Update MEMORY.md. Pass section to replace a specific ## Section, or omit to append. |
Long-term memory sections — use section parameter to target:
memory_write target=long_term section="Preferences" content="- Prefers dark theme\n- Terminal-first tools"This replaces the content under ## Preferences. If the section doesn't exist, it's created.
Daily log entries — auto-timestamped:
memory_write target=daily content="Completed the auth refactor. Using JWT with RS256."Creates ### HH:MM entry in today's file.
Full-text search across MEMORY.md and all daily logs.
memory_search query="JWT" limit=10Returns matching lines with ±1 line of context, grouped by file.
Keep MEMORY.md well-organized with clear sections:
# Long-Term Memory
## About [User]
- Key facts, role, location, interests
## Preferences
- Communication style, tool preferences, conventions
## Active Focus
- Current projects and priorities (update as they shift)
## Decisions & Conventions
- Coding conventions, workflow rules, architectural decisions
## People & Relationships
- Key contacts and collaborators
## Recurring Patterns
- Things frequently asked about or worked onPeriodically review and clean up memory:
memory_read target=long_term)## Section should have a clear purposeAt each agent turn, the extension automatically injects into the system prompt:
This means the agent always has recent context without needing to call memory_read.
© espennilsen, MIT. Rendered from Markdown: HTML in the file is shown as text, images as links, and headings moved down two levels. Raw file
Just SKILL.md in extensions/pi-memory/skills/pi-memory of espennilsen/pi.
Open the folder on GitHubat commit 79d019b
Pi Memory next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.
| Skill | Stars | Used in | Tokens | Auto-check | Licence | Repo updated |
|---|---|---|---|---|---|---|
| Pi Memory this skillespennilsen/pi | 122 | — | ~985 | Automated safety check: Pass | MIT | |
| Coding Agent Session Findercode-yeongyu/oh-my-openagent | 70k | 1 repos | ~2.8k | Automated safety check: Pass | Custom licence | |
| Claude-Mem Cloud Syncthedotmack/claude-mem | 98k | 1 repos | ~1k | Automated safety check: Notes | Apache-2.0 | |
| Cognee CLI Memory Commandstopoteretes/cognee | 32k | 1 repos | ~2.2k | Automated safety check: Notes | Apache-2.0 | |
| Neat-Freak Knowledge CloseoutKKKKhazix/khazix-skills | 21k | — | ~1.9k | Automated safety check: Pass | MIT | |
| Claude-Mem Searchthedotmack/claude-mem | 98k | 1 repos | ~511 | Automated safety check: Pass | Apache-2.0 |
code-yeongyu/oh-my-openagent
Finds, reads and reconstructs past coding-agent sessions across Codex, Claude, OpenCode, Senpi and many other local agent logs.
thedotmack/claude-mem
Checks claude-mem cloud sync status and guides you through connecting a cmem.ai Pro account without the sync token ever passing through the chat.
topoteretes/cognee
Drives cognee from the terminal with remember, recall, forget and improve memory commands, dataset and config management and database migrations.
KKKKhazix/khazix-skills
Brings project docs, agent rule files, authorized memory and leftover workspace files back in line with what the code and runtime actually do at the end of a work session.
thedotmack/claude-mem
Searches the user's persistent cross-session memory for timestamped observations synthesized from past agent sessions on cmem.ai.
gastownhall/beads
Tracks multi-session work with dependencies in the bd issue tracker so the agent can find ready tasks and recover its context after conversation compaction.
espennilsen/pi
Interact with GitHub repos, PRs, issues, CI, and notifications via the pi-github extension commands and gh CLI.
espennilsen/pi
Create, review, and improve skills for Pi agents. An agent skill from espennilsen/pi.
espennilsen/pi
Perform a comprehensive DRY (Don't Repeat Yourself) code review on a codebase.
espennilsen/pi
Reverse-engineer a design system from a live website (public URL or localhost).
espennilsen/pi
A skill your agent uses when inspecting or operating Herdr sessions, workspaces, tabs, panes, agents, terminal output, agent messaging, or waits.
espennilsen/pi
Read and extract content from PDF files — text, tables, metadata, and images.
Categories
Manage persistent memory across sessions. An agent skill from espennilsen/pi. Pi Memory is an agent skill from espennilsen/pi. Manage persistent memory across sessions.
Pi Memory fits situations like: asked to remember; review what was stored.
Run `npx skills add espennilsen/pi --skill pi-memory -a claude-code`. Or copy the skill folder (extensions/pi-memory/skills/pi-memory in espennilsen/pi) into .claude/skills/pi-memory in your project. Claude Code loads it when a task matches its description.
Run `npx skills add espennilsen/pi --skill pi-memory -a codex`. Or copy the skill folder (extensions/pi-memory/skills/pi-memory in espennilsen/pi) into .agents/skills/pi-memory in your project. Codex loads it when a task matches its description.
Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add espennilsen/pi --skill pi-memory -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/pi-memory, .gemini/skills/pi-memory, .github/skills/pi-memory and .opencode/skills/pi-memory in your project.
SKILL.md names no scripts, command-line tools or credentials: Pi Memory is instructions for the agent only.
SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.
Our automated static check of SKILL.md found no risky patterns, such as piping downloads into a shell, reading credential files or hidden Unicode. It is not a guarantee. Review the folder before installing.
Pi Memory is published under the MIT licence (the repository's licence). It allows redistribution, so the full SKILL.md is shown on this page.
About 985 tokens (SKILL.md is roughly 3.9k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full.
Skills that share tags, products or a category with Pi Memory: Coding Agent Session Finder (code-yeongyu/oh-my-openagent, 70k stars), Claude-Mem Cloud Sync (thedotmack/claude-mem, 98k stars), Cognee CLI Memory Commands (topoteretes/cognee, 32k stars) and Neat-Freak Knowledge Closeout (KKKKhazix/khazix-skills, 21k stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.
espennilsen (a GitHub user) maintains it in espennilsen/pi, which has 122 GitHub stars. The repository holds 36 skills in this directory. The repository was last updated on September 21, 2026.
Source: espennilsen/pi on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.