# Persistent Memory

> Storage

- Skill: `gabrielmoreira/persistent-memory` (Agent Skill, multi-file: 2 files)
- Install (CLI): `npx skillmds@latest add gabrielmoreira/persistent-memory`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gabrielmoreira/persistent-memory/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: gabrielmoreira (https://skillmd.com/u/gabrielmoreira)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/gabrielmoreira/persistent-memory

---


## Storage

Observations are stored in `.pilot-shell/memory/` as JSON files, one per session:
```
.pilot-shell/memory/
  2026-03-02-session-a1b2c3.json
  2026-03-01-session-d4e5f6.json
```

## Retrieval

Search by:
- **Tags**: Filter by tag match
- **Full text**: Search observation content
- **Type**: Filter by decision/discovery/bugfix
- **Recency**: Prefer recent observations
- **Relevance**: Score against current task description

## Auto-Triggers

- `/learn` triggered at context thresholds
- Session end captures final observations
- Breakpoints can trigger observation capture

