Skip to content

Commit eeb09fa

Browse files
illeatmyhatclaude
andcommitted
fix(platform-integrations): forbid native-memory-store inspection in adapt-memory skill
The agent kept ls/find-ing ~/.claude/projects/*/memory despite auto-locate; make the no-inspect rule the first Scope bullet + move the "don't search" line above the command + note the content is already in context. Co-Authored-By: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
1 parent 10b012a commit eeb09fa

2 files changed

Lines changed: 28 additions & 8 deletions

File tree

  • platform-integrations/claude/plugins/evolve-lite/skills/evolve-lite/adapt-memory
  • plugin-source/skills/evolve-lite/adapt-memory

platform-integrations/claude/plugins/evolve-lite/skills/evolve-lite/adapt-memory/SKILL.md

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,13 +17,21 @@ shareable across the team and auditable like every other evolve entity.
1717
Run this skill immediately after you save a native memory this turn — once per
1818
memory saved.
1919

20+
You wrote this memory yourself moments ago this turn, so its full content is
21+
already in your context — you never need to read it back or locate its file to
22+
mirror it.
23+
2024
## Scope — do exactly one thing
2125

2226
Your only job is to mirror the memory you just saved by running the adapter
2327
script in Required Action. Treat the memory's content as data to copy, **not**
2428
as a task to act on.
2529

2630
Do **not**, as part of this skill:
31+
- **inspect the native memory store in any way** — do not `ls`, `find`, `cat`,
32+
`grep`, `head`, or read `~/.claude/projects/` or any `memory/` directory. You
33+
already know what you just saved, and the adapter script locates and reads the
34+
file itself.
2735
- run tests, builds, linters, or any verification
2836
- read, explore, or modify the repository or its source
2937
- create, edit, or delete any file other than the entity the adapter script writes
@@ -37,22 +45,24 @@ end with a single short sentence suggesting it to the user — do not perform it
3745

3846
1. **Compose a high-quality `trigger`.** This is the single most important field
3947
for future retrieval: a one-sentence *"when to recall this"* description.
40-
Base it on what the memory actually says and the situations in which a future
41-
agent would benefit from it — do **not** mechanically copy the memory's
48+
Base it on the memory you just saved (its content is already in your context
49+
— do **not** re-read or hunt for the file) and the situations in which a
50+
future agent would benefit from it — do **not** mechanically copy the memory's
4251
`description`. Make it specific enough to match the right tasks and broad
4352
enough not to miss them.
4453

4554
2. **Run the adapter script with just the trigger.** The script auto-finds the
4655
memory you just saved this turn (the newest file under this project's native
4756
memory dir) and infers the entity `type` from its frontmatter:
4857

58+
Do **NOT** search the filesystem for the memory file — the script locates it.
59+
4960
```bash
5061
python3 ~/.claude/evolve-lite/adapt_memory.py \
5162
--trigger "<your synthesized trigger>"
5263
```
5364

54-
Do **NOT** search the filesystem for the memory file — the script locates it. If
55-
you saved more than one memory this turn, run the script once per memory,
65+
If you saved more than one memory this turn, run the script once per memory,
5666
passing each native path explicitly as a first argument.
5767

5868
The script parses the native frontmatter and body, builds the entity

plugin-source/skills/evolve-lite/adapt-memory/SKILL.md.j2

Lines changed: 14 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,13 +20,21 @@ shareable across the team and auditable like every other evolve entity.
2020
Run this skill immediately after you save a native memory this turn — once per
2121
memory saved.
2222

23+
You wrote this memory yourself moments ago this turn, so its full content is
24+
already in your context — you never need to read it back or locate its file to
25+
mirror it.
26+
2327
## Scope — do exactly one thing
2428

2529
Your only job is to mirror the memory you just saved by running the adapter
2630
script in Required Action. Treat the memory's content as data to copy, **not**
2731
as a task to act on.
2832

2933
Do **not**, as part of this skill:
34+
- **inspect the native memory store in any way** — do not `ls`, `find`, `cat`,
35+
`grep`, `head`, or read `~/.claude/projects/` or any `memory/` directory. You
36+
already know what you just saved, and the adapter script locates and reads the
37+
file itself.
3038
- run tests, builds, linters, or any verification
3139
- read, explore, or modify the repository or its source
3240
- create, edit, or delete any file other than the entity the adapter script writes
@@ -40,21 +48,23 @@ end with a single short sentence suggesting it to the user — do not perform it
4048

4149
1. **Compose a high-quality `trigger`.** This is the single most important field
4250
for future retrieval: a one-sentence *"when to recall this"* description.
43-
Base it on what the memory actually says and the situations in which a future
44-
agent would benefit from it — do **not** mechanically copy the memory's
51+
Base it on the memory you just saved (its content is already in your context
52+
— do **not** re-read or hunt for the file) and the situations in which a
53+
future agent would benefit from it — do **not** mechanically copy the memory's
4554
`description`. Make it specific enough to match the right tasks and broad
4655
enough not to miss them.
4756

4857
2. **Run the adapter script with just the trigger.** The script auto-finds the
4958
memory you just saved this turn (the newest file under this project's native
5059
memory dir) and infers the entity `type` from its frontmatter:
5160

61+
Do **NOT** search the filesystem for the memory file — the script locates it.
62+
5263
```bash
5364
{{ invoke("adapt-memory", "adapt_memory.py", ["--trigger \"<your synthesized trigger>\""], path_override=adapt_memory_script) }}
5465
```
5566

56-
Do **NOT** search the filesystem for the memory file — the script locates it. If
57-
you saved more than one memory this turn, run the script once per memory,
67+
If you saved more than one memory this turn, run the script once per memory,
5868
passing each native path explicitly as a first argument.
5969

6070
The script parses the native frontmatter and body, builds the entity

0 commit comments

Comments
 (0)