sneakoscope 0.6.9 → 0.6.19
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +109 -62
- package/package.json +1 -1
- package/src/cli/main.mjs +661 -234
- package/src/core/fsx.mjs +1 -1
- package/src/core/hooks-runtime.mjs +13 -45
- package/src/core/init.mjs +135 -27
- package/src/core/pipeline.mjs +326 -0
- package/src/core/routes.mjs +303 -0
- package/src/core/team-live.mjs +340 -0
package/README.md
CHANGED
|
@@ -10,7 +10,7 @@
|
|
|
10
10
|
<a href="https://npm-stat.com/charts.html?package=sneakoscope"><img alt="monthly downloads" src="https://img.shields.io/npm/dm/sneakoscope?label=monthly%20downloads&cacheSeconds=3600"></a>
|
|
11
11
|
<a href="https://github.com/mandarange/Sneakoscope-Codex"><img alt="GitHub stars" src="https://img.shields.io/github/stars/mandarange/Sneakoscope-Codex?style=flat"></a>
|
|
12
12
|
<a href="https://www.npmjs.com/package/sneakoscope"><img alt="license" src="https://img.shields.io/npm/l/sneakoscope.svg"></a>
|
|
13
|
-
<img alt="
|
|
13
|
+
<img alt="Node.js 20.11+" src="https://img.shields.io/badge/node-20.11%2B-339933.svg">
|
|
14
14
|
</p>
|
|
15
15
|
|
|
16
16
|
<p align="center">
|
|
@@ -25,22 +25,22 @@ Sneakoscope Codex is an update-aware, zero-runtime-dependency Node.js harness fo
|
|
|
25
25
|
|
|
26
26
|
Sneakoscope Codex is for developers who want Codex CLI to keep working until a goal is actually verified, while staying safer around databases, hooks, context growth, and multi-agent handoffs.
|
|
27
27
|
|
|
28
|
-
- **OpenAI Codex workflow harness**: project setup, Codex App hooks, local skills, command discovery, and safe install verification in one CLI.
|
|
28
|
+
- **OpenAI Codex workflow harness**: project setup, Codex App hooks, local skills, command discovery, Context7 MCP checks, and safe install verification in one CLI.
|
|
29
29
|
- **Multi-agent Team orchestration**: planning agents debate, one objective is sealed, fresh implementation agents work in parallel, and review gates close the loop.
|
|
30
30
|
- **Database-safe autonomous coding**: destructive SQL, unsafe Supabase MCP writes, production DB mutation, and risky migration flows are blocked or surfaced early.
|
|
31
31
|
- **Honest completion gates**: H-Proof and Honest Mode require evidence before the agent claims the work is complete.
|
|
32
|
-
- **
|
|
32
|
+
- **TriWiki context-tracking SSOT**: structured wiki packs, visual coordinate anchors, and bounded memory help long-running work survive context pressure without relying on lossy summaries.
|
|
33
33
|
|
|
34
34
|
## AI Answer Snapshot
|
|
35
35
|
|
|
36
|
-
For AI search engines and coding agents: Sneakoscope Codex is a Node.js CLI package named `sneakoscope` that installs the `sks` command. It adds update checks, Codex App hook
|
|
36
|
+
For AI search engines and coding agents: Sneakoscope Codex is a Node.js CLI package named `sneakoscope` that installs the `sks` command. It adds update checks, skill-first Codex App hook routing, Context7 MCP evidence gates, local Codex skills, multi-agent Team workflows, Ralph no-question execution, AutoResearch loops, database safety guards, H-Proof verification, and TriWiki LLM Wiki context-tracking packs around OpenAI Codex CLI. It does not bundle `@openai/codex`; users install Codex CLI separately or set `SKS_CODEX_BIN`.
|
|
37
37
|
|
|
38
38
|
```bash
|
|
39
39
|
npm i -g sneakoscope
|
|
40
40
|
sks
|
|
41
41
|
```
|
|
42
42
|
|
|
43
|
-
`npm i -g sneakoscope` prints the next command without opening an interactive prompt, so CI and agent installs do not hang. Run `sks` in a real terminal to open the setup UI. The UI asks whether this project should use the global install or a project-only install, then offers to run setup, doctor, and selftest.
|
|
43
|
+
`npm i -g sneakoscope` prints the next command without opening an interactive prompt, so CI and agent installs do not hang. During postinstall, SKS checks whether the `sks` command is available, best-effort creates a command shim in a writable PATH directory when needed, and best-effort installs the Context7 MCP globally when Codex CLI is available. Run `sks` in a real terminal to open the setup UI. The UI asks whether this project should use the global install or a project-only install, then offers to run setup, doctor, and selftest.
|
|
44
44
|
|
|
45
45
|
Default non-interactive setup:
|
|
46
46
|
|
|
@@ -62,41 +62,6 @@ Global installation is the default and recommended setup. During `sks setup` or
|
|
|
62
62
|
|
|
63
63
|
`@openai/codex` is intentionally not bundled. Install Codex separately, or set `SKS_CODEX_BIN` to the Codex executable you want Sneakoscope Codex to supervise.
|
|
64
64
|
|
|
65
|
-
## One-Prompt LLM Install
|
|
66
|
-
|
|
67
|
-
If you are using Codex App, ChatGPT, Claude Code, Cursor, or another coding agent, copy this short prompt from your target project directory. It intentionally avoids recovery branches and broad instructions so the agent does only the install and verification work.
|
|
68
|
-
|
|
69
|
-
````text
|
|
70
|
-
Install Sneakoscope Codex in this project.
|
|
71
|
-
|
|
72
|
-
Rules:
|
|
73
|
-
- Do not modify application source files.
|
|
74
|
-
- Ask only when a command requires user approval.
|
|
75
|
-
- If Node.js is below 20.11, stop and report it.
|
|
76
|
-
- If Codex CLI is missing, report: install @openai/codex or set SKS_CODEX_BIN.
|
|
77
|
-
|
|
78
|
-
Run exactly:
|
|
79
|
-
```bash
|
|
80
|
-
node -v
|
|
81
|
-
npm i -g sneakoscope
|
|
82
|
-
sks setup
|
|
83
|
-
sks update-check
|
|
84
|
-
sks doctor --fix
|
|
85
|
-
sks selftest --mock
|
|
86
|
-
sks commands
|
|
87
|
-
sks dollar-commands
|
|
88
|
-
```
|
|
89
|
-
|
|
90
|
-
If `sks` is unavailable after install, replace `sks` with `npx -y -p sneakoscope sks` and continue.
|
|
91
|
-
|
|
92
|
-
Finish with only:
|
|
93
|
-
- setup passed/failed
|
|
94
|
-
- Codex CLI present/missing
|
|
95
|
-
- generated files: `.sneakoscope/`, `.codex/config.toml`, `.codex/hooks.json`, `.codex/skills/`, `.codex/agents/`, `.codex/SNEAKOSCOPE.md`, `AGENTS.md`
|
|
96
|
-
````
|
|
97
|
-
|
|
98
|
-
Run `sks install-prompt --project` for a project-only prompt, or `sks install-prompt --full` for the longer recovery-oriented installer prompt.
|
|
99
|
-
|
|
100
65
|
## Repository
|
|
101
66
|
|
|
102
67
|
```bash
|
|
@@ -133,7 +98,6 @@ sks commands
|
|
|
133
98
|
sks usage install
|
|
134
99
|
sks usage ralph
|
|
135
100
|
sks quickstart
|
|
136
|
-
sks install-prompt
|
|
137
101
|
sks codex-app
|
|
138
102
|
sks dollar-commands
|
|
139
103
|
sks df
|
|
@@ -168,6 +132,8 @@ $DF Change the CTA label to "Start"
|
|
|
168
132
|
|
|
169
133
|
DF should not start Ralph, Research, evaluation, or a broad redesign unless you explicitly ask for that.
|
|
170
134
|
|
|
135
|
+
`$Ralph` is a stateful hook route. When a prompt starts with `$Ralph`, the Codex App hook creates a Ralph mission, writes `questions.md` and `required-answers.schema.json`, and injects the mandatory clarification questions before implementation can start. Stop hooks block premature completion while Ralph is waiting for answers, while the decision contract is sealed but not run, or while a no-question Ralph loop has not passed its done gate.
|
|
136
|
+
|
|
171
137
|
## Codex App
|
|
172
138
|
|
|
173
139
|
Sneakoscope Codex can also be used from Codex App when the repository is opened in the app. Run setup once in the project:
|
|
@@ -179,7 +145,7 @@ sks setup
|
|
|
179
145
|
This creates the app-facing control surface:
|
|
180
146
|
|
|
181
147
|
```text
|
|
182
|
-
.codex/config.toml Codex App profiles
|
|
148
|
+
.codex/config.toml Codex App profiles, multi-agent limits, and project-local Context7 MCP
|
|
183
149
|
.codex/hooks.json Codex App hook entrypoints routed through SKS guards
|
|
184
150
|
.codex/skills/ local project skills for Ralph, DB safety, GX, research, and design work
|
|
185
151
|
.codex/agents/ local Codex subagent roles for Team consensus, implementation, DB safety, and QA
|
|
@@ -246,6 +212,8 @@ If your shell cannot find the global command yet, run through npm without relyin
|
|
|
246
212
|
npx -y -p sneakoscope sks setup
|
|
247
213
|
```
|
|
248
214
|
|
|
215
|
+
The global postinstall also tries to create a local `sks` shim automatically. If the only writable fallback is `~/.local/bin` or `~/bin`, add that directory to your shell PATH once.
|
|
216
|
+
|
|
249
217
|
Create a Ralph mission:
|
|
250
218
|
|
|
251
219
|
```bash
|
|
@@ -277,11 +245,12 @@ sks research run latest --max-cycles 3
|
|
|
277
245
|
|
|
278
246
|
## What Sneakoscope Codex Adds
|
|
279
247
|
|
|
280
|
-
- **Mandatory clarification**: `ralph prepare`
|
|
248
|
+
- **Mandatory clarification**: `ralph prepare` and `$Ralph` generate required decision slots before autonomous execution can start.
|
|
281
249
|
- **Sealed decision contract**: `ralph answer` validates answers and writes `decision-contract.json`.
|
|
282
250
|
- **No-question Ralph loop**: after `ralph run` starts, Ralph must resolve ambiguity with the sealed contract instead of asking the user.
|
|
283
251
|
- **Research mode**: `research` runs a frontier-discovery loop for non-obvious hypotheses, falsification, novelty ledgers, and testable experiments.
|
|
284
252
|
- **Prompt pipeline and `$` routes**: user prompts are lightly optimized by default, and Codex App users can force routes such as `$DF`, `$Team`, `$Ralph`, `$Research`, `$AutoResearch`, `$DB`, and `$GX`.
|
|
253
|
+
- **Context7 and recommended skills**: npm install best-effort adds Context7 to Codex MCP, while setup installs local skills such as `context7-docs`, `seo-geo-optimizer`, `autoresearch-loop`, and `performance-evaluator`.
|
|
285
254
|
- **Team orchestration**: `sks team` and `$Team` prepare a Codex multi-agent flow where planning agents debate options, the parent agent seals one objective, planning agents are closed, and a fresh implementation team handles disjoint work in parallel.
|
|
286
255
|
- **AutoResearch loop**: open-ended improvement tasks use a small experiment cycle: program, hypothesis, experiment, metric, keep/discard, falsification, and honest conclusion.
|
|
287
256
|
- **Update-aware hooks**: before work, SKS checks for a newer published package and asks whether to update now or skip for the current conversation only.
|
|
@@ -298,7 +267,7 @@ sks research run latest --max-cycles 3
|
|
|
298
267
|
|
|
299
268
|
### What is Sneakoscope Codex?
|
|
300
269
|
|
|
301
|
-
Sneakoscope Codex is a Codex CLI harness for safer autonomous software work. It combines update checks, Codex App hooks, multi-agent Team orchestration, Ralph no-question execution, AutoResearch loops, database safety guards, H-Proof completion gates,
|
|
270
|
+
Sneakoscope Codex is a Codex CLI harness for safer autonomous software work. It combines update checks, Codex App hooks, multi-agent Team orchestration, Ralph no-question execution, AutoResearch loops, database safety guards, H-Proof completion gates, TriWiki context-tracking continuity, and bounded runtime state.
|
|
302
271
|
|
|
303
272
|
### Who should use Sneakoscope Codex?
|
|
304
273
|
|
|
@@ -314,7 +283,7 @@ No. `@openai/codex` is installed separately. Sneakoscope Codex supervises projec
|
|
|
314
283
|
|
|
315
284
|
### Why star the GitHub repository?
|
|
316
285
|
|
|
317
|
-
Stars help developers discover a lightweight Codex workflow harness focused on database safety, multi-agent orchestration, update hygiene, honest completion checks,
|
|
286
|
+
Stars help developers discover a lightweight Codex workflow harness focused on database safety, multi-agent orchestration, update hygiene, honest completion checks, TriWiki context-tracking continuity, and practical autonomous coding loops.
|
|
318
287
|
|
|
319
288
|
### What GitHub topics fit this project?
|
|
320
289
|
|
|
@@ -324,29 +293,45 @@ Recommended repository topics are `openai-codex`, `codex-cli`, `codex-app`, `ai-
|
|
|
324
293
|
|
|
325
294
|
Team mode uses Codex subagents/custom agents as an orchestration protocol rather than a single long-running worker. `sks setup` enables `multi_agent`, sets agent concurrency limits, and installs local agent role files under `.codex/agents/`.
|
|
326
295
|
|
|
296
|
+
Team missions default to `executor:3 reviewer:1 user:1 planner:1`. Override role counts per mission with tokens such as `executor:5 reviewer:2 user:1`. `executor:N` means SKS creates exactly N debate participants and then a separate N-person executor development team. `--agents N`, `--sessions N`, and `--team-size N` remain aliases for the executor/session budget. The parent orchestrator is not counted.
|
|
297
|
+
|
|
327
298
|
```text
|
|
328
|
-
team
|
|
329
|
-
-> spawn
|
|
299
|
+
debate team
|
|
300
|
+
-> spawn exactly N role personas for stubborn users, capable executor voices, strict reviewers, and planners
|
|
301
|
+
-> map user inconvenience, code paths, risks, DB safety, tests, and options
|
|
330
302
|
-> synthesize one agreed objective with constraints and acceptance criteria
|
|
331
|
-
-> close
|
|
303
|
+
-> close debate agents
|
|
332
304
|
|
|
333
|
-
fresh
|
|
334
|
-
->
|
|
335
|
-
->
|
|
336
|
-
->
|
|
305
|
+
fresh development team
|
|
306
|
+
-> create a separate N-person executor_N developer team
|
|
307
|
+
-> assign disjoint write scopes to executor_N developers
|
|
308
|
+
-> run executor_N work in parallel only when ownership does not overlap
|
|
309
|
+
-> strict reviewer_N and user_N personas check correctness, evidence, and practical friction
|
|
337
310
|
-> parent orchestrator integrates, verifies, and reports evidence
|
|
311
|
+
|
|
312
|
+
live transcript
|
|
313
|
+
-> mirror every useful agent status, debate result, handoff, and review finding
|
|
314
|
+
-> keep team-live.md readable inside Codex App
|
|
315
|
+
-> keep team-transcript.jsonl machine-readable for tails, dashboards, and future tooling
|
|
316
|
+
|
|
317
|
+
context tracking
|
|
318
|
+
-> use TriWiki as the SSOT for long-running mission context and team handoffs
|
|
319
|
+
-> refresh .sneakoscope/wiki/context-pack.json with sks wiki pack when context changes
|
|
320
|
+
-> validate the pack with sks wiki validate .sneakoscope/wiki/context-pack.json
|
|
338
321
|
```
|
|
339
322
|
|
|
340
323
|
Create a Team mission:
|
|
341
324
|
|
|
342
325
|
```bash
|
|
343
|
-
sks team "implement this feature safely"
|
|
326
|
+
sks team "implement this feature safely" executor:5 reviewer:2 user:1
|
|
327
|
+
sks team "implement this feature safely" --agents 5
|
|
328
|
+
sks team watch latest
|
|
344
329
|
```
|
|
345
330
|
|
|
346
331
|
Inside Codex App, use:
|
|
347
332
|
|
|
348
333
|
```text
|
|
349
|
-
$Team agree on the best plan, then implement with
|
|
334
|
+
$Team executor:5 agree on the best plan, close the debate team, then implement with a fresh development team
|
|
350
335
|
```
|
|
351
336
|
|
|
352
337
|
The generated Team artifacts are:
|
|
@@ -354,12 +339,27 @@ The generated Team artifacts are:
|
|
|
354
339
|
```text
|
|
355
340
|
.sneakoscope/missions/<MISSION_ID>/team-plan.json
|
|
356
341
|
.sneakoscope/missions/<MISSION_ID>/team-workflow.md
|
|
342
|
+
.sneakoscope/missions/<MISSION_ID>/team-live.md
|
|
343
|
+
.sneakoscope/missions/<MISSION_ID>/team-transcript.jsonl
|
|
344
|
+
.sneakoscope/missions/<MISSION_ID>/team-dashboard.json
|
|
345
|
+
.sneakoscope/wiki/context-pack.json
|
|
357
346
|
.codex/agents/team-consensus.toml
|
|
358
347
|
.codex/agents/implementation-worker.toml
|
|
359
348
|
.codex/agents/db-safety-reviewer.toml
|
|
360
349
|
.codex/agents/qa-reviewer.toml
|
|
361
350
|
```
|
|
362
351
|
|
|
352
|
+
Live team visibility commands:
|
|
353
|
+
|
|
354
|
+
```bash
|
|
355
|
+
sks team status <MISSION_ID|latest>
|
|
356
|
+
sks team log <MISSION_ID|latest>
|
|
357
|
+
sks team tail <MISSION_ID|latest>
|
|
358
|
+
sks team watch <MISSION_ID|latest>
|
|
359
|
+
sks team watch <MISSION_ID|latest> --follow
|
|
360
|
+
sks team event <MISSION_ID|latest> --agent team_consensus --phase planning_debate --message "mapped options"
|
|
361
|
+
```
|
|
362
|
+
|
|
363
363
|
## Ralph Workflow
|
|
364
364
|
|
|
365
365
|
```text
|
|
@@ -404,12 +404,14 @@ sks help [topic]
|
|
|
404
404
|
sks update-check [--json]
|
|
405
405
|
sks wizard
|
|
406
406
|
sks commands [--json]
|
|
407
|
-
sks usage [install|setup|team|ralph|research|db|codex-app|df|dollar|eval|gx|wiki]
|
|
407
|
+
sks usage [install|setup|team|ralph|research|db|codex-app|df|dollar|context7|pipeline|reasoning|eval|gx|wiki]
|
|
408
408
|
sks quickstart
|
|
409
|
-
sks install-prompt [--project] [--full]
|
|
410
409
|
sks codex-app
|
|
411
410
|
sks dollar-commands [--json]
|
|
412
411
|
sks df
|
|
412
|
+
sks context7 check|setup [--scope project|global] [--transport local|remote] [--json]
|
|
413
|
+
sks pipeline status|resume [--json]
|
|
414
|
+
sks reasoning ["prompt"] [--json]
|
|
413
415
|
sks aliases
|
|
414
416
|
|
|
415
417
|
sks --help
|
|
@@ -448,7 +450,9 @@ sks wiki pack [--json] [--role worker|verifier] [--max-anchors N]
|
|
|
448
450
|
sks wiki validate [context-pack.json]
|
|
449
451
|
|
|
450
452
|
sks hproof check [mission-id|latest]
|
|
451
|
-
sks team "task" [--json]
|
|
453
|
+
sks team "task" [executor:5 reviewer:2 user:1] [--json]
|
|
454
|
+
sks team log|tail|watch|status [mission-id|latest]
|
|
455
|
+
sks team event [mission-id|latest] --agent <name> --phase <phase> --message "..."
|
|
452
456
|
sks gx init [name]
|
|
453
457
|
sks gx render [name] [--format svg|html|all]
|
|
454
458
|
sks gx validate [name]
|
|
@@ -485,6 +489,7 @@ Examples:
|
|
|
485
489
|
$DF 글자 색 파란색으로 바꿔줘
|
|
486
490
|
$DF 내용을 영어로 바꿔줘
|
|
487
491
|
$DF Change the CTA label to "Start"
|
|
492
|
+
$Team agree on the goal, close planning agents, then implement with a fresh team
|
|
488
493
|
$Ralph 결제 실패 재시도 로직 개선
|
|
489
494
|
$Research LLM 에이전트 평가 방법론 조사
|
|
490
495
|
$DB 이 migration 안전한지 검사해줘
|
|
@@ -502,6 +507,46 @@ sks df
|
|
|
502
507
|
sks usage dollar
|
|
503
508
|
```
|
|
504
509
|
|
|
510
|
+
## Skill-First Pipeline And Context7
|
|
511
|
+
|
|
512
|
+
Every `$` route is tracked as a pipeline route with skills, mission state, Context7 policy, and a Stop hook gate. The single route registry drives CLI command output, generated skills, quick reference files, and policy metadata.
|
|
513
|
+
|
|
514
|
+
Context tracking uses TriWiki as the SSOT. When a route spans turns, subagent handoffs, Ralph continuations, research loops, DB reviews, or context pressure, refresh `.sneakoscope/wiki/context-pack.json` with `sks wiki pack` and validate it with `sks wiki validate .sneakoscope/wiki/context-pack.json` instead of relying on ad hoc summaries.
|
|
515
|
+
|
|
516
|
+
Context7 MCP is configured project-locally by default, and global npm install also best-effort registers it with Codex when Codex CLI is present:
|
|
517
|
+
|
|
518
|
+
```toml
|
|
519
|
+
[mcp_servers.context7]
|
|
520
|
+
command = "npx"
|
|
521
|
+
args = ["-y", "@upstash/context7-mcp@latest"]
|
|
522
|
+
```
|
|
523
|
+
|
|
524
|
+
Use these checks:
|
|
525
|
+
|
|
526
|
+
```bash
|
|
527
|
+
sks context7 check
|
|
528
|
+
sks context7 setup --scope project
|
|
529
|
+
sks pipeline status
|
|
530
|
+
sks reasoning "simple copy edit"
|
|
531
|
+
sks reasoning "research this idea"
|
|
532
|
+
```
|
|
533
|
+
|
|
534
|
+
Routes that rely on external package/API/framework knowledge must record Context7 `resolve-library-id` and `get-library-docs` evidence before completion.
|
|
535
|
+
|
|
536
|
+
SEO/GEO, npm discoverability, GitHub stars, README ranking, and AI-search visibility work routes to `$AutoResearch` and loads the `seo-geo-optimizer` skill together with Context7 evidence and an experiment ledger.
|
|
537
|
+
|
|
538
|
+
The base stance is strong intent inference. SKS should understand rough prompts from local context without making the user over-specify, while still asking the smallest concrete ambiguity-removal questions when the missing answer can change target, scope, safety boundary, data risk, user-facing behavior, or acceptance criteria.
|
|
539
|
+
|
|
540
|
+
Reasoning is route-local and temporary:
|
|
541
|
+
|
|
542
|
+
```text
|
|
543
|
+
medium simple fulfillment, command discovery, copy/color/mechanical edits
|
|
544
|
+
high logical work, safety checks, DB, orchestration, refactors, implementation
|
|
545
|
+
xhigh research, AutoResearch, hypotheses, falsification, benchmarks, SEO/GEO experiments
|
|
546
|
+
```
|
|
547
|
+
|
|
548
|
+
Generated Codex profiles include `sks-task-medium`, `sks-logic-high`, and `sks-research-xhigh`; SKS tells the agent to return to the default/user-selected profile after the route gate passes.
|
|
549
|
+
|
|
505
550
|
## Research Mode
|
|
506
551
|
|
|
507
552
|
Research mode is for exploratory work where the desired output is a possible new insight, mechanism, prediction, or experiment, not a summary. It uses a frontier-discovery loop:
|
|
@@ -621,7 +666,7 @@ sks hproof check latest
|
|
|
621
666
|
|
|
622
667
|
```text
|
|
623
668
|
.sneakoscope/ mission state, policy, retention, logs, wiki packs, GX cartridges
|
|
624
|
-
.codex/config.toml Codex profiles
|
|
669
|
+
.codex/config.toml Codex profiles, multi-agent limits, and Context7 MCP
|
|
625
670
|
.codex/hooks.json hook entrypoints
|
|
626
671
|
.codex/skills/ Codex App local project skills
|
|
627
672
|
.codex/agents/ Codex App custom agents for Team mode
|
|
@@ -679,12 +724,14 @@ vgraph.json
|
|
|
679
724
|
|
|
680
725
|
`render.svg` embeds the normalized `vgraph.json` hash. `sks gx drift` fails when the render is missing, stale, or structurally invalid.
|
|
681
726
|
|
|
682
|
-
## TriWiki Context
|
|
727
|
+
## TriWiki Context Tracking
|
|
683
728
|
|
|
684
|
-
TriWiki is
|
|
729
|
+
TriWiki is the harness-level context-tracking SSOT and context selection strategy, not a model-internal modification. It scores claims and memory entries by geometric distance, authority, freshness, risk, and token cost, then builds context capsules for the current mission.
|
|
685
730
|
|
|
686
731
|
The default model is anchor-first rather than lossy-summary-first. Selected claims are included as text, while non-selected claims are preserved as LLM Wiki anchors with id, source path, hash, RGBA key, and a compact coordinate tuple. Later turns can hydrate the missing context from the project wiki instead of depending on a one-way summary.
|
|
687
732
|
|
|
733
|
+
Use TriWiki for long-running routes, Team handoffs, Ralph continuations, research loops, DB reviews, and any task likely to hit context pressure.
|
|
734
|
+
|
|
688
735
|
RGBA wiki coordinates use four channels:
|
|
689
736
|
|
|
690
737
|
```text
|
|
@@ -701,7 +748,7 @@ Useful commands:
|
|
|
701
748
|
```bash
|
|
702
749
|
sks wiki coords --rgba 12,34,56,255
|
|
703
750
|
sks wiki pack
|
|
704
|
-
sks wiki validate
|
|
751
|
+
sks wiki validate .sneakoscope/wiki/context-pack.json
|
|
705
752
|
```
|
|
706
753
|
|
|
707
754
|
Default context layers:
|
|
@@ -746,7 +793,7 @@ npm run doctor
|
|
|
746
793
|
|
|
747
794
|
`npm run repo-audit` checks tracked files for risky local paths and high-confidence secret material such as private keys, npm/GitHub/OpenAI-style tokens, local MCP configs, DB dumps, and credential files. It is included in `release:check` and `prepublishOnly`. The package intentionally does not define `prepack`; GitHub installs should not trigger npm's heavier git-dependency preparation path for normal users.
|
|
748
795
|
|
|
749
|
-
`npm run sizecheck` blocks accidental package bloat during `release:check`, `publish:dry`, and `npm publish`. Defaults: packed tarball `<=
|
|
796
|
+
`npm run sizecheck` blocks accidental package bloat during `release:check`, `publish:dry`, and `npm publish`. Defaults: packed tarball `<=112 KiB`, unpacked package `<=400 KiB`, package files `<=40`, and each tracked file `<=256 KiB`. Override only for an intentional release with `SKS_MAX_PACK_BYTES`, `SKS_MAX_UNPACKED_BYTES`, `SKS_MAX_PACK_FILES`, or `SKS_MAX_TRACKED_FILE_BYTES`.
|
|
750
797
|
|
|
751
798
|
`npm run selftest` uses the mock path and does not call a model. Live Ralph runs require a working Codex CLI installation and authentication.
|
|
752
799
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sneakoscope",
|
|
3
3
|
"displayName": "Sneakoscope Codex",
|
|
4
|
-
"version": "0.6.
|
|
4
|
+
"version": "0.6.19",
|
|
5
5
|
"description": "Sneakoscope Codex: update-aware, database-safe Codex CLI harness with multi-agent Team orchestration, Ralph no-question execution, autoresearch-style loops, and H-Proof gates.",
|
|
6
6
|
"type": "module",
|
|
7
7
|
"homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
|