claude-anchor 1.0.0

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.
@@ -0,0 +1,274 @@
1
+ # LONG-TERM-MEMORY.md Template
2
+
3
+ **Purpose:** Persistent memory that Claude should ALWAYS reference and NEVER forget.
4
+
5
+ This is Claude's "long-term memory" - permanent knowledge about:
6
+ - User preferences and working style
7
+ - System configuration and environment
8
+ - Project conventions and patterns
9
+ - Learned lessons and important decisions
10
+ - Things that should NEVER be forgotten
11
+
12
+ **This file is PERSISTENT** - never delete unless explicitly requested by user.
13
+
14
+ ---
15
+
16
+ ## Instructions for Claude
17
+
18
+ **On EVERY session start:**
19
+ 1. Check if `LONG-TERM-MEMORY.md` exists
20
+ 2. If yes, READ IT COMPLETELY before engaging
21
+ 3. Apply all preferences, context, and rules contained within
22
+ 4. Reference this memory throughout the conversation
23
+
24
+ **Memory file locations:**
25
+ - `$HOME/LONG-TERM-MEMORY.md` - Main/global memory
26
+ - `[PROJECT]/LONG-TERM-MEMORY.md` - Project-specific persistent memory
27
+
28
+ **NEVER delete this file** unless the user explicitly requests it.
29
+
30
+ ---
31
+
32
+ ## Template Structure
33
+
34
+ ```markdown
35
+ # LONG-TERM-MEMORY
36
+
37
+ **Owner:** [Name]
38
+ **Created:** [Date]
39
+ **Last Updated:** [Date]
40
+
41
+ ---
42
+
43
+ ## About the User
44
+
45
+ ### Identity
46
+ - Name: [Name]
47
+ - Role: [Developer/Admin/etc.]
48
+ - Experience level: [Senior/Mid/Junior]
49
+
50
+ ### Communication Preferences
51
+ - [Concise vs detailed responses]
52
+ - [Technical depth preferred]
53
+ - [Tone: casual/professional]
54
+
55
+ ### Working Style
56
+ - [Iterative vs big-bang changes]
57
+ - [Prefers planning vs diving in]
58
+ - [Documentation preferences]
59
+
60
+ ---
61
+
62
+ ## System Environment
63
+
64
+ ### Primary Machine
65
+ - Hostname: [NAME]
66
+ - OS: [OS and version]
67
+ - Key specs: [CPU, RAM, GPU if relevant]
68
+
69
+ ### Common Paths
70
+ | Purpose | Path |
71
+ |---------|------|
72
+ | Projects | [path] |
73
+ | Scripts | [path] |
74
+ | Config | [path] |
75
+
76
+ ### Key Services
77
+ | Service | Port | Purpose |
78
+ |---------|------|---------|
79
+ | [service] | [port] | [purpose] |
80
+
81
+ ---
82
+
83
+ ## Preferences & Rules
84
+
85
+ ### Always Do
86
+ - [ ] [Preference 1]
87
+ - [ ] [Preference 2]
88
+ - [ ] [Preference 3]
89
+
90
+ ### Never Do
91
+ - [ ] [Anti-preference 1]
92
+ - [ ] [Anti-preference 2]
93
+ - [ ] [Anti-preference 3]
94
+
95
+ ### Code Style
96
+ - [Language preferences]
97
+ - [Formatting rules]
98
+ - [Comment policy]
99
+
100
+ ---
101
+
102
+ ## Learned Context
103
+
104
+ ### Important Decisions Made
105
+ | Date | Decision | Reason |
106
+ |------|----------|--------|
107
+ | [date] | [decision] | [why] |
108
+
109
+ ### Patterns Established
110
+ - [Pattern 1]: [Description]
111
+ - [Pattern 2]: [Description]
112
+
113
+ ### Things to Remember
114
+ - [Important fact 1]
115
+ - [Important fact 2]
116
+ - [Important fact 3]
117
+
118
+ ---
119
+
120
+ ## Project Knowledge
121
+
122
+ ### Active Projects
123
+ | Project | Location | Status |
124
+ |---------|----------|--------|
125
+ | [name] | [path] | [active/paused] |
126
+
127
+ ### Conventions by Project
128
+ - **[Project A]**: [conventions]
129
+ - **[Project B]**: [conventions]
130
+
131
+ ---
132
+
133
+ ## Credentials & Access (References Only)
134
+
135
+ **NEVER store actual passwords or secrets here.**
136
+
137
+ | Service | Username/Location | Notes |
138
+ |---------|-------------------|-------|
139
+ | [service] | [reference to secure storage] | [notes] |
140
+
141
+ ---
142
+
143
+ ## Update Log
144
+
145
+ | Date | Change | Reason |
146
+ |------|--------|--------|
147
+ | [date] | [what changed] | [why] |
148
+
149
+ ---
150
+
151
+ *Last verified: [DATE]*
152
+ ```
153
+
154
+ ---
155
+
156
+ ## What Belongs in Long-Term Memory
157
+
158
+ **YES - Store these:**
159
+ - User identity and preferences
160
+ - System configuration details
161
+ - Code style preferences
162
+ - Project conventions
163
+ - Important decisions and their rationale
164
+ - Learned patterns and workflows
165
+ - Things the user has said "always" or "never" do
166
+
167
+ **NO - Don't store these:**
168
+ - Temporary task state (use SHORT-TERM-MEMORY.md)
169
+ - Passwords, API keys, secrets
170
+ - Session-specific context
171
+ - Outdated information (update instead)
172
+
173
+ ---
174
+
175
+ ## Memory Maintenance
176
+
177
+ ### Adding New Information
178
+ When user states a preference or important fact:
179
+ 1. Acknowledge it in conversation
180
+ 2. Ask: "Should I add this to long-term memory?"
181
+ 3. If yes, update the appropriate section
182
+
183
+ ### Updating Existing Information
184
+ When information changes:
185
+ 1. Update the relevant section
186
+ 2. Add entry to Update Log
187
+ 3. Update "Last verified" date
188
+
189
+ ### Verifying Memory
190
+ Periodically (or when asked):
191
+ 1. Review entries for accuracy
192
+ 2. Remove outdated information
193
+ 3. Update timestamps
194
+
195
+ ---
196
+
197
+ ## Difference from Short-Term Memory
198
+
199
+ | Aspect | SHORT-TERM | LONG-TERM |
200
+ |--------|------------|-----------|
201
+ | Duration | Single task/session | Permanent |
202
+ | Content | Current task state | User preferences, system config |
203
+ | After task | DELETE | KEEP |
204
+ | Updates | Overwrite each session | Append/modify carefully |
205
+ | Purpose | Session continuity | Persistent knowledge |
206
+
207
+ ---
208
+
209
+ ## Example: Populated Long-Term Memory
210
+
211
+ ```markdown
212
+ # LONG-TERM-MEMORY
213
+
214
+ **Owner:** [USER_NAME]
215
+ **Created:** [DATE]
216
+ **Last Updated:** [DATE]
217
+
218
+ ---
219
+
220
+ ## About the User
221
+
222
+ ### Identity
223
+ - Name: [USER_NAME]
224
+ - Role: [ROLE - e.g., Developer, Admin, Designer]
225
+ - Experience level: [Senior/Mid/Junior]
226
+
227
+ ### Communication Preferences
228
+ - [e.g., Concise responses, no fluff]
229
+ - [e.g., High technical depth]
230
+ - [e.g., Skip pleasantries, focus on work]
231
+
232
+ ### Working Style
233
+ - [e.g., Iterative builds with testing between changes]
234
+ - [e.g., Safety-conscious - validate before moving on]
235
+ - [e.g., Prefers targeted fixes over scope creep]
236
+
237
+ ---
238
+
239
+ ## System Environment
240
+
241
+ ### Primary Machine
242
+ - Hostname: [HOSTNAME]
243
+ - OS: [OS and version]
244
+ - Specs: [Key hardware specs]
245
+
246
+ ### Common Paths
247
+ | Purpose | Path |
248
+ |---------|------|
249
+ | Projects | [USER_HOME]/projects/ |
250
+ | Scripts | [USER_HOME]/scripts/ |
251
+ | Config | [USER_HOME]/.config/ |
252
+
253
+ ---
254
+
255
+ ## Preferences & Rules
256
+
257
+ ### Always Do
258
+ - [x] [User preference 1]
259
+ - [x] [User preference 2]
260
+ - [x] [User preference 3]
261
+
262
+ ### Never Do
263
+ - [x] [Anti-preference 1]
264
+ - [x] [Anti-preference 2]
265
+ - [x] [Anti-preference 3]
266
+
267
+ ---
268
+
269
+ *Last verified: [DATE]*
270
+ ```
271
+
272
+ ---
273
+
274
+ *This is a TEMPLATE. Create actual memory at `$HOME/LONG-TERM-MEMORY.md`. NEVER DELETE without explicit user request.*
@@ -0,0 +1,214 @@
1
+ # SHORT-TERM-MEMORY.md Template
2
+
3
+ **Purpose:** Maintain Claude's context and awareness between sessions or restarts.
4
+
5
+ This is Claude's "short-term memory" - a way to preserve session context when:
6
+ - System reboots are required
7
+ - Sessions time out or restart
8
+ - Work spans multiple conversations
9
+ - Context needs to be restored quickly
10
+
11
+ **The memory is temporary** - delete/wipe after the task is complete.
12
+
13
+ ---
14
+
15
+ ## Instructions for Claude
16
+
17
+ When a new session starts and `SHORT-TERM-MEMORY.md` exists:
18
+
19
+ 1. **Read the memory file FIRST** before responding
20
+ 2. **Acknowledge context** - Let user know you've caught up
21
+ 3. **Verify current state** - Confirm where things left off
22
+ 4. **Resume seamlessly** - Continue from the documented step
23
+
24
+ **Memory file locations:**
25
+ - `$HOME/SHORT-TERM-MEMORY.md` - Main/default location
26
+ - `[PROJECT]/SHORT-TERM-MEMORY.md` - Project-specific
27
+
28
+ ---
29
+
30
+ ## Template Structure
31
+
32
+ When creating a memory file, use this structure:
33
+
34
+ ```markdown
35
+ # SHORT-TERM-MEMORY - [DATE]
36
+
37
+ **STATUS:** [WAITING FOR REBOOT / IN PROGRESS / BLOCKED / WAITING FOR USER]
38
+
39
+ Brief description of what's happening (e.g., "User is rebooting to complete X")
40
+
41
+ ---
42
+
43
+ ## What We Were Working On
44
+
45
+ ### 1. [Task Name] - [COMPLETED/IN PROGRESS/PENDING]
46
+ - What was done
47
+ - What remains
48
+
49
+ ### 2. [Task Name] - [STATUS]
50
+ - Details...
51
+
52
+ ---
53
+
54
+ ## Current Step
55
+
56
+ **Where we stopped:**
57
+ - Specific step or action in progress
58
+ - What the user needs to do (if anything)
59
+
60
+ **Next Steps After Resume:**
61
+ 1. Step one
62
+ 2. Step two
63
+ 3. Step three
64
+
65
+ ---
66
+
67
+ ## Commands/Changes Made This Session
68
+
69
+ ```bash
70
+ # Any new commands, scripts, or aliases created
71
+ command --example
72
+ ```
73
+
74
+ ---
75
+
76
+ ## Context Notes
77
+
78
+ - Important decisions made
79
+ - User preferences discovered
80
+ - Blockers or issues encountered
81
+
82
+ ---
83
+
84
+ *Last updated: [TIMESTAMP]*
85
+ ```
86
+
87
+ ---
88
+
89
+ ## Status Types
90
+
91
+ ### WAITING FOR REBOOT
92
+ ```markdown
93
+ **STATUS: WAITING FOR REBOOT**
94
+ User is rebooting to complete [installation/update/driver enrollment/etc.]
95
+
96
+ After reboot, user needs to:
97
+ 1. [Action required on boot screen, if any]
98
+ 2. [Verification step]
99
+
100
+ Claude should:
101
+ 1. Ask if reboot/enrollment succeeded
102
+ 2. Verify with: `[verification command]`
103
+ 3. Continue with: [next task]
104
+ ```
105
+
106
+ ### IN PROGRESS
107
+ ```markdown
108
+ **STATUS: IN PROGRESS**
109
+ Currently working on: [task]
110
+ Progress: [X of Y steps complete]
111
+ ```
112
+
113
+ ### WAITING FOR USER
114
+ ```markdown
115
+ **STATUS: WAITING FOR USER**
116
+ Waiting for: [download to complete / manual installation / decision / etc.]
117
+ Once complete, Claude should: [next steps]
118
+ ```
119
+
120
+ ### BLOCKED
121
+ ```markdown
122
+ **STATUS: BLOCKED**
123
+ Blocked by: [issue description]
124
+ Workaround attempted: [what was tried]
125
+ Needs: [what's required to unblock]
126
+ ```
127
+
128
+ ---
129
+
130
+ ## Resume Checklist for Claude
131
+
132
+ When resuming from a catch-up document:
133
+
134
+ - [ ] Read the STATUS line first
135
+ - [ ] Understand what was in progress
136
+ - [ ] Note what the user needed to do
137
+ - [ ] Identify the next steps
138
+ - [ ] Ask user to confirm previous step completed (if needed)
139
+ - [ ] Run any verification commands
140
+ - [ ] Continue with next documented step
141
+
142
+ ---
143
+
144
+ ## File Management
145
+
146
+ **Creating a memory file:**
147
+ ```bash
148
+ # Main location (home directory)
149
+ $HOME/SHORT-TERM-MEMORY.md
150
+
151
+ # Project-specific (in project folder)
152
+ [PROJECT_PATH]/SHORT-TERM-MEMORY.md
153
+ ```
154
+
155
+ **Wiping SHORT-TERM memory after completion:**
156
+ - DELETE `SHORT-TERM-MEMORY.md` when the task/project is complete
157
+ - Or clear contents and update STATUS to "MEMORY CLEARED"
158
+ - Short-term memory should NOT persist indefinitely - it's temporary by design
159
+
160
+ **CRITICAL - Memory File Types:**
161
+ | File | Type | Action After Task |
162
+ |------|------|-------------------|
163
+ | `SHORT-TERM-MEMORY.md` | Temporary | DELETE when task complete |
164
+ | `LONG-TERM-MEMORY.md` | Persistent | NEVER delete unless explicitly requested |
165
+
166
+ **NEVER delete LONG-TERM-MEMORY.md** - only wipe SHORT-TERM files.
167
+ When in doubt, ASK before deleting any memory file.
168
+
169
+ ---
170
+
171
+ ## Example: Reboot Scenario
172
+
173
+ ```markdown
174
+ # SHORT-TERM-MEMORY - [DATE]
175
+
176
+ **STATUS: WAITING FOR REBOOT**
177
+
178
+ [USER_NAME] is rebooting to complete [TASK - e.g., driver installation, system update].
179
+
180
+ ---
181
+
182
+ ## What We Were Working On
183
+
184
+ ### 1. [Task A] - COMPLETED
185
+ - [What was done]
186
+ - [Committed/saved to where]
187
+
188
+ ### 2. [Task B] - IN PROGRESS
189
+ - [Progress made]
190
+ - [What remains]
191
+ - Needs: [Requirement after reboot]
192
+
193
+ ---
194
+
195
+ ## Current Step
196
+
197
+ **User needs to (on reboot):**
198
+ 1. [Action 1 - e.g., Complete setup screen]
199
+ 2. [Action 2 - e.g., Enter password]
200
+ 3. [Action 3 - e.g., Confirm and reboot]
201
+
202
+ **Next Steps After Reboot:**
203
+ 1. [Verification command or step]
204
+ 2. [Continue with task]
205
+ 3. [Final step]
206
+
207
+ ---
208
+
209
+ *Last updated: [TIMESTAMP]*
210
+ ```
211
+
212
+ ---
213
+
214
+ *This is a TEMPLATE file. The actual memory file goes in `$HOME/SHORT-TERM-MEMORY.md` or project-specific locations. Wipe after task completion.*