total-recall-brain 3.32.3 → 3.33.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 +3 -1
- package/bin/total-recall.mjs +3 -0
- package/docs/ARCHITECTURE.md +21 -4
- package/docs/SSSS.md +230 -0
- package/docs/reference/CLI_INVENTORY.md +77 -0
- package/docs/reference/cli-reference.md +610 -0
- package/frontend/dist/assets/{index-DGMNZi_1.js → index-BPrkIYkZ.js} +174 -130
- package/frontend/dist/index.html +1 -1
- package/frontend/src/App.tsx +8 -4
- package/frontend/src/api/plugins.ts +80 -0
- package/frontend/src/components/brand/AnimatedBrandMark.tsx +163 -0
- package/frontend/src/components/brand/BrandMark.spec.tsx +4 -4
- package/frontend/src/components/brand/BrandMark.tsx +12 -3
- package/frontend/src/components/plugins/previews/CodeQualityPreview.tsx +130 -0
- package/frontend/src/components/plugins/previews/ComposableCliPreview.tsx +131 -0
- package/frontend/src/components/plugins/previews/DecisionPreview.tsx +156 -0
- package/frontend/src/components/plugins/previews/DesignPreview.tsx +118 -0
- package/frontend/src/components/plugins/previews/DomainsPreview.tsx +139 -0
- package/frontend/src/components/plugins/previews/PhonePreview.tsx +86 -0
- package/frontend/src/components/plugins/previews/SigningPreview.tsx +109 -0
- package/frontend/src/components/plugins/previews/TextPreview.tsx +144 -0
- package/frontend/src/components/plugins/previews/index.tsx +83 -0
- package/package.json +4 -1
- package/plugins/creative-search/README.md +26 -0
- package/plugins/creative-search/cli.mjs +421 -0
- package/plugins/creative-search/config.mjs +103 -0
- package/plugins/creative-search/generator.mjs +44 -0
- package/plugins/creative-search/plugin.json +59 -0
- package/plugins/creative-search/ui/DESIGN.md +50 -0
- package/plugins/creative-search/ui/csearch-main.js +311 -0
- package/plugins/creative-search/ui/csearch-settings.js +392 -0
- package/plugins/creative-search/ui/index.js +2 -0
- package/plugins/creative-search/ui/tokens.css +34 -0
- package/plugins/dsh/README.md +20 -0
- package/plugins/dsh/cli.mjs +232 -0
- package/plugins/dsh/generator.mjs +65 -0
- package/plugins/dsh/plugin.json +57 -0
- package/plugins/dsh/ui/DESIGN.md +48 -0
- package/plugins/dsh/ui/dsh-main.js +226 -0
- package/plugins/dsh/ui/dsh-status.js +265 -0
- package/plugins/dsh/ui/index.js +2 -0
- package/plugins/dsh/ui/tokens.css +32 -0
- package/plugins/git-sentinel/README.md +2 -0
- package/plugins/operator-alerts/README.md +9 -4
- package/plugins/operator-alerts/notify-core.mjs +26 -3
- package/plugins/system-monitor/README.md +2 -0
- package/scaffold/.agent/skills/start/SKILL.md +75 -0
- package/scaffold/.agent/skills/start/evals/evals.json +25 -0
- package/scaffold/.agent/skills/start/evals/resolve-startup-entry.test.mjs +17 -0
- package/scaffold/.agent/skills/start/references/runtime-contract.md +9 -0
- package/scaffold/.agent/skills/start/references/startup-check-registration.mjs +14 -0
- package/scaffold/.agent/skills/start/scripts/resolve-startup-entry.mjs +39 -0
- package/scaffold/.agent/skills/start/scripts/start-session.mjs +28 -0
- package/scaffold/.agent/skills/start/subagents/runtime-review.md +3 -0
- package/scaffold/.agent/skills/total-recall/SKILL.md +31 -664
- package/scaffold/.agent/skills/total-recall/references/operations.md +671 -0
- package/src/cli/brief.mjs +5 -1
- package/src/cli/command.mjs +44 -2
- package/src/cli/context.mjs +35 -0
- package/src/cli/doctor.mjs +24 -1
- package/src/cli/help.mjs +2 -1
- package/src/cli/mesh.mjs +15 -1
- package/src/cli/plugin/install.mjs +6 -1
- package/src/cli/plugin/remove.mjs +5 -1
- package/src/cli/recall.mjs +22 -4
- package/src/cli/repo-expert-generate.mjs +35 -2
- package/src/cli/skill.mjs +6 -0
- package/src/cli/startup.mjs +41 -0
- package/src/cli/status.mjs +2 -1
- package/src/core/command-surface.mjs +13 -1
- package/src/core/context-compiler.mjs +42 -311
- package/src/core/context-policy.mjs +59 -0
- package/src/core/env-import.mjs +4 -7
- package/src/core/fast-recall.mjs +130 -70
- package/src/core/memory-layers.mjs +2 -0
- package/src/core/mesh.mjs +34 -7
- package/src/core/skills-registry.mjs +113 -21
- package/src/core/startup-health.mjs +174 -0
- package/src/core/surface.mjs +40 -227
- package/src/server/route-manifest.json +12 -0
- package/src/server/routes/_shared.mjs +5 -2
- package/src/server/routes/context.mjs +17 -3
- package/src/server/routes/instructions.mjs +5 -4
- package/src/server/routes/plugins.mjs +137 -1
- package/frontend/dist/assets/index-BUEZPLim.js +0 -5742
- package/frontend/dist/assets/index-FOJG4jQh.js +0 -5742
|
@@ -0,0 +1,610 @@
|
|
|
1
|
+
# Total Recall — CLI Reference Guide
|
|
2
|
+
|
|
3
|
+
Comprehensive reference manual for all `npx total-recall` commands, parameters, environment overrides, and configuration files in the AI OS.
|
|
4
|
+
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
## 🌐 Global Options
|
|
8
|
+
|
|
9
|
+
- `--help, -h`: Print command-specific usage guides and available flags.
|
|
10
|
+
- `--version, -v`: Display the installed version of the Total Recall CLI.
|
|
11
|
+
|
|
12
|
+
---
|
|
13
|
+
|
|
14
|
+
## 🛠️ CLI Command Catalog
|
|
15
|
+
|
|
16
|
+
### `init`
|
|
17
|
+
Configure and provision the initial local virtual file system schemas.
|
|
18
|
+
- **What it does**: Prompts for model preferences, issues authorized Bearer PAT tokens, builds setup configs, and copies master control skills into place.
|
|
19
|
+
- **Usage**:
|
|
20
|
+
```bash
|
|
21
|
+
npx total-recall init [options]
|
|
22
|
+
```
|
|
23
|
+
- **Options**:
|
|
24
|
+
- `--project`: Initialize a project-local brain layer inside your active repository (`<repo>/.agent/skills/total-recall/`) instead of the default global layer.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
### `setup`
|
|
29
|
+
Interactive terminal-based setup wizard.
|
|
30
|
+
- **What it does**: Welcomes the developer, guides you through provider authentication keys (AES encrypted), configures domain and port variables, and registers IDE integrations and first-time security tokens interactively in the terminal.
|
|
31
|
+
- **Usage**:
|
|
32
|
+
```bash
|
|
33
|
+
npx total-recall setup
|
|
34
|
+
```
|
|
35
|
+
- **Note**: For a premium graphical browser-based installation experience, use the `deploy --ui` command instead.
|
|
36
|
+
|
|
37
|
+
---
|
|
38
|
+
|
|
39
|
+
### `deploy`
|
|
40
|
+
Deploy and configure system service layers, platform autostart files, or launch the Browser Setup Wizard.
|
|
41
|
+
- **What it does**: Registers daemon startup plists (macOS launchd) or services (Linux systemd), configures Caddy for auto-managed Let's Encrypt TLS, structures the VFS folders, and schedules backups. If `--ui` is specified, it bypasses terminal prompt loops and starts a local Express server to host the graphical HTML Setup Wizard.
|
|
42
|
+
- **Usage**:
|
|
43
|
+
```bash
|
|
44
|
+
npx total-recall deploy [options]
|
|
45
|
+
```
|
|
46
|
+
- **Options**:
|
|
47
|
+
- `--backup-repo <git-url>`: Configures an automatic daily remote backup git URL.
|
|
48
|
+
- `--ui`: Launches the premium **Browser Setup Wizard** (`wizard.html` served by `deploy-ui.mjs`). This serves a visual dashboard at `http://localhost:3000` (or next free port) and automatically opens it in your default macOS/Linux web browser. Features a glassmorphic multi-phase setup for deployment locations (Local, Network, Vast.ai GPU Cloud, VPS), SSL, PAT keys management, automatic private GitHub backup configurations, and checkboxes for Claude Code, Cursor, Codex, etc., with live logs. Now includes an integrated **CLI Agents Setup & Installer** card supporting dynamic local/remote programmatic agent installations and linking (`npm install -g`, `npm link`, and OAuth credentials onboarding) via secure `/api/install-cli` API dispatches. To ensure absolute reliability, the wizard integrates **resilient dual-layer state persistence** (saving to browser `safeStorage` and syncing securely to server disk in `wizard-config.json` via `/api/save-wizard-config`), a **floating persistent status bar** (`#persistent-install-bar`) with dynamic SSE log reconnection, and **fully interactive clickable sidebar step navigation** (`#step-nav li`).
|
|
49
|
+
- `--ui-port <number>`: Manually specify the port for hosting the browser setup wizard server (default: 3000, increments dynamically if occupied).
|
|
50
|
+
|
|
51
|
+
---
|
|
52
|
+
|
|
53
|
+
### `connect`
|
|
54
|
+
Wire an IDE editor or client application to your remote brain.
|
|
55
|
+
- **Usage**:
|
|
56
|
+
```bash
|
|
57
|
+
npx total-recall connect <client> [options]
|
|
58
|
+
```
|
|
59
|
+
- **Clients**: `claude-code`, `cursor`, `codex`, `antigravity`, `gemini`, `aider`, `pi`, `hermes`, `dsh`, `openclaw`, `http-api`, `obsidian`, `generic`
|
|
60
|
+
- **Options**:
|
|
61
|
+
- `--brain <url>`: remote brain API base URL.
|
|
62
|
+
- `--token <pat>`: Personal Access Token to embed in generated config targets.
|
|
63
|
+
- `--vault <path>`: Obsidian vault target directory path.
|
|
64
|
+
- `--force`: Overwrite existing projection and rules files.
|
|
65
|
+
|
|
66
|
+
*Symlink clients (`claude-code`, `codex`, `antigravity`, `gemini`, `pi`, `dsh`, `openclaw`) create a platform symlink linking editor shims (like `CLAUDE.md`, `AGENTS.md`, or `GEMINI.md`) to the compiled rules. File-based clients (`cursor`, `cline`, `hermes`, `aider`) write standard rule and memory files directly.*
|
|
67
|
+
|
|
68
|
+
---
|
|
69
|
+
|
|
70
|
+
### `remember`
|
|
71
|
+
Autonomously learn and save a new memory node to the vault.
|
|
72
|
+
- **What it does**: Accepts facts or instructions and writes a canonical SSSS Markdown file with semantic Zod-conforming frontmatter. Re-compiles shims automatically.
|
|
73
|
+
- **Usage**:
|
|
74
|
+
```bash
|
|
75
|
+
npx total-recall remember <category> "<content>" [options]
|
|
76
|
+
```
|
|
77
|
+
- **Categories**: `invariant`, `preference`, `anti-pattern`, `pattern`, `decision`, `concept`, `fact`, `lore`
|
|
78
|
+
- **Options**:
|
|
79
|
+
- `--global`: Force-write to the global brain layer vault (`~/.agent/skills/total-recall/`).
|
|
80
|
+
- `--project`: Force-write to the project brain layer vault (`<repo>/.agent/skills/total-recall/`).
|
|
81
|
+
- `--tags, -t <list>`: Comma-separated list of tags.
|
|
82
|
+
- `--importance, -i <1-5>`: Weighting score (default: 3).
|
|
83
|
+
- `--priority <normal|high|absolute>`: Rule priority level (default: normal).
|
|
84
|
+
- `--modality <must|must_not|should|should_not>`: Rule enforcement modality.
|
|
85
|
+
- `--confidence <0.0-1.0>`: Initial confidence value.
|
|
86
|
+
- `--slug <name>`: Custom kebab-case slug descriptor.
|
|
87
|
+
|
|
88
|
+
*If no layer flag is provided, the CLI auto-detects resolution targeting based on the category (e.g. invariants and preferences map globally; facts and decisions map locally to active projects).*
|
|
89
|
+
|
|
90
|
+
---
|
|
91
|
+
|
|
92
|
+
### `context`
|
|
93
|
+
Assemble required rules and supporting knowledge for the current task before action.
|
|
94
|
+
|
|
95
|
+
```sh
|
|
96
|
+
total-recall context "task description" --action edit,test --format json
|
|
97
|
+
```
|
|
98
|
+
|
|
99
|
+
The CLI defaults to 16,000 estimated tokens for conservative uncurated rule sets;
|
|
100
|
+
`--budget 4000` selects a smaller explicit budget. The API defaults to 4,000.
|
|
101
|
+
Unknown applicability remains required. `ready: false` and exit 2 mean the full
|
|
102
|
+
required set exceeds the budget; never act from a truncated capsule. All headings
|
|
103
|
+
and separators count. Refresh on task/action/project/rule/skill changes.
|
|
104
|
+
Validated memory tags `context:universal` and `context:action:<action>` curate
|
|
105
|
+
activation separately from modality. Unknown actions activate rules conservatively.
|
|
106
|
+
Supported actions: read, edit, test, build, publish, deploy, secrets, network,
|
|
107
|
+
memory, skills and project. The local CLI works without a server.
|
|
108
|
+
|
|
109
|
+
### `recall`
|
|
110
|
+
Search local metadata and indexed full text across enabled memory layers.
|
|
111
|
+
- **What it does**: Searches a disposable local index and reads only selected Markdown documents. Semantic enrichment is opt-in and exact hits bypass providers.
|
|
112
|
+
- **Usage**:
|
|
113
|
+
```bash
|
|
114
|
+
npx total-recall recall "<query>" [options]
|
|
115
|
+
```
|
|
116
|
+
- **Options**:
|
|
117
|
+
- `--global`: Query the global layer only.
|
|
118
|
+
- `--project`: Query the local project layer only.
|
|
119
|
+
- `--top-k, -k <number>`: Number of results to return (default: 5).
|
|
120
|
+
- `--no-sessions, -ns`: Exclude ingested session archives from search results.
|
|
121
|
+
- `--local`: Indexed metadata and body text (default), without a provider.
|
|
122
|
+
- `--fast`: Metadata matches and selective hydration only.
|
|
123
|
+
- `--semantic`: Request semantic enrichment for non-exact queries.
|
|
124
|
+
- `--timings`: Report local index, matching and hydration timing on stderr.
|
|
125
|
+
- `--category <name>`: Filter results by SSSS category.
|
|
126
|
+
- `--tags <list>`: Filter by comma-separated tags list.
|
|
127
|
+
|
|
128
|
+
---
|
|
129
|
+
|
|
130
|
+
### `compile`
|
|
131
|
+
Rebuilds the `INSTRUCTIONS.md` and associated IDE client shims from the canonical memory vault nodes.
|
|
132
|
+
- **What it does**: Reads all valid `invariant`, `preference`, and `correction` nodes. Discards expired notes. Injects the entire **Installed Agent Skills** inventory (`.agent/skills/`) and the OpenWiki summary. Automatically updates `.cursorrules`, `CLAUDE.md`, `AGENTS.md`, and all other active environment shims.
|
|
133
|
+
- **Usage**:
|
|
134
|
+
```bash
|
|
135
|
+
npx total-recall compile [options]
|
|
136
|
+
```
|
|
137
|
+
- **Options**:
|
|
138
|
+
- `--force`: Force overwrite immutable invariants and shims.
|
|
139
|
+
|
|
140
|
+
---
|
|
141
|
+
|
|
142
|
+
### `rebuild`
|
|
143
|
+
Performs a deep, cold-start re-compilation of the surface projection.
|
|
144
|
+
- **What it does**: Completely discards the `memory-derived/` cached indexes. Parses the entire `memory-vault/` from scratch, rebuilds the embedding indexes asynchronously, and then triggers `compile` to inject the instructions, skills, and OpenWiki summaries.
|
|
145
|
+
- **Usage**:
|
|
146
|
+
```bash
|
|
147
|
+
npx total-recall rebuild
|
|
148
|
+
```
|
|
149
|
+
|
|
150
|
+
---
|
|
151
|
+
|
|
152
|
+
### `dream`
|
|
153
|
+
Trigger an immediate execution of the background consolidation Dream Cycle.
|
|
154
|
+
- **What it does**: Performs garbage-collection on confidence scores, indexes recent relays, resolves pending conflicts, and generates a daily summary journal in your vault (`daily/YYYY-MM-DD.md`).
|
|
155
|
+
- **Usage**:
|
|
156
|
+
```bash
|
|
157
|
+
npx total-recall dream
|
|
158
|
+
```
|
|
159
|
+
|
|
160
|
+
---
|
|
161
|
+
|
|
162
|
+
### `help`
|
|
163
|
+
Read offline documentation shipped with the CLI.
|
|
164
|
+
- **Usage**: `total-recall help [daemon|server|startup|research|architecture|ssss|settings] --json`
|
|
165
|
+
- `server` selects the `start` documentation; `startup-check` selects `startup`.
|
|
166
|
+
- Missing reference files are a package installation failure. Repair from the matching canonical package, then verify installed help; do not invent commands.
|
|
167
|
+
|
|
168
|
+
### `research`
|
|
169
|
+
Queue operations default to the current project brain. Use `--global` explicitly for the daemon's global queue. `list --status pending`, `list --status in_progress`, `status`, `show <id-or-topic>`, and `cancel <full-id>` operate on the selected layer. Clear unfinished jobs only when requested; retain completed reports. After cleanup verify both requested layers and server status.
|
|
170
|
+
Manage, query, or queue autonomous background research projects.
|
|
171
|
+
- **Usage**:
|
|
172
|
+
```bash
|
|
173
|
+
npx total-recall research <command> [options]
|
|
174
|
+
```
|
|
175
|
+
- **Commands**:
|
|
176
|
+
- `list`: Render a color-coded terminal dashboard of pending, active, completed, and failed research tasks.
|
|
177
|
+
- `add "<topic>"`: Queue a new topic for the research daemon.
|
|
178
|
+
- `status`: Clean summary count of all states and phases.
|
|
179
|
+
- `show <id-or-topic>`: Detailed dashboard showing conclusions, active phase, gaps, and ongoing directions for a project.
|
|
180
|
+
- `report <id-or-topic>`: Read the full raw Markdown report directly from the vault.
|
|
181
|
+
- `cancel <id>`: Cancel and remove a task.
|
|
182
|
+
- **Options**:
|
|
183
|
+
- `--global`: Query/add to the global research queue.
|
|
184
|
+
- `--project`: Query/add to the project research queue.
|
|
185
|
+
- `--priority <low|medium|high>`: Priority weighting (default: medium).
|
|
186
|
+
- `--notes "<text>"`: Contextual notes for the research engine.
|
|
187
|
+
|
|
188
|
+
---
|
|
189
|
+
|
|
190
|
+
### `lint`
|
|
191
|
+
Validate all vault Markdown nodes against SSSS v2 Zod schema constraints, or check for OKF metadata compliance.
|
|
192
|
+
- **Usage**:
|
|
193
|
+
```bash
|
|
194
|
+
npx total-recall lint [options]
|
|
195
|
+
```
|
|
196
|
+
- **Options**:
|
|
197
|
+
- `--strict`: Treat warnings as errors (exit 1 on any issue).
|
|
198
|
+
- `--okf`: Verify OKF v0.1 draft metadata compliance (checks for title, description, tags, and updated timestamp).
|
|
199
|
+
- `--json`: Output results as JSONL.
|
|
200
|
+
- `--vault <path>`: Override vault directory (default: ~/.agent/memory-vault).
|
|
201
|
+
|
|
202
|
+
---
|
|
203
|
+
|
|
204
|
+
### `ingest`
|
|
205
|
+
Ingest external data sources or IDE conversation logs into Total Recall.
|
|
206
|
+
- **Usage**:
|
|
207
|
+
```bash
|
|
208
|
+
npx total-recall ingest [options]
|
|
209
|
+
npx total-recall ingest google-takeout <path> [options]
|
|
210
|
+
npx total-recall ingest okf <bundle-path> [options]
|
|
211
|
+
```
|
|
212
|
+
- **Ingestion sources**:
|
|
213
|
+
- IDE conversation histories are scanned from Claude Code, OpenAI Codex, Gemini CLI, Antigravity, and Cursor.
|
|
214
|
+
- **Options for `okf`**:
|
|
215
|
+
- `<bundle-path>`: Path to the OKF bundle directory.
|
|
216
|
+
- `--dry-run`: Pre-flight check and validate concepts without writing.
|
|
217
|
+
- `--category <name>`: Override and force category for all imported concepts.
|
|
218
|
+
- `--importance <1-5>`: Override default importance level (default: 3).
|
|
219
|
+
- `--on-conflict <skip|warn|overwrite>`: Strategy for duplicate slugs (default: warn).
|
|
220
|
+
- `--type-map <mapping>`: Custom type mappings. Format: "Type A=facts,Type B=concepts".
|
|
221
|
+
- `--global`: Target the global brain.
|
|
222
|
+
- `--project`: Target the project brain.
|
|
223
|
+
|
|
224
|
+
---
|
|
225
|
+
|
|
226
|
+
### `export`
|
|
227
|
+
Export a Total Recall knowledge base to external formats.
|
|
228
|
+
- **Usage**:
|
|
229
|
+
```bash
|
|
230
|
+
npx total-recall export <output-path> --okf [options]
|
|
231
|
+
```
|
|
232
|
+
- **Options**:
|
|
233
|
+
- `--okf`: Export as an Open Knowledge Format (OKF) bundle (required).
|
|
234
|
+
- `--format <dir|tar.gz>`: Output format: directory or compressed tarball (default: dir).
|
|
235
|
+
- `--strip-ssss`: Remove all SSSS-specific metadata fields, leaving only pure OKF.
|
|
236
|
+
- `--global`: Source from the global brain.
|
|
237
|
+
- `--project`: Source from the project brain (default).
|
|
238
|
+
|
|
239
|
+
---
|
|
240
|
+
|
|
241
|
+
### `backup`
|
|
242
|
+
Create local encrypted archives or push diffs to a remote private git repository.
|
|
243
|
+
- **Usage**:
|
|
244
|
+
```bash
|
|
245
|
+
npx total-recall backup [options]
|
|
246
|
+
```
|
|
247
|
+
- **Options**:
|
|
248
|
+
- `--global`: Back up global brain layer.
|
|
249
|
+
- `--project`: Back up project brain layer.
|
|
250
|
+
- `--push-git <remote-url>`: Initiates a secure diff git commit and pushes to the designated repository remote.
|
|
251
|
+
- `--obsidian <path>`: Runs rsync mirroring memory vault directly to your Obsidian directory.
|
|
252
|
+
- `--no-encrypt`: Skips GPG symmetric password encryption (saves as standard `.tar.gz` instead of `.tar.gpg`).
|
|
253
|
+
|
|
254
|
+
---
|
|
255
|
+
|
|
256
|
+
### `restore`
|
|
257
|
+
Restore your virtual file system from a password-encrypted tarball backup.
|
|
258
|
+
- **Usage**:
|
|
259
|
+
```bash
|
|
260
|
+
npx total-recall restore <path-to-archive>
|
|
261
|
+
```
|
|
262
|
+
|
|
263
|
+
---
|
|
264
|
+
|
|
265
|
+
### `sync`
|
|
266
|
+
Pull compiled instruction shims and master files from a remote brain.
|
|
267
|
+
- **Usage**:
|
|
268
|
+
```bash
|
|
269
|
+
npx total-recall sync --brain <url> --token <pat>
|
|
270
|
+
```
|
|
271
|
+
|
|
272
|
+
---
|
|
273
|
+
|
|
274
|
+
### `status`
|
|
275
|
+
Verify system health, connected clients registry, and daemon loops.
|
|
276
|
+
- **Usage**:
|
|
277
|
+
```bash
|
|
278
|
+
npx total-recall status [options]
|
|
279
|
+
```
|
|
280
|
+
- **Options**:
|
|
281
|
+
- `--json`: Emit machine-readable system metrics.
|
|
282
|
+
|
|
283
|
+
---
|
|
284
|
+
|
|
285
|
+
### `mesh`
|
|
286
|
+
Control-server (Headscale) mesh administration, cluster capability auditing, and remote execution.
|
|
287
|
+
- **Usage**:
|
|
288
|
+
```bash
|
|
289
|
+
npx total-recall mesh <command> [options]
|
|
290
|
+
```
|
|
291
|
+
- **Commands**:
|
|
292
|
+
- `status`: Show control-server reachability and credentials.
|
|
293
|
+
- `doctor [--json]`: Concurrently audit reachability, runtimes (`node`, `docker`, `git`), and AI harnesses (`agy`, `claude`, `codex`, `gemini`, `ollama`) across all cluster nodes.
|
|
294
|
+
- `nodes`: List registered mesh nodes and resolved network endpoints.
|
|
295
|
+
- `ssh <node> [cmd…]`: Open an interactive or command-bound SSH session using recorded access.
|
|
296
|
+
- `exec <node> [--json] <cmd…>`: Execute non-interactive remote commands over SSH with standardized `$PATH` export and structured exit code output.
|
|
297
|
+
- `access <node>`: Show or configure recorded login account, SSH port, and key path.
|
|
298
|
+
- `access import [--apply]`: Propose and optionally save access configs from `~/.ssh/config`.
|
|
299
|
+
- `preauthkey [--reusable] [--ephemeral]`: Mint enrollment pre-authentication keys for new tailnet devices.
|
|
300
|
+
- `policy <get|set|init-ssh>`: Manage Headscale ACL policies and initialize mesh-wide Tailscale SSH.
|
|
301
|
+
|
|
302
|
+
---
|
|
303
|
+
|
|
304
|
+
### `harness`
|
|
305
|
+
Meta-Harness orchestration across connected external IDEs, CLI tools, and local neural models.
|
|
306
|
+
- **Usage**:
|
|
307
|
+
```bash
|
|
308
|
+
npx total-recall harness <command> [options]
|
|
309
|
+
```
|
|
310
|
+
- **Commands**:
|
|
311
|
+
- `list`: Inspect all supported developer harnesses (`agy`, `claude`, `codex`, `gemini`, `ollama`) with availability and binary locations.
|
|
312
|
+
- `dispatch <id> [--node <node>] "<task>"`: Headlessly invoke a specific harness with task instructions. Supports cross-mesh execution via `--node` and non-interactive `pipe_stdin` for Ollama models (e.g. `gemma4:latest`).
|
|
313
|
+
- `council "<task>"`: Execute multi-harness consensus deliberations concurrently across all available engines and compare responses.
|
|
314
|
+
|
|
315
|
+
---
|
|
316
|
+
|
|
317
|
+
### `agent`
|
|
318
|
+
Lightweight process controller for background subagent tasks across local and remote mesh nodes.
|
|
319
|
+
- **Usage**:
|
|
320
|
+
```bash
|
|
321
|
+
npx total-recall agent <command> [options]
|
|
322
|
+
```
|
|
323
|
+
- **Commands**:
|
|
324
|
+
- `list [--json]`: List all running, completed, or failed agent processes from `sessions/agents.json`.
|
|
325
|
+
- `spawn <harness> [--node <node>] [--name <label>] "<task>"`: Spawn an agent task detached in the background with stdout/stderr automatically redirected to session logs.
|
|
326
|
+
- `status [id]`: Display execution state, PID, runtime harness, and log file path.
|
|
327
|
+
- `logs <id> [--tail <n>]`: Stream recent log lines from local storage or over mesh SSH for remote nodes.
|
|
328
|
+
- `kill <id|pid>`: Terminate an active agent process locally or across the mesh.
|
|
329
|
+
|
|
330
|
+
---
|
|
331
|
+
|
|
332
|
+
### `key`
|
|
333
|
+
Issue labels and grant scoped Bearer Personal Access Tokens (PATs).
|
|
334
|
+
- **Usage**:
|
|
335
|
+
```bash
|
|
336
|
+
npx total-recall key create <name> [options]
|
|
337
|
+
npx total-recall key list
|
|
338
|
+
npx total-recall key rotate <id>
|
|
339
|
+
npx total-recall key revoke <id>
|
|
340
|
+
```
|
|
341
|
+
- **Options for create**:
|
|
342
|
+
- `--scope <list>`: Comma-separated access scopes (e.g., `chat:read,memory:write`). Default: `*`.
|
|
343
|
+
- `--expires <date>`: ISO date (`2026-06-01`) or relative days (`30d`).
|
|
344
|
+
|
|
345
|
+
---
|
|
346
|
+
|
|
347
|
+
### `secret`
|
|
348
|
+
Manage API keys and credentials (stored in `secrets.enc`, not in the memory vault).
|
|
349
|
+
- **Usage**:
|
|
350
|
+
```bash
|
|
351
|
+
npx total-recall secret set <key> <value> [options]
|
|
352
|
+
npx total-recall secret generate <key> [--bytes 32] [--format hex|base64url]
|
|
353
|
+
npx total-recall secret get <key>
|
|
354
|
+
npx total-recall secret list
|
|
355
|
+
npx total-recall secret rotate <key> <value>
|
|
356
|
+
npx total-recall secret delete <key>
|
|
357
|
+
|
|
358
|
+
# Executed rotation (3.22.0+)
|
|
359
|
+
npx total-recall secret rotation-status [--json]
|
|
360
|
+
npx total-recall secret rotate-auto <key> [--export-env]
|
|
361
|
+
npx total-recall secret rotate-browser <key> [--headless] [--print-only]
|
|
362
|
+
npx total-recall secret browser-logout
|
|
363
|
+
```
|
|
364
|
+
- **Options for set**:
|
|
365
|
+
- `--provider <name>`: E.g., openai, anthropic.
|
|
366
|
+
- `--scope <global|project>`: Scope the secret.
|
|
367
|
+
- **Rotation classes**: every key resolves to `self_generated` (TR mints it, no
|
|
368
|
+
human), `provider_browser` (TR drives the console), `provider_api`, or
|
|
369
|
+
`manual` (human-only, with a stated reason). `rotation-status` reports
|
|
370
|
+
coverage across the whole vault.
|
|
371
|
+
- **`rotate-auto`** picks the method from the key's class. `self_generated`
|
|
372
|
+
keys — `JWT_SECRET`, `DB_PASSWORD`, `*_WEBHOOK_SECRET` and friends — rotate
|
|
373
|
+
fully unattended with no browser at all.
|
|
374
|
+
- **Console rotation** uses a persistent Chromium profile at
|
|
375
|
+
`<brain>/browser-profile` (mode `0700`). It holds live provider sessions and is
|
|
376
|
+
as sensitive as `secrets.enc` — never sync it; clear it with `browser-logout`.
|
|
377
|
+
Values are captured from the browser clipboard inside TR's process, shape-checked,
|
|
378
|
+
and verified against the provider API before replacing the old credential.
|
|
379
|
+
|
|
380
|
+
---
|
|
381
|
+
|
|
382
|
+
### `daemon`
|
|
383
|
+
Manage the background worker independently of the REST server. `status` reports its PID and recent activity; restarting the REST server does not reload the worker.
|
|
384
|
+
- **Usage**:
|
|
385
|
+
```bash
|
|
386
|
+
npx total-recall daemon <start|stop|status>
|
|
387
|
+
```
|
|
388
|
+
|
|
389
|
+
---
|
|
390
|
+
|
|
391
|
+
### `relay`
|
|
392
|
+
Manage the background local workstation session watch relay.
|
|
393
|
+
- **Usage**:
|
|
394
|
+
```bash
|
|
395
|
+
npx total-recall relay <start|stop|status|once|install|uninstall>
|
|
396
|
+
```
|
|
397
|
+
- **Commands**:
|
|
398
|
+
- `start`/`stop`: Run or kill the process manually.
|
|
399
|
+
- `status`: Show process IDs and last sync execution timestamps.
|
|
400
|
+
- `once`: Perform a single session scan and push pass.
|
|
401
|
+
- `install`/`uninstall`: Register or remove launchd plist auto-start entries.
|
|
402
|
+
|
|
403
|
+
---
|
|
404
|
+
|
|
405
|
+
### `config`
|
|
406
|
+
Read, write, or hot-reload configurations dynamically in-process.
|
|
407
|
+
- **Usage**:
|
|
408
|
+
```bash
|
|
409
|
+
npx total-recall config <get|set> <key> [value]
|
|
410
|
+
```
|
|
411
|
+
- **Examples**:
|
|
412
|
+
```bash
|
|
413
|
+
npx total-recall config set daily_cap_usd 10.0
|
|
414
|
+
npx total-recall config get yolo_mode
|
|
415
|
+
```
|
|
416
|
+
|
|
417
|
+
---
|
|
418
|
+
|
|
419
|
+
### `skill`
|
|
420
|
+
Search, install, security audit, and remove packages from the skills.sh registry.
|
|
421
|
+
- **Usage**:
|
|
422
|
+
```bash
|
|
423
|
+
npx total-recall skill <command> [options]
|
|
424
|
+
```
|
|
425
|
+
- **Commands**:
|
|
426
|
+
- `find <query>`: Query skills.sh sorted by installs rating.
|
|
427
|
+
- `install <pkg>`: Download a skill, run static security analysis, and scaffold directories.
|
|
428
|
+
- `scan <skill-name>`: Trigger a static security vulnerability audit.
|
|
429
|
+
- `list` (or `ls`): Enumerate all active parent skills and sub-skills.
|
|
430
|
+
- `remove <name>` (or `rm`): Safely delete a skill and re-compile rules.
|
|
431
|
+
|
|
432
|
+
---
|
|
433
|
+
|
|
434
|
+
### `command`
|
|
435
|
+
Manage custom project-local CLI commands dynamically.
|
|
436
|
+
- **What it does**: Writes or removes executable `.mjs` scripts in your project's local brain (`.agent/commands/`), allowing you to extend `total-recall` with project-specific orchestration logic.
|
|
437
|
+
- **Usage**:
|
|
438
|
+
```bash
|
|
439
|
+
npx total-recall command <create|remove> <name> ["<code>"]
|
|
440
|
+
```
|
|
441
|
+
- **Commands**:
|
|
442
|
+
- `create <name> "<code>"`: Instantiates a new executable CLI subcommand within the active project.
|
|
443
|
+
- `remove <name>`: Deletes a previously instantiated project-local subcommand.
|
|
444
|
+
|
|
445
|
+
---
|
|
446
|
+
|
|
447
|
+
### `uninstall`
|
|
448
|
+
Completely purge background services, configurations, and shims.
|
|
449
|
+
- **What it does**: Stops background Relays and Daemons, unregisters macOS launchd plists/Linux systemd user units, removes editor shims, and deletes global configs.
|
|
450
|
+
- **Usage**:
|
|
451
|
+
```bash
|
|
452
|
+
npx total-recall uninstall
|
|
453
|
+
```
|
|
454
|
+
> [!IMPORTANT]
|
|
455
|
+
> **Git Preservation Boundaries:**
|
|
456
|
+
> The uninstaller **preserves** local `.agent/skills/` and `.agent/memory-vault/` directories inside active git-tracked repositories to prevent instructional memory loss.
|
|
457
|
+
|
|
458
|
+
---
|
|
459
|
+
|
|
460
|
+
### `collab`
|
|
461
|
+
Start the Express + WebSockets collaboration server and Vite/React browser simulation portal.
|
|
462
|
+
- **What it does**: Spins up the user management, group sharing database, persistent page-tied annotation registry, and live WebSockets channel connection router concurrently in one terminal wrapper.
|
|
463
|
+
- **Usage**:
|
|
464
|
+
```bash
|
|
465
|
+
npx total-recall collab
|
|
466
|
+
```
|
|
467
|
+
|
|
468
|
+
---
|
|
469
|
+
|
|
470
|
+
### `brain`
|
|
471
|
+
Switch the active memory vault or display the current context.
|
|
472
|
+
- **Usage**: `npx total-recall brain [switch <path>]`
|
|
473
|
+
|
|
474
|
+
### `chat`
|
|
475
|
+
Launch an interactive CLI agent session connected to the active brain.
|
|
476
|
+
- **Usage**: `npx total-recall chat`
|
|
477
|
+
|
|
478
|
+
### `deploy-ui`
|
|
479
|
+
Build and deploy the React frontend dashboard locally.
|
|
480
|
+
- **Usage**: `npx total-recall deploy-ui`
|
|
481
|
+
|
|
482
|
+
### `doctor`
|
|
483
|
+
Run comprehensive health checks on the agent environment and repair broken symlinks or missing configurations.
|
|
484
|
+
- **Usage**: `npx total-recall doctor`
|
|
485
|
+
|
|
486
|
+
### `forget`
|
|
487
|
+
Delete a specific memory node from the vault.
|
|
488
|
+
- **Usage**: `npx total-recall forget <slug>`
|
|
489
|
+
|
|
490
|
+
### `friction`
|
|
491
|
+
Record a developer friction event or annoyance for the agent to optimize later.
|
|
492
|
+
- **Usage**: `npx total-recall friction "The build takes too long"`
|
|
493
|
+
|
|
494
|
+
### `generate-pat`
|
|
495
|
+
Generate a new Personal Access Token (PAT) for API usage.
|
|
496
|
+
- **Usage**: `npx total-recall generate-pat`
|
|
497
|
+
|
|
498
|
+
### `hash-password`
|
|
499
|
+
Hash a plaintext password for manual entry into `security.yml`.
|
|
500
|
+
- **Usage**: `npx total-recall hash-password <password>`
|
|
501
|
+
|
|
502
|
+
### `import-rules`
|
|
503
|
+
Import legacy markdown rules or `.cursorrules` into the structured memory vault.
|
|
504
|
+
- **Usage**: `npx total-recall import-rules <path>`
|
|
505
|
+
|
|
506
|
+
### `map`
|
|
507
|
+
Generate a visual CLI tree map of the current memory vault structure.
|
|
508
|
+
- **Usage**: `npx total-recall map`
|
|
509
|
+
|
|
510
|
+
### `migrate`
|
|
511
|
+
Run schema migrations to upgrade older SSSS layouts to the current specification.
|
|
512
|
+
- **Usage**: `npx total-recall migrate`
|
|
513
|
+
|
|
514
|
+
### `reset-password`
|
|
515
|
+
Reset the admin UI dashboard password interactively.
|
|
516
|
+
- **Usage**: `npx total-recall reset-password`
|
|
517
|
+
|
|
518
|
+
### `share`
|
|
519
|
+
Export a specific memory node to a shareable markdown format.
|
|
520
|
+
- **Usage**: `npx total-recall share <slug>`
|
|
521
|
+
|
|
522
|
+
### `snapshot`
|
|
523
|
+
Create a point-in-time archive of the current memory vault state.
|
|
524
|
+
- **Usage**: `npx total-recall snapshot`
|
|
525
|
+
|
|
526
|
+
### `startup`
|
|
527
|
+
Check the configured shared runtime or start missing managed local services.
|
|
528
|
+
- **Usage**: `total-recall startup check|ensure --json`
|
|
529
|
+
- `check` observes server health, authenticated instructions, daemon identity and SSSS tooling separately.
|
|
530
|
+
- `ensure` starts only missing configured managed local services. It never restarts a running, unknown or foreign process.
|
|
531
|
+
- Health and instructions probes each allow ten seconds and retry a transport failure once. HTTP authorization failures are not retried.
|
|
532
|
+
- `--app-check <registered-command>` and optional `--app-start <registered-command>` apply only to explicitly declared commands in the current repository.
|
|
533
|
+
- Older packages may use the registered `total-recall startup-check check|ensure --json` compatibility command.
|
|
534
|
+
- Use `total-recall status --json` and `total-recall daemon status` for follow-up diagnosis. `doctor` checks installation prerequisites and port availability; an occupied port alone does not prove an unhealthy running service.
|
|
535
|
+
|
|
536
|
+
### `start`
|
|
537
|
+
Start the primary REST API daemon process in the foreground.
|
|
538
|
+
- **Usage**: `npx total-recall start`
|
|
539
|
+
|
|
540
|
+
### `task`
|
|
541
|
+
Manage background CLI agent tasks.
|
|
542
|
+
- **Usage**: `npx total-recall task [list|kill]`
|
|
543
|
+
|
|
544
|
+
### `upgrade`
|
|
545
|
+
Pull the latest Total Recall system version and run self-update routines.
|
|
546
|
+
- **Usage**: `npx total-recall upgrade`
|
|
547
|
+
|
|
548
|
+
---
|
|
549
|
+
|
|
550
|
+
## ⚙️ Environment Variables (Env Overrides)
|
|
551
|
+
|
|
552
|
+
| Env Variable | Type | Default | Subsystem / Purpose |
|
|
553
|
+
| :--- | :--- | :--- | :--- |
|
|
554
|
+
| `AGENT_DIR` | String | `~/.agent` | Scaffolding directory root holding IDE shims and skills. |
|
|
555
|
+
| `TR_CLI_AGENT` | String | `antigravity` | Preferred CLI reasoning agent (`antigravity`, `gemini`, `claude`, `codex`). |
|
|
556
|
+
| `TR_CLI_MODEL` | String | `null` | Explicit model string override passed to the dispatched subagent. Supports `agent:submodel` format (e.g. `gemini:gemini-3.5-flash`) to specify both the agent and model dynamically. |
|
|
557
|
+
| `TR_CLI_TIMEOUT` | Integer | `300` | Process execution timeout threshold in seconds. |
|
|
558
|
+
| `GOOGLE_API_KEY` | String | `null` | Key for high-fidelity Gemini embedding generations. |
|
|
559
|
+
| `TR_EMBED_MODEL` | String | `gemini-embedding-2` | Preferred embedding model target. |
|
|
560
|
+
| `SESSION_SECRET` | String | `null` | Secret utilized to sign admin authentication cookies. |
|
|
561
|
+
| `PORT` | Integer | `3000` | Binding port for the Express REST server. |
|
|
562
|
+
| `HOST` | String | `127.0.0.1` | Loopback bind address configuration. |
|
|
563
|
+
| `TR_BRAIN` | String | `null` | Overrides active project local brain path detection. |
|
|
564
|
+
| `TR_PAT` | String | `null` | Authenticates remote REST commands directly. |
|
|
565
|
+
| `TR_DAILY_SEARCH_LIMIT`| Integer | `50` | Maximum daily outbound Google/Brave web search limit. |
|
|
566
|
+
| `XDG_CONFIG_HOME` | String | `~/.config` | Alternative configuration path pointer. |
|
|
567
|
+
|
|
568
|
+
---
|
|
569
|
+
|
|
570
|
+
## 📁 System Configuration Files
|
|
571
|
+
|
|
572
|
+
All JSON and YAML files reside securely under the consolidated meta-skill config path:
|
|
573
|
+
`~/.agent/skills/total-recall/config/` (Global) or `<repo>/.agent/skills/total-recall/config/` (Project).
|
|
574
|
+
|
|
575
|
+
### `budget.yml` (USD Cost Caps)
|
|
576
|
+
Enforces outbound token caps. Updates reload dynamically:
|
|
577
|
+
```yaml
|
|
578
|
+
daily_cap_usd: 5.00 # Daily USD spending limit
|
|
579
|
+
weekly_cap_usd: 25.00 # Weekly USD spending limit
|
|
580
|
+
```
|
|
581
|
+
|
|
582
|
+
### `security.yml` (Sandbox & Access Control)
|
|
583
|
+
```yaml
|
|
584
|
+
dashboard:
|
|
585
|
+
password_hash: $2b$12$R9... # bcrypt-cost: 12 password hash
|
|
586
|
+
session_timeout_seconds: 86400
|
|
587
|
+
sandbox:
|
|
588
|
+
enabled: false # Hardened Sandbox defaults off for maximum safety
|
|
589
|
+
network:
|
|
590
|
+
allowed_origins:
|
|
591
|
+
- http://localhost:5173
|
|
592
|
+
```
|
|
593
|
+
|
|
594
|
+
### `agents.yml` (Prioritized CLI Agents Registry)
|
|
595
|
+
Defines the headless cognitive execution pipeline:
|
|
596
|
+
```yaml
|
|
597
|
+
agents:
|
|
598
|
+
- name: gemini
|
|
599
|
+
binary: gemini-cli
|
|
600
|
+
enabled: true
|
|
601
|
+
priority: 10
|
|
602
|
+
flags: ["--non-interactive"]
|
|
603
|
+
- name: claude
|
|
604
|
+
binary: claude-code
|
|
605
|
+
enabled: true
|
|
606
|
+
priority: 20
|
|
607
|
+
```
|
|
608
|
+
|
|
609
|
+
### `secrets.enc` (AES Encrypted Credentials)
|
|
610
|
+
- Secure, GPG symmetrically password-encrypted binary container enclosing environment tokens (`google_api_key`, `github_token`, `openai_api_key`) with owner-only `0o600` access modes. Plaintext keys are never written to disk.
|