Skip to content

Commit bb73f89

Browse files
virtualianclaude
andauthored
Move feedback memory home to PAI-native directory (#118)
Apply.md previously labeled Claude Code per-cwd auto-memory as "the PAI memory directory", and pointed AISTEERINGRULES at a phantom ~/.claude/AISTEERINGRULES.md that does not exist. Both read and write targets now use PAI-native locations: ~/.pai/PAI/AISTEERINGRULES.md and ~/.pai/MEMORY/FEEDBACK/. Part 1 of Path B; Part 2 (loader + MEMORYSYSTEM.md update + migration) is a follow-up. Co-authored-by: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 118d975 commit bb73f89

2 files changed

Lines changed: 6 additions & 6 deletions

File tree

  • Packs/Learning/src/Workflows
  • Releases/v4.0.3+/.claude/skills/Learning/Workflows

Packs/Learning/src/Workflows/Apply.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ For each ACCEPTED proposal, read the current state of its target file:
6666
| Target | File to Read |
6767
|--------|-------------|
6868
| Algorithm spec | Read `~/.pai/PAI/Algorithm/LATEST` to get version, then read `~/.pai/PAI/Algorithm/v{VERSION}.md` |
69-
| AISTEERINGRULES.md | Read `~/.claude/AISTEERINGRULES.md` |
70-
| Feedback memories | Read the PAI memory directory `~/.claude/projects/*/memory/` to understand existing structure |
69+
| AISTEERINGRULES.md | Read `~/.pai/PAI/AISTEERINGRULES.md` |
70+
| Feedback memories | Read the PAI feedback memory directory `~/.pai/MEMORY/FEEDBACK/` to understand existing structure. If the directory does not exist yet, there are no existing feedback memories. |
7171

7272
### Step 3: Generate Concrete Diffs
7373

@@ -79,7 +79,7 @@ For each ACCEPTED proposal, generate a concrete edit against the **current** tar
7979
|--------|---------------------|
8080
| **Algorithm spec** | Section-aware edit. Read the spec structure, identify the correct section using the Algorithm Section Routing Table (from Review workflow). Generate a diff that inserts, replaces, or augments the specific section. Most changes are additions or rewording of existing steps. |
8181
| **AISTEERINGRULES.md** | Append. Almost always a new rule added to an existing section. Identify the appropriate section in AISTEERINGRULES.md and generate an append diff. Simplest target. |
82-
| **Feedback memories** | File-based. Generate a new memory file with proper frontmatter (name, description, type: feedback). The file will be written to the PAI memory directory. |
82+
| **Feedback memories** | File-based. Generate a new memory file with proper frontmatter (name, description, type: feedback). The file will be written to `~/.pai/MEMORY/FEEDBACK/` (global, not per-cwd). |
8383

8484
**Edge cases to handle:**
8585
- **Target file changed since proposal:** Diffs are generated against the current file, not a snapshot from proposal time. If someone already made the change by hand, detect the overlap and flag it rather than duplicating.

Releases/v4.0.3+/.claude/skills/Learning/Workflows/Apply.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,8 +66,8 @@ For each ACCEPTED proposal, read the current state of its target file:
6666
| Target | File to Read |
6767
|--------|-------------|
6868
| Algorithm spec | Read `~/.pai/PAI/Algorithm/LATEST` to get version, then read `~/.pai/PAI/Algorithm/v{VERSION}.md` |
69-
| AISTEERINGRULES.md | Read `~/.claude/AISTEERINGRULES.md` |
70-
| Feedback memories | Read the PAI memory directory `~/.claude/projects/*/memory/` to understand existing structure |
69+
| AISTEERINGRULES.md | Read `~/.pai/PAI/AISTEERINGRULES.md` |
70+
| Feedback memories | Read the PAI feedback memory directory `~/.pai/MEMORY/FEEDBACK/` to understand existing structure. If the directory does not exist yet, there are no existing feedback memories. |
7171

7272
### Step 3: Generate Concrete Diffs
7373

@@ -79,7 +79,7 @@ For each ACCEPTED proposal, generate a concrete edit against the **current** tar
7979
|--------|---------------------|
8080
| **Algorithm spec** | Section-aware edit. Read the spec structure, identify the correct section using the Algorithm Section Routing Table (from Review workflow). Generate a diff that inserts, replaces, or augments the specific section. Most changes are additions or rewording of existing steps. |
8181
| **AISTEERINGRULES.md** | Append. Almost always a new rule added to an existing section. Identify the appropriate section in AISTEERINGRULES.md and generate an append diff. Simplest target. |
82-
| **Feedback memories** | File-based. Generate a new memory file with proper frontmatter (name, description, type: feedback). The file will be written to the PAI memory directory. |
82+
| **Feedback memories** | File-based. Generate a new memory file with proper frontmatter (name, description, type: feedback). The file will be written to `~/.pai/MEMORY/FEEDBACK/` (global, not per-cwd). |
8383

8484
**Edge cases to handle:**
8585
- **Target file changed since proposal:** Diffs are generated against the current file, not a snapshot from proposal time. If someone already made the change by hand, detect the overlap and flag it rather than duplicating.

0 commit comments

Comments
 (0)