total-recall-brain 3.33.1 → 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/reference/cli-reference.md +11 -0
- 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/skill-optimize.mjs +50 -0
- package/src/cli/skill-projection.mjs +22 -3
- package/src/cli/skill.mjs +7 -0
- 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/templates/skill-routers.json +119 -0
|
@@ -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.
|
|
@@ -1,58 +1,15 @@
|
|
|
1
1
|
---
|
|
2
2
|
name: plugins
|
|
3
|
-
description: Create, validate, install
|
|
3
|
+
description: Create, validate, install or share Total Recall plugins.
|
|
4
|
+
repo_scoped: false
|
|
4
5
|
---
|
|
5
6
|
|
|
6
|
-
|
|
7
|
+
<!-- total-recall:skill-router:v1 -->
|
|
7
8
|
|
|
8
|
-
|
|
9
|
+
# Plugins
|
|
9
10
|
|
|
10
|
-
|
|
11
|
+
Use the plugin workspace and current `plugin.json`/extension contracts. Keep optional capabilities in plugins rather than portable memory core. Every claimed command, schedule, UI/API action or memory extension needs a real handler and validation.
|
|
11
12
|
|
|
12
|
-
|
|
13
|
+
Read implementation or installation references for that operation. Verify scopes, invalid input, canonical SSSS writes, failure reporting and actual execution. Sharing requires explicit authorization; public bundles exclude credentials, private vault content and runtime state. Read sharing procedures only when sharing is requested.
|
|
13
14
|
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
```json
|
|
17
|
-
{
|
|
18
|
-
"id": "example-plugin",
|
|
19
|
-
"name": "Example Plugin",
|
|
20
|
-
"version": "1.0.0",
|
|
21
|
-
"description": "The specific job this plugin does.",
|
|
22
|
-
"author": "Author name",
|
|
23
|
-
"license": "MIT",
|
|
24
|
-
"use_cases": ["research"],
|
|
25
|
-
"cli": {
|
|
26
|
-
"command": "example-plugin",
|
|
27
|
-
"handler": "./cli.mjs",
|
|
28
|
-
"subcommands": [{ "name": "status", "description": "Show current status" }]
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
```
|
|
32
|
-
|
|
33
|
-
An ID is lowercase kebab case, starts with a letter, and is 2–64 characters. `use_cases` are descriptive kebab-case tags. Keep the manifest honest: declare only features the plugin implements. `README.md` should explain the user job, prerequisites, commands, outputs, and any data or network access.
|
|
34
|
-
|
|
35
|
-
## Implement a capability
|
|
36
|
-
|
|
37
|
-
- **Command:** export `async function run(argv)` from the `cli.handler` module. It receives `['node', 'total-recall', '<command>', '<subcommand>', ...]`. A default-exported function is also supported and receives arguments after the command. Return a result or set `process.exitCode` on failure. The runner isolates the handler in a child process, with a timeout and output cap.
|
|
38
|
-
- **Scheduled task:** add `tasks: [{ "intent": "...", "schedule": "*/15 * * * *", "command": "sample" }]`. `command` is a subcommand implemented by the plugin's CLI handler. The daemon runs it once per due minute slot and records the outcome as a `plugin.task_run` event. Keep tasks bounded and idempotent.
|
|
39
|
-
- **Agent context:** add `compile: { "generator": "./generator.mjs", "auto": true }` and export `generateContext()` from that file. Only include information useful to the agent; avoid secrets and noisy telemetry.
|
|
40
|
-
- **Memory category:** declare it under `ssss_schemas.categories` using the current manifest schema. Preserve SSSS Markdown and operation-contract writes; do not write vault documents directly.
|
|
41
|
-
|
|
42
|
-
- **Repo-customized skill:** a layered skill (plugin-owned `core/`, repo-owned files beside it) declares its repo config contract as `core/config.schema.json`, a JSON Schema whose root is an object. Annotate an array with `"x-collection": "<noun>"` (and optionally `"x-key"`, default `name`) to get `<noun> list|add|remove`. An optional `core/detect.mjs` exports `detect({ repoRoot, skillDir })` and returns a proposed config. Users customize the repo layer with `total-recall skill config <id> config set …`, `detect --apply`, or `init`, or with a repo command generated by `total-recall command create <name> --config-for-skill <id>`. Every write validates the whole config and commits a `skill_config` record to the repo's project vault; `config.json` is rebuilt from it. Never tell users to edit `config.json` by hand: `config validate` reports hand edits as drift, and `config import` adopts a pre-existing file. Mark gate-command string fields `"x-command": true`; `skill config <id> check`, `skill status <id>`, and `app verify` confirm each one resolves without running it.
|
|
43
|
-
|
|
44
|
-
- **App-runtime CLI:** declare `app_cli` in `plugin.json`: `name`, `api: { base_url_env, default_base_url }` (loopback only; operators override it with the env var or `--base-url`), optional `auth: { type: "bearer", token_env }`, and `commands: [{ name, method, path, args }]`. Args are typed (`string|integer|number|boolean`, `choices`, `default`, `required`, `positional`); `{name}` in `path` must be a required arg, other args go to the query (GET/DELETE) or JSON body. `total-recall app cli <plugin> --lang node|python` (or `--adapter flask|nextjs|react|ssss-app`) prints a self-contained file; `--out <file>` writes it. The file runs without Total Recall: exit 0 ok, 1 the app returned an error, 2 usage, 3 unreachable; `--json` prints `{ ok, status, data | error }`. Regenerate after changing the spec; never hand-edit the output.
|
|
45
|
-
- **UI elements:** author each element once as a self-contained custom element: an ES module under the plugin (e.g. `ui/<id>.js`) that imports nothing, calls `customElements.define('<tag>', …)` exactly once, and styles itself only with design-token variables (`var(--color-…)`, `--spacing-…`, `--radius-…`, `--typography-<style>-…`, `--font-family-…`; `--_name` for private ones). No literal colors, not even as `var()` fallbacks. Declare it in `plugin.json` `ui.elements[]`: `id`, `kind` (`panel|form|list|detail|settings|widget`), `tag`, `module`, optional `slot`, typed `props` (set as DOM properties), `events`, the `tokens` it requires and `optional_tokens` it uses with a token fallback; `ui.design_tokens` may point at a neutral default `DESIGN.md`. `total-recall app ui <plugin> --ui web-components|react` (or `--adapter flask|ssss-app|nextjs|react`) with `--tokens <app DESIGN.md>` checks the required tokens and generates `tokens.css`, `elements/<id>.js`, `index.js`, React wrappers (`--typescript` for `.tsx` plus `.d.ts`), and `ui-manifest.json`; `--out <dir>` writes `<dir>/<plugin-id>/`. An app restyles elements by editing its `DESIGN.md` and regenerating; the element files do not change.
|
|
46
|
-
|
|
47
|
-
## Validate the actual job
|
|
48
|
-
|
|
49
|
-
1. Validate `plugin.json` against the installed schema and `total-recall plugin info <id>`.
|
|
50
|
-
2. Install in a clean temporary project, then run the declared command through `total-recall <command> <subcommand>`. For tasks, verify one due run and its event. For context generators, compile and inspect the resulting block.
|
|
51
|
-
3. Exercise failure paths: missing prerequisite, invalid input, timeout, and any network failure. A plugin that installs but cannot do its advertised job is unfinished.
|
|
52
|
-
4. Review the plugin's file set before sharing. Plugin code has the recipient's process permissions when run. Never bundle secrets, browser profiles, vault data, or machine-specific paths.
|
|
53
|
-
|
|
54
|
-
## Share with another user
|
|
55
|
-
|
|
56
|
-
`total-recall plugin share <id>` marks an installed plugin shareable. Configure `TR_PUBLIC_BASE_URL` as the node's externally reachable HTTPS origin; the command and dashboard then show a direct link ending in `#sha256=<content hash>`. Send that link to the recipient. They install with `total-recall plugin install '<link>'`. The installer requires HTTPS, rejects private destination addresses and redirects, caps the bundle size, and verifies the pinned SHA-256 before writing files. There is no central catalog. The hosting node must actually be reachable at its configured HTTPS origin.
|
|
57
|
-
|
|
58
|
-
`total-recall plugin unshare <id>` stops serving the bundle. Existing installations remain on recipients' machines. Users on one private mesh may also use `peer:<host>/<id>`; mesh membership is not required for public sharing.
|
|
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,9 @@
|
|
|
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
|
+
- [Where to work](section-02.md)
|
|
7
|
+
- [Implement a capability](section-03.md)
|
|
8
|
+
- [Validate the actual job](section-04.md)
|
|
9
|
+
- [Share with another user](section-05.md)
|