universal-agent-memory 0.6.1 β†’ 0.6.2

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/dist/bin/cli.js CHANGED
File without changes
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "universal-agent-memory",
3
- "version": "0.6.1",
3
+ "version": "0.6.2",
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",
@@ -188,6 +188,56 @@ multi_tool_use.parallel([
188
188
 
189
189
  ---
190
190
 
191
+ ## 🧩 MULTI-AGENT EXECUTION (DEPENDENCY-AWARE)
192
+
193
+ **Goal**: Finish faster by parallelizing independent work while preserving correctness and avoiding conflicts.
194
+
195
+ **Aggressive parallelization mandate**: Default to multi-agent execution whenever tasks can be safely decomposed; only stay single-threaded when dependencies or overlap risk make parallel work unsafe.
196
+
197
+ **Process**:
198
+ 1. **Decompose** the request into discrete work items with clear inputs/outputs.
199
+ 2. **Map dependencies** (A blocks B). Only run B after A is complete.
200
+ 3. **Parallelize** dependency-free items with separate agents and explicit file boundaries.
201
+ 4. **Gate edits** with `uam agent overlaps --resource "<files>"` before touching any file.
202
+ 5. **Merge in dependency order** (upstream first). Rebase or re-run dependent steps if needed.
203
+
204
+ **When to expand the agent pool**:
205
+ - Multiple files/modules with low coupling
206
+ - Parallel research or analysis tasks
207
+ - Independent test or verification tasks
208
+
209
+ **Example**:
210
+ ```bash
211
+ # Parallel research tasks (dependency-free)
212
+ Task(subagent_type: "security-auditor", prompt: "Threat model: auth flow in src/auth/*")
213
+ Task(subagent_type: "performance-optimizer", prompt: "Find hotspots in src/cache/*")
214
+
215
+ # Dependent work (sequential)
216
+ # 1) Agent A updates schema β†’ 2) Agent B updates queries β†’ 3) Agent C updates tests
217
+ ```
218
+
219
+ **Conflict avoidance**:
220
+ - One agent per file at a time
221
+ - Declare file ownership in prompts
222
+ - If overlap risk is high, wait or split by section
223
+
224
+ ---
225
+
226
+ ## πŸ› οΈ SKILLFORGE MODE (OPTIONAL)
227
+
228
+ **Use when**: The request is to create, improve, or compose skills (not regular feature work).
229
+
230
+ **Phases**:
231
+ 0. **Triage** β†’ USE_EXISTING / IMPROVE_EXISTING / CREATE_NEW / COMPOSE
232
+ 1. **Deep Analysis** (multi‑lens, edge cases, constraints)
233
+ 2. **Specification** (structured skill spec)
234
+ 3. **Generation** (implement skill)
235
+ 4. **Multi‑Agent Synthesis** (quality + security + evolution approval)
236
+
237
+ **Fallback**: If SkillForge scripts/requirements are unavailable, use the existing skill routing matrix and create skills manually in `{{SKILLS_PATH}}`.
238
+
239
+ ---
240
+
191
241
  ## 🧾 TOKEN EFFICIENCY RULES
192
242
 
193
243
  - Prefer concise, high-signal responses; avoid repeating instructions or large logs.
@@ -216,7 +266,7 @@ multi_tool_use.parallel([
216
266
  β”‚ β”‚
217
267
  β”‚ 4. WORKTREE β”‚ {{WORKTREE_CREATE_CMD}} <slug> β”‚
218
268
  β”‚ β”‚ cd {{WORKTREE_DIR}}/NNN-<slug>/ β”‚
219
- β”‚ β”‚ NEVER commit to {{DEFAULT_BRANCH}} β”‚
269
+ β”‚ β”‚ NEVER commit directly to {{DEFAULT_BRANCH}} β”‚
220
270
  β”‚ β”‚
221
271
  β”‚ 5. WORK β”‚ Implement β†’ Test β†’ {{WORKTREE_PR_CMD}} β”‚
222
272
  β”‚ β”‚