@miller-tech/uap 1.39.0 → 1.40.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 (99) hide show
  1. package/README.md +109 -642
  2. package/dist/.tsbuildinfo +1 -1
  3. package/dist/bin/cli.js +2 -2
  4. package/dist/bin/cli.js.map +1 -1
  5. package/dist/cli/deliver.d.ts +3 -2
  6. package/dist/cli/deliver.d.ts.map +1 -1
  7. package/dist/cli/deliver.js +10 -5
  8. package/dist/cli/deliver.js.map +1 -1
  9. package/docs/INDEX.md +48 -286
  10. package/docs/architecture/OVERVIEW.md +328 -0
  11. package/docs/architecture/PROTOCOL.md +204 -0
  12. package/docs/benchmarks/README.md +17 -192
  13. package/docs/getting-started/CONFIGURATION.md +237 -0
  14. package/docs/getting-started/INSTALLATION.md +125 -0
  15. package/docs/getting-started/QUICKSTART.md +115 -0
  16. package/docs/guides/COORDINATION.md +162 -0
  17. package/docs/guides/DELIVER.md +115 -0
  18. package/docs/guides/DEPLOY_BATCHING.md +212 -0
  19. package/docs/guides/DROIDS_AND_SKILLS.md +202 -0
  20. package/docs/guides/LOCAL_MODELS.md +148 -0
  21. package/docs/guides/MCP_ROUTER.md +195 -0
  22. package/docs/guides/MEMORY.md +235 -0
  23. package/docs/guides/MULTI_MODEL.md +223 -0
  24. package/docs/guides/POLICIES.md +190 -0
  25. package/docs/guides/WORKTREE_WORKFLOW.md +185 -0
  26. package/docs/integrations/MCP_ROUTER.md +147 -0
  27. package/docs/integrations/RTK.md +102 -0
  28. package/docs/reference/API.md +485 -0
  29. package/docs/reference/CLI.md +719 -0
  30. package/docs/reference/CONFIGURATION.md +90 -193
  31. package/docs/reference/DATABASE_SCHEMA.md +110 -344
  32. package/docs/reference/FEATURES.md +176 -472
  33. package/docs/reference/PATTERNS.md +102 -0
  34. package/docs/reference/PLATFORMS.md +83 -0
  35. package/package.json +1 -1
  36. package/docs/AGENTS.md +0 -423
  37. package/docs/DOCUMENTATION_AUDIT_REPORT.md +0 -131
  38. package/docs/GETTING_STARTED.md +0 -288
  39. package/docs/PROJECT_ANALYSIS_REPORT.md +0 -510
  40. package/docs/architecture/COMPLETE_ARCHITECTURE.md +0 -748
  41. package/docs/architecture/EXPERT_STACK.md +0 -137
  42. package/docs/architecture/MULTI_MODEL.md +0 -224
  43. package/docs/architecture/PLATFORM_GATING.md +0 -68
  44. package/docs/architecture/SYSTEM_ANALYSIS.md +0 -334
  45. package/docs/architecture/UAP_COMPLIANCE.md +0 -217
  46. package/docs/architecture/UAP_PROTOCOL.md +0 -339
  47. package/docs/architecture/UAP_STRICT_DROIDS.md +0 -172
  48. package/docs/archive/BALLS_MODE_SELF_ANALYSIS.md +0 -260
  49. package/docs/archive/BENCHMARK_GAPS_AND_PLAN.md +0 -146
  50. package/docs/archive/FAILING_TASKS_SOLUTION_PLAN.md +0 -668
  51. package/docs/archive/JINJA2-SYSTEM-MESSAGE-FIX.md +0 -209
  52. package/docs/archive/MODEL_ROUTING_IMPLEMENTATION_SUMMARY.md +0 -281
  53. package/docs/archive/MODEL_ROUTING_OPTIMIZATION_PLAN.md +0 -320
  54. package/docs/archive/NPM-PUBLISH-V0.9.1.md +0 -240
  55. package/docs/archive/OPTIMIZATION_OPTIONS.md +0 -334
  56. package/docs/archive/PARALLELISM_GAPS_AND_OPTIONS.md +0 -422
  57. package/docs/archive/POLICY_GATE_IMPLEMENTATION.md +0 -245
  58. package/docs/archive/SETUP_IMPROVEMENTS.md +0 -213
  59. package/docs/archive/UAP_GENERIC_OPTIMIZATION_PLAN.md +0 -270
  60. package/docs/archive/UAP_OPTIMIZATION_PLAN.md +0 -701
  61. package/docs/archive/UAP_V103_PATTERN_DESIGN.md +0 -315
  62. package/docs/archive/UAP_V104_COMPLIANCE_DESIGN.md +0 -223
  63. package/docs/archive/changelog/2026-03-10_uap-100-compliance.md +0 -77
  64. package/docs/archive/changelog/2026-03-10_uap-full-system-verification.md +0 -109
  65. package/docs/archive/opencode-integration-guide.md +0 -740
  66. package/docs/archive/opencode-integration-quickref.md +0 -180
  67. package/docs/benchmarks/OVERNIGHT_RUNNER.md +0 -341
  68. package/docs/benchmarks/SPECULATIVE_DECODING_JOURNEY_2026-03.md +0 -221
  69. package/docs/benchmarks/VALIDATION_PLAN.md +0 -568
  70. package/docs/blog/SPECULATIVE_DECODING_PRODUCTION_PLAYBOOK.md +0 -139
  71. package/docs/blog/local-coding-agents.md +0 -266
  72. package/docs/blog/x-thread.md +0 -254
  73. package/docs/deployment/DEPLOYMENT.md +0 -895
  74. package/docs/deployment/DEPLOYMENT_STRATEGIES.md +0 -518
  75. package/docs/deployment/DEPLOY_BATCHER_ANALYSIS.md +0 -224
  76. package/docs/deployment/DEPLOY_BATCHING.md +0 -273
  77. package/docs/deployment/DEPLOY_BUCKETING_ANALYSIS.md +0 -420
  78. package/docs/deployment/QWEN35_LLAMA_CPP.md +0 -426
  79. package/docs/deployment/UAP_LLAMA_ANTHROPIC_PROXY_BOOTSTRAP.md +0 -279
  80. package/docs/getting-started/INTEGRATION.md +0 -628
  81. package/docs/getting-started/OVERVIEW.md +0 -324
  82. package/docs/getting-started/SETUP.md +0 -377
  83. package/docs/integrations/MCP_ROUTER_SETUP.md +0 -445
  84. package/docs/integrations/RTK_INTEGRATION.md +0 -468
  85. package/docs/operations/TROUBLESHOOTING.md +0 -660
  86. package/docs/pr/PR_SPECULATIVE_DOCS_TEMPLATE.md +0 -146
  87. package/docs/pr/UPSTREAM_PRS.md +0 -424
  88. package/docs/reference/API_REFERENCE.md +0 -903
  89. package/docs/reference/EXPERT_DROIDS.md +0 -219
  90. package/docs/reference/HARNESS-MATRIX.md +0 -318
  91. package/docs/reference/PATTERN_LIBRARY.md +0 -636
  92. package/docs/reference/UAP_CLI_REFERENCE.md +0 -620
  93. package/docs/research/BEHAVIORAL_PATTERNS.md +0 -228
  94. package/docs/research/DOMAIN_STRATEGIES.md +0 -316
  95. package/docs/research/MEMORY_SYSTEMS_COMPARISON.md +0 -812
  96. package/docs/research/PATTERN_ANALYSIS_2026-01-18.md +0 -436
  97. package/docs/research/PERFORMANCE_ANALYSIS_2026-01-18.md +0 -209
  98. package/docs/research/PERFORMANCE_TEST_PLAN.md +0 -383
  99. package/docs/research/TERMINAL_BENCH_LEARNINGS.md +0 -217
@@ -1,628 +0,0 @@
1
- # UAP Integration Guide
2
-
3
- **Version:** 1.0.2
4
- **Last Updated:** 2026-03-17
5
- **Status:** ✅ Production Ready
6
-
7
- ---
8
-
9
- ## Executive Summary
10
-
11
- This guide provides integration instructions for all supported platforms, including opencode (with oh-my-pi), ForgeCode, Claude Code, and VSCode.
12
-
13
- ---
14
-
15
- ## 1.1 opencode with UAP
16
-
17
- **opencode** is the recommended platform for UAP, providing:
18
-
19
- - Persistent sessions across restarts
20
- - Plugin architecture for Pattern RAG
21
- - Local LLM support (llama.cpp)
22
- - Built-in tooling (file operations, bash, search)
23
-
24
- ### 1.1.1 Setup
25
-
26
- ```bash
27
- # Install opencode
28
- npm install -g opencode
29
-
30
- # Configure local LLM (optional)
31
- cat > ~/.opencode/config.json << 'EOF'
32
- {
33
- "provider": {
34
- "llama.cpp": {
35
- "name": "llama-server (local)",
36
- "options": {
37
- "baseURL": "http://localhost:8080/v1",
38
- "apiKey": "sk-qwen35b"
39
- },
40
- "models": {
41
- "qwen35-a3b-iq4xs": {
42
- "name": "Qwen3.5 35B A3B (IQ4_XS)",
43
- "limit": {
44
- "context": 262144,
45
- "output": 16384
46
- }
47
- }
48
- }
49
- }
50
- },
51
- "model": "llama.cpp/qwen35-a3b-iq4xs"
52
- }
53
- EOF
54
-
55
- # Initialize UAP in your project
56
- cd your-project
57
- uap init
58
- ```
59
-
60
- ### 1.1.2 Plugin Configuration
61
-
62
- UAP plugins automatically load in opencode for:
63
-
64
- - **Pattern RAG** - Context-aware pattern injection (~12K tokens saved)
65
- - **Session hooks** - Pre-execution setup, memory preservation
66
- - **Agent coordination** - Multi-agent workflows without conflicts
67
-
68
- ### 1.1.3 Usage
69
-
70
- ```bash
71
- # Start opencode with UAP
72
- opencode
73
-
74
- # UAP features available:
75
- # - Pattern RAG auto-injection
76
- # - Memory persistence
77
- # - Worktree isolation
78
- # - Compliance enforcement
79
- ```
80
-
81
- ### 1.1.2 Oh-My-Pi Integration with UAP
82
-
83
- **oh-my-pi** is a powerful AI coding agent that now has **explicit UAP integration** with deep UI elements, session dashboards, and best-in-class UAP capabilities.
84
-
85
- #### 🎯 UAP-Enhanced Oh-My-Pi Features
86
-
87
- Unlike basic opencode integration, the UAP-enhanced oh-my-pi provides:
88
-
89
- | UAP Feature | Integration |
90
- | ---------------------- | ------------------------------------------------------------------------- |
91
- | **Session Dashboard** | `/uap-dashboard` - Real-time overview of tasks, agents, memory, worktrees |
92
- | **4-Layer Memory** | Auto-injection on session start, persistent across restarts |
93
- | **Worktree Isolation** | Enforced via hooks, automatic stale detection |
94
- | **Task DAG Tracking** | `uap task` commands with status, creation, updates |
95
- | **Agent Coordination** | Multi-agent heartbeats, overlap detection, conflict prevention |
96
- | **Pattern RAG** | Auto-indexed patterns from your work (~12K token savings) |
97
- | **Memory Compaction** | Smart cleanup preserving high-importance lessons |
98
- | **Policy Enforcement** | Pre-commit validation, worktree isolation checks |
99
- | **Telemetry** | Tool execution logging for analytics and optimization |
100
-
101
- #### Installation
102
-
103
- ```bash
104
- # Install oh-my-pi via Bun (recommended)
105
- bun install -g @oh-my-pi/pi-coding-agent
106
-
107
- # Install UAP integration for oh-my-pi
108
- cd your-project
109
- uap-omp install
110
-
111
- # Verify installation
112
- omp --version
113
- ```
114
-
115
- #### Quick Start
116
-
117
- ```bash
118
- # Start oh-my-pi with UAP context (hooks auto-inject)
119
- omp
120
-
121
- # View UAP dashboard
122
- uap-omp dashboard
123
-
124
- # Or use /uap-dashboard inside oh-my-pi
125
- /uap-dashboard
126
- ```
127
-
128
- #### UAP Dashboard UI
129
-
130
- The UAP dashboard provides a comprehensive view of your agent session:
131
-
132
- ```
133
- ╔══════════════════════════════════════════════════════════╗
134
- ║ UAP Dashboard for Oh-My-Pi ║
135
- ╠══════════════════════════════════════════════════════════╣
136
- ║ 🧠 Memory Status ║
137
- ║ Recent: 47 lessons stored ║
138
- ╠══════════════════════════════════════════════════════════╣
139
- ║ 📋 Task Status ║
140
- ║ Active tasks: 3 ║
141
- ║ Pending: ║
142
- ║ • Fix authentication bug ║
143
- ║ • Add unit tests for API ║
144
- ║ In Progress: ║
145
- ║ • Refactor payment module ║
146
- ╠══════════════════════════════════════════════════════════╣
147
- ║ 🌿 Worktrees ║
148
- ║ Active: 2 | Stale: 1 | Total: 3 ║
149
- ╠══════════════════════════════════════════════════════════╣
150
- ║ 🤖 Agents ║
151
- ║ Total: 4 | Running: 2 ║
152
- ╠══════════════════════════════════════════════════════════╣
153
- ║ 📚 Pattern Library ║
154
- ║ Patterns indexed: 156 ║
155
- ╠══════════════════════════════════════════════════════════╣
156
- ║ 📁 Current Context ║
157
- ║ Branch: feature/auth-fix ║
158
- ║ Uncommitted changes: 12 ║
159
- ╚══════════════════════════════════════════════════════════╝
160
- ```
161
-
162
- #### UAP CLI Commands for oh-my-pi
163
-
164
- | Command | Description |
165
- | --------------------------------- | ---------------------------------- |
166
- | `uap-omp dashboard` | Open UAP dashboard UI |
167
- | `uap memory status` | Check memory health and statistics |
168
- | `uap memory query <term>` | Search memory for relevant lessons |
169
- | `uap memory store <content>` | Manually store a lesson |
170
- | `uap task list` | List all tasks and their status |
171
- | `uap task create --title <title>` | Create a new task |
172
- | `uap worktree list` | Show active worktrees |
173
- | `uap worktree create <slug>` | Create isolated worktree |
174
- | `uap patterns query <term>` | Search pattern library |
175
- | `uap compact` | Compact and optimize memory |
176
-
177
- #### Memory Injection
178
-
179
- UAP automatically injects relevant memory context at session start:
180
-
181
- ```
182
- [UAP Memory Context]
183
- [Importance 9]
184
- Category: authentication
185
- Content: Always validate JWT tokens on every request, use bcrypt for password hashing
186
- ---
187
- [Importance 7]
188
- Category: testing
189
- Content: Write unit tests before implementing new features
190
- ---
191
-
192
- Use this context to inform your decisions.
193
- ```
194
-
195
- #### Worktree Enforcement
196
-
197
- UAP enforces worktree isolation automatically:
198
-
199
- ```
200
- [UAP-Enforce] You're about to modify files in the main branch (main).
201
-
202
- Per UAP compliance protocol, all changes should be made in isolated worktrees.
203
-
204
- Consider creating a worktree first:
205
- uap worktree create <slug>
206
- ```
207
-
208
- #### Hooks System
209
-
210
- UAP installs hooks that automatically:
211
-
212
- - **Pre-session**: Inject memory, check task readiness, detect stale worktrees
213
- - **Post-session**: Save lessons, update worktree status, cleanup
214
-
215
- Hooks are located at `~/.uap/omp/hooks/` and integrate with oh-my-pi's hook system.
216
-
217
- #### Feature Parity Comparison
218
-
219
- | Capability | Basic opencode + oh-my-pi | UAP-Enhanced oh-my-pi |
220
- | ------------------------ | ------------------------- | ------------------------------------ |
221
- | Core Tools | ✅ Full parity | ✅ Full parity |
222
- | Memory Persistence | ❌ None | ✅ 4-layer system |
223
- | Worktree Isolation | ⚠️ Manual | ✅ Auto-enforced |
224
- | Task Tracking | ⚠️ Manual | ✅ DAG with status |
225
- | Multi-agent Coordination | ❌ None | ✅ Heartbeats & overlap detection |
226
- | Pattern RAG | ⚠️ Manual | ✅ Auto-indexed (~12K token savings) |
227
- | Session Dashboard | ❌ None | ✅ Real-time UI |
228
- | Policy Enforcement | ❌ None | ✅ Pre-commit validation |
229
- | Telemetry | ❌ None | ✅ Tool execution logging |
230
-
231
- #### Advanced Configuration
232
-
233
- **Enable UAP features in oh-my-pi:**
234
-
235
- Add to `~/.omp/agent/config.yml`:
236
-
237
- ```yaml
238
- # Enable UAP memory injection
239
- uap:
240
- enabled: true
241
- memoryInjection: true
242
- patternRAG: true
243
- worktreeIsolation: true
244
-
245
- # Dashboard settings
246
- uapDashboard:
247
- autoOpen: false
248
- views: ['overview', 'tasks', 'agents', 'memory']
249
- ```
250
-
251
- **Custom hook behavior:**
252
-
253
- Edit `~/.uap/omp/hooks/pre/session-start.sh` to customize memory injection:
254
-
255
- ```bash
256
- #!/usr/bin/env bash
257
- # Custom pre-session hook
258
- export UAP_INJECT_LESSONS=5 # Only inject top 5 lessons
259
- export UAP_MIN_IMPORTANCE=6 # Only inject importance >= 6
260
- ```
261
-
262
- ---
263
-
264
- ## 1.2 ForgeCode Integration
265
-
266
- ### 1.2.1 Overview
267
-
268
- **ForgeCode** is the world's #1 coding agent (TermBench 2.0, 78.4% accuracy), providing:
269
-
270
- - ZSH-native invocation (type `:` to invoke)
271
- - Multi-agent modes (FORGE, MUSE, SAGE)
272
- - Model flexibility (mix models mid-session)
273
- - Context engine with RAG-powered memory
274
-
275
- ### 1.2.2 Setup
276
-
277
- ```bash
278
- # Install UAP in your project
279
- cd your-project
280
- uap init
281
-
282
- # Install hooks for ForgeCode integration
283
- uap hooks install forgecode
284
- ```
285
-
286
- This creates:
287
-
288
- - `.forge/hooks/session-start.sh` - Injects recent memory before `:` command
289
- - `.forge/forgecode.plugin.sh` - ZSH plugin with environment injection
290
- - `.forge/settings.local.json` - UAP integration configuration
291
- - Updates `~/.zshrc` to source the plugin automatically
292
-
293
- ### 2.3 Usage
294
-
295
- ```bash
296
- # In your ZSH session, type : to invoke ForgeCode
297
- cd ~/projects/my-app && :
298
- : fix login bug in auth middleware
299
- ```
300
-
301
- UAP will:
302
-
303
- 1. Load recent memory context from `agents/data/memory/short_term.db`
304
- 2. Check for stale worktrees and open loops
305
- 3. Inject as environment variables (`UAP_CONTEXT`, `UAP_OPEN_LOOPS`)
306
- 4. ForgeCode reads these for enhanced context-aware responses
307
- 5. On completion, saves lessons back to UAP memory
308
-
309
- ### 2.4 Verification
310
-
311
- ```bash
312
- # Check hook status for all platforms including forgecode
313
- uap hooks status -t forgecode
314
- ```
315
-
316
- ---
317
-
318
- ## 3. Claude Code Integration
319
-
320
- ### 3.1 Overview
321
-
322
- **Claude Code** is Anthropic's desktop app with full UAP support:
323
-
324
- - Full UAP integration
325
- - CLAUDE.md for context
326
- - Persistent memory across sessions
327
- - Built-in tooling
328
-
329
- ### 3.2 Setup
330
-
331
- ```bash
332
- # Install UAP in your project
333
- cd your-project
334
- uap init
335
-
336
- # CLAUDE.md automatically generated with:
337
- # - Project structure
338
- # - UAP commands
339
- # - Pattern references
340
- # - Memory system docs
341
- ```
342
-
343
- ### 3.3 Usage
344
-
345
- ```bash
346
- # Open project in Claude Code
347
- claude-code
348
-
349
- # UAP features available:
350
- # - CLAUDE.md context injection
351
- # - Pattern Router auto-selection
352
- # - Memory persistence
353
- # - Worktree isolation
354
- ```
355
-
356
- ---
357
-
358
- ## 4. VSCode Integration
359
-
360
- ### 4.1 Overview
361
-
362
- **VSCode** with Claude Code extension provides:
363
-
364
- - IDE integration
365
- - Full UAP support
366
- - File system access
367
- - Terminal integration
368
-
369
- ### 4.2 Setup
370
-
371
- ```bash
372
- # Install UAP in your project
373
- cd your-project
374
- uap init
375
-
376
- # Install VSCode extensions:
377
- # - Claude Code extension
378
- # - UAP syntax highlighting (optional)
379
- ```
380
-
381
- ### 4.3 Usage
382
-
383
- ```bash
384
- # Open project in VSCode
385
- code your-project
386
-
387
- # Use Claude Code extension:
388
- # - UAP features available
389
- # - File operations
390
- # - Terminal commands
391
- # - Memory queries
392
- ```
393
-
394
- ---
395
-
396
- ## 5. claude.ai Integration
397
-
398
- ### 5.1 Overview
399
-
400
- **claude.ai** is Anthropic's web version with limited UAP support:
401
-
402
- - Web-based interface
403
- - Limited tooling
404
- - No persistent memory
405
- - Reduced functionality
406
-
407
- ### 5.2 Setup
408
-
409
- ```bash
410
- # Initialize UAP (for reference)
411
- cd your-project
412
- uap init
413
-
414
- # Note: Web version has limited UAP support
415
- # Consider using Claude Code or opencode for full features
416
- ```
417
-
418
- ### 5.3 Limitations
419
-
420
- - ❌ No persistent memory
421
- - ❌ No worktree isolation
422
- - ❌ No hook enforcement
423
- - ⚠️ Limited tooling
424
- - ⚠️ No Pattern RAG
425
-
426
- ---
427
-
428
- ## 6. Integration Comparison
429
-
430
- Every platform listed above ships as a stateless code editor. UAP closes the gap. Here is what it adds and why:
431
-
432
- - **4-layer persistent memory** -- agents retain lessons across sessions instead of starting from zero
433
- - **Write gate** -- 5-criteria quality filter prevents memory pollution
434
- - **22 battle-tested patterns** -- Terminal-Bench 2.0 workflows eliminate 37% of common agent failures
435
- - **Pattern RAG** -- on-demand retrieval saves ~12K tokens per session
436
- - **Worktree isolation** -- parallel agents never corrupt each other's git state
437
- - **Multi-agent coordination** -- heartbeats, overlap detection, and conflict risk let multiple agents share a repo safely
438
- - **Deploy batching** -- squashed commits and serialized pushes prevent deploy storms
439
- - **Policy enforcement** -- audit-trailed rules ensure agents follow project standards
440
- - **Task DAG** -- dependency-aware tracking with cycle detection and JSONL sync
441
- - **MCP Router** -- 98% system prompt token reduction (from ~12K to ~200)
442
- - **RTK** -- 60-90% output token savings via Rust-based compression
443
- - **12-gate compliance** -- automated protocol verification catches drift before it ships
444
-
445
- > Full 15-harness matrix with per-harness integration details: **[HARNESS-MATRIX.md](../reference/HARNESS-MATRIX.md)**
446
-
447
- ### Baseline: What Platforms Provide Natively
448
-
449
- | Feature | opencode | ForgeCode | Claude Code | VSCode | Cursor | claude.ai |
450
- | ---------------------------- | :--------: | :-------: | :---------: | :-----: | :----------: | :-------: |
451
- | File system + terminal | Yes | Yes | Yes | Yes | Yes | -- |
452
- | Context file | -- | -- | CLAUDE.md | -- | .cursorrules | -- |
453
- | Native hooks | Plugin API | ZSH hooks | Yes | -- | hooks.json | -- |
454
- | MCP support | Config | -- | Native | Via ext | Native | -- |
455
- | Persistent sessions | Yes | ZSH env | Yes | Limited | Limited | -- |
456
- | Local LLM support | Native | Yes | -- | Via ext | Yes | -- |
457
- | **Persistent memory** | -- | -- | -- | -- | -- | -- |
458
- | **Pattern library** | -- | -- | -- | -- | -- | -- |
459
- | **Multi-agent coordination** | -- | -- | -- | -- | -- | -- |
460
- | **Policy enforcement** | -- | -- | -- | -- | -- | -- |
461
-
462
- The bottom four rows are empty across every column. No platform provides them. This is the gap UAP fills.
463
-
464
- ### With UAP: What Every Platform Gains
465
-
466
- | Capability | Why It Matters | opencode | ForgeCode | Claude Code | VSCode | Cursor | claude.ai |
467
- | ------------------------ | ------------------------------------- | :------: | :-------: | :---------: | :-----: | :-----: | :-------: |
468
- | 4-layer memory (L1-L4) | Agents remember across sessions | Yes | Yes | Yes | Yes | Yes | -- |
469
- | Write gate + tiering | Only high-value knowledge stored | Yes | Yes | Yes | Yes | Yes | -- |
470
- | 22 patterns + RAG | Proven workflows, ~12K token savings | Yes | Yes | Yes | Yes | Yes | -- |
471
- | Worktree isolation | Parallel agents, zero conflicts | Yes | Yes | Yes | Yes | Yes | -- |
472
- | Multi-agent coordination | Heartbeats, overlap detection, claims | Yes | Yes | Yes | Yes | Yes | -- |
473
- | Deploy batching | No push races, squashed commits | Yes | Yes | Yes | Yes | Yes | -- |
474
- | Policy engine | Audit-trailed rule enforcement | Yes | Yes | Yes | Yes | Yes | -- |
475
- | Task DAG | Dependency-aware work tracking | Yes | Yes | Yes | Yes | Yes | -- |
476
- | MCP Router | 98% system prompt token reduction | Yes | Yes | Yes | Yes | Yes | -- |
477
- | RTK compression | 60-90% output token savings | Yes | Yes | Yes | Yes | Yes | -- |
478
- | 12-gate compliance | Automated protocol verification | Yes | Yes | Yes | Yes | Yes | -- |
479
- | 20+ CLI commands | Full management + dashboard | Yes | Yes | Yes | Yes | Yes | -- |
480
- | **Recommended** | | Yes | Yes | Yes | Partial | Partial | -- |
481
-
482
- ### Integration Tiers
483
-
484
- | Tier | Harnesses | What You Get |
485
- | ---------------------- | -------------------------------------------- | ----------------------------------------------------------------------- |
486
- | **T1 -- First-Class** | Claude Code, Factory.AI, OpenCode, ForgeCode | Native hooks, dedicated config dir, `uap sync`, context file generation |
487
- | **T2 -- IDE-Based** | Cursor, VSCode, Cline | Platform-specific hooks, MCP config paths |
488
- | **T3 -- CLI/Terminal** | Windsurf, Codex CLI, Aider, Zed AI, Continue | Mapped to T1/T2 via CLAUDE.md or .cursorrules |
489
- | **T4 -- Additional** | GitHub Copilot, JetBrains AI, SWE-agent | Piggybacks on T2 infrastructure |
490
-
491
- All tiers receive identical UAP features. The difference is integration depth, not capability.
492
-
493
- ---
494
-
495
- ## 7. Platform-Specific Features
496
-
497
- ### 7.1 opencode
498
-
499
- **Unique Features:**
500
-
501
- - Plugin architecture
502
- - Persistent sessions
503
- - Local LLM optimization
504
- - Built-in tooling
505
-
506
- **Configuration:**
507
-
508
- ```json
509
- {
510
- "provider": {
511
- "llama.cpp": {
512
- "name": "llama-server (local)",
513
- "options": {
514
- "baseURL": "http://localhost:8080/v1"
515
- }
516
- }
517
- }
518
- }
519
- ```
520
-
521
- ### 7.2 ForgeCode
522
-
523
- **Unique Features:**
524
-
525
- - ZSH-native (`:` command)
526
- - Multi-agent modes
527
- - Environment variable injection
528
- - Oh My Zsh integration
529
-
530
- **Configuration:**
531
-
532
- ```json
533
- {
534
- "forge": {
535
- "enabled": true,
536
- "uamIntegration": true,
537
- "memoryInjection": true
538
- }
539
- }
540
- ```
541
-
542
- ### 7.3 Claude Code
543
-
544
- **Unique Features:**
545
-
546
- - Desktop app
547
- - CLAUDE.md context
548
- - Full tooling
549
- - Persistent sessions
550
-
551
- **Configuration:**
552
-
553
- ```json
554
- {
555
- "claudeCode": {
556
- "enabled": true,
557
- "claudeMd": true,
558
- "fullUAP": true
559
- }
560
- }
561
- ```
562
-
563
- ---
564
-
565
- ## 8. Quick Start Examples
566
-
567
- ### 8.1 opencode (Recommended)
568
-
569
- ```bash
570
- # Install and configure
571
- npm install -g opencode
572
- uap init
573
- opencode
574
-
575
- # UAP features available immediately
576
- ```
577
-
578
- ### 8.2 ForgeCode
579
-
580
- ```bash
581
- # Install and configure
582
- uap init
583
- uap hooks install forgecode
584
-
585
- # Use in ZSH
586
- cd project && :
587
- : fix bug
588
- ```
589
-
590
- ### 8.3 Claude Code
591
-
592
- ```bash
593
- # Install and configure
594
- uap init
595
-
596
- # Open in Claude Code
597
- claude-code
598
- ```
599
-
600
- ---
601
-
602
- ## 9. Troubleshooting
603
-
604
- ### 9.1 Common Issues
605
-
606
- **Issue:** "Memory not persisting"
607
- **Solution:** Check `agents/data/memory/short_term.db` exists
608
-
609
- **Issue:** "Pattern RAG not working"
610
- **Solution:** Run `python agents/scripts/index_patterns_to_qdrant.py`
611
-
612
- **Issue:** "ForgeCode : command not found"
613
- **Solution:** Restart ZSH or source `~/.zshrc`
614
-
615
- **Issue:** "opencode plugin not loading"
616
- **Solution:** Check `opencode.json` configuration
617
-
618
- ### 9.2 Getting Help
619
-
620
- - Documentation: `docs/` directory
621
- - Issues: GitHub repository issues
622
- - Community: Join UAP Discord
623
-
624
- ---
625
-
626
- **Last Updated:** 2026-03-17
627
- **Version:** 1.0.2
628
- **Status:** ✅ Production Ready