Files
claude-code/commands/remember.md
OpenCode Test 55327c2e05 Add /remember, /config commands and memory helper scripts
New commands:
- /remember: Quick shortcut to save to memory (auto-categorizes)
- /config: View and manage configuration settings

New automation scripts:
- memory-add.py: Add items to PA memory with auto-categorization
- memory-list.py: List memory items by category

The /remember command provides a quick way to save:
- "Always use X" → preferences
- "Decided to use X" → decisions
- "Project at ~/path" → projects
- Other → facts

🤖 Generated with [Claude Code](https://claude.com/claude-code)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-01 12:23:39 -08:00

1.7 KiB

name, description, aliases
name description aliases
remember Quick shortcut to save something to memory
save
note

/remember Command

Quick shortcut to save information to PA memory.

Usage

/remember <what to remember>
/remember Always use dark mode in editors
/remember Project X uses PostgreSQL 15
/remember Prefer functional style over OOP

Implementation

This is a shortcut for /pa --remember -- "<instruction>".

When invoked:

  1. Parse the text after /remember

  2. Determine the category:

    • Contains "prefer", "always", "never" → preference
    • Contains "decided", "chose", "use" → decision
    • Contains project/path references → project
    • Otherwise → fact
  3. Generate entry:

{
  "id": "<uuid>",
  "date": "YYYY-MM-DD",
  "content": "<the text>",
  "status": "active"
}
  1. Append to appropriate file:

    • ~/.claude/state/personal-assistant/memory/preferences.json
    • ~/.claude/state/personal-assistant/memory/decisions.json
    • ~/.claude/state/personal-assistant/memory/projects.json
    • ~/.claude/state/personal-assistant/memory/facts.json
  2. Confirm to user:

✓ Saved to preferences:
  "Always use dark mode in editors"

Examples

Input Category File
"Always use tabs not spaces" preference preferences.json
"Decided to use Rust for CLI tools" decision decisions.json
"homelab repo is at ~/repos/homelab" project projects.json
"Server IP is 192.168.1.100" fact facts.json

Quick Access

This is the fastest way to save something:

/remember SSH key is in ~/.ssh/homelab_key

vs the full command:

/pa --remember -- "SSH key is in ~/.ssh/homelab_key"