universal-agent-memory 4.0.0 → 4.1.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.
- package/package.json +1 -1
- package/templates/CLAUDE.template.md +17 -14
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "universal-agent-memory",
|
|
3
|
-
"version": "4.
|
|
3
|
+
"version": "4.1.0",
|
|
4
4
|
"description": "Universal AI agent memory system - CLAUDE.md templates, memory, worktrees for Claude Code, Factory.AI, VSCode, OpenCode",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "dist/index.js",
|
|
@@ -120,7 +120,7 @@ uam agent status
|
|
|
120
120
|
3. MEMORY -> query relevant context + past failures
|
|
121
121
|
4. AGENTS -> check overlaps (if multi-agent)
|
|
122
122
|
5. SKILLS -> check {{SKILLS_PATH}} for domain-specific guidance
|
|
123
|
-
6. WORK -> implement (use worktree for
|
|
123
|
+
6. WORK -> implement (ALWAYS use worktree for ANY file changes)
|
|
124
124
|
7. REVIEW -> self-review diff before testing
|
|
125
125
|
8. TEST -> completion gates pass
|
|
126
126
|
9. LEARN -> store outcome in memory
|
|
@@ -157,23 +157,26 @@ Decay: `effective_importance = importance * (0.95 ^ days_since_access)`
|
|
|
157
157
|
|
|
158
158
|
---
|
|
159
159
|
|
|
160
|
-
## WORKTREE WORKFLOW
|
|
160
|
+
## WORKTREE WORKFLOW — MANDATORY
|
|
161
|
+
|
|
162
|
+
> **MANDATORY**: ALL file changes MUST use a worktree. No exceptions. Never commit directly to any branch without a worktree. After PR is merged, worktree cleanup is MANDATORY — never leave stale worktrees.
|
|
161
163
|
|
|
162
164
|
| Change Scope | Workflow |
|
|
163
165
|
|-------------|----------|
|
|
164
|
-
|
|
|
165
|
-
| Multi-file change (2-5 files) | Worktree recommended |
|
|
166
|
-
| Feature/refactor (3+ files) | Worktree required |
|
|
166
|
+
| ANY file change (even single-file) | **Worktree REQUIRED** |
|
|
167
167
|
|
|
168
168
|
```bash
|
|
169
|
-
{{WORKTREE_CREATE_CMD}} <slug> #
|
|
169
|
+
{{WORKTREE_CREATE_CMD}} <slug> # ALWAYS create first
|
|
170
170
|
cd {{WORKTREE_DIR}}/NNN-<slug>/
|
|
171
171
|
git add -A && git commit -m "type: description"
|
|
172
|
-
{{WORKTREE_PR_CMD}} <id> # PR
|
|
173
|
-
|
|
172
|
+
{{WORKTREE_PR_CMD}} <id> # Create PR
|
|
173
|
+
# After PR merge:
|
|
174
|
+
{{WORKTREE_CLEANUP_CMD}} <id> # MANDATORY cleanup after merge
|
|
174
175
|
```
|
|
175
176
|
|
|
176
|
-
**Applies to**: {{WORKTREE_APPLIES_TO}}
|
|
177
|
+
**Applies to**: {{WORKTREE_APPLIES_TO}} — ALL changes without exception
|
|
178
|
+
|
|
179
|
+
**Cleanup is MANDATORY**: After every PR merge, immediately run `{{WORKTREE_CLEANUP_CMD}} <id>`. Never leave merged worktrees behind.
|
|
177
180
|
|
|
178
181
|
---
|
|
179
182
|
|
|
@@ -265,8 +268,7 @@ Task(subagent_type: "documentation-expert", prompt: "Check: <files>")
|
|
|
265
268
|
| work request (fix/add/change/update/create/implement/build) | `uam task create --type task` |
|
|
266
269
|
| bug report/error | `uam task create --type bug` |
|
|
267
270
|
| feature request | `uam task create --type feature` |
|
|
268
|
-
|
|
|
269
|
-
| multi-file feature (3+ files) | create worktree |
|
|
271
|
+
| ANY file change | **create worktree (MANDATORY)** |
|
|
270
272
|
| review/check/look | query memory first |
|
|
271
273
|
| ANY code change | tests required |
|
|
272
274
|
|
|
@@ -406,7 +408,8 @@ If < 100%: iterate (fix specific failure, re-run). Reserve 20% of time for itera
|
|
|
406
408
|
```
|
|
407
409
|
☐ Tests pass
|
|
408
410
|
☐ Lint/typecheck pass
|
|
409
|
-
☐ Worktree used (
|
|
411
|
+
☐ Worktree used (MANDATORY for ALL changes)
|
|
412
|
+
☐ Worktree cleaned up after PR merge (MANDATORY)
|
|
410
413
|
☐ Self-review completed
|
|
411
414
|
☐ Memory updated
|
|
412
415
|
☐ PR created
|
|
@@ -423,10 +426,10 @@ If < 100%: iterate (fix specific failure, re-run). Reserve 20% of time for itera
|
|
|
423
426
|
## COMPLETION PROTOCOL
|
|
424
427
|
|
|
425
428
|
```
|
|
426
|
-
MERGE -> DEPLOY -> MONITOR -> FIX (iterate until 100%)
|
|
429
|
+
MERGE -> CLEANUP WORKTREE -> DEPLOY -> MONITOR -> FIX (iterate until 100%)
|
|
427
430
|
```
|
|
428
431
|
|
|
429
|
-
**Never "done" until:** PR merged + deployed + verified working
|
|
432
|
+
**Never "done" until:** PR merged + worktree cleaned up + deployed + verified working
|
|
430
433
|
|
|
431
434
|
---
|
|
432
435
|
|