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>
77 lines
1.7 KiB
Markdown
77 lines
1.7 KiB
Markdown
---
|
|
name: remember
|
|
description: Quick shortcut to save something to memory
|
|
aliases: [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:
|
|
```json
|
|
{
|
|
"id": "<uuid>",
|
|
"date": "YYYY-MM-DD",
|
|
"content": "<the text>",
|
|
"status": "active"
|
|
}
|
|
```
|
|
|
|
4. 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`
|
|
|
|
5. 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"
|
|
```
|