@lh8ppl/claude-memory-kit 0.3.5 → 0.4.1

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.
Files changed (53) hide show
  1. package/README.md +137 -50
  2. package/bin/cmk-approve-permission.mjs +62 -0
  3. package/bin/cmk-daily-distill.mjs +14 -0
  4. package/bin/cmk-guard-memory.mjs +57 -0
  5. package/bin/cmk-inject-context.mjs +12 -0
  6. package/bin/cmk-weekly-curate.mjs +12 -0
  7. package/package.json +4 -2
  8. package/src/agent-profile.mjs +115 -0
  9. package/src/agent-profiles.mjs +118 -0
  10. package/src/approve-permission.mjs +92 -0
  11. package/src/auto-extract.mjs +17 -10
  12. package/src/auto-persona.mjs +11 -4
  13. package/src/compaction-state.mjs +204 -0
  14. package/src/compress-session.mjs +13 -1
  15. package/src/config-core.mjs +7 -9
  16. package/src/decisions-journal.mjs +71 -3
  17. package/src/doctor.mjs +128 -5
  18. package/src/guard-memory.mjs +151 -0
  19. package/src/import-anthropic-memory.mjs +15 -1
  20. package/src/inject-context.mjs +42 -18
  21. package/src/install-agent.mjs +220 -0
  22. package/src/install-kiro.mjs +287 -0
  23. package/src/install.mjs +53 -7
  24. package/src/kiro-cli-agent.mjs +270 -0
  25. package/src/kiro-constants.mjs +19 -0
  26. package/src/kiro-hook-bin.mjs +105 -0
  27. package/src/kiro-hook-command.mjs +67 -0
  28. package/src/kiro-hook-dispatch.mjs +115 -0
  29. package/src/kiro-ide-hooks.mjs +219 -0
  30. package/src/kiro-permissions.mjs +175 -0
  31. package/src/kiro-skills.mjs +96 -0
  32. package/src/kiro-transcript.mjs +366 -0
  33. package/src/kiro-trusted-commands.mjs +130 -0
  34. package/src/lazy-compress.mjs +43 -110
  35. package/src/managed-block.mjs +138 -0
  36. package/src/memory-write.mjs +23 -8
  37. package/src/mutate-agent-config.mjs +243 -0
  38. package/src/read-json.mjs +43 -0
  39. package/src/register-crons.mjs +31 -0
  40. package/src/reindex.mjs +15 -2
  41. package/src/repair.mjs +39 -3
  42. package/src/result-shapes.mjs +8 -0
  43. package/src/review-queue.mjs +3 -0
  44. package/src/scratchpad.mjs +12 -2
  45. package/src/search.mjs +12 -5
  46. package/src/semantic-backend.mjs +7 -9
  47. package/src/settings-hooks.mjs +70 -3
  48. package/src/subcommands.mjs +360 -27
  49. package/src/tier-paths.mjs +82 -1
  50. package/src/weekly-curate.mjs +6 -2
  51. package/template/.claude/skills/memory-search/SKILL.md +14 -1
  52. package/template/.claude/skills/memory-write/SKILL.md +37 -1
  53. package/template/project/memory/INDEX.md.template +1 -1
@@ -1,6 +1,18 @@
1
1
  ---
2
2
  name: memory-write
3
- description: Captures a durable fact to project memory through the kit's safe write path (Poison_Guard secret/injection screening + home-path sanitization + dedup + conflict detection) — preferring the cmk MCP tools (mk_remember / mk_forget / mk_trust) when connected, falling back to the cmk CLI. Use when the user says "remember this", "note this", "save this", "from now on", "going forward", "I prefer", "I don't like", "we decided", "we agreed", or otherwise states a durable preference, decision, or environment fact worth carrying across sessions. Also covers correcting a saved fact ("update memory: X is now Y"), removing one ("forget about X"), and adjusting how much a saved fact is trusted ("trust this", "that's important — keep it", "that's not important / I'm not sure about that / low priority"). Skip throwaway chatter and facts that only matter to the current task.
3
+ description: >-
4
+ Captures a durable fact to project memory through the kit's safe write path
5
+ (Poison_Guard secret/injection screening + home-path sanitization + dedup +
6
+ conflict detection) — preferring the cmk MCP tools (mk_remember / mk_forget /
7
+ mk_trust) when connected, falling back to the cmk CLI. Use when the user says
8
+ "remember this", "note this", "save this", "from now on", "going forward",
9
+ "I prefer", "I don't like", "we decided", "we agreed", or otherwise states a
10
+ durable preference, decision, or environment fact worth carrying across
11
+ sessions. Also covers correcting a saved fact ("update memory: X is now Y"),
12
+ removing one ("forget about X"), and adjusting how much a saved fact is trusted
13
+ ("trust this", "that's important — keep it", "that's not important / I'm not
14
+ sure about that / low priority"). Skip throwaway chatter and facts that only
15
+ matter to the current task.
4
16
  allowed-tools: mcp__cmk__mk_remember mcp__cmk__mk_forget mcp__cmk__mk_trust Bash(cmk remember *) Bash(cmk forget *) Bash(cmk trust *) Read
5
17
  ---
6
18
 
@@ -85,6 +97,30 @@ Adjust how much a saved fact is trusted (`<id>` comes from `cmk search`):
85
97
  cmk trust <id> <low|medium|high>
86
98
  ```
87
99
 
100
+ ## Write the fact body as clean markdown
101
+
102
+ Memory files are **committed to the repo**, so a teammate's CI may lint them. When
103
+ you write a fact body (the `--why` / `--how` text, or any prose you capture), keep
104
+ it lint-clean markdown so it doesn't trip a default linter:
105
+
106
+ - **Nested list items: indent 4 spaces, not 2** (markdownlint MD007). A sub-bullet
107
+ under a bullet uses four spaces:
108
+
109
+ ```
110
+ - top-level point
111
+ - sub-point (4-space indent)
112
+ ```
113
+
114
+ - **Wrap URLs** in `<https://example.com>` or `[text](https://example.com)` — never
115
+ a bare `https://…` in prose (MD034).
116
+ - **Blank line above and below any heading** you write in a body (MD022), and don't
117
+ leave **two blank lines** in a row (MD012).
118
+ - Keep it short, declarative prose — the body is a fact, not an essay.
119
+
120
+ This is guidance for the body TEXT you pass. The kit's own structure (the bullet
121
+ line, the provenance comment, the frontmatter) is already lint-clean by
122
+ construction — you only control the prose.
123
+
88
124
  ## What NOT to capture
89
125
 
90
126
  - Throwaway chatter ("user said hi").
@@ -5,7 +5,7 @@ This file lists every per-fact memory file in `context/memory/`. **NOT auto-load
5
5
  ## Purpose vs. the bounded scratchpad
6
6
 
7
7
  | File | Purpose | Loaded at startup? | Cap |
8
- |---|---|---|---|
8
+ | --- | --- | --- | --- |
9
9
  | `../MEMORY.md` | Hot working state (current threads, environment, pending decisions) | Yes | 2,500 chars |
10
10
  | `../USER.md` | User profile and preferences | Yes | 1,375 chars |
11
11
  | `./<type>_<slug>.md` (this dir) | Durable typed facts with reasoning | No | none |