total-recall-brain 3.33.0 → 3.34.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/bin/total-recall.mjs +5 -1
- package/docs/ARCHITECTURE.md +7 -1
- package/docs/reference/cli-reference.md +30 -6
- package/package.json +2 -2
- package/plugins/creative-search/README.md +9 -2
- package/plugins/creative-search/cli.mjs +17 -23
- package/plugins/creative-search/config.mjs +46 -20
- package/plugins/creative-search/generator.mjs +9 -40
- package/plugins/creative-search/plugin.json +4 -2
- package/plugins/creative-search/ui/csearch-main.js +16 -13
- package/plugins/skill-manager/README.md +30 -0
- package/plugins/skill-manager/cli.mjs +104 -0
- package/plugins/skill-manager/plugin.json +24 -0
- package/scaffold/.agent/skills/decision/SKILL.md +20 -0
- package/scaffold/.agent/skills/decision/references/integration.md +25 -0
- package/scaffold/.agent/skills/decision/references/use-cases.md +20 -0
- package/scaffold/.agent/skills/meta-harness/SKILL.md +7 -105
- package/scaffold/.agent/skills/meta-harness/references/optimized/index.md +20 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/manifest.json +79 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/original.md +113 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-01.md +5 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-02.md +10 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-03.md +8 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-04.md +2 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-05.md +6 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-06.md +14 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-07.md +8 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-08.md +4 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-09.md +9 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-10.md +6 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-11.md +5 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-12.md +7 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-13.md +4 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-14.md +7 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-15.md +9 -0
- package/scaffold/.agent/skills/meta-harness/references/optimized/section-16.md +5 -0
- package/scaffold/.agent/skills/plugins/SKILL.md +7 -50
- package/scaffold/.agent/skills/plugins/references/optimized/index.md +9 -0
- package/scaffold/.agent/skills/plugins/references/optimized/manifest.json +35 -0
- package/scaffold/.agent/skills/plugins/references/optimized/original.md +58 -0
- package/scaffold/.agent/skills/plugins/references/optimized/section-01.md +5 -0
- package/scaffold/.agent/skills/plugins/references/optimized/section-02.md +25 -0
- package/scaffold/.agent/skills/plugins/references/optimized/section-03.md +12 -0
- package/scaffold/.agent/skills/plugins/references/optimized/section-04.md +7 -0
- package/scaffold/.agent/skills/plugins/references/optimized/section-05.md +5 -0
- package/scaffold/.agent/skills/project-management/SKILL.md +18 -0
- package/scaffold/.agent/skills/project-management/references/audit-template.md +91 -0
- package/scaffold/.agent/skills/project-management/references/project-documents.md +23 -0
- package/scaffold/.agent/skills/project-management/scripts/check-audit.mjs +49 -0
- package/scaffold/.agent/skills/start/SKILL.md +8 -65
- package/scaffold/.agent/skills/start/references/optimized/index.md +10 -0
- package/scaffold/.agent/skills/start/references/optimized/manifest.json +39 -0
- package/scaffold/.agent/skills/start/references/optimized/original.md +75 -0
- package/scaffold/.agent/skills/start/references/optimized/section-01.md +5 -0
- package/scaffold/.agent/skills/start/references/optimized/section-02.md +15 -0
- package/scaffold/.agent/skills/start/references/optimized/section-03.md +21 -0
- package/scaffold/.agent/skills/start/references/optimized/section-04.md +8 -0
- package/scaffold/.agent/skills/start/references/optimized/section-05.md +13 -0
- package/scaffold/.agent/skills/start/references/optimized/section-06.md +8 -0
- package/scaffold/.agent/skills/total-recall/SKILL.md +1 -1
- package/src/cli/connect.mjs +7 -14
- package/src/cli/context.mjs +12 -7
- package/src/cli/skill-optimize.mjs +50 -0
- package/src/cli/skill-projection.mjs +22 -3
- package/src/cli/skill.mjs +7 -0
- package/src/core/context-compiler.mjs +39 -7
- package/src/core/context-policy.mjs +28 -1
- package/src/core/plugin-context.mjs +3 -1
- package/src/core/plugin-loader.mjs +3 -0
- package/src/core/plugin-tasks.mjs +14 -3
- package/src/core/schema.mjs +2 -0
- package/src/core/skill-optimizer.mjs +190 -0
- package/src/core/surface.mjs +3 -3
- package/src/server/routes/context.mjs +7 -4
- package/templates/skill-routers.json +119 -0
|
@@ -0,0 +1,24 @@
|
|
|
1
|
+
{
|
|
2
|
+
"id": "skill-manager",
|
|
3
|
+
"name": "Skill Manager",
|
|
4
|
+
"version": "1.0.0",
|
|
5
|
+
"description": "Conservative skill optimization on an explicitly selected daemon node and authorized roots.",
|
|
6
|
+
"license": "MIT",
|
|
7
|
+
"use_cases": ["skills", "automation"],
|
|
8
|
+
"cli": {
|
|
9
|
+
"command": "skill-manager",
|
|
10
|
+
"handler": "./cli.mjs",
|
|
11
|
+
"subcommands": [
|
|
12
|
+
{ "name": "configure", "description": "Select a mesh node and authorized skill roots from a JSON configuration" },
|
|
13
|
+
{ "name": "status", "description": "Show selection, configuration and last report" },
|
|
14
|
+
{ "name": "audit", "description": "Inspect changed skill packages without applying changes" },
|
|
15
|
+
{ "name": "optimize", "description": "Run configured conservative optimization on the selected node" }
|
|
16
|
+
]
|
|
17
|
+
},
|
|
18
|
+
"tasks": [{
|
|
19
|
+
"intent": "Inspect changed skills and apply only authorized lossless optimization",
|
|
20
|
+
"schedule": "0 3 * * *",
|
|
21
|
+
"command": "optimize",
|
|
22
|
+
"placement": "selected-node"
|
|
23
|
+
}]
|
|
24
|
+
}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: decision
|
|
3
|
+
description: Design and use typed decisions for routing, classification, ranking and verification; configure Jev through the existing decision capability.
|
|
4
|
+
repo_scoped: false
|
|
5
|
+
---
|
|
6
|
+
|
|
7
|
+
# Decision
|
|
8
|
+
|
|
9
|
+
Use one decision capability for closed choices, yes/no probabilities and ordered scores. Jev is a configurable engine; use a generative model when the task needs prose. Typed output still needs validation and domain evaluation.
|
|
10
|
+
|
|
11
|
+
Discover the current repository's decision plugin, configuration, credential resolver and local overlay. Confirm installed commands before invoking them. Resolve model, endpoint, timeout, budget and gates from config or flags; keep credentials in the existing secret store. Public skills contain portable methods, not repository or account instances.
|
|
12
|
+
|
|
13
|
+
Validate typed answers before branching. Choice/Score confidence differs from Noul's probability of yes; never default missing certainty to success. Calibrate outcome gates using representative cases. Missing config, invalid output, timeout or provider failure takes the deterministic fallback. Required instructions, scope and permissions stay enforced in code; model advice cannot override them.
|
|
14
|
+
|
|
15
|
+
Read only the reference needed now:
|
|
16
|
+
|
|
17
|
+
- [Integration and typed response contract](references/integration.md)
|
|
18
|
+
- [Skill routing and use cases](references/use-cases.md)
|
|
19
|
+
|
|
20
|
+
Keep shared state small; batch independent questions and compute arithmetic in code. Test synthetic success, abstention and failure cases before integration. Live provider evidence is separate from mocks. Record model/version, decision and measured outcome without secrets or unnecessary state. Preserve existing human approval requirements.
|
|
@@ -0,0 +1,25 @@
|
|
|
1
|
+
# Decision integration
|
|
2
|
+
|
|
3
|
+
Verified against primary documentation on 2026-10-01. Recheck alpha API contracts before implementation.
|
|
4
|
+
|
|
5
|
+
## Discover and configure
|
|
6
|
+
|
|
7
|
+
Use the installed decision plugin's manifest/help to discover supported commands. Its skill is the same `decision` capability; do not install an additional Jev skill. Plugin presence or documentation alone does not prove live dispatch or persistence. Validate the adapter before relying on it.
|
|
8
|
+
|
|
9
|
+
Reuse the repository's credential and provider configuration. Prefer schema-validated portable defaults and repo-owned config/overlays. Use the existing layered skill contract where supported: plugin-owned `core/config.schema.json`, canonical repo-owned SSSS `skill_config`, disposable `config.json` projection. Do not invent those interfaces where no consumer exists. No personal paths/hosts, credentials or injected memory belong in shipped defaults.
|
|
10
|
+
|
|
11
|
+
## Jev boundary
|
|
12
|
+
|
|
13
|
+
OpenRouter documents `POST /api/alpha/decisions` for plain HTTP/OpenRouter SDK calls and `POST /api/v1/systemone` for the TypeSafe SDK format. Confirm the chosen surface's request schema; do not interchange formats blindly. Select the model in configuration and record the actual response version. The separate Jev Router selects chat models/reasoning effort; it does not implement skill selection.
|
|
14
|
+
|
|
15
|
+
Use Choice for a bounded label set, Noul for probability of yes and Score for an ordered probability-weighted result. Choice and Score expose distributions and confidence; Noul does not expose a separate confidence value. Validate finite ranges, membership and required answer fields; missing confidence never becomes 1. A weighted Score is not a discrete level. Pin the actual adapter contract and fixture responses before wiring gates.
|
|
16
|
+
|
|
17
|
+
## OpenAI Decisions preview
|
|
18
|
+
|
|
19
|
+
OpenAI announced a Luna-powered Decisions API on 2026-09-29 for finite predefined answers from text or image context. It is in limited preview; the public endpoint, schema and this account's access are unverified. OpenRouter's `/api/alpha/decisions` currently documents Jev, and its public model catalog did not list OpenAI Decisions on 2026-10-01. Keep OpenAI as a configurable future engine in this one `decision` skill, without guessing a model slug or sending requests through the Jev endpoint. Use the deterministic path until the official contract and actual access are verified. [OpenAI announcement](https://openai.com/index/devday-2026-recap/) · [OpenRouter Jev contract](https://openrouter.ai/docs/guides/community/jev).
|
|
20
|
+
|
|
21
|
+
## Evidence and fallback
|
|
22
|
+
|
|
23
|
+
Tune gates with representative labelled cases, including ambiguous input, no matching option, label wording changes and incomplete state. Report false selections, missed selections, abstention, latency and cost. Typed validity does not establish semantic accuracy. Cache by task, catalog/content hashes and configuration/model version; invalidate on relevant changes. Network/configuration/parse failures preserve the deterministic path. Avoid unneeded outbound private data; log no secrets.
|
|
24
|
+
|
|
25
|
+
Sources: [OpenRouter Jev guide](https://openrouter.ai/docs/guides/community/jev), [TypeSafe confidence](https://docs.typesafe.ai/confidence), [Choice](https://docs.typesafe.ai/primitives/choice), [Score](https://docs.typesafe.ai/primitives/score), [Noul](https://docs.typesafe.ai/primitives/noul).
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Decision use cases
|
|
2
|
+
|
|
3
|
+
Primary docs checked 2026-10-01. Recipes demonstrate designs; they are not verification of this repository's runtime.
|
|
4
|
+
|
|
5
|
+
## Skill selection
|
|
6
|
+
|
|
7
|
+
The official recipe uses two passes: rank the catalog and determine whether a skill is needed, then verify a shortlist with richer descriptions and brief instruction excerpts. It can return no skill. Treat the selected name as advice. Keep full manuals out of the main context until selected, and preserve required instructions independently. Ownership/scope filtering happens in code before selection.
|
|
8
|
+
|
|
9
|
+
Evaluate against real and synthetic requests from the target catalog. Compare deterministic routing with assisted routing; measure wrong loads, needless loads and missed loads as well as latency/cost. The cookbook's published experiment used Jev 1.12 and was rendered 2026-07-31; its thresholds and results are not current-model guarantees. Do not copy its gates without calibration.
|
|
10
|
+
|
|
11
|
+
[Skill suggestion recipe](https://docs.typesafe.ai/cookbooks/skill_suggestion)
|
|
12
|
+
|
|
13
|
+
## Other applicable patterns
|
|
14
|
+
|
|
15
|
+
- Intent routing and triage: choose a handler and ask independent urgency/status questions on shared state. [Intent routing](https://docs.typesafe.ai/patterns/intent-routing)
|
|
16
|
+
- Large catalogs: hierarchical classification narrows categories before leaf selection. [Hierarchical classification](https://docs.typesafe.ai/cookbooks/hierarchical_classification)
|
|
17
|
+
- Retrieval: score candidate passages, then filter in code; preserve source provenance. [RAG passage classification](https://docs.typesafe.ai/cookbooks/classifying_rag_passages)
|
|
18
|
+
- Batch decisions: fan out independent questions about one state and compose the result in code. [Fan-out](https://docs.typesafe.ai/patterns/fan-out)
|
|
19
|
+
|
|
20
|
+
Candidate matching, deduplication, citation checks and tool dispatch require their own validated decision definitions and tests. Use deterministic code for arithmetic, identifiers and access control. Periodic skill optimization can use advice to identify candidates, but it must preserve source, respect ownership, check drift and require review for semantic rewrites.
|
|
@@ -1,113 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: meta-harness
|
|
3
|
-
description:
|
|
3
|
+
description: Inspect harnesses, agent processes and mesh execution when authorized.
|
|
4
|
+
repo_scoped: false
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
<!-- total-recall:skill-router:v1 -->
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
# Harness management
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
Resolve installed commands, authenticated accounts, permissions and recorded mesh access before execution. Dispatch or spawn agents only when authorized and supported by verified adapters. Read the selected CLI/process/mesh procedure; do not load every harness example.
|
|
11
12
|
|
|
12
|
-
|
|
13
|
-
- **Google Antigravity (`agy`)**: Frontier multi-step reasoning, web grounding, and deep research on AI Ultra.
|
|
14
|
-
- **Claude Code (`claude`)**: Direct terminal codebase refactoring, bash tool execution, and complex Unix tasks.
|
|
15
|
-
- **OpenAI Codex (`codex`)**: Program synthesis, sandboxed workspace mutations, and isolated code generation.
|
|
16
|
-
- **Google Gemini CLI (`gemini`)**: Fast utility completions and lightweight tool chaining.
|
|
17
|
-
- **Ollama Local LLM (`ollama`)**: Zero-token-cost local neural reasoning (e.g. `gemma4:latest`) running non-interactively via standard input piping (`pipe_stdin`).
|
|
18
|
-
- **IDE Surfaces**: Cursor (`.cursorrules`), Cline (`.clinerules`), VS Code (`copilot-instructions.md`), DeepSeek Harness (`dsh`).
|
|
13
|
+
Track owned processes, await work, inspect real results and clean up. A catalog entry is not proof of an available integration. Use validated memory operations and preserve repository boundaries.
|
|
19
14
|
|
|
20
|
-
|
|
21
|
-
Because all harnesses operate over the **same portable brain**:
|
|
22
|
-
- Every harness reads the same auto-compiled instruction surface (`AGENTS.md`, `GEMINI.md`, `CLAUDE.md`).
|
|
23
|
-
- Every harness writes directly into the shared SSSS memory vault (`memory-vault/`).
|
|
24
|
-
- Knowledge or solutions learned by one agent in one harness are immediately accessible to every other harness across the computer and mesh.
|
|
25
|
-
|
|
26
|
-
---
|
|
27
|
-
|
|
28
|
-
## 🛠️ CLI Operations
|
|
29
|
-
|
|
30
|
-
### 1. Inspect Active Harnesses
|
|
31
|
-
Inspect all available developer harnesses and their local binary paths:
|
|
32
|
-
```bash
|
|
33
|
-
npx total-recall harness list
|
|
34
|
-
```
|
|
35
|
-
|
|
36
|
-
### 2. Headless Task Dispatch
|
|
37
|
-
Dispatch a specific coding or research task to any external harness (locally or remotely over the mesh):
|
|
38
|
-
```bash
|
|
39
|
-
# Local dispatches
|
|
40
|
-
npx total-recall harness dispatch claude "Inspect src/core/surface.mjs and run lint checks"
|
|
41
|
-
npx total-recall harness dispatch agy "Analyze latest preprints on room temperature diamond NV registers"
|
|
42
|
-
npx total-recall harness dispatch codex "Generate unit tests for src/core/context-cache.mjs"
|
|
43
|
-
npx total-recall harness dispatch ollama "Summarize the core invariants of SSSS"
|
|
44
|
-
|
|
45
|
-
# Cross-mesh remote dispatches
|
|
46
|
-
npx total-recall harness dispatch ollama --node build-box "What is test-time compute scaling?"
|
|
47
|
-
npx total-recall harness dispatch claude --node build-box "Run git status and lint tests"
|
|
48
|
-
```
|
|
49
|
-
|
|
50
|
-
### 3. Multi-Harness Council
|
|
51
|
-
Run a task across multiple harnesses concurrently to obtain comparative solutions and consensus:
|
|
52
|
-
```bash
|
|
53
|
-
npx total-recall harness council "Propose architecture for decentralized research mesh"
|
|
54
|
-
```
|
|
55
|
-
|
|
56
|
-
---
|
|
57
|
-
|
|
58
|
-
## 🤖 Agent Process Management
|
|
59
|
-
|
|
60
|
-
Manage background subagent tasks across the local machine and remote mesh nodes:
|
|
61
|
-
|
|
62
|
-
### 1. Spawn a Background Agent
|
|
63
|
-
```bash
|
|
64
|
-
# Local background agent
|
|
65
|
-
npx total-recall agent spawn claude "Refactor error handling in src/cli/harness.mjs" --name "Refactor Worker"
|
|
66
|
-
|
|
67
|
-
# Remote background agent on a mesh node
|
|
68
|
-
npx total-recall agent spawn agy --node build-box "Crawl recent preprints on quantum shuttling" --name "Quantum Scout"
|
|
69
|
-
```
|
|
70
|
-
|
|
71
|
-
### 2. Inspect Running Agents
|
|
72
|
-
```bash
|
|
73
|
-
npx total-recall agent list
|
|
74
|
-
npx total-recall agent list --json
|
|
75
|
-
```
|
|
76
|
-
|
|
77
|
-
### 3. Stream Agent Logs
|
|
78
|
-
```bash
|
|
79
|
-
npx total-recall agent logs <agent-id> --tail 100
|
|
80
|
-
```
|
|
81
|
-
|
|
82
|
-
### 4. Terminate an Agent
|
|
83
|
-
```bash
|
|
84
|
-
npx total-recall agent kill <agent-id>
|
|
85
|
-
```
|
|
86
|
-
|
|
87
|
-
---
|
|
88
|
-
|
|
89
|
-
## 🌐 Headscale Mesh Diagnostics & Remote Execution
|
|
90
|
-
|
|
91
|
-
The Meta Harness integrates directly with your private Headscale WireGuard mesh network:
|
|
92
|
-
|
|
93
|
-
### 1. Cluster Capability Audit (`mesh doctor`)
|
|
94
|
-
Concurrently audit reachability, developer runtimes (`node`, `docker`, `git`), and AI harnesses (`agy`, `claude`, `codex`, `gemini`, `ollama`) across all cluster nodes:
|
|
95
|
-
```bash
|
|
96
|
-
npx total-recall mesh doctor
|
|
97
|
-
npx total-recall mesh doctor --json
|
|
98
|
-
```
|
|
99
|
-
|
|
100
|
-
### 2. Non-Interactive Remote Command Execution (`mesh exec`)
|
|
101
|
-
Execute commands on remote nodes with automatic `$PATH` sanitization and structured outputs:
|
|
102
|
-
```bash
|
|
103
|
-
npx total-recall mesh exec build-box uname -m
|
|
104
|
-
npx total-recall mesh exec cloud docker ps
|
|
105
|
-
```
|
|
106
|
-
|
|
107
|
-
---
|
|
108
|
-
|
|
109
|
-
## 💻 General Computer & OS Management
|
|
110
|
-
The Meta Harness controls the computer generally:
|
|
111
|
-
- **Activity Monitoring ("Follow the User")**: Tracks interaction timestamps and routes dispatches to the active device across the Headscale WireGuard mesh.
|
|
112
|
-
- **Process Orchestration**: Spawns background worker loops, monitors task completion, and terminates runaway processes.
|
|
113
|
-
- **Surface Sync**: Recompiles instruction surfaces across all IDE directories automatically upon graph updates.
|
|
15
|
+
Before an operation, read its [task references](references/optimized/index.md), including prerequisites and constraints. If the applicable procedure is unclear, read the preserved original instead of guessing. Commands assume the skill root.
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
# Task references
|
|
2
|
+
|
|
3
|
+
Read only sections needed for the operation, including their prerequisites and constraints. Commands and plain paths assume the skill root. This index selects documentation, not permission or rule applicability.
|
|
4
|
+
|
|
5
|
+
- [Overview](section-01.md)
|
|
6
|
+
- [🎯 Architectural Concept](section-02.md)
|
|
7
|
+
- [The Shared Brain Principle](section-03.md)
|
|
8
|
+
- [🛠️ CLI Operations](section-04.md)
|
|
9
|
+
- [1. Inspect Active Harnesses](section-05.md)
|
|
10
|
+
- [2. Headless Task Dispatch](section-06.md)
|
|
11
|
+
- [3. Multi-Harness Council](section-07.md)
|
|
12
|
+
- [🤖 Agent Process Management](section-08.md)
|
|
13
|
+
- [1. Spawn a Background Agent](section-09.md)
|
|
14
|
+
- [2. Inspect Running Agents](section-10.md)
|
|
15
|
+
- [3. Stream Agent Logs](section-11.md)
|
|
16
|
+
- [4. Terminate an Agent](section-12.md)
|
|
17
|
+
- [🌐 Headscale Mesh Diagnostics & Remote Execution](section-13.md)
|
|
18
|
+
- [1. Cluster Capability Audit (`mesh doctor`)](section-14.md)
|
|
19
|
+
- [2. Non-Interactive Remote Command Execution (`mesh exec`)](section-15.md)
|
|
20
|
+
- [💻 General Computer & OS Management](section-16.md)
|
|
@@ -0,0 +1,79 @@
|
|
|
1
|
+
{
|
|
2
|
+
"version": 1,
|
|
3
|
+
"source_sha256": "511f8c11043679b032b85c4a6ceca921d8ac17fc59be1cdb87572346e7e425b7",
|
|
4
|
+
"entrypoint_sha256": "56abd1e41c0c93292c1ea5dc02d9eed280ec0b68e51c3a34e2ab060c66ba5a2f",
|
|
5
|
+
"sections": [
|
|
6
|
+
{
|
|
7
|
+
"path": "references/optimized/section-01.md",
|
|
8
|
+
"sha256": "3d0dd724287d7de88d1bacd069f1eb2925b1fe2f128a15ee0d8baaf605f61e79"
|
|
9
|
+
},
|
|
10
|
+
{
|
|
11
|
+
"path": "references/optimized/section-02.md",
|
|
12
|
+
"sha256": "febe972174b649547733fb8c22fd6eee42b61f0834a0d18e48794c928c2381e8"
|
|
13
|
+
},
|
|
14
|
+
{
|
|
15
|
+
"path": "references/optimized/section-03.md",
|
|
16
|
+
"sha256": "d11f85b987516543e03b8ad6ac5752ed1efbfcd0a0aa9dacecaeb9c31f91501f"
|
|
17
|
+
},
|
|
18
|
+
{
|
|
19
|
+
"path": "references/optimized/section-04.md",
|
|
20
|
+
"sha256": "b0781872c9046f04a7beed3cd12e055bf82db184a8e9fb4e64ecc9cc494b7d01"
|
|
21
|
+
},
|
|
22
|
+
{
|
|
23
|
+
"path": "references/optimized/section-05.md",
|
|
24
|
+
"sha256": "4b7acbdf1f56ceb2aa9d77677e2c6ddd18407c115a67e62dbcd7d4f4ebe0c674"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"path": "references/optimized/section-06.md",
|
|
28
|
+
"sha256": "d5581f9390c9f1164884166b35dd1a9a59b3b23c9a03c351b1382f36282e8aeb"
|
|
29
|
+
},
|
|
30
|
+
{
|
|
31
|
+
"path": "references/optimized/section-07.md",
|
|
32
|
+
"sha256": "a430fe3f87eb1e99fe33570202a6e7e016faef343f7d89ee901bbc31e13c1868"
|
|
33
|
+
},
|
|
34
|
+
{
|
|
35
|
+
"path": "references/optimized/section-08.md",
|
|
36
|
+
"sha256": "c0ac4ceacdcfce39a72c9c4cb0ae41d466ab94d9e340c034a229e3686c14f90c"
|
|
37
|
+
},
|
|
38
|
+
{
|
|
39
|
+
"path": "references/optimized/section-09.md",
|
|
40
|
+
"sha256": "62d5a35716e489d5164e1bd6f541b92fe159a4a181ee99e1cd1acdf1dec53262"
|
|
41
|
+
},
|
|
42
|
+
{
|
|
43
|
+
"path": "references/optimized/section-10.md",
|
|
44
|
+
"sha256": "5ed4c289daae2a5c04f3d2e8d96715403ce0988a56feb89e73d7f83ff7c56473"
|
|
45
|
+
},
|
|
46
|
+
{
|
|
47
|
+
"path": "references/optimized/section-11.md",
|
|
48
|
+
"sha256": "f46d6aaabb132430bfe52e20e48ab7d4f9bb20e4548adf7b8ab2f3a122a9b382"
|
|
49
|
+
},
|
|
50
|
+
{
|
|
51
|
+
"path": "references/optimized/section-12.md",
|
|
52
|
+
"sha256": "ea3166d7ed898c766dc4f9fcbccbc35e43a0c63d65a081f4c81e95b4f0af6c0b"
|
|
53
|
+
},
|
|
54
|
+
{
|
|
55
|
+
"path": "references/optimized/section-13.md",
|
|
56
|
+
"sha256": "8f5b2410330d1773a8a801b91e6b66d471adaa9609a06720e27b5feb3e4b272c"
|
|
57
|
+
},
|
|
58
|
+
{
|
|
59
|
+
"path": "references/optimized/section-14.md",
|
|
60
|
+
"sha256": "92d093b8c5583b2eff82ffaf73cec094b4d087791427be3aa2382222db4c0605"
|
|
61
|
+
},
|
|
62
|
+
{
|
|
63
|
+
"path": "references/optimized/section-15.md",
|
|
64
|
+
"sha256": "24b6f085e0fa09dc25ef5e9d5b9b49d21adbe8c58ea7a835a38d3d9ac7272760"
|
|
65
|
+
},
|
|
66
|
+
{
|
|
67
|
+
"path": "references/optimized/section-16.md",
|
|
68
|
+
"sha256": "264af7d981ecbbdf060dd0d087eaca0bb15a17210ae4882d07fdbb45dbaddab3"
|
|
69
|
+
},
|
|
70
|
+
{
|
|
71
|
+
"path": "references/optimized/index.md",
|
|
72
|
+
"sha256": "ce64a33aed9e5987e917c83945ff7d54f14aed8a8c079142b053fddfac3e960b"
|
|
73
|
+
},
|
|
74
|
+
{
|
|
75
|
+
"path": "references/optimized/original.md",
|
|
76
|
+
"sha256": "511f8c11043679b032b85c4a6ceca921d8ac17fc59be1cdb87572346e7e425b7"
|
|
77
|
+
}
|
|
78
|
+
]
|
|
79
|
+
}
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
---
|
|
2
|
+
name: meta-harness
|
|
3
|
+
description: Meta Harness & Agent Management Layer to orchestrate and delegate tasks across all connected IDE harnesses (Antigravity, Claude Code, Codex, Gemini, Ollama) and the computer generally.
|
|
4
|
+
---
|
|
5
|
+
|
|
6
|
+
# Meta Harness & Agent Management Layer
|
|
7
|
+
|
|
8
|
+
The **Meta Harness** provides a unified agent management layer across all connected developer environments, CLI runtimes, and the computer generally.
|
|
9
|
+
|
|
10
|
+
## 🎯 Architectural Concept
|
|
11
|
+
|
|
12
|
+
Total Recall connects to every major IDE, CLI harness, and local neural runtime:
|
|
13
|
+
- **Google Antigravity (`agy`)**: Frontier multi-step reasoning, web grounding, and deep research on AI Ultra.
|
|
14
|
+
- **Claude Code (`claude`)**: Direct terminal codebase refactoring, bash tool execution, and complex Unix tasks.
|
|
15
|
+
- **OpenAI Codex (`codex`)**: Program synthesis, sandboxed workspace mutations, and isolated code generation.
|
|
16
|
+
- **Google Gemini CLI (`gemini`)**: Fast utility completions and lightweight tool chaining.
|
|
17
|
+
- **Ollama Local LLM (`ollama`)**: Zero-token-cost local neural reasoning (e.g. `gemma4:latest`) running non-interactively via standard input piping (`pipe_stdin`).
|
|
18
|
+
- **IDE Surfaces**: Cursor (`.cursorrules`), Cline (`.clinerules`), VS Code (`copilot-instructions.md`), DeepSeek Harness (`dsh`).
|
|
19
|
+
|
|
20
|
+
### The Shared Brain Principle
|
|
21
|
+
Because all harnesses operate over the **same portable brain**:
|
|
22
|
+
- Every harness reads the same auto-compiled instruction surface (`AGENTS.md`, `GEMINI.md`, `CLAUDE.md`).
|
|
23
|
+
- Every harness writes directly into the shared SSSS memory vault (`memory-vault/`).
|
|
24
|
+
- Knowledge or solutions learned by one agent in one harness are immediately accessible to every other harness across the computer and mesh.
|
|
25
|
+
|
|
26
|
+
---
|
|
27
|
+
|
|
28
|
+
## 🛠️ CLI Operations
|
|
29
|
+
|
|
30
|
+
### 1. Inspect Active Harnesses
|
|
31
|
+
Inspect all available developer harnesses and their local binary paths:
|
|
32
|
+
```bash
|
|
33
|
+
npx total-recall harness list
|
|
34
|
+
```
|
|
35
|
+
|
|
36
|
+
### 2. Headless Task Dispatch
|
|
37
|
+
Dispatch a specific coding or research task to any external harness (locally or remotely over the mesh):
|
|
38
|
+
```bash
|
|
39
|
+
# Local dispatches
|
|
40
|
+
npx total-recall harness dispatch claude "Inspect src/core/surface.mjs and run lint checks"
|
|
41
|
+
npx total-recall harness dispatch agy "Analyze latest preprints on room temperature diamond NV registers"
|
|
42
|
+
npx total-recall harness dispatch codex "Generate unit tests for src/core/context-cache.mjs"
|
|
43
|
+
npx total-recall harness dispatch ollama "Summarize the core invariants of SSSS"
|
|
44
|
+
|
|
45
|
+
# Cross-mesh remote dispatches
|
|
46
|
+
npx total-recall harness dispatch ollama --node build-box "What is test-time compute scaling?"
|
|
47
|
+
npx total-recall harness dispatch claude --node build-box "Run git status and lint tests"
|
|
48
|
+
```
|
|
49
|
+
|
|
50
|
+
### 3. Multi-Harness Council
|
|
51
|
+
Run a task across multiple harnesses concurrently to obtain comparative solutions and consensus:
|
|
52
|
+
```bash
|
|
53
|
+
npx total-recall harness council "Propose architecture for decentralized research mesh"
|
|
54
|
+
```
|
|
55
|
+
|
|
56
|
+
---
|
|
57
|
+
|
|
58
|
+
## 🤖 Agent Process Management
|
|
59
|
+
|
|
60
|
+
Manage background subagent tasks across the local machine and remote mesh nodes:
|
|
61
|
+
|
|
62
|
+
### 1. Spawn a Background Agent
|
|
63
|
+
```bash
|
|
64
|
+
# Local background agent
|
|
65
|
+
npx total-recall agent spawn claude "Refactor error handling in src/cli/harness.mjs" --name "Refactor Worker"
|
|
66
|
+
|
|
67
|
+
# Remote background agent on a mesh node
|
|
68
|
+
npx total-recall agent spawn agy --node build-box "Crawl recent preprints on quantum shuttling" --name "Quantum Scout"
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
### 2. Inspect Running Agents
|
|
72
|
+
```bash
|
|
73
|
+
npx total-recall agent list
|
|
74
|
+
npx total-recall agent list --json
|
|
75
|
+
```
|
|
76
|
+
|
|
77
|
+
### 3. Stream Agent Logs
|
|
78
|
+
```bash
|
|
79
|
+
npx total-recall agent logs <agent-id> --tail 100
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
### 4. Terminate an Agent
|
|
83
|
+
```bash
|
|
84
|
+
npx total-recall agent kill <agent-id>
|
|
85
|
+
```
|
|
86
|
+
|
|
87
|
+
---
|
|
88
|
+
|
|
89
|
+
## 🌐 Headscale Mesh Diagnostics & Remote Execution
|
|
90
|
+
|
|
91
|
+
The Meta Harness integrates directly with your private Headscale WireGuard mesh network:
|
|
92
|
+
|
|
93
|
+
### 1. Cluster Capability Audit (`mesh doctor`)
|
|
94
|
+
Concurrently audit reachability, developer runtimes (`node`, `docker`, `git`), and AI harnesses (`agy`, `claude`, `codex`, `gemini`, `ollama`) across all cluster nodes:
|
|
95
|
+
```bash
|
|
96
|
+
npx total-recall mesh doctor
|
|
97
|
+
npx total-recall mesh doctor --json
|
|
98
|
+
```
|
|
99
|
+
|
|
100
|
+
### 2. Non-Interactive Remote Command Execution (`mesh exec`)
|
|
101
|
+
Execute commands on remote nodes with automatic `$PATH` sanitization and structured outputs:
|
|
102
|
+
```bash
|
|
103
|
+
npx total-recall mesh exec build-box uname -m
|
|
104
|
+
npx total-recall mesh exec cloud docker ps
|
|
105
|
+
```
|
|
106
|
+
|
|
107
|
+
---
|
|
108
|
+
|
|
109
|
+
## 💻 General Computer & OS Management
|
|
110
|
+
The Meta Harness controls the computer generally:
|
|
111
|
+
- **Activity Monitoring ("Follow the User")**: Tracks interaction timestamps and routes dispatches to the active device across the Headscale WireGuard mesh.
|
|
112
|
+
- **Process Orchestration**: Spawns background worker loops, monitors task completion, and terminates runaway processes.
|
|
113
|
+
- **Surface Sync**: Recompiles instruction surfaces across all IDE directories automatically upon graph updates.
|
|
@@ -0,0 +1,10 @@
|
|
|
1
|
+
## 🎯 Architectural Concept
|
|
2
|
+
|
|
3
|
+
Total Recall connects to every major IDE, CLI harness, and local neural runtime:
|
|
4
|
+
- **Google Antigravity (`agy`)**: Frontier multi-step reasoning, web grounding, and deep research on AI Ultra.
|
|
5
|
+
- **Claude Code (`claude`)**: Direct terminal codebase refactoring, bash tool execution, and complex Unix tasks.
|
|
6
|
+
- **OpenAI Codex (`codex`)**: Program synthesis, sandboxed workspace mutations, and isolated code generation.
|
|
7
|
+
- **Google Gemini CLI (`gemini`)**: Fast utility completions and lightweight tool chaining.
|
|
8
|
+
- **Ollama Local LLM (`ollama`)**: Zero-token-cost local neural reasoning (e.g. `gemma4:latest`) running non-interactively via standard input piping (`pipe_stdin`).
|
|
9
|
+
- **IDE Surfaces**: Cursor (`.cursorrules`), Cline (`.clinerules`), VS Code (`copilot-instructions.md`), DeepSeek Harness (`dsh`).
|
|
10
|
+
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
### The Shared Brain Principle
|
|
2
|
+
Because all harnesses operate over the **same portable brain**:
|
|
3
|
+
- Every harness reads the same auto-compiled instruction surface (`AGENTS.md`, `GEMINI.md`, `CLAUDE.md`).
|
|
4
|
+
- Every harness writes directly into the shared SSSS memory vault (`memory-vault/`).
|
|
5
|
+
- Knowledge or solutions learned by one agent in one harness are immediately accessible to every other harness across the computer and mesh.
|
|
6
|
+
|
|
7
|
+
---
|
|
8
|
+
|
|
@@ -0,0 +1,14 @@
|
|
|
1
|
+
### 2. Headless Task Dispatch
|
|
2
|
+
Dispatch a specific coding or research task to any external harness (locally or remotely over the mesh):
|
|
3
|
+
```bash
|
|
4
|
+
# Local dispatches
|
|
5
|
+
npx total-recall harness dispatch claude "Inspect src/core/surface.mjs and run lint checks"
|
|
6
|
+
npx total-recall harness dispatch agy "Analyze latest preprints on room temperature diamond NV registers"
|
|
7
|
+
npx total-recall harness dispatch codex "Generate unit tests for src/core/context-cache.mjs"
|
|
8
|
+
npx total-recall harness dispatch ollama "Summarize the core invariants of SSSS"
|
|
9
|
+
|
|
10
|
+
# Cross-mesh remote dispatches
|
|
11
|
+
npx total-recall harness dispatch ollama --node build-box "What is test-time compute scaling?"
|
|
12
|
+
npx total-recall harness dispatch claude --node build-box "Run git status and lint tests"
|
|
13
|
+
```
|
|
14
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
### 1. Spawn a Background Agent
|
|
2
|
+
```bash
|
|
3
|
+
# Local background agent
|
|
4
|
+
npx total-recall agent spawn claude "Refactor error handling in src/cli/harness.mjs" --name "Refactor Worker"
|
|
5
|
+
|
|
6
|
+
# Remote background agent on a mesh node
|
|
7
|
+
npx total-recall agent spawn agy --node build-box "Crawl recent preprints on quantum shuttling" --name "Quantum Scout"
|
|
8
|
+
```
|
|
9
|
+
|
|
@@ -0,0 +1,7 @@
|
|
|
1
|
+
### 1. Cluster Capability Audit (`mesh doctor`)
|
|
2
|
+
Concurrently audit reachability, developer runtimes (`node`, `docker`, `git`), and AI harnesses (`agy`, `claude`, `codex`, `gemini`, `ollama`) across all cluster nodes:
|
|
3
|
+
```bash
|
|
4
|
+
npx total-recall mesh doctor
|
|
5
|
+
npx total-recall mesh doctor --json
|
|
6
|
+
```
|
|
7
|
+
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
### 2. Non-Interactive Remote Command Execution (`mesh exec`)
|
|
2
|
+
Execute commands on remote nodes with automatic `$PATH` sanitization and structured outputs:
|
|
3
|
+
```bash
|
|
4
|
+
npx total-recall mesh exec build-box uname -m
|
|
5
|
+
npx total-recall mesh exec cloud docker ps
|
|
6
|
+
```
|
|
7
|
+
|
|
8
|
+
---
|
|
9
|
+
|
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
## 💻 General Computer & OS Management
|
|
2
|
+
The Meta Harness controls the computer generally:
|
|
3
|
+
- **Activity Monitoring ("Follow the User")**: Tracks interaction timestamps and routes dispatches to the active device across the Headscale WireGuard mesh.
|
|
4
|
+
- **Process Orchestration**: Spawns background worker loops, monitors task completion, and terminates runaway processes.
|
|
5
|
+
- **Surface Sync**: Recompiles instruction surfaces across all IDE directories automatically upon graph updates.
|