sneakoscope 0.6.60 → 0.6.64

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
@@ -2,116 +2,397 @@
2
2
 
3
3
  ![](https://github.com/mandarange/Sneakoscope-Codex/raw/dev/docs/assets/sneakoscope-codex-logo.png)
4
4
 
5
- Codex CLI/App harness for `$` routes, Team/Ralph/QA/Research, Context7, Honest Mode, DB safety, TriWiki, Codex App skills, and release readiness.
5
+ Sneakoscope Codex (`sks`, displayed as `ㅅㅋㅅ`) is a Codex CLI/App harness for repeatable agent workflows. It adds terminal commands, Codex App `$` prompt commands, cmux-native CLI workspaces, Team/Ralph/QA/Research routes, Context7 evidence checks, DB safety, TriWiki context tracking, Honest Mode, and release-readiness gates.
6
6
 
7
- Install: `npm i -g sneakoscope && sks bootstrap`
8
- Fallback: `npx -y -p sneakoscope sks bootstrap`
9
- Project: `npm i -D sneakoscope && npx sks setup --install-scope project`
7
+ ## Quick Start
10
8
 
11
- Discover: `sks commands`, `sks dollar-commands`, `sks usage <topic>`
12
- Check: `sks deps check`, `sks doctor --fix`, `sks selftest --mock`
9
+ Install globally, initialize the current project, then open the cmux runtime:
13
10
 
14
- ## What It Adds
11
+ ```sh
12
+ npm i -g sneakoscope
13
+ sks bootstrap
14
+ sks
15
+ ```
16
+
17
+ If you only want a one-shot run without keeping `sks` installed globally:
18
+
19
+ ```sh
20
+ npx -y -p sneakoscope sks bootstrap
21
+ ```
22
+
23
+ For a repo-local install:
24
+
25
+ ```sh
26
+ npm i -D sneakoscope
27
+ npx sks setup --install-scope project
28
+ ```
15
29
 
16
- Sneakoscope (`sks`, displayed as `ㅅㅋㅅ`) wraps Codex with a repeatable control surface:
30
+ Check that the install is usable:
31
+
32
+ ```sh
33
+ sks deps check
34
+ sks codex-app check
35
+ sks dollar-commands
36
+ sks selftest --mock
37
+ ```
38
+
39
+ ## What Sneakoscope Adds
17
40
 
18
41
  | Area | What it does |
19
42
  | --- | --- |
20
- | Codex App commands | Installs generated skills so `$Team`, `$DFix`, `$QA-LOOP`, `$Ralph`, `$DB`, `$Wiki`, `$Help`, and related routes are discoverable in prompt workflows. |
21
- | CLI commands | Provides `sks commands`, `sks dollar-commands`, `sks usage <topic>`, bootstrap, setup, doctor, deps, selftest, wiki, team, QA, Ralph, DB, and GX commands. |
22
- | Team orchestration | Routes substantial code work through ambiguity removal, scouts, TriWiki refresh, debate, consensus, concrete runtime task graph/inboxes, implementation, review, integration, reflection, and Honest Mode. |
23
- | Ralph | Seals a decision contract up front, then continues without more user questions by using the agreed decision ladder. |
24
- | QA loop | Dogfoods UI/API behavior with safety boundaries, evidence capture, safe remediation, and focused rechecks. |
25
- | TriWiki | Keeps `.sneakoscope/wiki/context-pack.json` as the context SSOT, with refresh, pack, prune, validate, active attention ranking, and hydratable source-backed claims. |
26
- | Context7 | Requires current external library/API/framework docs for routes whose correctness depends on live package or platform behavior. |
27
- | DB safety | Treats SQL, migrations, Supabase, RLS, and destructive operations as high risk; defaults to inspection and guarded local/branch-safe migration work. |
28
- | Honest Mode | Finishes work with a claim/evidence pass that separates verified facts, unsupported claims, blocked checks, and not-applicable items. |
29
- | GX visual context | Generates deterministic visual context cartridges for structured visual review and drift checks. |
30
- | Research loops | Supports Research and AutoResearch workflows with hypotheses, experiments, falsification, novelty ledgers, SEO/GEO, and evidence-backed conclusions. |
31
- | Release hygiene | Checks versioning, changelog, package contents, tarball size, syntax, selftests, and dry-run packaging before publish. |
43
+ | CLI runtime | `sks`, `sks cmux`, and `sks --mad --high` open Codex CLI in a cmux workspace. |
44
+ | Codex App commands | Installs generated skills so `$Team`, `$DFix`, `$QA-LOOP`, `$Ralph`, `$DB`, `$Wiki`, `$Help`, and related routes are visible in prompt workflows. |
45
+ | Team orchestration | Runs substantial work through ambiguity handling, scouts, TriWiki refresh, debate, runtime task graphs, worker inboxes, implementation, review, cleanup, reflection, and Honest Mode. |
46
+ | QA loop | Dogfoods UI/API behavior with safety gates, Browser/Computer evidence, safe fixes, and rechecks. |
47
+ | Ralph | Clarifies once, seals a decision contract, then continues without repeatedly asking the user. |
48
+ | TriWiki | Maintains `.sneakoscope/wiki/context-pack.json` as the context SSOT with `attention.use_first` and `attention.hydrate_first`. |
49
+ | Context7 | Requires current docs for external packages, APIs, MCPs, SDKs, and framework/runtime behavior when correctness depends on current guidance. |
50
+ | DB safety | Treats SQL, migrations, Supabase, RLS, and destructive operations as high risk. |
51
+ | Release hygiene | Checks versioning, changelog, package contents, tarball size, syntax, selftests, and dry-run publishing. |
32
52
 
33
- ## Prompt `$` Commands
53
+ ## Requirements
34
54
 
35
- Use these inside Codex App or another agent prompt. They are prompt commands, not terminal commands.
55
+ - Node.js `>=20.11`
56
+ - npm
57
+ - Codex CLI for terminal workflows
58
+ - Codex App for app-facing workflows and first-party Browser Use / Computer Use parity
59
+ - cmux for the CLI-first runtime
60
+ - Context7 MCP for current-docs-gated routes
36
61
 
37
- | Prompt | Purpose |
38
- | --- | --- |
39
- | `$Team` | Default route for code-changing work and substantial implementation. |
40
- | `$From-Chat-IMG` | Team alias for chat screenshot plus original attachment intake. |
41
- | `$DFix` | Tiny design/content fixes: labels, copy, colors, spacing, translation. |
42
- | `$Answer` | Answer-only route when no implementation should start. |
43
- | `$SKS` | Setup, status, usage, and Sneakoscope workflow help. |
44
- | `$QA-LOOP` | UI/API dogfooding, safe fixes, and rechecks. |
45
- | `$Ralph` | Clarify once, seal a decision contract, then execute. |
46
- | `$Research` | Frontier-style research with hypotheses and falsification. |
47
- | `$AutoResearch` | Iterative improve-test-keep/discard optimization loop. |
48
- | `$DB` | Database and Supabase safety checks. |
49
- | `$MAD-SKS` | Explicit scoped DB authorization modifier; combine it with another `$` route when needed, widened Supabase MCP permissions last only for that invocation, and table deletion requires a short user confirmation timeout. |
50
- | `$GX` | Deterministic visual context generation and validation. |
51
- | `$Wiki` | TriWiki refresh, pack, prune, validate, and maintenance. |
52
- | `$Help` | Installed command and workflow explanation. |
53
-
54
- Run `sks dollar-commands` to verify the terminal and Codex App command surfaces agree.
55
-
56
- ## Terminal Examples
62
+ On macOS, `sks --mad --high` can install cmux through Homebrew when cmux is missing. You can also install it manually:
63
+
64
+ ```sh
65
+ brew tap manaflow-ai/cmux
66
+ brew install --cask cmux
67
+ ```
68
+
69
+ If the CLI is not on `PATH`, SKS also checks the app bundle path:
70
+
71
+ ```sh
72
+ /Applications/cmux.app/Contents/Resources/bin/cmux
73
+ ```
74
+
75
+ ## Installation
76
+
77
+ ### Global Install
78
+
79
+ Use this when you want `sks` available from any repo:
80
+
81
+ ```sh
82
+ npm i -g sneakoscope
83
+ sks bootstrap
84
+ ```
85
+
86
+ `sks bootstrap` initializes the current project, installs Codex App skills/hooks/config, checks Context7/Codex App/cmux readiness, and prints a ready status.
87
+
88
+ ### One-Shot Install
89
+
90
+ Use this when you do not want to keep a global install:
91
+
92
+ ```sh
93
+ npx -y -p sneakoscope sks bootstrap
94
+ ```
95
+
96
+ `npx` fetches the package into npm's cache and runs the binary for that command. This is useful for first-time setup or CI-style verification.
97
+
98
+ ### Project Install
99
+
100
+ Use this when a repo should pin Sneakoscope as a development dependency:
101
+
102
+ ```sh
103
+ npm i -D sneakoscope
104
+ npx sks setup --install-scope project
105
+ ```
106
+
107
+ Project installs are useful when a team wants a repeatable harness version checked through `package-lock.json`.
108
+
109
+ ### Source Checkout
110
+
111
+ Use this when developing Sneakoscope itself:
57
112
 
58
113
  ```sh
114
+ git clone https://github.com/mandarange/Sneakoscope-Codex.git
115
+ cd Sneakoscope-Codex
116
+ npm install
117
+ npm install -g .
118
+ sks --version
119
+ ```
120
+
121
+ ## Terminal CLI Usage
122
+
123
+ Use terminal commands when you want to inspect, set up, verify, or start a CLI-first workspace.
124
+
125
+ ### Discovery
126
+
127
+ ```sh
128
+ sks commands
59
129
  sks usage install
60
130
  sks usage team
61
- sks usage qa-loop
62
131
  sks usage codex-app
63
- sks setup --install-scope project
132
+ sks dollar-commands
133
+ sks --version
134
+ ```
135
+
136
+ ### Setup And Repair
137
+
138
+ ```sh
139
+ sks bootstrap
140
+ sks deps check
141
+ sks deps install cmux
142
+ sks codex-app check
143
+ sks doctor --fix
144
+ sks fix-path
145
+ ```
146
+
147
+ ### Open Codex CLI With cmux
148
+
149
+ ```sh
150
+ sks
151
+ sks cmux check
152
+ sks cmux status --once
153
+ ```
154
+
155
+ `sks` opens a cmux workspace for Codex CLI when running in an interactive terminal. `sks cmux check` is diagnostic and prints readiness without starting a workspace.
156
+
157
+ ### MAD High cmux Workspace
158
+
159
+ ```sh
160
+ sks --mad --high
161
+ ```
162
+
163
+ This creates/uses the `sks-mad-high` Codex profile for a one-shot full-access, high-reasoning cmux workspace. It is scoped to that explicit command and does not change normal SKS/DB safety defaults.
164
+
165
+ ### Team Missions
166
+
167
+ ```sh
168
+ sks team "implement this feature" executor:3 reviewer:1
169
+ sks team watch latest
170
+ sks team status latest
171
+ sks team log latest
172
+ ```
173
+
174
+ Team mode prepares the mission, records live events, compiles runtime tasks and worker inboxes, and opens cmux live lanes when cmux is available.
175
+
176
+ ### QA, Ralph, Research, DB, Wiki, GX
177
+
178
+ ```sh
179
+ sks qa-loop prepare "http://localhost:3000"
180
+ sks qa-loop run latest --max-cycles 2
181
+ sks ralph prepare "migrate this workflow without asking after prepare"
182
+ sks research prepare "evaluate this approach"
183
+ sks db scan --json
64
184
  sks wiki refresh
65
185
  sks wiki validate .sneakoscope/wiki/context-pack.json
66
- sks versioning status
186
+ sks gx init homepage
187
+ sks gx render homepage --format html
67
188
  ```
68
189
 
69
- Route examples:
190
+ ## Codex App Usage
191
+
192
+ Sneakoscope has two surfaces:
193
+
194
+ - Terminal commands such as `sks deps check`, `sks team "task"`, and `sks --mad --high`
195
+ - Codex App prompt commands such as `$Team`, `$DFix`, `$QA-LOOP`, and `$Wiki`
196
+
197
+ After installing, run:
70
198
 
71
199
  ```sh
72
- sks team "implement this" executor:3 reviewer:1
73
- sks team watch <mission-id>
74
- sks qa-loop prepare
75
- sks qa-loop run
76
- sks ralph prepare
77
- sks ralph run
78
- sks db scan
79
- sks gx init
200
+ sks bootstrap
201
+ sks codex-app check
202
+ sks dollar-commands
203
+ ```
204
+
205
+ Then open Codex App and use prompt commands directly in the chat. Examples:
206
+
207
+ ```text
208
+ $Team implement the checkout fix and verify it
209
+ $DFix change this label and spacing only
210
+ $QA-LOOP dogfood localhost:3000 and fix safe issues
211
+ $Ralph clarify once, then finish the migration without more questions
212
+ $Wiki refresh and validate the context pack
213
+ $DB inspect this migration for destructive risk
80
214
  ```
81
215
 
82
- ## Workflow Rules
216
+ Generated app files include:
217
+
218
+ | Path | Purpose |
219
+ | --- | --- |
220
+ | `.codex/SNEAKOSCOPE.md` | Codex App quick reference and route guidance. |
221
+ | `.agents/skills/` | Generated skill instructions for `$` commands. |
222
+ | `.codex/hooks.json` | Stop/finalization hooks for Honest Mode and completion summaries. |
223
+ | `.codex/config.toml` | Codex profiles, agents, and MCP configuration. |
224
+ | `.sneakoscope/` | Runtime state, missions, wiki packs, policies, and artifacts. |
225
+
226
+ Use `sks dollar-commands` to confirm that terminal discovery and Codex App prompt commands agree.
83
227
 
84
- For code work, Sneakoscope defaults to Team. The normal flow is: remove ambiguity that can change scope or safety, read/validate TriWiki, consume `attention.use_first` for compact high-trust context, hydrate `attention.hydrate_first` from source before risky decisions, gather current source evidence, synthesize consensus, compile a concrete runtime task graph plus worker inboxes, implement bounded changes, refresh/validate context after meaningful findings, run relevant checks, then finish with reflection and Honest Mode.
228
+ ## Prompt `$` Commands
85
229
 
86
- For tiny text/design edits use `$DFix`. For questions that should not change files use `$Answer`.
230
+ Use these inside Codex App or another agent prompt. They are prompt commands, not terminal commands.
87
231
 
88
- ## Codex App Surface
232
+ | Prompt | Use when |
233
+ | --- | --- |
234
+ | `$Team` | You want implementation, code changes, or substantial repo work. |
235
+ | `$From-Chat-IMG` | You have a chat screenshot plus original attachments and want each visible request mapped to work. |
236
+ | `$DFix` | You need a tiny design/content edit such as copy, label, color, spacing, or translation. |
237
+ | `$Answer` | You want an answer only and no implementation should start. |
238
+ | `$SKS` | You need setup, status, usage, or workflow help. |
239
+ | `$QA-LOOP` | You want UI/API dogfooding, safe fixes, and rechecks. |
240
+ | `$Ralph` | You want one prepare-time clarification pass, then no more user questions. |
241
+ | `$Research` | You need frontier-style research with hypotheses and falsification. |
242
+ | `$AutoResearch` | You want iterative improve/test/keep-or-discard optimization. |
243
+ | `$DB` | You need database, Supabase, migration, SQL, or MCP safety checks. |
244
+ | `$MAD-SKS` | You explicitly authorize a scoped high-risk DB permission modifier for the active invocation only. |
245
+ | `$GX` | You need deterministic visual context cartridges. |
246
+ | `$Wiki` | You want TriWiki refresh, pack, prune, validate, or maintenance. |
247
+ | `$Help` | You want installed command and workflow explanation. |
89
248
 
90
- `sks bootstrap` and `sks setup` install `.codex/SNEAKOSCOPE.md`, generated `.agents/skills`, `.codex/hooks.json`, route instructions for `$` commands, and user-home skill state for first-install discoverability.
249
+ ## Common Workflows
91
250
 
92
- After install, check:
251
+ ### First Install Checklist
93
252
 
94
253
  ```sh
254
+ npm i -g sneakoscope
255
+ sks bootstrap
256
+ sks deps check
257
+ sks codex-app check
95
258
  sks dollar-commands
96
- sks usage codex-app
259
+ sks selftest --mock
260
+ ```
261
+
262
+ ### Start A CLI Workspace
263
+
264
+ ```sh
265
+ sks cmux check
266
+ sks
267
+ ```
268
+
269
+ For the high-reasoning full-access profile:
270
+
271
+ ```sh
272
+ sks --mad --high
273
+ ```
274
+
275
+ ### Use Codex App `$Team`
276
+
277
+ ```text
278
+ $Team implement the requested change, update docs if needed, and verify with the relevant tests
279
+ ```
280
+
281
+ Team mode records a mission under `.sneakoscope/missions/`, keeps a live transcript, uses TriWiki context, and finishes with evidence and Honest Mode.
282
+
283
+ ### Dogfood A UI Or API
284
+
285
+ ```sh
286
+ sks qa-loop prepare "http://localhost:3000"
287
+ sks qa-loop run latest --max-cycles 2
288
+ sks qa-loop status latest
97
289
  ```
98
290
 
99
- ## Release Checks
291
+ Use `$QA-LOOP` in Codex App when Browser Use or Computer Use evidence should be part of the workflow.
100
292
 
101
- Before publish:
293
+ ### Refresh Context Before Risky Work
294
+
295
+ ```sh
296
+ sks wiki refresh
297
+ sks wiki validate .sneakoscope/wiki/context-pack.json
298
+ ```
299
+
300
+ TriWiki is the long-running context source of truth. It keeps compact high-trust recall in `attention.use_first` and source-hydration targets in `attention.hydrate_first`.
301
+
302
+ ## Safety Model
303
+
304
+ Sneakoscope intentionally treats these as high-risk:
305
+
306
+ - SQL and migrations
307
+ - Supabase MCP and RLS changes
308
+ - destructive filesystem operations
309
+ - user-global harness config
310
+ - published package/release state
311
+
312
+ By default, SKS favors inspection, local files, branch-safe changes, explicit confirmation for destructive DB operations, and completion claims backed by tests or artifacts.
313
+
314
+ ## Troubleshooting
315
+
316
+ ### `sks` points to an old version
317
+
318
+ ```sh
319
+ which sks
320
+ sks --version
321
+ node ./bin/sks.mjs --version
322
+ npm install -g .
323
+ ```
324
+
325
+ If the global command is stale, reinstall globally from the repo or from npm.
326
+
327
+ ### cmux is missing
328
+
329
+ ```sh
330
+ sks deps install cmux
331
+ sks cmux check
332
+ ```
333
+
334
+ `sks --mad --high` also attempts Homebrew installation automatically on macOS when cmux is missing.
335
+
336
+ ### Codex App tools are missing
337
+
338
+ ```sh
339
+ sks codex-app check
340
+ codex mcp list
341
+ ```
342
+
343
+ Codex App workflows need the app installed and the first-party Browser Use / Computer Use tools available for parity with QA and visual workflows.
344
+
345
+ ### Setup is blocked by another harness
346
+
347
+ ```sh
348
+ sks conflicts check
349
+ sks conflicts prompt
350
+ ```
351
+
352
+ OMX/DCodex conflicts intentionally block setup/doctor until the user approves cleanup.
353
+
354
+ ### The route is stuck or a final hook keeps reopening
355
+
356
+ ```sh
357
+ sks pipeline status --json
358
+ sks team watch latest
359
+ sks wiki validate .sneakoscope/wiki/context-pack.json
360
+ ```
361
+
362
+ Finalization requires real evidence, no unsupported critical claims, valid Team cleanup artifacts, reflection when required, and Honest Mode.
363
+
364
+ ## Development And Release
365
+
366
+ Run local checks:
367
+
368
+ ```sh
369
+ npm run repo-audit
370
+ npm run changelog:check
371
+ npm run packcheck
372
+ npm run selftest
373
+ npm run sizecheck
374
+ npm run release:check
375
+ ```
376
+
377
+ Dry-run publish:
102
378
 
103
379
  ```sh
104
380
  npm run publish:dry
105
381
  ```
106
382
 
107
- This runs repo audit, changelog check, syntax packcheck, mock selftest, sizecheck, and `npm pack --dry-run`. A dry run proves the local package is packable; npm account ownership or OTP can still block the real registry upload.
383
+ `publish:dry` proves the local package is packable. It does not prove npm ownership, OTP, or registry publish permission.
108
384
 
109
- ## Requirements
385
+ ## Documentation Style
110
386
 
111
- - Node.js `>=20.11`
112
- - npm
113
- - Codex CLI/App for app-facing workflows
114
- - Context7 MCP for current-docs-gated routes
387
+ This README follows a common open-source CLI shape:
388
+
389
+ - quick start first
390
+ - explicit install paths
391
+ - separate CLI and app/plugin usage
392
+ - command examples before internal architecture
393
+ - troubleshooting and release checks near the end
394
+
395
+ That shape mirrors how projects such as `rdme` and Vite separate quick start, setup/configuration, and CLI usage while keeping copy-ready commands visible.
115
396
 
116
397
  ## License
117
398
 
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sneakoscope",
3
3
  "displayName": "ㅅㅋㅅ",
4
- "version": "0.6.60",
4
+ "version": "0.6.64",
5
5
  "description": "Sneakoscope Codex: database-safe Codex CLI/App harness with Team, Ralph, AutoResearch, TriWiki, and Honest Mode.",
6
6
  "type": "module",
7
7
  "homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
@@ -57,7 +57,7 @@
57
57
  "harness",
58
58
  "codex-cli",
59
59
  "codex-app",
60
- "tmux",
60
+ "cmux",
61
61
  "auto-review",
62
62
  "browser-use",
63
63
  "computer-use",