@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,324 +0,0 @@
1
- # UAP - Universal Agent Protocol
2
-
3
- > **Version:** 1.18.0
4
- > **Last Updated:** 2026-03-28
5
- > **License: A persistent memory system for autonomous AI agents
6
-
7
- UAP (Universal Agent Protocol) provides a standardized framework for AI agents to maintain persistent context, learn from past interactions, and apply proven patterns across tasks.
8
-
9
- ## What is UAP?
10
-
11
- UAP is an open protocol that enables AI agents to:
12
-
13
- 1. **Remember Context**: Store and retrieve relevant information across sessions
14
- 2. **Apply Patterns**: Leverage battle-tested workflows and decision frameworks
15
- 3. **Maintain State**: Track progress, failures, and successes over time
16
-
17
- ---
18
-
19
- ## Core Components
20
-
21
- ### 1. Memory System (4-Layer Architecture)
22
-
23
- | Layer | Type | Purpose | Speed |
24
- | ----- | --------------------------- | ----------------------------------- | -----
25
- | L1 | SQLite (`memories`) | Working context, recent decisions | <1ms |
26
- | L2 | SQLite (`session_memories`) | Current task session state | <5ms |
27
- | L3 | Qdrant (vector DB) | Semantic search across all memories | ~50ms |
28
- | L4 | SQLite (entities/rels) | Knowledge graph of relationships | <20ms |
29
-
30
- ### 2. CLAUDE.md Protocol
31
-
32
- Every UAP-enabled project includes a `CLAUDE.md` file that defines:
33
- - **Directive Hierarchy**: Which rules take precedence
34
- - **Decision Loop**: Standard workflow for any task
35
- - **Patterns**: 58+ battle-tested patterns for common scenarios
36
- - **Skills**: Domain-specific expertise (chess, compression, debugging)
37
- - **Completion Gates**: Mandatory checks before declaring success
38
-
39
- ### 3. CLI Tools
40
-
41
- ```bash
42
- # Initialize UAP in a project
43
- uap init
44
-
45
- # Create a tracked task with memory
46
- uap task create --title "Fix login bug" --type bug
47
-
48
- # Query semantic memory
49
- uap memory query "authentication errors"
50
-
51
- # Manage worktrees for parallel development
52
- uap worktree create fix-auth-issue
53
- ```
54
-
55
- ### 4. Worktree Workflow
56
-
57
- UAP enforces a **worktree-only** workflow to prevent accidental changes to main branches:
58
- # Create worktree for any change (even single file)
59
- uap worktree create bugfix-description
60
-
61
- # Make changes, commit, create PR
62
- cd .worktrees/NNN-bash: git add -A && git commit -m "type: description"
63
- uap worktree pr 123
64
-
65
- # After merge, cleanup is mandatory
66
- uap worktree cleanup 123
67
- ```
68
-
69
- ---
70
-
71
- ## How It Works
72
-
73
- ### Task Execution Flow
74
-
75
- ```
76
- 1. CLASSIFY → Is this complex? Does it need memory?
77
- 2. PROTECT → Backup critical files (configs, DBs)
78
- 3. MEMORY → Query relevant context + past failures
79
- 4. SKILLS → Load domain-specific patterns if needed
80
- 5. WORK → Implement using worktree
81
- 6. REVIEW → Self-review diff before testing
82
- 7. TEST → Run verifier/tests minimum 3 times
83
- 8. LEARN → Store outcome in memory for future tasks
84
- ```
85
-
86
- ### Memory Retrieval
87
-
88
- When starting a task, UAP automatically:
89
-
90
- 1. **Classifies** the task type (coding, debugging, research, etc.)
91
- 2. **Queries** L1/L2 memory for recent relevant decisions
92
- 3. **Searches** L3 semantic memory for similar past tasks
93
- 4. **Loads** L4 knowledge graph for entity relationships
94
- 5. **Applies** patterns based on classification confidence
95
-
96
- ### Pattern Router
97
-
98
- UAP includes 58+ patterns for common scenarios:
99
-
100
- | Pattern ID | Trigger | Action |
101
- | ---------- | ----------------------- | ----------------------------------- |
102
- | P3 | Modifies config/DB | `cp file file.bak` first |
103
- | P12 | Creates files | `ls -la` verify all outputs exist |
104
- | P13 | Tests partial pass | Fix specific failure, re-run |
105
- | P26 | Same error twice | Change approach completely |
106
- | P32 | CLI tool | Test `./script` not `python script` |
107
- | P37 | Output format specified | Diff output schema vs expectations |
108
-
109
- ### Prerequisites
110
-
111
- - Node.js >= 18.0.0
112
- - npm or yarn
113
- - Optional: Docker (for Qdrant semantic search)
114
-
115
- ### Quick Start
116
-
117
- ```bash
118
- # Install globally
119
- npm install -g universal-agent-protocol
120
-
121
- # Initialize in your project
122
- uap init
123
-
124
- # Run the interactive setup
125
- npx universal-agent-protocol init --interactive
126
- ```
127
-
128
- ### With Qdrant (Recommended for Full Features)
129
-
130
- ```bash
131
- cd agents && docker-compose up -d
132
- ```
133
-
134
- ---
135
-
136
- ## Configuration
137
-
138
- ### `.uap.json` - Project Settings
139
-
140
- ```json
141
- {
142
- "project": {
143
- "name": "my-project",
144
- "description": "Project with UAP memory"
145
- },
146
- "memory": {
147
- "shortTerm": {
148
- "enabled": true,
149
- "path": "./agents/data/memory/short_term.db"
150
- },
151
- "longTerm": {
152
- "enabled": true,
153
- "provider": "qdrant",
154
- "endpoint": "localhost:6333"
155
- }
156
- },
157
- "worktrees": {
158
- "enabled": true,
159
- "directory": ".worktrees"
160
- }
161
- }
162
- ```
163
-
164
- ---
165
-
166
- ## Best Practices
167
-
168
- ### DO ✅
169
-
170
- - Use `uap task create` for all work items
171
- - Always use worktrees (never commit to main directly)
172
- - Run verifier/tests minimum 3 times before declaring done
173
- - Store outcomes in memory after completing tasks
174
- - Load relevant skills for domain-specific tasks
175
-
176
- ### DON'T ❌
177
-
178
- - Commit directly to main/develop branches
179
- - Skip backup steps when modifying critical files
180
- - Declare success without running tests multiple times
181
- - Ignore pattern recommendations (they prevent bugs)
182
- - Leave merged worktrees uncleand
183
-
184
- ---
185
-
186
- ## Protocol Compliance
187
-
188
- UAP enforces **completion gates** before any task is considered done:
189
-
190
- ```
191
- [x] If decoder provided: round-trip passes (BLOCKING)
192
- [x] Outputs verified: ls -la shows all files exist
193
- [x] Schema diffed against test expectations
194
- [x] Tests: X/Y pass (must be 100%, run 3+ times)
195
- [x] CLI tools tested as ./script not python script
196
- [x] If recovery: artifacts copied before read operation
197
- ```
198
-
199
- Run compliance check:
200
-
201
- ```bash
202
- npm run verify-uap
203
- # or
204
- uap compliance check
205
- ```
206
-
207
- ---
208
-
209
- ## Integration Points
210
-
211
- ### Claude Code
212
-
213
- UAP integrates with Anthropic's Claude Code via session hooks:
214
-
215
- ```bash
216
- uap hooks install
217
- ```
218
-
219
- This adds automatic memory queries at task start and outcome storage on completion.
220
-
221
- ### Factory.AI
222
-
223
- UAP provides skills for Factory.AI droids:
224
-
225
- - `@Skill:chess-engine.md` - Chess pattern matching
226
- - `@Skill:compression.md` - Information-theoretic limits
227
- - `@Skill:adversarial.md` - Security vulnerability analysis
228
- - `@Skill:git-forensics.md` - Repository recovery
229
-
230
- ### Multi-Agent Coordination
231
-
232
- UAP detects overlapping work between agents via:
233
-
234
- ```bash
235
- uap coordination check --agents agent1,agent2,agent3
236
- ```
237
-
238
- This prevents duplicate effort and identifies collaboration opportunities.
239
-
240
- ---
241
-
242
- ## API Reference
243
-
244
- ### Memory Operations
245
-
246
- ```typescript
247
- // Store a memory
248
- await uap.memory.store('Always validate CSRF tokens in auth flows');
249
-
250
- // Query memories
251
- const results = await uap.memory.query('authentication security', {
252
- topK: 5,
253
- scoreThreshold: 0.35,
254
- });
255
-
256
- // Clear session memory
257
- await uap.memory.clearSession();
258
- ```
259
-
260
- ### Task Management
261
-
262
- ```typescript
263
- // Create a task
264
- const task = await uap.task.create({
265
- title: 'Implement rate limiting',
266
- type: 'feature',
267
- priority: 'high',
268
- });
269
-
270
- // Update task status
271
- await uap.task.update(task.id, { status: 'in_progress' }); enrichedTask = await uap.task.get(task.id, { includeMemory: true });
272
- gleshooting
273
-
274
- ### Common Issues
275
-
276
- | Error | Solution |
277
- | -------------------------- | ------------------------------------------------- |
278
- | `ModuleNotFoundError` | Run `npm install` after cloning |
279
- | `Qdrant connection failed` | Start Docker: `cd agents && docker-compose up -d` |
280
- | `Worktree already exists` | Use `uap worktree cleanup <id>` first |
281
- | `Memory DB locked` | Close other processes using the DB |
282
- | `Compliance check failed` | Review specific gate failure in output |
283
- # Enable verbose logging
284
- export UAP_VERBOSE=true
285
-
286
- # Check memory queries
287
- uap task ready --verbose
288
-
289
- # Inspect database directly
290
- sqlite3 ./agents/data/memory/short_term.db ".tables"
291
- ```
292
-
293
- ---
294
-
295
- ## Contributing
296
-
297
- UAP is open source. Contributions welcome:
298
-
299
- 1. Fork the repository
300
- 2. Create a worktree: `uap worktree create feature-name`
301
- 3. Make changes and run tests: `npm test`
302
- 4. Submit PR via `uap worktree pr <id>`
303
-
304
- ### Development Setup
305
-
306
- ```bash
307
- git clone https://github.com/DammianMiller/universal-agent-protocol.git
308
- cd universal-agent-protocol
309
- npm install
310
- npm run build
311
- npm test
312
- ```
313
-
314
- ---
315
-
316
- ## License
317
-
318
- MIT License - See [LICENSE](../LICENSE) file
319
-
320
- **Maintained By**: UAP Team
321
- **Repository**: https://github.com/DammianMiller/universal-agent-protocol
322
- **Issues**: DammianMiller/universal-agent-protocol/issues
323
-
324
- </div>
@@ -1,377 +0,0 @@
1
- # UAP Setup Guide
2
-
3
- > **Version:** 1.18.0
4
- > **Last Updated:** 2026-03-28
5
- > **Status:** ✅ Production Ready
6
-
7
- ---
8
-
9
- ## Quick Start
10
-
11
- ```bash
12
- # Install UAP CLI
13
- npm install -g universal-agent-protocol
14
-
15
- # Run comprehensive setup
16
- npm run setup
17
-
18
- # Initialize in your project
19
- uap init
20
- ```
21
-
22
- ## Dependencies
23
-
24
- ### Required
25
-
26
- - **Node.js >= 18.0.0** - Runtime environment
27
- - **git** - Version control (required for git hooks)
28
- - **npx** - Runs CLI tools (included with npm)
29
-
30
- ### Optional but Recommended
31
-
32
- - **Docker** - Enables local Qdrant for semantic search
33
- - **Python 3** - Enables Pattern RAG indexing
34
- - **pre-commit** - Provides advanced git hooks
35
-
36
- ## Installation by Platform
37
-
38
- ### macOS
39
-
40
- ```bash
41
- # Install all dependencies
42
- brew install node@18 git python docker
43
-
44
- # Install UAP
45
- npm install -g universal-agent-protocol
46
-
47
- # Run setup
48
- npm run setup
49
- ```
50
-
51
- ### Ubuntu/Debian
52
-
53
- ```bash
54
- # Install Node.js 20.x
55
- curl -fsSL https://deb.nodesource.com/setup_20.x | sudo -E bash -
56
- git python3 docker.io
57
-
58
- # Install UAP
59
- npm install -g universal-agent-protocol
60
-
61
- # Run setup
62
- npm run setup
63
- ```
64
-
65
- ### Windows
66
-
67
- ```powershell
68
- # Install all dependencies using winget
69
- winget install OpenJS.NodeJS.LTS
70
- winget install Git.Git
71
- winget install Python.Python.3.12
72
- winget install Docker.DockerDesktop
73
-
74
- # Install UAP
75
- npm install -g universal-agent-protocol
76
-
77
- # Run setup
78
- npm run setup
79
- ```
80
-
81
- ## Git Hooks
82
-
83
- The setup script automatically configures the following git hooks:
84
-
85
- ### Pre-commit Hook
86
-
87
- - Checks for secrets in committed files
88
- - Runs linter with zero warnings allowed
89
- - Prevents accidental commits of sensitive data
90
-
91
- ### Commit-msg Hook
92
-
93
- - Validates conventional commits format
94
- - Suggests proper format if invalid
95
- - Allows override with confirmation
96
-
97
- ### Pre-push Hook
98
-
99
- - Runs all tests before pushing
100
- - Prevents pushing broken code
101
-
102
- ## Environment Setup
103
-
104
- ### Required Environment Variables
105
-
106
- None required for basic functionality.
107
-
108
- ### Optional Environment Variables
109
-
110
- ```bash
111
- # GitHub token for GitHub memory backend
112
- export GITHUB_TOKEN=your_token_here
113
-
114
- # Qdrant Cloud credentials for semantic search
115
- export QDRANT_API_KEY=your_key_here
116
- export QDRANT_URL=your_url_here
117
-
118
- # Local Qdrant (if running Docker)
119
- export QDRANT_URL=http://localhost:6333
120
- ```
121
-
122
- ## Verification
123
-
124
- After setup, verify everything is working:
125
-
126
- ```bash
127
- # Check UAP CLI
128
- uap --version
129
-
130
- # Check memory status
131
- uap memory status
132
-
133
- # Run tests
134
- npm test
135
-
136
- # Check git hooks
137
- ls -la .git/hooks/
138
- ```
139
-
140
- ## Troubleshooting
141
-
142
- ### Git hooks not running
143
-
144
- ```bash
145
- # Make hooks executable
146
- chmod +x .git/hooks/*
147
-
148
- # Verify hooks are active
149
- ls -la .git/hooks/ | grep -v sample
150
- ```
151
-
152
- ### TypeScript build fails
153
-
154
- ```bash
155
- # Clear cache and rebuild
156
- rm -rf dist node_modules/.cache
157
- npm run build
158
- ```
159
-
160
- ### npm install fails
161
-
162
- ```bash
163
- # Clear npm cache
164
- npm cache clean --force
165
-
166
- # Reinstall
167
- rm -rf node_modules package-lock.json
168
- npm install
169
- ```
170
-
171
- ### Docker not available
172
-
173
- No problem! UAP will use cloud backends. You can add Docker later:
174
- # Install Docker
175
- curl -fsSL https://get.docker.com | sh
176
-
177
- # Start Qdrant
178
- uap memory start
179
- ```
180
-
181
- ## Next Steps
182
-
183
- 1. **Review the generated CLAUDE.md** - Customize as needed
184
- 2. **Set up cloud backends** - Add your API keys
185
- 3. **Start working** - Your AI assistant will follow the workflows automatically
186
-
187
- ## Uninstallation
188
-
189
- ```bash
190
- # Remove global package
191
- npm uninstall -g universal-agent-protocol
192
-
193
- # Remove from your project
194
- rm -rf .uap.json CLAUDE.md agents/ .worktrees/
195
-
196
- **Documentation**: [GitHub README](https://github.com/DammianMiller/universal-agent-protocol)
197
-
198
- **Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
199
-
200
- **Last Updated:** 2026-03-28
201
- > **Status:** ✅ Production Ready
202
-
203
- ---
204
-
205
- ## Quick Setup
206
-
207
- ```bash
208
- # Install UAP CLI
209
- npm install -g universal-agent-protocol
210
-
211
- # Run comprehensive setup
212
- npm run setup
213
-
214
- # Initialize in your project
215
- uap init
216
- ```
217
-
218
- ## Dependencies
219
-
220
- ### Required
221
-
222
- - **Node.js >= 18.0.0** - Runtime environment
223
- - **npm, yarn)
224
- - **npm** - Package manager
225
- - **git** - Version control (required for git hooks)
226
- - **npx** - Runs CLI tools (included with npm)
227
-
228
- ### Optional but Recommended
229
-
230
- - **Docker** - Enables local Qdrant for semantic search
231
- - **Python 3** - Enables Pattern RAG indexing
232
- - **pre-commit** - Provides advanced git hooks
233
-
234
- ## Installation by Platform
235
-
236
- ### macOS
237
-
238
- ```bash
239
- # Install all dependencies
240
- brew install node@18 git python docker
241
-
242
- # Install UAP
243
- npm install -g universal-agent-protocol
244
-
245
- # Run setup
246
- npm run setup
247
- ```
248
-
249
- ### Pre-commit Hook
250
- # Check for secrets in committed files
251
- # Runs linter with zero warnings allowed
252
- # Prevents accidental commits of sensitive data
253
-
254
- ### Commit-msg Hook
255
-
256
- - Validates conventional commits format
257
- - Suggests proper format if invalid
258
- - Allows override with confirmation
259
-
260
- ### Pre-push Hook
261
-
262
- - Runs all tests before pushing
263
- - Prevents pushing broken code
264
-
265
- ## Environment Setup
266
-
267
- ### Required Environment Variables
268
-
269
- None required for basic functionality.
270
-
271
- ### Optional Environment Variables
272
-
273
- ```bash
274
- # GitHub token for GitHub memory backend
275
- export GITHUB_TOKEN=your_token_here
276
-
277
- # Qdrant Cloud credentials for semantic search
278
- export QDRANT_API_KEY=your_key_here
279
- export QDRANT_URL=your_url_here
280
-
281
- # Local Qdrant (if running Docker)
282
- export QDRANT_URL=http://localhost:6333
283
- ```
284
-
285
- ## Verification
286
-
287
- After setup, verify everything is working:
288
-
289
- ```bash
290
- # Check UAP CLI
291
- uap --version
292
-
293
- # Check memory status
294
- uap memory status
295
-
296
- # Run tests
297
- npm test
298
-
299
- # Check git hooks
300
- ls -la .git/hooks/
301
- ```
302
-
303
- ## Troubleshooting
304
-
305
- ### Git hooks not running
306
-
307
- ```bash
308
- # Make hooks executable
309
- chmod +x .git/hooks/*
310
-
311
- # Verify hooks are active
312
- ls -la .git/hooks/ | grep -v sample
313
- ```
314
-
315
- ### TypeScript build fails
316
-
317
- ```bash
318
- # Clear cache and rebuild
319
- rm -rf dist node_modules/.cache
320
- npm run build
321
- ```
322
-
323
- ### npm install fails
324
-
325
- ```bash
326
- # Clear npm cache
327
- npm cache clean --force
328
-
329
- # Reinstall
330
- rm -rf node_modules package-lock.json
331
- npm install
332
- ```
333
-
334
- ### Docker not available
335
-
336
- No problem! UAP will use cloud backends. You can add Docker later:
337
-
338
- # Install Docker
339
- curl -fsSL https://get.docker.com | sh
340
-
341
- # Start Qdrant
342
- uap memory start
343
- ```
344
-
345
- ## Next Steps
346
-
347
- 1. **Review the generated CLAUDE.md** - Customize as needed
348
- 2. **Set up cloud backends** - Add your API keys
349
- 3. **Start working** - Your AI assistant will follow the workflows automatically
350
-
351
- ## Uninstallation
352
-
353
- ```bash
354
- # Remove global package
355
- npm uninstall -g universal-agent-protocol
356
-
357
- # Remove from your project
358
- rm -rf .uap.json CLAUDE.md agents/ .worktrees/
359
- ```
360
-
361
- **Documentation**: [GitHub README](https://github.com/DammianMiller/universal-agent-protocol)
362
-
363
- **Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
364
-
365
- ## Support
366
-
367
- - **Documentation**: [GitHub README](https://github.com/DammianMiller/universal-agent-protocol)
368
- - **Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
369
-
370
- **Documentation**: [GitHub README](https://github.com/DammianMiller/universal-agent-protocol)
371
-
372
- - **Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues
373
-
374
- ## Support
375
-
376
- - **Documentation**: [GitHub README](https://github.com/DammianMiller/universal-agent-protocol)
377
- - **Issues:** https://github.com/DammianMiller/universal-agent-protocol/issues