@kevin0181/memoc 1.1.3 → 1.1.10
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.
- package/README.md +50 -4
- package/bin/cli.js +1351 -60
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -82,6 +82,14 @@ npx @kevin0181/memoc init
|
|
|
82
82
|
# Re-scan project and refresh managed sections
|
|
83
83
|
npx @kevin0181/memoc update
|
|
84
84
|
|
|
85
|
+
# Shared repo activity tracking
|
|
86
|
+
npx @kevin0181/memoc actor
|
|
87
|
+
npx @kevin0181/memoc actor set neneee
|
|
88
|
+
npx @kevin0181/memoc work "Auth refresh fix" --from-git
|
|
89
|
+
npx @kevin0181/memoc activity
|
|
90
|
+
npx @kevin0181/memoc activity --write
|
|
91
|
+
npx @kevin0181/memoc doctor
|
|
92
|
+
|
|
85
93
|
# Print current status in ~10 lines
|
|
86
94
|
npx @kevin0181/memoc summary
|
|
87
95
|
|
|
@@ -93,10 +101,19 @@ npx @kevin0181/memoc search "auth" --snippets --limit 5
|
|
|
93
101
|
npx @kevin0181/memoc grep "GetParticles"
|
|
94
102
|
npx @kevin0181/memoc grep "GetParticles" --snippets --limit 5
|
|
95
103
|
|
|
104
|
+
# Create raw/source records and durable wiki topic notes
|
|
105
|
+
npx @kevin0181/memoc ingest path/to/source.md
|
|
106
|
+
npx @kevin0181/memoc ingest https://example.com/spec
|
|
107
|
+
npx @kevin0181/memoc note "Auth flow comparison"
|
|
108
|
+
npx @kevin0181/memoc lint-wiki
|
|
109
|
+
|
|
96
110
|
# Estimate token cost of current memory files
|
|
97
111
|
npx @kevin0181/memoc tokens
|
|
98
112
|
|
|
99
|
-
# Archive
|
|
113
|
+
# Archive and compact an oversized startup summary
|
|
114
|
+
npx @kevin0181/memoc trim-summary
|
|
115
|
+
|
|
116
|
+
# Legacy: archive old log.md entries before deleting/migrating log.md
|
|
100
117
|
npx @kevin0181/memoc compress
|
|
101
118
|
|
|
102
119
|
# Add the same protocol to another agent's entry file
|
|
@@ -123,7 +140,7 @@ Run it from the project root. It preserves existing project memory, including:
|
|
|
123
140
|
- `.memoc/03-decisions.md`
|
|
124
141
|
- `.memoc/04-handoff.md`
|
|
125
142
|
- `.memoc/06-project-rules.md`
|
|
126
|
-
- `.memoc/log.md`
|
|
143
|
+
- Legacy `.memoc/log.md` if present
|
|
127
144
|
- `.memoc/systems/`
|
|
128
145
|
- `.memoc/wiki/`
|
|
129
146
|
|
|
@@ -155,7 +172,10 @@ llms.txt ← LLM-facing project map
|
|
|
155
172
|
03-decisions.md ← Durable decision log
|
|
156
173
|
04-handoff.md ← Resume context, verified/unverified
|
|
157
174
|
06-project-rules.md ← User preferences
|
|
158
|
-
|
|
175
|
+
activity.md ← Short shared activity index
|
|
176
|
+
actors/ ← Actor profiles for shared repos
|
|
177
|
+
worklog/ ← Per-actor work records to reduce conflicts
|
|
178
|
+
raw/ ← Immutable source material, not a startup read
|
|
159
179
|
systems/ ← Subsystem docs
|
|
160
180
|
wiki/ ← Synthesized knowledge base
|
|
161
181
|
|
|
@@ -172,10 +192,14 @@ Every entry file (`CLAUDE.md`, `AGENTS.md`, `.cursorrules`, etc.) gets the same
|
|
|
172
192
|
## Session Start
|
|
173
193
|
- [ ] Read `.memoc/session-summary.md`
|
|
174
194
|
- [ ] `.pending` exists? → review changed files → update memory if needed → delete it
|
|
195
|
+
- [ ] If `memoc` is not found, use the project-local wrapper.
|
|
175
196
|
|
|
176
197
|
## Before Opening More Files
|
|
177
198
|
- [ ] Run `memoc search "<query>"` first
|
|
178
199
|
- [ ] Open on demand: `02` status · `04` resume · `06` rules · `llms.txt` map
|
|
200
|
+
- [ ] Use `memoc grep "<query>"` only when memory is not enough.
|
|
201
|
+
- [ ] For durable source/wiki work, use `memoc ingest`, `memoc note`, and `memoc lint-wiki`.
|
|
202
|
+
- [ ] In shared repos, record meaningful work with `memoc work "<title>"`.
|
|
179
203
|
- [ ] Keep output small: `summary`, `search --limit`, `search --snippets`
|
|
180
204
|
|
|
181
205
|
## Before Finishing _(update only applicable files; skip Q&A / throwaway exploration)_
|
|
@@ -184,6 +208,8 @@ Every entry file (`CLAUDE.md`, `AGENTS.md`, `.cursorrules`, etc.) gets the same
|
|
|
184
208
|
- [ ] Work incomplete or risky → `04-handoff.md` (verified commands, unverified items, next steps)
|
|
185
209
|
- [ ] Rule/preference set → `06-project-rules.md`
|
|
186
210
|
- [ ] Wiki/systems work → read `skills/project-memory-maintainer/SKILL.md`
|
|
211
|
+
- [ ] Shared repo work → prefer `memoc work "<title>" --from-git`; run `memoc activity --write` only when regenerating indexes.
|
|
212
|
+
- [ ] Keep `session-summary.md` replace-only; completed work belongs in actor worklogs.
|
|
187
213
|
```
|
|
188
214
|
|
|
189
215
|
The checklist tells agents exactly when to update, which file to update, and what to record — so nothing gets missed.
|
|
@@ -202,6 +228,8 @@ Startup cost is kept minimal by design.
|
|
|
202
228
|
|
|
203
229
|
Everything else is on-demand. Use `memoc tokens` to see the live breakdown for your project.
|
|
204
230
|
|
|
231
|
+
`session-summary.md` is a replace-only startup snapshot, not a timeline. If it grows beyond the warning threshold, run `memoc trim-summary`; completed history belongs in `.memoc/worklog/<actor>/YYYY-MM/`, and unfinished/risky resume detail belongs in `.memoc/04-handoff.md`.
|
|
232
|
+
|
|
205
233
|
---
|
|
206
234
|
|
|
207
235
|
## Claude Code Auto-Detection
|
|
@@ -233,6 +261,24 @@ Add more agents on demand:
|
|
|
233
261
|
|
|
234
262
|
Running `update` refreshes managed blocks in all existing agent files.
|
|
235
263
|
|
|
264
|
+
## Shared Repos
|
|
265
|
+
|
|
266
|
+
Use `memoc work "<title>" --from-git` for meaningful work in shared repositories. It creates a new actor-scoped file under `.memoc/worklog/<actor>/YYYY-MM/`, prefills branch and changed files from git, and avoids append conflicts in shared files.
|
|
267
|
+
|
|
268
|
+
Actor detection order:
|
|
269
|
+
|
|
270
|
+
1. `MEMOC_ACTOR`
|
|
271
|
+
2. `.memoc/local/actor` from `memoc actor set <name>`
|
|
272
|
+
3. `git config user.name`
|
|
273
|
+
4. `git config user.email`
|
|
274
|
+
5. OS username
|
|
275
|
+
|
|
276
|
+
`.memoc/local/` is ignored by git so each machine can keep its own actor setting.
|
|
277
|
+
|
|
278
|
+
`activity.md`, `actors/README.md`, and `worklog/README.md` are regenerated indexes. Run `memoc activity --write` when you want to refresh them from worklog files.
|
|
279
|
+
|
|
280
|
+
`log.md` is legacy. New installs do not create it, and shared activity should live in worklog files. Existing projects can delete `.memoc/log.md` after preserving any useful history in worklogs or archives.
|
|
281
|
+
|
|
236
282
|
---
|
|
237
283
|
|
|
238
284
|
## Supported Stacks
|
|
@@ -248,7 +294,7 @@ Node.js · Next.js · React · Vue · Svelte · Angular · Nuxt · Astro · Expr
|
|
|
248
294
|
- **New project** — scaffolds all memory files with sensible defaults.
|
|
249
295
|
- **Existing project** — detects your stack and fills in real project info (name, scripts, config files).
|
|
250
296
|
- **Already initialized** — `init` injects the managed block without touching your existing content. `update` re-scans and refreshes project-specific sections.
|
|
251
|
-
- **Long-running projects** —
|
|
297
|
+
- **Long-running projects** — use actor worklogs for history; `compress` remains only for old `log.md` files.
|
|
252
298
|
|
|
253
299
|
---
|
|
254
300
|
|