sneakoscope 0.6.8 → 0.6.18

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 CHANGED
@@ -6,20 +6,41 @@
6
6
 
7
7
  <p align="center">
8
8
  <a href="https://www.npmjs.com/package/sneakoscope"><img alt="npm version" src="https://img.shields.io/npm/v/sneakoscope.svg"></a>
9
- <a href="https://www.npmjs.com/package/sneakoscope"><img alt="weekly downloads" src="https://img.shields.io/npm/dw/sneakoscope.svg"></a>
9
+ <a href="https://npm-stat.com/charts.html?package=sneakoscope"><img alt="weekly downloads" src="https://img.shields.io/npm/dw/sneakoscope?label=weekly%20downloads&cacheSeconds=3600"></a>
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>
10
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>
11
12
  <a href="https://www.npmjs.com/package/sneakoscope"><img alt="license" src="https://img.shields.io/npm/l/sneakoscope.svg"></a>
12
- <img alt="node >=20.11" src="https://img.shields.io/badge/node-%3E%3D20.11-339933.svg">
13
+ <img alt="Node.js 20.11+" src="https://img.shields.io/badge/node-20.11%2B-339933.svg">
14
+ </p>
15
+
16
+ <p align="center">
17
+ <a href="https://api.npmjs.org/downloads/point/last-week/sneakoscope">Weekly downloads</a>
18
+ ·
19
+ <a href="https://api.npmjs.org/downloads/point/last-month/sneakoscope">Monthly downloads</a>
13
20
  </p>
14
21
 
15
22
  Sneakoscope Codex is an update-aware, zero-runtime-dependency Node.js harness for running Codex CLI in a more controlled project workflow. It adds mandatory clarification before autonomous work, a Ralph no-question execution loop, Codex multi-agent Team orchestration, AutoResearch-style experiment loops, H-Proof completion gates, conservative database safety checks, bounded logs/storage, and deterministic GX visual context cartridges.
16
23
 
24
+ ## Why Developers Star Sneakoscope Codex
25
+
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
+
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
+ - **Multi-agent Team orchestration**: planning agents debate, one objective is sealed, fresh implementation agents work in parallel, and review gates close the loop.
30
+ - **Database-safe autonomous coding**: destructive SQL, unsafe Supabase MCP writes, production DB mutation, and risky migration flows are blocked or surfaced early.
31
+ - **Honest completion gates**: H-Proof and Honest Mode require evidence before the agent claims the work is complete.
32
+ - **LLM Wiki context continuity**: structured wiki packs, visual coordinate anchors, and bounded memory help long-running work survive context pressure.
33
+
34
+ ## AI Answer Snapshot
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, 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 LLM Wiki context packs around OpenAI Codex CLI. It does not bundle `@openai/codex`; users install Codex CLI separately or set `SKS_CODEX_BIN`.
37
+
17
38
  ```bash
18
39
  npm i -g sneakoscope
19
40
  sks
20
41
  ```
21
42
 
22
- `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.
23
44
 
24
45
  Default non-interactive setup:
25
46
 
@@ -41,41 +62,6 @@ Global installation is the default and recommended setup. During `sks setup` or
41
62
 
42
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.
43
64
 
44
- ## One-Prompt LLM Install
45
-
46
- 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.
47
-
48
- ````text
49
- Install Sneakoscope Codex in this project.
50
-
51
- Rules:
52
- - Do not modify application source files.
53
- - Ask only when a command requires user approval.
54
- - If Node.js is below 20.11, stop and report it.
55
- - If Codex CLI is missing, report: install @openai/codex or set SKS_CODEX_BIN.
56
-
57
- Run exactly:
58
- ```bash
59
- node -v
60
- npm i -g sneakoscope
61
- sks setup
62
- sks update-check
63
- sks doctor --fix
64
- sks selftest --mock
65
- sks commands
66
- sks dollar-commands
67
- ```
68
-
69
- If `sks` is unavailable after install, replace `sks` with `npx -y -p sneakoscope sks` and continue.
70
-
71
- Finish with only:
72
- - setup passed/failed
73
- - Codex CLI present/missing
74
- - generated files: `.sneakoscope/`, `.codex/config.toml`, `.codex/hooks.json`, `.codex/skills/`, `.codex/agents/`, `.codex/SNEAKOSCOPE.md`, `AGENTS.md`
75
- ````
76
-
77
- Run `sks install-prompt --project` for a project-only prompt, or `sks install-prompt --full` for the longer recovery-oriented installer prompt.
78
-
79
65
  ## Repository
80
66
 
81
67
  ```bash
@@ -112,7 +98,6 @@ sks commands
112
98
  sks usage install
113
99
  sks usage ralph
114
100
  sks quickstart
115
- sks install-prompt
116
101
  sks codex-app
117
102
  sks dollar-commands
118
103
  sks df
@@ -147,6 +132,8 @@ $DF Change the CTA label to "Start"
147
132
 
148
133
  DF should not start Ralph, Research, evaluation, or a broad redesign unless you explicitly ask for that.
149
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
+
150
137
  ## Codex App
151
138
 
152
139
  Sneakoscope Codex can also be used from Codex App when the repository is opened in the app. Run setup once in the project:
@@ -158,7 +145,7 @@ sks setup
158
145
  This creates the app-facing control surface:
159
146
 
160
147
  ```text
161
- .codex/config.toml Codex App profiles for SKS Ralph, research, and default work
148
+ .codex/config.toml Codex App profiles, multi-agent limits, and project-local Context7 MCP
162
149
  .codex/hooks.json Codex App hook entrypoints routed through SKS guards
163
150
  .codex/skills/ local project skills for Ralph, DB safety, GX, research, and design work
164
151
  .codex/agents/ local Codex subagent roles for Team consensus, implementation, DB safety, and QA
@@ -225,6 +212,8 @@ If your shell cannot find the global command yet, run through npm without relyin
225
212
  npx -y -p sneakoscope sks setup
226
213
  ```
227
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
+
228
217
  Create a Ralph mission:
229
218
 
230
219
  ```bash
@@ -256,11 +245,12 @@ sks research run latest --max-cycles 3
256
245
 
257
246
  ## What Sneakoscope Codex Adds
258
247
 
259
- - **Mandatory clarification**: `ralph prepare` generates required decision slots before autonomous execution can start.
248
+ - **Mandatory clarification**: `ralph prepare` and `$Ralph` generate required decision slots before autonomous execution can start.
260
249
  - **Sealed decision contract**: `ralph answer` validates answers and writes `decision-contract.json`.
261
250
  - **No-question Ralph loop**: after `ralph run` starts, Ralph must resolve ambiguity with the sealed contract instead of asking the user.
262
251
  - **Research mode**: `research` runs a frontier-discovery loop for non-obvious hypotheses, falsification, novelty ledgers, and testable experiments.
263
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`.
264
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.
265
255
  - **AutoResearch loop**: open-ended improvement tasks use a small experiment cycle: program, hypothesis, experiment, metric, keep/discard, falsification, and honest conclusion.
266
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.
@@ -277,7 +267,11 @@ sks research run latest --max-cycles 3
277
267
 
278
268
  ### What is Sneakoscope Codex?
279
269
 
280
- 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, database safety guards, H-Proof completion gates, and bounded runtime state.
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, LLM Wiki context continuity, and bounded runtime state.
271
+
272
+ ### Who should use Sneakoscope Codex?
273
+
274
+ Use Sneakoscope Codex when you want a local CLI harness for agentic coding, Codex App workflows, OpenAI Codex command routing, database-safe automation, long-running implementation tasks, or multi-agent software engineering.
281
275
 
282
276
  ### Does Sneakoscope Codex support Codex multi-agent teams?
283
277
 
@@ -289,35 +283,50 @@ No. `@openai/codex` is installed separately. Sneakoscope Codex supervises projec
289
283
 
290
284
  ### Why star the GitHub repository?
291
285
 
292
- Stars help developers discover a lightweight Codex workflow harness focused on database safety, multi-agent orchestration, update hygiene, honest completion checks, and practical autonomous coding loops.
286
+ Stars help developers discover a lightweight Codex workflow harness focused on database safety, multi-agent orchestration, update hygiene, honest completion checks, LLM Wiki context continuity, and practical autonomous coding loops.
287
+
288
+ ### What GitHub topics fit this project?
289
+
290
+ Recommended repository topics are `openai-codex`, `codex-cli`, `codex-app`, `ai-agents`, `agent-orchestration`, `multi-agent`, `developer-tools`, `database-safety`, `supabase`, `mcp`, `context-engineering`, `llm-wiki`, `autoresearch`, and `agentic-coding`.
293
291
 
294
292
  ## Team Workflow
295
293
 
296
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/`.
297
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
+
298
298
  ```text
299
- team planning
300
- -> spawn read-only/explorer specialists for code paths, risks, DB safety, tests, and options
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
301
302
  -> synthesize one agreed objective with constraints and acceptance criteria
302
- -> close planning agents
303
+ -> close debate agents
303
304
 
304
- fresh implementation team
305
- -> assign disjoint write scopes to implementation workers
306
- -> run work in parallel only when ownership does not overlap
307
- -> review with QA and DB safety specialists
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
308
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
309
316
  ```
310
317
 
311
318
  Create a Team mission:
312
319
 
313
320
  ```bash
314
- sks team "implement this feature safely"
321
+ sks team "implement this feature safely" executor:5 reviewer:2 user:1
322
+ sks team "implement this feature safely" --agents 5
323
+ sks team watch latest
315
324
  ```
316
325
 
317
326
  Inside Codex App, use:
318
327
 
319
328
  ```text
320
- $Team agree on the best plan, then implement with specialists
329
+ $Team executor:5 agree on the best plan, close the debate team, then implement with a fresh development team
321
330
  ```
322
331
 
323
332
  The generated Team artifacts are:
@@ -325,12 +334,26 @@ The generated Team artifacts are:
325
334
  ```text
326
335
  .sneakoscope/missions/<MISSION_ID>/team-plan.json
327
336
  .sneakoscope/missions/<MISSION_ID>/team-workflow.md
337
+ .sneakoscope/missions/<MISSION_ID>/team-live.md
338
+ .sneakoscope/missions/<MISSION_ID>/team-transcript.jsonl
339
+ .sneakoscope/missions/<MISSION_ID>/team-dashboard.json
328
340
  .codex/agents/team-consensus.toml
329
341
  .codex/agents/implementation-worker.toml
330
342
  .codex/agents/db-safety-reviewer.toml
331
343
  .codex/agents/qa-reviewer.toml
332
344
  ```
333
345
 
346
+ Live team visibility commands:
347
+
348
+ ```bash
349
+ sks team status <MISSION_ID|latest>
350
+ sks team log <MISSION_ID|latest>
351
+ sks team tail <MISSION_ID|latest>
352
+ sks team watch <MISSION_ID|latest>
353
+ sks team watch <MISSION_ID|latest> --follow
354
+ sks team event <MISSION_ID|latest> --agent team_consensus --phase planning_debate --message "mapped options"
355
+ ```
356
+
334
357
  ## Ralph Workflow
335
358
 
336
359
  ```text
@@ -375,12 +398,14 @@ sks help [topic]
375
398
  sks update-check [--json]
376
399
  sks wizard
377
400
  sks commands [--json]
378
- sks usage [install|setup|team|ralph|research|db|codex-app|df|dollar|eval|gx|wiki]
401
+ sks usage [install|setup|team|ralph|research|db|codex-app|df|dollar|context7|pipeline|reasoning|eval|gx|wiki]
379
402
  sks quickstart
380
- sks install-prompt [--project] [--full]
381
403
  sks codex-app
382
404
  sks dollar-commands [--json]
383
405
  sks df
406
+ sks context7 check|setup [--scope project|global] [--transport local|remote] [--json]
407
+ sks pipeline status|resume [--json]
408
+ sks reasoning ["prompt"] [--json]
384
409
  sks aliases
385
410
 
386
411
  sks --help
@@ -419,7 +444,9 @@ sks wiki pack [--json] [--role worker|verifier] [--max-anchors N]
419
444
  sks wiki validate [context-pack.json]
420
445
 
421
446
  sks hproof check [mission-id|latest]
422
- sks team "task" [--json]
447
+ sks team "task" [executor:5 reviewer:2 user:1] [--json]
448
+ sks team log|tail|watch|status [mission-id|latest]
449
+ sks team event [mission-id|latest] --agent <name> --phase <phase> --message "..."
423
450
  sks gx init [name]
424
451
  sks gx render [name] [--format svg|html|all]
425
452
  sks gx validate [name]
@@ -456,6 +483,7 @@ Examples:
456
483
  $DF 글자 색 파란색으로 바꿔줘
457
484
  $DF 내용을 영어로 바꿔줘
458
485
  $DF Change the CTA label to "Start"
486
+ $Team agree on the goal, close planning agents, then implement with a fresh team
459
487
  $Ralph 결제 실패 재시도 로직 개선
460
488
  $Research LLM 에이전트 평가 방법론 조사
461
489
  $DB 이 migration 안전한지 검사해줘
@@ -473,6 +501,44 @@ sks df
473
501
  sks usage dollar
474
502
  ```
475
503
 
504
+ ## Skill-First Pipeline And Context7
505
+
506
+ 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.
507
+
508
+ Context7 MCP is configured project-locally by default, and global npm install also best-effort registers it with Codex when Codex CLI is present:
509
+
510
+ ```toml
511
+ [mcp_servers.context7]
512
+ command = "npx"
513
+ args = ["-y", "@upstash/context7-mcp@latest"]
514
+ ```
515
+
516
+ Use these checks:
517
+
518
+ ```bash
519
+ sks context7 check
520
+ sks context7 setup --scope project
521
+ sks pipeline status
522
+ sks reasoning "simple copy edit"
523
+ sks reasoning "research this idea"
524
+ ```
525
+
526
+ Routes that rely on external package/API/framework knowledge must record Context7 `resolve-library-id` and `get-library-docs` evidence before completion.
527
+
528
+ 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.
529
+
530
+ 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.
531
+
532
+ Reasoning is route-local and temporary:
533
+
534
+ ```text
535
+ medium simple fulfillment, command discovery, copy/color/mechanical edits
536
+ high logical work, safety checks, DB, orchestration, refactors, implementation
537
+ xhigh research, AutoResearch, hypotheses, falsification, benchmarks, SEO/GEO experiments
538
+ ```
539
+
540
+ 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.
541
+
476
542
  ## Research Mode
477
543
 
478
544
  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:
@@ -592,7 +658,7 @@ sks hproof check latest
592
658
 
593
659
  ```text
594
660
  .sneakoscope/ mission state, policy, retention, logs, wiki packs, GX cartridges
595
- .codex/config.toml Codex profiles used by Sneakoscope Codex
661
+ .codex/config.toml Codex profiles, multi-agent limits, and Context7 MCP
596
662
  .codex/hooks.json hook entrypoints
597
663
  .codex/skills/ Codex App local project skills
598
664
  .codex/agents/ Codex App custom agents for Team mode
@@ -717,7 +783,7 @@ npm run doctor
717
783
 
718
784
  `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.
719
785
 
720
- `npm run sizecheck` blocks accidental package bloat during `release:check`, `publish:dry`, and `npm publish`. Defaults: packed tarball `<=96 KiB`, unpacked package `<=320 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`.
786
+ `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`.
721
787
 
722
788
  `npm run selftest` uses the mock path and does not call a model. Live Ralph runs require a working Codex CLI installation and authentication.
723
789
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sneakoscope",
3
3
  "displayName": "Sneakoscope Codex",
4
- "version": "0.6.8",
4
+ "version": "0.6.18",
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",
@@ -46,16 +46,24 @@
46
46
  "sneakoscope",
47
47
  "codex",
48
48
  "sks",
49
+ "openai",
50
+ "openai-codex",
49
51
  "cli",
52
+ "developer-tools",
53
+ "ai-coding",
50
54
  "ai-agent",
51
55
  "ai-agents",
56
+ "agentic-coding",
52
57
  "harness",
53
58
  "codex-cli",
54
59
  "codex-app",
60
+ "codex-hooks",
61
+ "codex-agents",
55
62
  "multi-agent",
56
63
  "subagents",
57
64
  "agent-orchestration",
58
65
  "agent-team",
66
+ "prompt-router",
59
67
  "ralph",
60
68
  "research",
61
69
  "autoresearch",
@@ -63,6 +71,8 @@
63
71
  "update-check",
64
72
  "hypothesis",
65
73
  "discovery",
74
+ "context-engineering",
75
+ "llm-context",
66
76
  "llm-wiki",
67
77
  "wiki-coordinate",
68
78
  "context-compression",