@miller-tech/uap 1.40.0 → 1.41.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/README.md +109 -642
- package/dist/.tsbuildinfo +1 -1
- package/dist/cli/deliver-defaults.d.ts +23 -0
- package/dist/cli/deliver-defaults.d.ts.map +1 -0
- package/dist/cli/deliver-defaults.js +121 -0
- package/dist/cli/deliver-defaults.js.map +1 -0
- package/dist/cli/init.d.ts.map +1 -1
- package/dist/cli/init.js +29 -0
- package/dist/cli/init.js.map +1 -1
- package/dist/cli/setup.d.ts.map +1 -1
- package/dist/cli/setup.js +19 -0
- package/dist/cli/setup.js.map +1 -1
- package/dist/policies/policy-tools.d.ts +7 -0
- package/dist/policies/policy-tools.d.ts.map +1 -1
- package/dist/policies/policy-tools.js +24 -2
- package/dist/policies/policy-tools.js.map +1 -1
- package/docs/INDEX.md +48 -286
- package/docs/architecture/OVERVIEW.md +328 -0
- package/docs/architecture/PROTOCOL.md +204 -0
- package/docs/benchmarks/README.md +17 -192
- package/docs/getting-started/CONFIGURATION.md +237 -0
- package/docs/getting-started/INSTALLATION.md +125 -0
- package/docs/getting-started/QUICKSTART.md +115 -0
- package/docs/guides/COORDINATION.md +162 -0
- package/docs/guides/DELIVER.md +115 -0
- package/docs/guides/DEPLOY_BATCHING.md +212 -0
- package/docs/guides/DROIDS_AND_SKILLS.md +202 -0
- package/docs/guides/LOCAL_MODELS.md +148 -0
- package/docs/guides/MCP_ROUTER.md +195 -0
- package/docs/guides/MEMORY.md +235 -0
- package/docs/guides/MULTI_MODEL.md +223 -0
- package/docs/guides/POLICIES.md +190 -0
- package/docs/guides/WORKTREE_WORKFLOW.md +185 -0
- package/docs/integrations/MCP_ROUTER.md +147 -0
- package/docs/integrations/RTK.md +102 -0
- package/docs/reference/API.md +485 -0
- package/docs/reference/CLI.md +719 -0
- package/docs/reference/CONFIGURATION.md +90 -193
- package/docs/reference/DATABASE_SCHEMA.md +110 -344
- package/docs/reference/FEATURES.md +176 -472
- package/docs/reference/PATTERNS.md +102 -0
- package/docs/reference/PLATFORMS.md +83 -0
- package/package.json +3 -1
- package/src/policies/enforcers/7ebbc721-7540-4e9f-879a-770e0213a09b_architecture_review.py +101 -0
- package/src/policies/enforcers/__pycache__/_common.cpython-312.pyc +0 -0
- package/src/policies/enforcers/_common.py +100 -0
- package/src/policies/enforcers/artifact_hygiene.py +52 -0
- package/src/policies/enforcers/cluster_routing.py +63 -0
- package/src/policies/enforcers/codebase_read_before_plan.py +52 -0
- package/src/policies/enforcers/coord_overlap.py +81 -0
- package/src/policies/enforcers/delivery_enforcement.py +97 -0
- package/src/policies/enforcers/doc_live_over_report.py +50 -0
- package/src/policies/enforcers/expert_review_required.py +135 -0
- package/src/policies/enforcers/iac_parity.py +53 -0
- package/src/policies/enforcers/mcp_router_first.py +37 -0
- package/src/policies/enforcers/memory_before_plan.py +61 -0
- package/src/policies/enforcers/parallel_reads.py +50 -0
- package/src/policies/enforcers/rtk_wrap.py +44 -0
- package/src/policies/enforcers/schema_diff_gate.py +80 -0
- package/src/policies/enforcers/session_memory_write.py +52 -0
- package/src/policies/enforcers/task_required.py +131 -0
- package/src/policies/enforcers/test_gate.py +58 -0
- package/src/policies/enforcers/validate_plan_before_build.py +75 -0
- package/src/policies/enforcers/worktree_required.py +57 -0
- package/src/policies/schemas/policies/architecture-review.md +51 -0
- package/src/policies/schemas/policies/artifact-hygiene.md +29 -0
- package/src/policies/schemas/policies/cluster-routing.md +31 -0
- package/src/policies/schemas/policies/codebase-read-before-plan.md +30 -0
- package/src/policies/schemas/policies/coord-overlap.md +24 -0
- package/src/policies/schemas/policies/delivery-enforcement.md +45 -0
- package/src/policies/schemas/policies/doc-live-over-report.md +32 -0
- package/src/policies/schemas/policies/expert-review-required.md +60 -0
- package/src/policies/schemas/policies/iac-parity.md +31 -0
- package/src/policies/schemas/policies/mandatory-testing-deployment.md +147 -0
- package/src/policies/schemas/policies/mcp-router-first.md +24 -0
- package/src/policies/schemas/policies/memory-before-plan.md +24 -0
- package/src/policies/schemas/policies/merge-deploy-monitor-verify.md +145 -0
- package/src/policies/schemas/policies/parallel-reads.md +24 -0
- package/src/policies/schemas/policies/rtk-wrap.md +26 -0
- package/src/policies/schemas/policies/schema-diff-gate.md +30 -0
- package/src/policies/schemas/policies/session-memory-write.md +24 -0
- package/src/policies/schemas/policies/task-required.md +49 -0
- package/src/policies/schemas/policies/test-gate.md +24 -0
- package/src/policies/schemas/policies/validate-plan-before-build.md +28 -0
- package/src/policies/schemas/policies/worktree-required.md +28 -0
- package/templates/hooks/uap-policy-gate.sh +5 -0
- package/docs/AGENTS.md +0 -423
- package/docs/DOCUMENTATION_AUDIT_REPORT.md +0 -131
- package/docs/GETTING_STARTED.md +0 -288
- package/docs/PROJECT_ANALYSIS_REPORT.md +0 -510
- package/docs/architecture/COMPLETE_ARCHITECTURE.md +0 -748
- package/docs/architecture/EXPERT_STACK.md +0 -137
- package/docs/architecture/MULTI_MODEL.md +0 -224
- package/docs/architecture/PLATFORM_GATING.md +0 -68
- package/docs/architecture/SYSTEM_ANALYSIS.md +0 -334
- package/docs/architecture/UAP_COMPLIANCE.md +0 -217
- package/docs/architecture/UAP_PROTOCOL.md +0 -339
- package/docs/architecture/UAP_STRICT_DROIDS.md +0 -172
- package/docs/archive/BALLS_MODE_SELF_ANALYSIS.md +0 -260
- package/docs/archive/BENCHMARK_GAPS_AND_PLAN.md +0 -146
- package/docs/archive/FAILING_TASKS_SOLUTION_PLAN.md +0 -668
- package/docs/archive/JINJA2-SYSTEM-MESSAGE-FIX.md +0 -209
- package/docs/archive/MODEL_ROUTING_IMPLEMENTATION_SUMMARY.md +0 -281
- package/docs/archive/MODEL_ROUTING_OPTIMIZATION_PLAN.md +0 -320
- package/docs/archive/NPM-PUBLISH-V0.9.1.md +0 -240
- package/docs/archive/OPTIMIZATION_OPTIONS.md +0 -334
- package/docs/archive/PARALLELISM_GAPS_AND_OPTIONS.md +0 -422
- package/docs/archive/POLICY_GATE_IMPLEMENTATION.md +0 -245
- package/docs/archive/SETUP_IMPROVEMENTS.md +0 -213
- package/docs/archive/UAP_GENERIC_OPTIMIZATION_PLAN.md +0 -270
- package/docs/archive/UAP_OPTIMIZATION_PLAN.md +0 -701
- package/docs/archive/UAP_V103_PATTERN_DESIGN.md +0 -315
- package/docs/archive/UAP_V104_COMPLIANCE_DESIGN.md +0 -223
- package/docs/archive/changelog/2026-03-10_uap-100-compliance.md +0 -77
- package/docs/archive/changelog/2026-03-10_uap-full-system-verification.md +0 -109
- package/docs/archive/opencode-integration-guide.md +0 -740
- package/docs/archive/opencode-integration-quickref.md +0 -180
- package/docs/benchmarks/OVERNIGHT_RUNNER.md +0 -341
- package/docs/benchmarks/SPECULATIVE_DECODING_JOURNEY_2026-03.md +0 -221
- package/docs/benchmarks/VALIDATION_PLAN.md +0 -568
- package/docs/blog/SPECULATIVE_DECODING_PRODUCTION_PLAYBOOK.md +0 -139
- package/docs/blog/local-coding-agents.md +0 -266
- package/docs/blog/x-thread.md +0 -254
- package/docs/deployment/DEPLOYMENT.md +0 -895
- package/docs/deployment/DEPLOYMENT_STRATEGIES.md +0 -518
- package/docs/deployment/DEPLOY_BATCHER_ANALYSIS.md +0 -224
- package/docs/deployment/DEPLOY_BATCHING.md +0 -273
- package/docs/deployment/DEPLOY_BUCKETING_ANALYSIS.md +0 -420
- package/docs/deployment/QWEN35_LLAMA_CPP.md +0 -426
- package/docs/deployment/UAP_LLAMA_ANTHROPIC_PROXY_BOOTSTRAP.md +0 -279
- package/docs/getting-started/INTEGRATION.md +0 -628
- package/docs/getting-started/OVERVIEW.md +0 -324
- package/docs/getting-started/SETUP.md +0 -377
- package/docs/integrations/MCP_ROUTER_SETUP.md +0 -445
- package/docs/integrations/RTK_INTEGRATION.md +0 -468
- package/docs/operations/TROUBLESHOOTING.md +0 -660
- package/docs/pr/PR_SPECULATIVE_DOCS_TEMPLATE.md +0 -146
- package/docs/pr/UPSTREAM_PRS.md +0 -424
- package/docs/reference/API_REFERENCE.md +0 -903
- package/docs/reference/EXPERT_DROIDS.md +0 -219
- package/docs/reference/HARNESS-MATRIX.md +0 -318
- package/docs/reference/PATTERN_LIBRARY.md +0 -636
- package/docs/reference/UAP_CLI_REFERENCE.md +0 -620
- package/docs/research/BEHAVIORAL_PATTERNS.md +0 -228
- package/docs/research/DOMAIN_STRATEGIES.md +0 -316
- package/docs/research/MEMORY_SYSTEMS_COMPARISON.md +0 -812
- package/docs/research/PATTERN_ANALYSIS_2026-01-18.md +0 -436
- package/docs/research/PERFORMANCE_ANALYSIS_2026-01-18.md +0 -209
- package/docs/research/PERFORMANCE_TEST_PLAN.md +0 -383
- package/docs/research/TERMINAL_BENCH_LEARNINGS.md +0 -217
|
@@ -0,0 +1,719 @@
|
|
|
1
|
+
# UAP CLI Reference
|
|
2
|
+
|
|
3
|
+
> Complete command reference for the Universal Agent Protocol command-line interface (`uap`).
|
|
4
|
+
> Version v1.40.0.
|
|
5
|
+
|
|
6
|
+
The `uap` binary is the single entry point for every UAP capability: project
|
|
7
|
+
initialization, the tiered memory system, git worktree workflow, multi-agent
|
|
8
|
+
coordination, task management, the multi-model architecture, the MCP router,
|
|
9
|
+
policy enforcement, the delivery convergence loop, and platform hook
|
|
10
|
+
management.
|
|
11
|
+
|
|
12
|
+
```bash
|
|
13
|
+
uap --help # top-level command list
|
|
14
|
+
uap <command> --help # subcommands + flags for a command
|
|
15
|
+
uap --version # print version
|
|
16
|
+
```
|
|
17
|
+
|
|
18
|
+
Commands are lazy-loaded — each command module is imported only when its action
|
|
19
|
+
runs, keeping `--help` fast.
|
|
20
|
+
|
|
21
|
+
## Command index
|
|
22
|
+
|
|
23
|
+
| Command | Purpose |
|
|
24
|
+
|---------|---------|
|
|
25
|
+
| [`init`](#init) | Initialize agent context in the current project |
|
|
26
|
+
| [`setup`](#setup) | One-command setup: init + Qdrant + Python deps + index patterns |
|
|
27
|
+
| [`analyze`](#analyze) | Analyze project structure and emit metadata |
|
|
28
|
+
| [`generate`](#generate) | Generate or update CLAUDE.md and related files |
|
|
29
|
+
| [`update`](#update) | Update CLAUDE.md, memory system, and related components |
|
|
30
|
+
| [`memory`](#memory) | Manage the agent memory system |
|
|
31
|
+
| [`patterns`](#patterns) | Manage pattern RAG (on-demand retrieval via Qdrant) |
|
|
32
|
+
| [`worktree`](#worktree) | Manage git worktrees |
|
|
33
|
+
| [`sync`](#sync) | Sync configuration between platforms |
|
|
34
|
+
| [`droids`](#droids) | Manage custom droids/agents |
|
|
35
|
+
| [`expert-route`](#expert-route) | Recommend an expert droid chain for a task |
|
|
36
|
+
| [`deliver`](#deliver) | Convergence loop: iterate a model against gates until delivery |
|
|
37
|
+
| [`harness`](#harness) | HALO harness optimization over execution traces |
|
|
38
|
+
| [`ideate`](#ideate) | Divergent ideation (open-collider) for hard problems |
|
|
39
|
+
| [`coord`](#coord) | Agent coordination and status |
|
|
40
|
+
| [`agent`](#agent) | Agent lifecycle, work coordination, and communication |
|
|
41
|
+
| [`deploy`](#deploy) | Deployment batching and execution |
|
|
42
|
+
| [`task`](#task) | Task management |
|
|
43
|
+
| [`compliance`](#compliance) | Protocol compliance checking, auditing, and auto-fix |
|
|
44
|
+
| [`coordination`](#coordination) | Coordination overlap checks and resolution |
|
|
45
|
+
| [`skill`](#skill) | Skill management and loading |
|
|
46
|
+
| [`dashboard`](#dashboard) (`dash`) | Rich dashboards for tasks, agents, memory, progress |
|
|
47
|
+
| [`model`](#model) | Multi-model architecture management |
|
|
48
|
+
| [`mcp-router`](#mcp-router) | Hierarchical MCP router for 98%+ token reduction |
|
|
49
|
+
| [`hooks`](#hooks) | Manage session hooks across platforms |
|
|
50
|
+
| [`tool-calls`](#tool-calls) | Manage Qwen3.5 tool call fixes and chat templates |
|
|
51
|
+
| [`rtk`](#rtk) | Manage RTK (Rust Token Killer) integration |
|
|
52
|
+
| [`mcp-setup`](#mcp-setup) | Configure MCP Router for all AI harnesses |
|
|
53
|
+
| [`schema-diff`](#schema-diff) | Detect breaking schema changes between branches |
|
|
54
|
+
| [`policy`](#policy) | UAP policy management |
|
|
55
|
+
| [`uap-omp`](#uap-omp) | UAP integration commands for oh-my-pi (omp) users |
|
|
56
|
+
|
|
57
|
+
---
|
|
58
|
+
|
|
59
|
+
## `init`
|
|
60
|
+
|
|
61
|
+
Initialize agent context in the current project.
|
|
62
|
+
|
|
63
|
+
```bash
|
|
64
|
+
uap init [options]
|
|
65
|
+
```
|
|
66
|
+
|
|
67
|
+
| Flag | Purpose |
|
|
68
|
+
|------|---------|
|
|
69
|
+
| `-p, --platform <platforms...>` | Target platforms: `claude`, `factory`, `vscode`, `opencode`, `omp`, `all` (default `all`) |
|
|
70
|
+
| `--web` | Generate `AGENT.md` for web platforms (claude.ai, factory.ai) |
|
|
71
|
+
| `--no-memory` | Skip memory system setup |
|
|
72
|
+
| `--no-worktrees` | Skip worktree workflow setup |
|
|
73
|
+
| `--patterns` | Enable pattern RAG setup (auto-detected by default) |
|
|
74
|
+
| `--no-patterns` | Skip pattern RAG setup |
|
|
75
|
+
| `--pipeline-only` | Enforce pipeline-only infra changes (no direct infra CLIs) |
|
|
76
|
+
| `--systemd-services` | Scaffold user systemd services for llama.cpp and the anthropic proxy |
|
|
77
|
+
| `-f, --force` | Overwrite existing configuration |
|
|
78
|
+
|
|
79
|
+
```bash
|
|
80
|
+
uap init --platform claude factory
|
|
81
|
+
uap init --web --no-worktrees
|
|
82
|
+
```
|
|
83
|
+
|
|
84
|
+
---
|
|
85
|
+
|
|
86
|
+
## `setup`
|
|
87
|
+
|
|
88
|
+
Full one-command setup: `init` + start Qdrant + install Python deps + index
|
|
89
|
+
patterns.
|
|
90
|
+
|
|
91
|
+
```bash
|
|
92
|
+
uap setup [options]
|
|
93
|
+
```
|
|
94
|
+
|
|
95
|
+
| Flag | Purpose |
|
|
96
|
+
|------|---------|
|
|
97
|
+
| `-p, --platform <platforms...>` | Targets: `claude`, `factory`, `vscode`, `opencode`, `omp`, `cline`, `codex`, `aider`, `continue`, `windsurf`, `zed`, `copilot`, `jetbrains`, `swe-agent`, `all` (default `all`) |
|
|
98
|
+
| `--no-patterns` | Skip pattern RAG setup |
|
|
99
|
+
| `--no-memory` | Skip memory system setup |
|
|
100
|
+
| `--systemd-services` | Scaffold user systemd services for llama.cpp + anthropic proxy |
|
|
101
|
+
| `-d, --project-dir <path>` | Target project directory (defaults to cwd) |
|
|
102
|
+
| `-i, --interactive` | Run the interactive setup wizard with feature toggles |
|
|
103
|
+
|
|
104
|
+
```bash
|
|
105
|
+
uap setup -i
|
|
106
|
+
uap setup -p claude -d ~/projects/myapp
|
|
107
|
+
```
|
|
108
|
+
|
|
109
|
+
---
|
|
110
|
+
|
|
111
|
+
## `analyze`
|
|
112
|
+
|
|
113
|
+
Analyze project structure and generate metadata.
|
|
114
|
+
|
|
115
|
+
```bash
|
|
116
|
+
uap analyze [options]
|
|
117
|
+
```
|
|
118
|
+
|
|
119
|
+
| Flag | Purpose |
|
|
120
|
+
|------|---------|
|
|
121
|
+
| `-o, --output <format>` | Output format: `json`, `yaml`, `md` (default `json`) |
|
|
122
|
+
| `--save` | Save analysis to `.uap.analysis.json` |
|
|
123
|
+
|
|
124
|
+
---
|
|
125
|
+
|
|
126
|
+
## `generate`
|
|
127
|
+
|
|
128
|
+
Generate or update CLAUDE.md and related files.
|
|
129
|
+
|
|
130
|
+
```bash
|
|
131
|
+
uap generate [options]
|
|
132
|
+
```
|
|
133
|
+
|
|
134
|
+
| Flag | Purpose |
|
|
135
|
+
|------|---------|
|
|
136
|
+
| `-f, --force` | Overwrite existing files without confirmation |
|
|
137
|
+
| `-d, --dry-run` | Show what would be generated without writing |
|
|
138
|
+
| `-p, --platform <platform>` | Generate for a specific platform only |
|
|
139
|
+
| `--template <template>` | Template to use (`default` or custom) |
|
|
140
|
+
| `--sections <sections>` | Comma-separated sections to include |
|
|
141
|
+
| `--web` | Generate `AGENT.md` for web platforms |
|
|
142
|
+
| `--pipeline-only` | Enforce pipeline-only infra changes |
|
|
143
|
+
|
|
144
|
+
---
|
|
145
|
+
|
|
146
|
+
## `update`
|
|
147
|
+
|
|
148
|
+
Update CLAUDE.md, the memory system, and all related components.
|
|
149
|
+
|
|
150
|
+
```bash
|
|
151
|
+
uap update [options]
|
|
152
|
+
```
|
|
153
|
+
|
|
154
|
+
| Flag | Purpose |
|
|
155
|
+
|------|---------|
|
|
156
|
+
| `--dry-run` | Show what would be updated without changing anything |
|
|
157
|
+
| `--skip-memory` | Skip memory system updates |
|
|
158
|
+
| `--skip-qdrant` | Skip Qdrant collection updates |
|
|
159
|
+
| `--pipeline-only` | Enforce pipeline-only infra changes |
|
|
160
|
+
| `-v, --verbose` | Show detailed update information |
|
|
161
|
+
|
|
162
|
+
---
|
|
163
|
+
|
|
164
|
+
## `memory`
|
|
165
|
+
|
|
166
|
+
Manage the agent memory system.
|
|
167
|
+
|
|
168
|
+
| Subcommand | Key flags | Purpose |
|
|
169
|
+
|------------|-----------|---------|
|
|
170
|
+
| `status` | — | Show memory system status |
|
|
171
|
+
| `start` | — | Start memory services (Qdrant container) |
|
|
172
|
+
| `stop` | — | Stop memory services |
|
|
173
|
+
| `query <search>` | `-n, --limit` (10), `-k, --top-k`, `-t, --threshold` (0.35) | Query long-term memory |
|
|
174
|
+
| `store <content>` | `-t, --tags`, `-i, --importance` (5), `-f, --force` | Store a memory (applies write gate unless `--force`) |
|
|
175
|
+
| `prepopulate` | `--docs`, `--git`, `-n, --limit` (500), `--since <date>`, `-v` | Seed memory from docs and git history |
|
|
176
|
+
| `promote` | — | Review and promote daily log entries to working/semantic memory |
|
|
177
|
+
| `correct <search>` | `-c, --correction`, `-r, --reason` | Correct a memory; propagates across tiers, marks old superseded |
|
|
178
|
+
| `maintain` | `-v, --verbose` | Run decay, prune stale, archive old, remove duplicates |
|
|
179
|
+
|
|
180
|
+
```bash
|
|
181
|
+
uap memory query "worktree workflow" --limit 5 --threshold 0.4
|
|
182
|
+
uap memory store "Qdrant runs on :6333 in a container" -t infra,memory -i 8
|
|
183
|
+
uap memory correct "old endpoint" -c "endpoint is now :4000" -r "migrated proxy"
|
|
184
|
+
```
|
|
185
|
+
|
|
186
|
+
---
|
|
187
|
+
|
|
188
|
+
## `patterns`
|
|
189
|
+
|
|
190
|
+
Manage pattern RAG (on-demand pattern retrieval via Qdrant).
|
|
191
|
+
|
|
192
|
+
| Subcommand | Key flags | Purpose |
|
|
193
|
+
|------------|-----------|---------|
|
|
194
|
+
| `status` | — | Show pattern RAG status and collection info |
|
|
195
|
+
| `index` | `-v, --verbose` | Index patterns from CLAUDE.md into Qdrant |
|
|
196
|
+
| `query <search>` | `-n, --top` (2), `--min-score` (0.35), `--format` (text/json/context) | Query patterns by task description |
|
|
197
|
+
| `generate` | `-f, --force` | Generate Python index/query scripts from config |
|
|
198
|
+
|
|
199
|
+
```bash
|
|
200
|
+
uap patterns query "fix a flaky test" --top 3 --format context
|
|
201
|
+
```
|
|
202
|
+
|
|
203
|
+
---
|
|
204
|
+
|
|
205
|
+
## `worktree`
|
|
206
|
+
|
|
207
|
+
Manage git worktrees. All file edits in the UAP workflow happen inside a
|
|
208
|
+
worktree under `.worktrees/NNN-<slug>/`.
|
|
209
|
+
|
|
210
|
+
| Subcommand | Key flags | Purpose |
|
|
211
|
+
|------------|-----------|---------|
|
|
212
|
+
| `create <slug>` | `-f, --from <branch>`, `-d, --description` | Create a new worktree for a feature |
|
|
213
|
+
| `list` | — | List all worktrees |
|
|
214
|
+
| `pr <id>` | `--draft` | Create a PR from a worktree |
|
|
215
|
+
| `finish <id>` | — | Sync, merge PR, and auto-cleanup the worktree |
|
|
216
|
+
| `cleanup <id>` | — | Remove a worktree and delete its branch |
|
|
217
|
+
| `ensure` | `--strict` (exit 1 if not in a worktree) | Check if working inside a worktree (use as a gate) |
|
|
218
|
+
| `prune` | `-o, --older-than` (30), `-f, --force`, `-n, --dry-run` | Prune stale worktrees older than N days |
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
uap worktree ensure --strict
|
|
222
|
+
uap worktree create add-user-auth
|
|
223
|
+
uap worktree finish 042
|
|
224
|
+
uap worktree prune --older-than 14 --dry-run
|
|
225
|
+
```
|
|
226
|
+
|
|
227
|
+
---
|
|
228
|
+
|
|
229
|
+
## `sync`
|
|
230
|
+
|
|
231
|
+
Sync configuration between platforms.
|
|
232
|
+
|
|
233
|
+
```bash
|
|
234
|
+
uap sync [options]
|
|
235
|
+
```
|
|
236
|
+
|
|
237
|
+
| Flag | Purpose |
|
|
238
|
+
|------|---------|
|
|
239
|
+
| `--from <platform>` | Source platform: `claude`, `factory`, `vscode`, `opencode` |
|
|
240
|
+
| `--to <platform>` | Target platform(s) |
|
|
241
|
+
| `--dry-run` | Preview changes without writing files |
|
|
242
|
+
|
|
243
|
+
---
|
|
244
|
+
|
|
245
|
+
## `droids`
|
|
246
|
+
|
|
247
|
+
Manage custom droids/agents.
|
|
248
|
+
|
|
249
|
+
| Subcommand | Key flags | Purpose |
|
|
250
|
+
|------------|-----------|---------|
|
|
251
|
+
| `list` | — | List all droids |
|
|
252
|
+
| `add <name>` | `-t, --template` | Add a new droid |
|
|
253
|
+
| `import <path>` | — | Import droids from another platform |
|
|
254
|
+
| `validate` | `-q, --quiet` | Validate droid files against capability-router expectations |
|
|
255
|
+
|
|
256
|
+
---
|
|
257
|
+
|
|
258
|
+
## `expert-route`
|
|
259
|
+
|
|
260
|
+
Recommend an expert droid chain for a task description.
|
|
261
|
+
|
|
262
|
+
```bash
|
|
263
|
+
uap expert-route <description...> [options]
|
|
264
|
+
```
|
|
265
|
+
|
|
266
|
+
| Flag | Purpose |
|
|
267
|
+
|------|---------|
|
|
268
|
+
| `-f, --files <files...>` | Affected file paths to refine routing |
|
|
269
|
+
| `--json` | Emit JSON instead of a human-readable report |
|
|
270
|
+
|
|
271
|
+
```bash
|
|
272
|
+
uap expert-route "harden the payment webhook against replay attacks" -f src/payments/webhook.ts
|
|
273
|
+
```
|
|
274
|
+
|
|
275
|
+
---
|
|
276
|
+
|
|
277
|
+
## `deliver`
|
|
278
|
+
|
|
279
|
+
Convergence loop: iterate a model against real completion gates until delivery.
|
|
280
|
+
Loop-until-delivered is ON by default — the loop extends past `--max-turns` to a
|
|
281
|
+
ceiling and stops on stagnation. Dynamic optimization is also on by default: the
|
|
282
|
+
task is classified and matching aids enable automatically.
|
|
283
|
+
|
|
284
|
+
```bash
|
|
285
|
+
uap deliver <instruction...> [options]
|
|
286
|
+
```
|
|
287
|
+
|
|
288
|
+
| Flag | Purpose |
|
|
289
|
+
|------|---------|
|
|
290
|
+
| `--max-turns <n>` | Max execute->verify iterations (default 5) |
|
|
291
|
+
| `-m, --model <preset>` | Model preset id (default `$UAP_DELIVER_MODEL` or `qwen35-a3b`) |
|
|
292
|
+
| `--project-root <path>` | Project whose gates define delivery (default cwd) |
|
|
293
|
+
| `--endpoint <url>` | Override the model endpoint (OpenAI-compatible `/v1`) |
|
|
294
|
+
| `--temperature <t>` | Sampling temperature (default: execution-profile value) |
|
|
295
|
+
| `--gates <ids>` | Comma-separated gate subset: `build,typecheck,test,lint` |
|
|
296
|
+
| `--candidates <n>` | Best-of-N exploration: candidates per turn (2-8) |
|
|
297
|
+
| `--critic` | Structured critique of failed turns (extra model call per failure) |
|
|
298
|
+
| `--practices` | Inject learned best-practice cards; record new ones on success |
|
|
299
|
+
| `--no-semantic` | Use keyword (not embedding) retrieval for practice cards |
|
|
300
|
+
| `--escalate` | Escalation ladder on stagnation (widen exploration -> critic -> stronger model) |
|
|
301
|
+
| `--escalate-model <preset>` | Stronger model preset for escalation (default `$UAP_ESCALATE_MODEL`) |
|
|
302
|
+
| `--ideate` | Divergent ideation: generate task-specific strategy seeds |
|
|
303
|
+
| `--ideate-project <name>` | Seed exploration from a curated open-collider project (`projects/<name>`) |
|
|
304
|
+
| `--halo` | Emit HALO spans for this run (analyze with `uap harness analyze`) |
|
|
305
|
+
| `--coordinate` | Register the run with the coordination layer (announce, heartbeat, overlap) |
|
|
306
|
+
| `--deploy` | On success, queue a commit of applied files into the deploy batcher |
|
|
307
|
+
| `--optimize` | Enable every convergence aid: exploration, critic, practices, escalation, ideation, HALO, coordination |
|
|
308
|
+
| `--no-auto` | Disable dynamic optimization (auto-classification + matching aids) |
|
|
309
|
+
| `--no-protect-tests` | Allow the model to modify pre-existing test files (protected by default) |
|
|
310
|
+
| `--guidance-file <path>` | Poll this file each turn for operator guidance; steer a running mission |
|
|
311
|
+
| `--no-until-delivered` | Disable loop-until-delivered (stop at `--max-turns`) |
|
|
312
|
+
| `--ceiling <n>` | Hard turn ceiling for until-delivered (1-50, default 30) |
|
|
313
|
+
| `--dry-run` | Show detected gates and plan without calling the model |
|
|
314
|
+
| `--json` | Emit JSON result |
|
|
315
|
+
|
|
316
|
+
```bash
|
|
317
|
+
uap deliver "add a /healthz endpoint with a test" --gates build,test
|
|
318
|
+
uap deliver "refactor the auth module" --optimize --ceiling 20
|
|
319
|
+
uap deliver "fix the failing CI" --dry-run
|
|
320
|
+
```
|
|
321
|
+
|
|
322
|
+
---
|
|
323
|
+
|
|
324
|
+
## `harness`
|
|
325
|
+
|
|
326
|
+
HALO harness optimization: analyze execution traces for systemic failures.
|
|
327
|
+
|
|
328
|
+
| Subcommand | Key flags | Purpose |
|
|
329
|
+
|------------|-----------|---------|
|
|
330
|
+
| `analyze` | `-t, --traces <file>`, `-p, --prompt`, `--json` | Run the HALO engine over collected traces |
|
|
331
|
+
| `status` | `--json` | Show HALO trace collection state (enabled, path, span count) |
|
|
332
|
+
|
|
333
|
+
```bash
|
|
334
|
+
uap harness status
|
|
335
|
+
uap harness analyze --prompt "why do test gates keep failing?"
|
|
336
|
+
```
|
|
337
|
+
|
|
338
|
+
The trace file defaults to `$UAP_HALO_TRACE_PATH` or `.uap/halo/traces.jsonl`.
|
|
339
|
+
|
|
340
|
+
---
|
|
341
|
+
|
|
342
|
+
## `ideate`
|
|
343
|
+
|
|
344
|
+
Divergent ideation (open-collider): generate non-trivial ideas for hard
|
|
345
|
+
problems.
|
|
346
|
+
|
|
347
|
+
| Subcommand | Key flags | Purpose |
|
|
348
|
+
|------------|-----------|---------|
|
|
349
|
+
| `setup <name>` | `--force`, `--json` | Scaffold an ideation project under `projects/<name>/` |
|
|
350
|
+
| `run <name>` | — | Drive the brainstorm flow for a project (Skill mode is free) |
|
|
351
|
+
| `ideas <name>` | `--json` | Print the curated ideas produced for a project |
|
|
352
|
+
|
|
353
|
+
```bash
|
|
354
|
+
uap ideate setup cache-strategy
|
|
355
|
+
uap ideate run cache-strategy
|
|
356
|
+
uap ideate ideas cache-strategy --json
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
---
|
|
360
|
+
|
|
361
|
+
## `coord`
|
|
362
|
+
|
|
363
|
+
Agent coordination and status.
|
|
364
|
+
|
|
365
|
+
| Subcommand | Key flags | Purpose |
|
|
366
|
+
|------------|-----------|---------|
|
|
367
|
+
| `status` | `-v, --verbose` | Show coordination status (agents, claims, deploys) |
|
|
368
|
+
| `flush` | — | Force execute all pending deploys |
|
|
369
|
+
| `cleanup` | — | Clean up stale agents and expired data |
|
|
370
|
+
|
|
371
|
+
---
|
|
372
|
+
|
|
373
|
+
## `agent`
|
|
374
|
+
|
|
375
|
+
Agent lifecycle, work coordination, and communication. Each agent works in an
|
|
376
|
+
isolated worktree.
|
|
377
|
+
|
|
378
|
+
| Subcommand | Key flags | Purpose |
|
|
379
|
+
|------------|-----------|---------|
|
|
380
|
+
| `register` | `-n, --name`, `-i, --id`, `-c, --capabilities`, `-w, --worktree` | Register a new agent |
|
|
381
|
+
| `heartbeat` | `-i, --id` | Send a heartbeat for an agent |
|
|
382
|
+
| `status` | `-i, --id` | Show agent status (all if id omitted) |
|
|
383
|
+
| `announce` | `-i, --id`, `-r, --resource`, `--intent`, `-d`, `-f, --files`, `--minutes` | Announce intent to work on a resource (enables overlap detection) |
|
|
384
|
+
| `complete` | `-i, --id`, `-r, --resource` | Mark work complete on a resource |
|
|
385
|
+
| `overlaps` | `-r, --resource` | Check for overlapping work (merge-conflict risk) |
|
|
386
|
+
| `broadcast` | `-i, --id`, `-c, --channel`, `-m, --message`, `-p, --priority` (5) | Broadcast a message to all agents |
|
|
387
|
+
| `send` | `-i, --id`, `-t, --to`, `-m, --message`, `-p, --priority` (5) | Send a direct message to another agent |
|
|
388
|
+
| `receive` | `-i, --id`, `-c, --channel`, `--no-mark-read` | Receive pending messages |
|
|
389
|
+
| `deregister` | `-i, --id` | Deregister an agent |
|
|
390
|
+
|
|
391
|
+
`--intent` accepts `editing`, `reviewing`, `refactoring`, `testing`,
|
|
392
|
+
`documenting`. `--channel` accepts `broadcast`, `deploy`, `review`,
|
|
393
|
+
`coordination`.
|
|
394
|
+
|
|
395
|
+
```bash
|
|
396
|
+
uap agent register -n builder-1 -c "typescript,testing" -w feature/082-docs
|
|
397
|
+
uap agent announce -i builder-1 -r src/api --intent editing --minutes 30
|
|
398
|
+
uap agent overlaps -r src/api
|
|
399
|
+
```
|
|
400
|
+
|
|
401
|
+
---
|
|
402
|
+
|
|
403
|
+
## `deploy`
|
|
404
|
+
|
|
405
|
+
Deployment batching and execution.
|
|
406
|
+
|
|
407
|
+
| Subcommand | Key flags | Purpose |
|
|
408
|
+
|------------|-----------|---------|
|
|
409
|
+
| `queue` | `-a, --agent-id`, `-t, --action-type`, `--target`, `-m, --message`, `-f, --files`, `-r, --remote` (origin), `--force`, `--ref`, `--inputs`, `-p, --priority` (5) | Queue a deploy action for batching |
|
|
410
|
+
| `batch` | `-v, --verbose` | Create a batch from pending deploy actions |
|
|
411
|
+
| `execute` | `-b, --batch-id`, `--dry-run` | Execute a deploy batch |
|
|
412
|
+
| `status` | `-v, --verbose` | Show deploy queue status |
|
|
413
|
+
| `flush` | `-v, --verbose`, `--dry-run` | Flush all pending deploys (batch + execute) |
|
|
414
|
+
| `config` | — | Show deploy batch configuration (window settings) |
|
|
415
|
+
| `set-config` | `--message <json>` | Set deploy batch window settings, e.g. `{"commit":60000}` |
|
|
416
|
+
| `urgent` | `--on`, `--off` | Enable/disable urgent mode (fast batch windows) |
|
|
417
|
+
|
|
418
|
+
`--action-type` accepts `commit`, `push`, `merge`, `deploy`, `workflow`.
|
|
419
|
+
|
|
420
|
+
```bash
|
|
421
|
+
uap deploy queue -a builder-1 -t commit -m "feat: add endpoint" -f src/api.ts
|
|
422
|
+
uap deploy flush --dry-run
|
|
423
|
+
```
|
|
424
|
+
|
|
425
|
+
---
|
|
426
|
+
|
|
427
|
+
## `task`
|
|
428
|
+
|
|
429
|
+
Task management.
|
|
430
|
+
|
|
431
|
+
| Subcommand | Key flags | Purpose |
|
|
432
|
+
|------------|-----------|---------|
|
|
433
|
+
| `create` | `-t, --title`, `-d, --description`, `--type`, `-p, --priority` (2), `-l, --labels`, `--parent`, `-n, --notes`, `--json` | Create a new task |
|
|
434
|
+
| `list` | `-s, --filter-status`/`--status`, `--filter-type`, `--filter-priority`, `-a, --filter-assignee`, `-l, --filter-labels`, `--search`, `--show-blocked`, `--show-ready`, `-v`, `--json` | List tasks |
|
|
435
|
+
| `show <id>` | `-v, --verbose`, `--json` | Show task details |
|
|
436
|
+
| `update <id>` | `-t`, `-d`, `--type`, `-s, --status`, `-p`, `-a, --assignee`, `-w, --worktree`, `-l`, `-n` | Update a task |
|
|
437
|
+
| `close <id>` | `-r, --reason` | Close a task (mark done) |
|
|
438
|
+
| `delete <id>` | — | Delete a task |
|
|
439
|
+
| `ready` | `--json` | List tasks ready to work on (no blockers) |
|
|
440
|
+
| `blocked` | `--json` | List blocked tasks |
|
|
441
|
+
| `dep` | `-f, --from`, `-t, --to`, `--dep-type` (blocks) | Add a dependency between tasks |
|
|
442
|
+
| `undep` | `-f, --from`, `-t, --to` | Remove a dependency |
|
|
443
|
+
| `claim <id>` | `-b, --branch` | Claim a task (assign + announce + create worktree) |
|
|
444
|
+
| `release <id>` | `-r, --reason` | Release a task (mark complete + announce) |
|
|
445
|
+
| `stats` | `--json` | Show task statistics |
|
|
446
|
+
| `board` | — | Show tasks as a kanban board |
|
|
447
|
+
| `sync` | — | Sync tasks with JSONL file (for git versioning) |
|
|
448
|
+
| `compact` | `--days` (90) | Compact old closed tasks into summaries |
|
|
449
|
+
|
|
450
|
+
`--type`: `task`, `bug`, `feature`, `epic`, `chore`, `story`. `--priority`: 0-4
|
|
451
|
+
(P0=critical ... P4=backlog). `--status`: `open`, `in_progress`, `blocked`,
|
|
452
|
+
`done`, `wont_do`. `--dep-type`: `blocks`, `related`, `discovered_from`.
|
|
453
|
+
|
|
454
|
+
```bash
|
|
455
|
+
uap task create -t "Add health endpoint" --type feature -p 1 -l api,infra
|
|
456
|
+
uap task ready
|
|
457
|
+
uap task claim TASK-42 -b feature/health-endpoint
|
|
458
|
+
uap task board
|
|
459
|
+
```
|
|
460
|
+
|
|
461
|
+
---
|
|
462
|
+
|
|
463
|
+
## `compliance`
|
|
464
|
+
|
|
465
|
+
UAP protocol compliance checking, auditing, and auto-fix.
|
|
466
|
+
|
|
467
|
+
| Subcommand | Key flags | Purpose |
|
|
468
|
+
|------------|-----------|---------|
|
|
469
|
+
| `check` | `-v, --verbose` | Run compliance check (schema, memory, Qdrant, worktrees, secrets) |
|
|
470
|
+
| `report` | `-o, --output`, `-f, --format` (text/markdown/json), `-v` | Generate a detailed compliance report |
|
|
471
|
+
| `audit` | `-v, --verbose` | Deep compliance audit with verbose output |
|
|
472
|
+
| `fix` | `-v, --verbose` | Auto-fix issues (schema migrations, Qdrant collections, worktree cleanup) |
|
|
473
|
+
|
|
474
|
+
```bash
|
|
475
|
+
uap compliance check -v
|
|
476
|
+
uap compliance report -f markdown -o compliance.md
|
|
477
|
+
```
|
|
478
|
+
|
|
479
|
+
---
|
|
480
|
+
|
|
481
|
+
## `coordination`
|
|
482
|
+
|
|
483
|
+
Coordination overlap checks and resolution.
|
|
484
|
+
|
|
485
|
+
| Subcommand | Key flags | Purpose |
|
|
486
|
+
|------------|-----------|---------|
|
|
487
|
+
| `check` | `--agents`, `-r, --resource`, `-v, --verbose`, `--json` | Check for overlapping work between agents |
|
|
488
|
+
| `resolve <overlapId>` | `--action` (assign/merge/delegate), `--json` | Resolve identified overlaps |
|
|
489
|
+
|
|
490
|
+
```bash
|
|
491
|
+
uap coordination check -r src/api --json
|
|
492
|
+
uap coordination resolve src/api --action delegate
|
|
493
|
+
```
|
|
494
|
+
|
|
495
|
+
---
|
|
496
|
+
|
|
497
|
+
## `skill`
|
|
498
|
+
|
|
499
|
+
Skill management and loading.
|
|
500
|
+
|
|
501
|
+
| Subcommand | Key flags | Purpose |
|
|
502
|
+
|------------|-----------|---------|
|
|
503
|
+
| `list` | `-c, --category`, `--json` | List available skills |
|
|
504
|
+
| `load <skill>` | `-c, --category` | Load a specific skill for the current session |
|
|
505
|
+
|
|
506
|
+
---
|
|
507
|
+
|
|
508
|
+
## `dashboard`
|
|
509
|
+
|
|
510
|
+
Rich data visualisation dashboard for tasks, agents, memory, and progress.
|
|
511
|
+
Aliased as `dash`.
|
|
512
|
+
|
|
513
|
+
| Subcommand | Key flags | Purpose |
|
|
514
|
+
|------------|-----------|---------|
|
|
515
|
+
| `overview` | `-v`, `--compact` | Full system overview with charts and progress bars |
|
|
516
|
+
| `tasks` | `-v`, `--compact` | Task breakdown with charts, progress bars, hierarchy trees |
|
|
517
|
+
| `agents` | `-v` | Agent activity, resource claims, coordination status |
|
|
518
|
+
| `memory` | `-v` | Memory system health, capacity, layer architecture |
|
|
519
|
+
| `progress` | `-v` | Completion tracking per-priority and per-type |
|
|
520
|
+
| `serve` | `-p, --port` (3847) | Start the web-based dashboard server with live updates |
|
|
521
|
+
| `stats` | `-v` | Session context consumption stats with per-tool breakdown |
|
|
522
|
+
| `session` | `-v`, `--compact` | Live UAP session state: infra, patterns, skills, git, policies |
|
|
523
|
+
| `benchmark` | `-v` | Benchmark results and performance comparison |
|
|
524
|
+
| `policies` | `-v` | Policy enforcement status and compliance |
|
|
525
|
+
| `models` | `-v` | Multi-model architecture status and routing analytics |
|
|
526
|
+
| `export` | `-o, --output` | Export dashboard data as JSON |
|
|
527
|
+
| `history` | `-v` | Session history and trend analysis |
|
|
528
|
+
|
|
529
|
+
```bash
|
|
530
|
+
uap dashboard overview
|
|
531
|
+
uap dash serve --port 4000
|
|
532
|
+
uap dashboard session --compact
|
|
533
|
+
```
|
|
534
|
+
|
|
535
|
+
---
|
|
536
|
+
|
|
537
|
+
## `model`
|
|
538
|
+
|
|
539
|
+
Multi-model architecture management.
|
|
540
|
+
|
|
541
|
+
| Subcommand | Key flags | Purpose |
|
|
542
|
+
|------------|-----------|---------|
|
|
543
|
+
| `status` | — | Show configured models and role assignments |
|
|
544
|
+
| `route <task>` | `-v, --verbose` | Analyze how a task would be routed |
|
|
545
|
+
| `plan <task>` | `-v, --verbose`, `-e, --execute` | Create (and optionally run) an execution plan |
|
|
546
|
+
| `compare` | — | Compare cost/performance of different configurations |
|
|
547
|
+
| `presets` | — | List all available model presets |
|
|
548
|
+
| `select` | `--save` | Interactively select models for each role |
|
|
549
|
+
| `export` | `-f, --format` (json/yaml) | Export the current configuration |
|
|
550
|
+
| `health` | — | Check model health and configuration validity |
|
|
551
|
+
|
|
552
|
+
```bash
|
|
553
|
+
uap model status
|
|
554
|
+
uap model route "implement OAuth2 with JWT" -v
|
|
555
|
+
uap model plan "add a caching layer" --execute
|
|
556
|
+
uap model select --save
|
|
557
|
+
```
|
|
558
|
+
|
|
559
|
+
---
|
|
560
|
+
|
|
561
|
+
## `mcp-router`
|
|
562
|
+
|
|
563
|
+
MCP Router — hierarchical router for 98%+ token reduction. Exposes two meta-tools
|
|
564
|
+
(discover + execute) instead of every server's full tool list.
|
|
565
|
+
|
|
566
|
+
| Subcommand | Key flags | Purpose |
|
|
567
|
+
|------------|-----------|---------|
|
|
568
|
+
| `start` | `-c, --config`, `-v, --verbose` | Start the MCP router as a stdio server |
|
|
569
|
+
| `stats` | `-c, --config`, `-v`, `--json` | Show router statistics (servers, tools, token savings) |
|
|
570
|
+
| `discover` | `-q, --query`, `-s, --server`, `-l, --limit` (10), `-c`, `-v`, `--json` | Discover tools matching a query |
|
|
571
|
+
| `list` | `-c, --config`, `--json` | List configured MCP servers |
|
|
572
|
+
|
|
573
|
+
```bash
|
|
574
|
+
uap mcp-router start --config ./mcp.json
|
|
575
|
+
uap mcp-router discover -q "send a slack message" --limit 5
|
|
576
|
+
uap mcp-router stats --json
|
|
577
|
+
```
|
|
578
|
+
|
|
579
|
+
---
|
|
580
|
+
|
|
581
|
+
## `hooks`
|
|
582
|
+
|
|
583
|
+
Manage session hooks for Claude Code, Factory.AI, Cursor, VSCode, OpenCode,
|
|
584
|
+
Codex, ForgeCode, Oh-My-Pi, and Hermes.
|
|
585
|
+
|
|
586
|
+
| Subcommand | Key flags | Purpose |
|
|
587
|
+
|------------|-----------|---------|
|
|
588
|
+
| `install` | `-t, --target` / `-p, --platform` | Install UAP session hooks |
|
|
589
|
+
| `status` | `-t, --target` / `-p, --platform` | Show hooks installation status |
|
|
590
|
+
| `doctor` | `-t, --target` / `-p, --platform` | Audit policy-gate coverage across platforms (non-zero exit on gaps) |
|
|
591
|
+
|
|
592
|
+
Targets: `claude`, `factory`, `cursor`, `vscode`, `opencode`, `codex`,
|
|
593
|
+
`forgecode`, `omp`, `hermes` (default: all).
|
|
594
|
+
|
|
595
|
+
```bash
|
|
596
|
+
uap hooks install -t claude
|
|
597
|
+
uap hooks doctor
|
|
598
|
+
```
|
|
599
|
+
|
|
600
|
+
---
|
|
601
|
+
|
|
602
|
+
## `tool-calls`
|
|
603
|
+
|
|
604
|
+
Manage Qwen3.5 tool call fixes and chat templates.
|
|
605
|
+
|
|
606
|
+
| Subcommand | Key flags | Purpose |
|
|
607
|
+
|------------|-----------|---------|
|
|
608
|
+
| `setup` | — | Install chat templates and Python scripts |
|
|
609
|
+
| `test` | `--verbose` | Run the reliability test suite |
|
|
610
|
+
| `status` | — | Check current configuration |
|
|
611
|
+
| `fix` | — | Apply template fixes to existing templates |
|
|
612
|
+
|
|
613
|
+
---
|
|
614
|
+
|
|
615
|
+
## `rtk`
|
|
616
|
+
|
|
617
|
+
Manage RTK (Rust Token Killer) integration for token optimization.
|
|
618
|
+
|
|
619
|
+
| Subcommand | Key flags | Purpose |
|
|
620
|
+
|------------|-----------|---------|
|
|
621
|
+
| `install` | `--force`, `--method` (npm/cargo/binary) | Install the RTK CLI proxy for 60-90% token savings |
|
|
622
|
+
| `status` | — | Check RTK installation and token savings |
|
|
623
|
+
| `help` | — | Show RTK usage information |
|
|
624
|
+
|
|
625
|
+
---
|
|
626
|
+
|
|
627
|
+
## `mcp-setup`
|
|
628
|
+
|
|
629
|
+
Configure MCP Router for all AI harnesses (Claude, Factory, VSCode, Cursor).
|
|
630
|
+
|
|
631
|
+
```bash
|
|
632
|
+
uap mcp-setup [options]
|
|
633
|
+
```
|
|
634
|
+
|
|
635
|
+
| Flag | Purpose |
|
|
636
|
+
|------|---------|
|
|
637
|
+
| `--force` | Force replace existing MCP configurations |
|
|
638
|
+
| `--verbose` | Enable verbose output |
|
|
639
|
+
|
|
640
|
+
---
|
|
641
|
+
|
|
642
|
+
## `schema-diff`
|
|
643
|
+
|
|
644
|
+
Detect breaking schema changes between branches. Diffs Zod schemas, TypeScript
|
|
645
|
+
interfaces, SQLite table definitions, and JSON schema/config files. Exits
|
|
646
|
+
non-zero when breaking changes are detected.
|
|
647
|
+
|
|
648
|
+
```bash
|
|
649
|
+
uap schema-diff [options]
|
|
650
|
+
```
|
|
651
|
+
|
|
652
|
+
| Flag | Purpose |
|
|
653
|
+
|------|---------|
|
|
654
|
+
| `-b, --base <branch>` | Base branch/commit to compare against (default `HEAD~1`) |
|
|
655
|
+
|
|
656
|
+
```bash
|
|
657
|
+
uap schema-diff --base origin/master
|
|
658
|
+
```
|
|
659
|
+
|
|
660
|
+
---
|
|
661
|
+
|
|
662
|
+
## `policy`
|
|
663
|
+
|
|
664
|
+
UAP policy management.
|
|
665
|
+
|
|
666
|
+
| Subcommand | Key flags | Purpose |
|
|
667
|
+
|------------|-----------|---------|
|
|
668
|
+
| `list` | — | List all policies and their status |
|
|
669
|
+
| `install <name>` | — | Install a built-in policy |
|
|
670
|
+
| `enable <id>` | — | Enable a policy by ID |
|
|
671
|
+
| `disable <id>` | — | Disable a policy by ID |
|
|
672
|
+
| `status` | — | Show detailed policy enforcement status |
|
|
673
|
+
| `add` | `-f, --file` (required), `-c, --category` (custom), `-l, --level` (RECOMMENDED), `-t, --tags` | Add a new policy from a markdown file |
|
|
674
|
+
| `convert` | `-i, --input` (required), `-o, --output` | Convert a raw policy to CLAUDE.md format |
|
|
675
|
+
| `get-relevant` | `-t, --task` (required), `--top` (3) | Get policies relevant to a task context |
|
|
676
|
+
| `add-tool` | `-p, --policy` (req), `-t, --tool` (req), `-c, --code` (req) | Attach Python tool code to a policy |
|
|
677
|
+
| `check` | `-o, --operation` (req), `-a, --args` (`{}`) | Check if an operation would be allowed |
|
|
678
|
+
| `audit` | `-p, --policy`, `-n, --limit` (20) | Show the policy enforcement audit trail |
|
|
679
|
+
| `toggle <id>` | `--on`, `--off` | Toggle a policy on or off |
|
|
680
|
+
| `stage <id>` | `-s, --stage` (req) | Change a policy's enforcement stage |
|
|
681
|
+
| `level <id>` | `-l, --level` (req) | Change a policy's enforcement level |
|
|
682
|
+
|
|
683
|
+
Levels: `REQUIRED`, `RECOMMENDED`, `OPTIONAL`. Stages: `pre-exec`,
|
|
684
|
+
`post-exec`, `review`, `always`.
|
|
685
|
+
|
|
686
|
+
```bash
|
|
687
|
+
uap policy list
|
|
688
|
+
uap policy install mandatory-testing-deployment
|
|
689
|
+
uap policy check -o "git push" -a '{"branch":"master"}'
|
|
690
|
+
uap policy stage POL-1 -s pre-exec
|
|
691
|
+
```
|
|
692
|
+
|
|
693
|
+
---
|
|
694
|
+
|
|
695
|
+
## `uap-omp`
|
|
696
|
+
|
|
697
|
+
UAP integration commands for oh-my-pi (omp) users. Thin wrappers over the
|
|
698
|
+
installed omp scripts and SQLite memory store.
|
|
699
|
+
|
|
700
|
+
| Subcommand | Purpose |
|
|
701
|
+
|------------|---------|
|
|
702
|
+
| `dashboard` | Show the UAP dashboard (tasks, agents, memory, worktrees) |
|
|
703
|
+
| `memory status` | Show omp memory status |
|
|
704
|
+
| `memory query <search>` (`-n, --limit` 5) | Query omp memory for relevant context |
|
|
705
|
+
| `worktree list` | List active worktrees |
|
|
706
|
+
| `worktree create <slug>` | Create a new worktree (delegates to `uap worktree create`) |
|
|
707
|
+
| `hooks install` | Install UAP hooks for oh-my-pi |
|
|
708
|
+
| `hooks status` | Show hook installation status |
|
|
709
|
+
|
|
710
|
+
---
|
|
711
|
+
|
|
712
|
+
## Environment variables
|
|
713
|
+
|
|
714
|
+
| Variable | Used by | Purpose |
|
|
715
|
+
|----------|---------|---------|
|
|
716
|
+
| `UAP_DELIVER_MODEL` | `deliver` | Default model preset for the convergence loop |
|
|
717
|
+
| `UAP_ESCALATE_MODEL` | `deliver` | Stronger model preset for escalation |
|
|
718
|
+
| `UAP_HALO_TRACE_PATH` | `harness` | Default HALO trace JSONL path |
|
|
719
|
+
| `UAP_EMBEDDING_ENDPOINT` | memory/embeddings | Embedding service endpoint |
|