claude-recall 0.20.10 → 0.20.11

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,5 +1,27 @@
1
1
  {
2
2
  "hooks": {
3
+ "SubagentStart": [
4
+ {
5
+ "hooks": [
6
+ {
7
+ "type": "command",
8
+ "command": "node /home/ebiarao/.nvm/versions/node/v20.19.3/lib/node_modules/claude-recall/dist/cli/claude-recall-cli.js hook run subagent-start",
9
+ "timeout": 5
10
+ }
11
+ ]
12
+ }
13
+ ],
14
+ "SubagentStop": [
15
+ {
16
+ "hooks": [
17
+ {
18
+ "type": "command",
19
+ "command": "node /home/ebiarao/.nvm/versions/node/v20.19.3/lib/node_modules/claude-recall/dist/cli/claude-recall-cli.js hook run subagent-stop",
20
+ "timeout": 10
21
+ }
22
+ ]
23
+ }
24
+ ],
3
25
  "SessionStart": [
4
26
  {
5
27
  "matcher": "compact",
@@ -88,5 +110,5 @@
88
110
  }
89
111
  ]
90
112
  },
91
- "hooksVersion": "11.0.0"
113
+ "hooksVersion": "12.0.0"
92
114
  }
@@ -8,28 +8,14 @@ source: claude-recall
8
8
 
9
9
  # Corrections
10
10
 
11
- Auto-generated from 18 memories. Last updated: 2026-04-06.
11
+ Auto-generated from 4 memories. Last updated: 2026-04-06.
12
12
 
13
13
  ## Rules
14
14
 
15
15
  - CORRECTION: Memory with complex metadata
16
16
  - CORRECTION: Memory with complex metadata
17
17
  - CORRECTION: Memory with complex metadata
18
- - CORRECTION: Memory with complex metadata
19
- - CORRECTION: Memory with complex metadata
20
- - CORRECTION: Memory with complex metadata
21
- - CORRECTION: Memory with complex metadata
22
- - CORRECTION: Memory with complex metadata
23
- - CORRECTION: Memory with complex metadata
24
- - CORRECTION: Memory with complex metadata
25
- - CORRECTION: Memory with complex metadata
26
- - CORRECTION: Memory with complex metadata
27
- - CORRECTION: Memory with complex metadata
28
- - CORRECTION: Memory with complex metadata
29
- - CORRECTION: Memory with complex metadata
30
- - CORRECTION: License copyright should include user's name instead of 'Claude Recall Contributors'
31
18
  - CORRECTION: Use true agentic design where agents decide when to run, not cron jobs
32
- - CORRECTION: License copyright should list your name instead of 'Claude Recall Contributors'
33
19
 
34
20
  ---
35
21
  *Auto-generated by Claude Recall. Regenerate: `npx claude-recall skills generate`*
@@ -1,26 +1,12 @@
1
1
  {
2
2
  "topicId": "corrections",
3
- "sourceHash": "f96988b031c72141d7607ba19dc871b09a774b4cebd97a35cb4155ac8b1f4055",
4
- "memoryCount": 18,
5
- "generatedAt": "2026-04-06T18:15:28.374Z",
3
+ "sourceHash": "a6c78344ee4e1fb49b692fc1361cc992b2262c5e55ac59db8242e7e8ecbf07c0",
4
+ "memoryCount": 4,
5
+ "generatedAt": "2026-04-06T18:39:00.487Z",
6
6
  "memoryKeys": [
7
+ "memory_1775500740471_dp5hmdxaf",
7
8
  "memory_1775499328353_2ade6746o",
8
9
  "memory_1775496241485_1yyc5ht88",
9
- "memory_1775494279035_j6uj5lzxo",
10
- "memory_1775492069326_vksvzmt3f",
11
- "memory_1775491767369_sepsjmg8y",
12
- "memory_1775169786543_43p8to1hu",
13
- "memory_1775169704632_wzwczltzu",
14
- "memory_1775169639101_rmxkftqtk",
15
- "memory_1775169273281_4fod7ku6f",
16
- "memory_1775169256118_y7kc07y6y",
17
- "memory_1775169244673_d6d0uc33a",
18
- "memory_1775160781806_vnqf355e9",
19
- "memory_1775159399542_awfryrxp3",
20
- "memory_1775157082825_8uvrul28i",
21
- "memory_1775156381094_dr1nihes8",
22
- "hook_correction_1774180798682_9b5a2hadq",
23
- "hook_correction_1775498361284_9amjuw4le",
24
- "hook_correction_1774180805192_4ft4zhfsa"
10
+ "hook_correction_1775498361284_9amjuw4le"
25
11
  ]
26
12
  }
@@ -8,16 +8,20 @@ source: claude-recall
8
8
 
9
9
  # Failure Lessons
10
10
 
11
- Auto-generated from 27 memories. Last updated: 2026-04-06.
11
+ Auto-generated from 40 memories. Last updated: 2026-04-06.
12
12
 
13
13
  ## Rules
14
14
 
15
15
  - Check command syntax, file paths, and prerequisites before running
16
+ - Check inputs and prerequisites before retrying
16
17
  - SQLite query syntax error: LIKE clause requires single quotes around string literal, not double quotes
18
+ - Fix pairing in tool-outcome-watcher fails when the original failing command and the fix command have low string similarity (low Jaccard similarity). Pattern matching is insufficient; needs LLM reasoning about command intent.
19
+ - Avoid: Command failed: kill $(pgrep -f "node.*webui/server.js") 2>/dev/null; sleep 1; cd /home/ebiarao/repos-wsl/persona... → Instead: Check command syntax, file paths, and prerequisites before running
20
+ - Avoid: Command failed: ls artifacts/urgent-trigger-ORACLE.json 2>&1 → Instead: Check command syntax, file paths, and prerequisites before running
21
+ - Avoid: Command failed: node agents/shared/tools/post-comms.js '{"agent":"TEST","type":"handoff","priority":"bad","messag... → Instead: Check command syntax, file paths, and prerequisites before running
17
22
  - Avoid: Command failed: kill $(pgrep -f "node.*webui/server.js") 2>/dev/null; kill $(pgrep -f "node.*mock-eiap/server.js"... → Instead: Check command syntax, file paths, and prerequisites before running
18
23
  - Avoid: Command failed: pgrep -af "webui/server" ; curl -s http://localhost:3000/api/service-health 2>&1 → Instead: Check command syntax, file paths, and prerequisites before running
19
24
  - Avoid: Command failed: kill $(pgrep -f "node.*webui/server.js") 2>/dev/null; sleep 1; node webui/server.js > /tmp/webui.... → Instead: Check command syntax, file paths, and prerequisites before running
20
- - Avoid: Command failed: claude-recall outcomes 2>&1 → Instead: Check command syntax, file paths, and prerequisites before running
21
25
  - Avoid: Command failed: npm whoami 2>&1 && npm config get registry 2>&1 → Instead: Check command syntax, file paths, and prerequisites before running
22
26
  - Claude-recall MCP Server failed to start with npx claude-recall@latest mcp start
23
27
  - Claude-recall MCP Server failed to start with command: npx -y claude-recall@latest mcp start
@@ -25,6 +29,15 @@ Auto-generated from 27 memories. Last updated: 2026-04-06.
25
29
  - Avoid: Command failed: npx jest tests/unit/failure-detectors.test.ts 2>&1 → Instead: Check command syntax, file paths, and prerequisites before running
26
30
  - SQLite query error: LIKE clause needs proper string literal syntax with single quotes in better-sqlite3
27
31
  - Node.js syntax error: multiline strings in -e flag not properly escaped; newlines break the command parsing
32
+ - Fix pairing based on Jaccard string similarity between failing command and fix command is too weak when fixes look syntactically different from original commands (e.g. adding echo pipe vs original bash call); consider semantic matching or explicit fix linking
33
+ - {"what_failed":"Bash command failed: bash scripts/upgrade-sandbox.sh 2>&1","why_failed":"Exit code 1\n\n\u001b[0;32m[upgrade]\u001b[0m ==========================================\n\u001b[0;32m[upgrade]\u001b[0m NeMoClaw Sandbox Rebuild\n\u001b[0;32m[upgrade]\u001b[0m ==========================================\n\n\u001b[0;32m...","what_should_do":"Check inputs and prerequisites before retrying","context":"Bash error: Exit code 1\n\n\u001b[0;32m[upgrade]\u001b[0m ==========================================\n\u001b[0;32m[upgrade]\u001b[0m NeMoClaw Sandbox Rebuild\n\u001b[0;32m[upgrade]\u001b[0m ==========================================\n\n\u001b[0;32m...","preventative_checks":["Verify tool inputs are correct","Check preconditions"]}
34
+ - {"what_failed":"Bash command failed: echo \"Waiting 2 min for next SENTINEL cron tick to fire with delivery:silent...\" && sleep 120 && ...","why_failed":"Exit code 1\nWaiting 2 min for next SENTINEL cron tick to fire with delivery:silent...\nTraceback (most recent call last):\n File \"<string>\", line 1, in <module>\n import json,sys;d=json.load(sys.s...","what_should_do":"Check inputs and prerequisites before retrying","context":"Bash error: Exit code 1\nWaiting 2 min for next SENTINEL cron tick to fire with delivery:silent...\nTraceback (most recent call last):\n File \"<string>\", line 1, in <module>\n import json,sys;d=json.load(sys.s...","preventative_checks":["Verify tool inputs are correct","Check preconditions"]}
35
+ - {"what_failed":"Bash command failed: pkill -f \"node.*trigger-watcher\" 2>/dev/null; sleep 1; rm -f /tmp/trigger-watcher.log artifacts/....","why_failed":"Exit code 144","what_should_do":"Check inputs and prerequisites before retrying","context":"Bash error: Exit code 144","preventative_checks":["Verify tool inputs are correct","Check preconditions"]}
36
+ - {"what_failed":"Bash command failed: pkill -f \"trigger-watcher\" 2>/dev/null; sleep 1; rm -f /tmp/trigger-watcher.log artifacts/.trigge...","why_failed":"Exit code 144","what_should_do":"Check inputs and prerequisites before retrying","context":"Bash error: Exit code 144","preventative_checks":["Verify tool inputs are correct","Check preconditions"]}
37
+ - {"what_failed":"Bash command failed: kill $(pgrep -f \"trigger-watcher.js\") 2>/dev/null; sleep 1; rm -f artifacts/.trigger-watcher-offs...","why_failed":"Exit code 144","what_should_do":"Check inputs and prerequisites before retrying","context":"Bash error: Exit code 144","preventative_checks":["Verify tool inputs are correct","Check preconditions"]}
38
+ - {"what_failed":"Bash command failed: openshell sandbox list 2>/dev/null; openshell status 2>/dev/null; ls ~/.openclaw-ata/cron/jobs.js...","why_failed":"Exit code 2\n\u001b[1mNAME \u001b[0m \u001b[1mNAMESPACE\u001b[0m \u001b[1mCREATED \u001b[0m \u001b[1mPHASE\u001b[0m\nnka-telco openshell 2026-04-06 11:22:57 \u001b[32mReady\u001b[39m\n\u001b[1m\u001b[36mServer Status\u001b[39m\u001b[0m\n\n \u001b[2mGatewa...","what_should_do":"Check inputs and prerequisites before retrying","context":"Bash error: Exit code 2\n\u001b[1mNAME \u001b[0m \u001b[1mNAMESPACE\u001b[0m \u001b[1mCREATED \u001b[0m \u001b[1mPHASE\u001b[0m\nnka-telco openshell 2026-04-06 11:22:57 \u001b[32mReady\u001b[39m\n\u001b[1m\u001b[36mServer Status\u001b[39m\u001b[0m\n\n \u001b[2mGatewa...","preventative_checks":["Verify tool inputs are correct","Check preconditions"]}
39
+ - {"what_failed":"Bash command failed: ls artifacts/urgent-trigger-ORACLE.json 2>&1","why_failed":"Exit code 2\nls: cannot access 'artifacts/urgent-trigger-ORACLE.json': No such file or directory","what_should_do":"Check inputs and prerequisites before retrying","context":"Bash error: Exit code 2\nls: cannot access 'artifacts/urgent-trigger-ORACLE.json': No such file or directory","preventative_checks":["Verify tool inputs are correct","Check preconditions"]}
40
+ - {"what_failed":"Bash command failed: echo \"38\" > artifacts/.trigger-watcher-offset && timeout 8 node scripts/trigger-watcher.js 2>&1","why_failed":"Exit code 124\n[trigger-watcher] 2026-04-06T18:17:44.804Z started — polling every 5s\n[trigger-watcher] 2026-04-06T18:17:44.806Z initial offset: 39 lines","what_should_do":"Check inputs and prerequisites before retrying","context":"Bash error: Exit code 124\n[trigger-watcher] 2026-04-06T18:17:44.804Z started — polling every 5s\n[trigger-watcher] 2026-04-06T18:17:44.806Z initial offset: 39 lines","preventative_checks":["Verify tool inputs are correct","Check preconditions"]}
28
41
  - {"what_failed":"Bash command failed: node webui/server.js > /tmp/webui.log 2>&1 & sleep 3 && curl -s http://localhost:3000/api/service...","why_failed":"Exit code 7\n[1]+ Exit 1 node webui/server.js > /tmp/webui.log 2>&1","what_should_do":"Check inputs and prerequisites before retrying","context":"Bash error: Exit code 7\n[1]+ Exit 1 node webui/server.js > /tmp/webui.log 2>&1","preventative_checks":["Verify tool inputs are correct","Check preconditions"]}
29
42
  - {"what_failed":"Bash command failed: sleep 2 && curl -s http://localhost:3000/api/service-health 2>&1","why_failed":"Exit code 7","what_should_do":"Check inputs and prerequisites before retrying","context":"Bash error: Exit code 7","preventative_checks":["Verify tool inputs are correct","Check preconditions"]}
30
43
  - {"what_failed":"Bash command failed: kill $(pgrep -f \"node.*webui/server.js\") 2>/dev/null; sleep 1; cd /home/ebiarao/repos-wsl/persona...","why_failed":"Exit code 144","what_should_do":"Check inputs and prerequisites before retrying","context":"Bash error: Exit code 144","preventative_checks":["Verify tool inputs are correct","Check preconditions"]}
@@ -1,15 +1,19 @@
1
1
  {
2
2
  "topicId": "failure-lessons",
3
- "sourceHash": "543a967cdc5416d35aa4d95b097e319a3d4c184780ea4ee2975551d2c1187e59",
4
- "memoryCount": 27,
5
- "generatedAt": "2026-04-06T18:15:28.298Z",
3
+ "sourceHash": "168f7a6d77c7a73d97228d1c554a25f923339f11fc3225feae751a4ea38101e0",
4
+ "memoryCount": 40,
5
+ "generatedAt": "2026-04-06T18:39:00.441Z",
6
6
  "memoryKeys": [
7
7
  "promoted_1775498319002_awwrsovw6",
8
+ "promoted_1775499579486_bxvgjc80r",
8
9
  "hook_failure_1772637584921_0tj4rrxnt",
10
+ "hook_failure_1775500665745_zl6zsp7jw",
11
+ "hook_failure_non-zero-exit_1775499579462_n5xb6rr8r",
12
+ "hook_failure_non-zero-exit_1775499579440_2tv110hs9",
13
+ "hook_failure_non-zero-exit_1775499579425_n53js176o",
9
14
  "hook_failure_non-zero-exit_1775498318987_pqbmsatub",
10
15
  "hook_failure_non-zero-exit_1775498318976_mzbyvdceo",
11
16
  "hook_failure_non-zero-exit_1775498318963_thiuiiqef",
12
- "hook_failure_non-zero-exit_1774020949485_6ubuoswae",
13
17
  "hook_failure_non-zero-exit_1773409269877_ful451241",
14
18
  "hook_failure_1773409616313_gmsfcbuzh",
15
19
  "hook_failure_1773409607268_83ie5yunz",
@@ -17,6 +21,15 @@
17
21
  "hook_failure_non-zero-exit_1772640279977_g3gwlfoqi",
18
22
  "hook_failure_1772637570984_yxs8zmurp",
19
23
  "hook_failure_1772637485532_djep8eysa",
24
+ "hook_failure_1775500618695_6grbwpm3t",
25
+ "hook_failure_1775500273633_yrw798ahh",
26
+ "hook_failure_1775500125145_ad65bw8rs",
27
+ "hook_failure_1775499854068_ze23fp9gf",
28
+ "hook_failure_1775499797961_6ziqluf1i",
29
+ "hook_failure_1775499784048_qsshv04hl",
30
+ "hook_failure_1775499638896_pfhgi3kn5",
31
+ "hook_failure_1775499503779_k9vabnkif",
32
+ "hook_failure_1775499472886_1exmgb4ef",
20
33
  "hook_failure_1775499266183_drme5d0j6",
21
34
  "hook_failure_1775499258759_4unleb4yv",
22
35
  "hook_failure_1775499252924_czqqpfsp3",
@@ -8,10 +8,15 @@ source: claude-recall
8
8
 
9
9
  # Preferences
10
10
 
11
- Auto-generated from 81 memories. Last updated: 2026-04-06.
11
+ Auto-generated from 20 memories. Last updated: 2026-04-06.
12
12
 
13
13
  ## Rules
14
14
 
15
+ - Session test preference 1775500740595
16
+ - Test preference 1775500740495-2
17
+ - Test preference 1775500740495-1
18
+ - Test preference 1775500740495-0
19
+ - Test memory content
15
20
  - Session test preference 1775499328559
16
21
  - Test preference 1775499328384-2
17
22
  - Test preference 1775499328384-1
@@ -23,76 +28,10 @@ Auto-generated from 81 memories. Last updated: 2026-04-06.
23
28
  - Test preference 1775496241514-0
24
29
  - Test memory content
25
30
  - Session test preference 1775494279149
26
- - Test preference 1775494279061-2
27
- - Test preference 1775494279061-1
28
- - Test preference 1775494279061-0
29
- - Test memory content
30
- - Session test preference 1775492069465
31
- - Test preference 1775492069353-2
32
- - Test preference 1775492069353-1
33
- - Test preference 1775492069353-0
34
- - Test memory content
35
- - Session test preference 1775491767519
36
- - Test preference 1775491767395-2
37
- - Test preference 1775491767395-1
38
- - Test preference 1775491767395-0
39
- - Test memory content
40
31
  - After each refactoring, document the changes made. Don't batch documentation to the end — write it as you go.
41
32
  - Any major refactoring requires exhaustive search to make sure nothing is missed. Always grep/search comprehensively before and after changes to verify no stale references, broken imports, or missed files remain.
42
- - Session test preference 1775169786712
43
- - Test preference 1775169786565-2
44
- - Test preference 1775169786565-1
45
- - Test preference 1775169786565-0
46
- - Test memory content
47
- - Session test preference 1775169704849
48
- - Test preference 1775169704668-2
49
- - Test preference 1775169704668-1
50
- - Test preference 1775169704668-0
51
- - Test memory content
52
- - Session test preference 1775169639212
53
- - Test preference 1775169639121-2
54
- - Test preference 1775169639121-1
55
- - Test preference 1775169639121-0
56
- - Test memory content
57
- - Session test preference 1775169273366
58
- - Test preference 1775169273296-2
59
- - Test preference 1775169273296-1
60
- - Test preference 1775169273296-0
61
- - Test memory content
62
- - Session test preference 1775169256189
63
- - Test preference 1775169256133-2
64
- - Test preference 1775169256133-1
65
- - Test preference 1775169256133-0
66
- - Test memory content
67
- - Session test preference 1775169244752
68
- - Test preference 1775169244686-2
69
- - Test preference 1775169244686-1
70
- - Test preference 1775169244686-0
71
- - Test memory content
72
33
  - Markdown documentation files should be named with the convention YYYYMMDD_<filename>.md (e.g., 20260402_nemoclaw_integration.md). Use underscores, not hyphens, in the date-prefixed filenames.
73
- - Session test preference 1775160781884
74
- - Test preference 1775160781820-2
75
- - Test preference 1775160781820-1
76
- - Test preference 1775160781820-0
77
- - Test memory content
78
- - Session test preference 1775159399698
79
- - Test preference 1775159399559-2
80
- - Test preference 1775159399559-1
81
- - Test preference 1775159399559-0
82
- - Test memory content
83
- - Session test preference 1775157082982
84
- - Test preference 1775157082853-2
85
- - Test preference 1775157082853-1
86
- - Test preference 1775157082853-0
87
- - Test memory content
88
- - Session test preference 1775156381211
89
- - Test preference 1775156381110-2
90
- - Test preference 1775156381110-1
91
- - Test preference 1775156381110-0
92
- - Test memory content
93
- - axios npm package was compromised in a supply chain attack (axios@1.14.1 pulled in malicious plain-crypto-js@4.2.1). Claude Recall is NOT affected — does not use axios. Verified 2026-04-01. If axios is ever added as a dependency, pin the version and audit lockfiles.
94
34
  - For agentic design, agents should decide when to run rather than using cron jobs for scheduling
95
- - Upgrade all projects whenever a new version is pushed
96
35
 
97
36
  ---
98
37
  *Auto-generated by Claude Recall. Regenerate: `npx claude-recall skills generate`*
@@ -1,9 +1,14 @@
1
1
  {
2
2
  "topicId": "preferences",
3
- "sourceHash": "dce1646010683da840451f75aec6672ca62e50210bc5d2c89fe733ab9f9a60bd",
4
- "memoryCount": 81,
5
- "generatedAt": "2026-04-06T18:15:28.596Z",
3
+ "sourceHash": "2e99c86d7042ef4e9b0cd7c8eda4aa322d1678f9389a2a413ec9d6083db85194",
4
+ "memoryCount": 20,
5
+ "generatedAt": "2026-04-06T18:39:00.616Z",
6
6
  "memoryKeys": [
7
+ "memory_1775500740596_xok3iey9j",
8
+ "memory_1775500740545_op5713e5i",
9
+ "memory_1775500740519_ln1fd8ow4",
10
+ "memory_1775500740497_f06v303gf",
11
+ "memory_1775500740399_ud5aghy9a",
7
12
  "memory_1775499328561_9m7ao3h8s",
8
13
  "memory_1775499328480_e2zx9g5ly",
9
14
  "memory_1775499328425_plvaaxd69",
@@ -15,75 +20,9 @@
15
20
  "memory_1775496241516_y3inz8rlf",
16
21
  "memory_1775496241411_vwdz6igrm",
17
22
  "memory_1775494279150_n4pq7zy11",
18
- "memory_1775494279108_6hbe8qoit",
19
- "memory_1775494279088_nv8hjdm7s",
20
- "memory_1775494279062_jx4wrwn6s",
21
- "memory_1775494278982_fsc491z41",
22
- "memory_1775492069467_5cturlg0a",
23
- "memory_1775492069400_icg4tjivf",
24
- "memory_1775492069377_goix7nu9v",
25
- "memory_1775492069354_wma3zh5i7",
26
- "memory_1775492069258_q9d2k28wt",
27
- "memory_1775491767523_p2xtn4uak",
28
- "memory_1775491767447_q1dwsdfk3",
29
- "memory_1775491767421_vgntf4jt8",
30
- "memory_1775491767397_f181w5lqd",
31
- "memory_1775491767290_s7ntmkwpg",
32
23
  "memory_1775208934902_2kovciriy",
33
24
  "memory_1775208477621_fqa3w21j1",
34
- "memory_1775169786717_1zmwoe6ai",
35
- "memory_1775169786630_rdudb8hbc",
36
- "memory_1775169786589_zurej1v51",
37
- "memory_1775169786567_3esvhc01j",
38
- "memory_1775169786460_vugzw5yl0",
39
- "memory_1775169704852_ezdebznpz",
40
- "memory_1775169704771_ak9vkaswc",
41
- "memory_1775169704739_dg78h7lte",
42
- "memory_1775169704670_f1yhtrmsz",
43
- "memory_1775169704515_lby33vw9c",
44
- "memory_1775169639213_w3i85h357",
45
- "memory_1775169639170_iewh2evi0",
46
- "memory_1775169639145_x9s0519l7",
47
- "memory_1775169639123_fa53agp0a",
48
- "memory_1775169639037_f290kffwd",
49
- "memory_1775169273368_c1e5jdl9r",
50
- "memory_1775169273337_wozxe12k3",
51
- "memory_1775169273319_3o1ww90na",
52
- "memory_1775169273297_oqmyxziav",
53
- "memory_1775169273232_eoymf3ezj",
54
- "memory_1775169256190_681x8frvt",
55
- "memory_1775169256164_kqderurux",
56
- "memory_1775169256150_0nqbk7tx9",
57
- "memory_1775169256134_ftj0m44bb",
58
- "memory_1775169256069_dywd646f7",
59
- "memory_1775169244754_sjfarlk41",
60
- "memory_1775169244722_mavida9fg",
61
- "memory_1775169244707_nmmu0s0lu",
62
- "memory_1775169244688_03q4mmcky",
63
- "memory_1775169244628_7kuhf5met",
64
25
  "memory_1775168901303_o8o0i4952",
65
- "memory_1775160781885_fkbnc0s85",
66
- "memory_1775160781857_gj5y299dr",
67
- "memory_1775160781842_0xmv146n5",
68
- "memory_1775160781821_o9ipt8nsc",
69
- "memory_1775160781747_70e5gbp7j",
70
- "memory_1775159399702_yg6ynd05n",
71
- "memory_1775159399631_fmy4s2vhr",
72
- "memory_1775159399606_xymkvcjfv",
73
- "memory_1775159399561_o6vpb3fto",
74
- "memory_1775159399463_0pvhuixyr",
75
- "memory_1775157082984_oiyt9u65w",
76
- "memory_1775157082927_29d7mm59z",
77
- "memory_1775157082892_o9i0jbw76",
78
- "memory_1775157082855_zlbl2ib0j",
79
- "memory_1775157082743_fu07oklto",
80
- "memory_1775156381212_ptlo01224",
81
- "memory_1775156381158_3p6goornd",
82
- "memory_1775156381132_ikx95mk0n",
83
- "memory_1775156381111_1x4fxfu9n",
84
- "memory_1775156381012_3tw7we7cz",
85
- "memory_1775154208266_arwo2fctx",
86
- "hook_preference_1775498374200_6d21qj14y",
87
- "hook_preference_1774106575282_45sk4ep52"
26
+ "hook_preference_1775498374200_6d21qj14y"
88
27
  ]
89
28
  }
@@ -149,26 +149,36 @@ async function extractHindsightHint(failureDescription, context) {
149
149
  return null;
150
150
  }
151
151
  }
152
- const SESSION_EXTRACTION_PROMPT = `You are analyzing a coding session transcript to extract durable project knowledge.
152
+ const SESSION_EXTRACTION_PROMPT = `You are analyzing a coding session transcript to extract durable lessons.
153
153
 
154
- The transcript shows tool calls (Bash, Edit, Read, Grep, etc.) and their results, plus user and assistant messages.
154
+ The transcript shows tool calls (Bash, Edit, Read, Grep, etc.) and their results, plus user and assistant messages. Your primary job is to identify CAUSE-AND-EFFECT patterns — what failed, why, and what fixed it.
155
155
 
156
- Extract ONLY facts useful in FUTURE sessions:
157
- - Project conventions discovered (file structure, naming patterns, build tools, test frameworks)
158
- - Workflow patterns that worked or failed (e.g. "tests must be run from project root")
159
- - Technical constraints or gotchas encountered (e.g. "this project uses ESM, not CJS")
160
- - Environment requirements discovered (e.g. "needs Node 20+", "uses pnpm not npm")
156
+ PRIORITY 1 Failure Fix sequences:
157
+ Look for tool calls that failed (errors, timeouts, non-zero exits) followed by a different approach that succeeded. Extract the lesson as an imperative rule.
158
+ Examples:
159
+ - Command timed out because of interactive prompt → "scripts/upgrade-sandbox.sh requires interactive confirmation pipe 'y' to auto-confirm"
160
+ - Edit failed with old_string not found "File X uses tabs not spaces — match exact indentation when editing"
161
+ - Build failed after dependency change → "Run npm install after modifying package.json before building"
162
+
163
+ PRIORITY 2 — Project conventions discovered:
164
+ - File structure, naming patterns, build tools, test frameworks
165
+ - Workflow patterns (e.g. "tests must be run from project root")
166
+ - Technical constraints or gotchas (e.g. "this project uses ESM, not CJS")
167
+ - Environment requirements (e.g. "needs Node 20+", "uses pnpm not npm")
168
+
169
+ PRIORITY 3 — User corrections applied:
170
+ - When the user corrected the agent's approach mid-session
161
171
 
162
172
  Do NOT extract:
163
- - Task-specific details (what was built, which files changed this session)
164
- - Debugging steps unlikely to recur
165
- - Code patterns visible by reading the codebase
173
+ - Task-specific details (what was built, which files changed)
174
+ - One-off debugging steps unlikely to recur
175
+ - Code patterns derivable from reading the codebase
166
176
  - Anything in the EXISTING MEMORIES list below
167
177
 
168
178
  Respond with ONLY valid JSON (no markdown fences):
169
179
  [{"type":"project-knowledge|preference|devops|failure","content":"<imperative statement>","confidence":0.0-1.0}]
170
180
 
171
- Return [] if nothing durable was learned. Max 10 items. Each content should be a concise imperative statement (e.g. "Run tests with pnpm test, not npm test").`;
181
+ Return [] if nothing durable was learned. Max 10 items. Each content should be a concise, actionable rule (e.g. "Pipe 'y' to scripts/upgrade-sandbox.sh it has an interactive confirmation prompt").`;
172
182
  /**
173
183
  * Extract durable session learnings from a conversation summary using Haiku.
174
184
  * Returns null if no API key or on any failure.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "claude-recall",
3
- "version": "0.20.10",
3
+ "version": "0.20.11",
4
4
  "description": "Persistent memory for Claude Code and Pi with native Skills integration, automatic capture, failure learning, and project scoping",
5
5
  "main": "dist/index.js",
6
6
  "bin": {