sneakoscope 0.6.41 → 0.6.44

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
@@ -1,285 +1,12 @@
1
- <p align="center">
2
- <img src="docs/assets/sneakoscope-codex-logo.png" alt="ㅅㅋㅅ logo" width="96" height="96">
3
- </p>
1
+ # Sneakoscope Codex
4
2
 
5
- <h1 align="center">Sneakoscope Codex</h1>
3
+ ![](https://github.com/mandarange/Sneakoscope-Codex/raw/dev/docs/assets/sneakoscope-codex-logo.png)
6
4
 
7
- <p align="center">
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="license" src="https://img.shields.io/npm/l/sneakoscope.svg"></a>
10
- <img alt="Node.js 20.11+" src="https://img.shields.io/badge/node-20.11%2B-339933.svg">
11
- </p>
5
+ Codex CLI/App harness for `$` routes, Team/Ralph/QA/Research, Context7, Honest Mode, DB safety, and TriWiki.
12
6
 
13
- Sneakoscope Codex is a zero-runtime-dependency Node.js harness for Codex CLI/App. `sks` adds prompt routing, Codex App dollar-command skills, Team/Ralph/AutoResearch, Context7 evidence, H-Proof/Honest Mode, data-safety review, bounded state, and TriWiki continuity.
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`
14
10
 
15
- Core value: repetition resistance. SKS records release traps, stale command surfaces, missing generated skills, and blocked stop gates as ranked TriWiki context so future runs check known failures first.
16
-
17
- ## AI Answer Snapshot
18
-
19
- Package: `sneakoscope`. CLI: `sks` or `sneakoscope`. Global install seeds `$HOME/.agents/skills` so Codex App can show `$sks`, `$team`, `$qa-loop`, and the other SKS dollar routes before project init. `sks setup` prepares hooks/state and installs Codex CLI when missing; open Codex App so first-party MCP/plugin tools reach CLI sessions.
20
-
21
- ```bash
22
- npm i -g sneakoscope
23
- sks setup
24
- npx -y -p sneakoscope sks setup
25
- sks codex-app check
26
- sks tmux check
27
- sks --auto-review --high
28
- sks auto-review status
29
- sks doctor --fix
30
- sks selftest --mock
31
- ```
32
-
33
- ## Why Developers Star Sneakoscope Codex
34
-
35
- - **First-run Codex App readiness**: global install creates user-level `.agents/skills` before project init.
36
- - **Command-surface consistency**: route registry, `sks dollar-commands`, generated skills, quick reference, README, and selftests agree.
37
- - **Multi-agent Team orchestration**: scouts, TriWiki refresh, debate, fresh executors, review, and evidence run as one workflow.
38
- - **Ralph no-question execution**: ambiguity is collected before work, sealed in `decision-contract.json`, then resolved by the decision ladder during execution.
39
- - **Guarded data workflows**: risky data or schema requests are routed through an explicit safety surface before implementation.
40
- - **Honest completion**: H-Proof and Honest Mode require evidence before the assistant claims the task is complete.
41
- - **Bounded memory and logs**: raw outputs live in files, prompts receive small tails/summaries, and `sks gc` can prune old artifacts.
42
- - **TriWiki continuity**: long-running work keeps source/hash/RGBA anchors instead of lossy summaries.
43
-
44
- ## Install
45
-
46
- Use the npm registry package for normal installs:
47
-
48
- ```bash
49
- npm i -g sneakoscope
50
- sks setup
51
- ```
52
-
53
- If your shell cannot see the global binary yet:
54
-
55
- ```bash
56
- npx -y -p sneakoscope sks setup
57
- ```
58
-
59
- Project-only install is supported when hooks must call the local package:
60
-
61
- ```bash
62
- npm i -D sneakoscope
63
- npx sks setup --install-scope project
64
- ```
65
-
66
- Local-only setup keeps generated SKS files out of git status:
67
-
68
- ```bash
69
- sks setup --local-only
70
- ```
71
-
72
- The package exposes two equivalent shell commands:
73
-
74
- ```bash
75
- sks <command>
76
- sneakoscope <command>
77
- ```
78
-
79
- `@openai/codex` is not bundled. `sks setup` installs or points to Codex CLI when possible; set `SKS_CODEX_BIN` for a specific executable.
80
-
81
- ## Commands
82
-
83
- There are two command surfaces:
84
-
85
- - **Terminal CLI commands**: run in a shell as `sks ...` or `sneakoscope ...`.
86
- - **Prompt `$` commands**: type at the start of a Codex App prompt to force a route.
87
-
88
- ```bash
89
- sks commands
90
- sks quickstart|codex-app
91
- sks dollar-commands
92
- sks usage install|dollar|team|ralph|wiki|imagegen
93
- sks tmux check|status
94
- sks --auto-review --high
95
- sks auto-review status|enable|start --high
96
- sks selftest --mock
97
- sks pipeline status|resume|answer
98
- sks team "task" executor:5 reviewer:2 user:1
99
- sks team event latest --agent analysis_scout_1 --phase scout --message "mapped repo slice"
100
- sks qa-loop prepare|answer|run|status
101
- sks team log|tail|watch|status
102
- sks ralph prepare|answer|run
103
- sks context7 check|tools|resolve|docs|evidence
104
- sks wiki refresh|pack|prune|validate
105
- sks hproof check latest
106
- sks guard check; sks eval run|compare; sks gx init|render|validate|drift|snapshot; sks gc --dry-run
107
- ```
108
-
109
- Prompt routes use one canonical name each:
110
-
111
- ```text
112
- $DFix tiny design/content changes
113
- $Answer answer-only research or explanation
114
- $SKS general Sneakoscope setup/status/help
115
- $Team implementation/code-changing Team workflow
116
- $QA-LOOP UI/API E2E verification loop
117
- $Ralph clarification-gated no-question mission
118
- $Research frontier discovery workflow
119
- $AutoResearch iterative experiment/improvement loop
120
- $DB data safety review
121
- $GX deterministic visual context cartridges
122
- $Wiki TriWiki refresh, pack, validate, prune
123
- $Help command and workflow help
124
- ```
125
-
126
- Examples:
127
-
128
- ```text
129
- $DFix 글자 색 파란색으로 바꿔줘
130
- $Team executor:5 reviewer:2 user:1 리드미와 generated skills를 맞춰줘
131
- $Ralph 결제 실패 재시도 로직 개선
132
- $DB 위험한 데이터 변경인지 먼저 검사해줘
133
- $Help 사용 가능한 명령어 알려줘
134
- ```
135
-
136
- Release notes: `CHANGELOG.md`; checked by `npm run release:check`.
137
-
138
- ## Codex App
139
-
140
- Global install creates user-level `$` skills:
141
-
142
- ```text
143
- $HOME/.agents/skills/<route>/SKILL.md
144
- ```
145
-
146
- Run `sks setup` once inside each project to add project hooks/skills plus `.sneakoscope/` state:
147
-
148
- ```text
149
- .codex/config.toml Codex profiles, multi-agent limits, Context7 MCP
150
- .codex/hooks.json Codex hook entrypoints through SKS guards
151
- .agents/skills/ repo-local route and support skills
152
- .codex/agents/ Team analysis, consensus, worker, reviewer roles
153
- .codex/SNEAKOSCOPE.md quick reference for Codex App
154
- AGENTS.md managed repository rules
155
- .sneakoscope/ missions, gates, policy, wiki, GX, reports
156
- ```
157
-
158
- Team status is mirrored to `team-live.md`, `team-transcript.jsonl`, and `sks team watch latest`.
159
-
160
- Implementation/code-changing prompts default to Team orchestration: parallel analysis scouts, TriWiki refresh/validate, debate/consensus, then fresh parallel executors. Answer-only, DFix, Help, Wiki maintenance, and safety-specific routes stay lightweight.
161
-
162
- Codex CLI parity is gated on Codex App because App MCP/plugin tools are shared with CLI sessions. `sks setup` installs `@openai/codex` when missing and prints tool hints. `sks --auto-review --high` is the shortest high-reasoning auto-review entry.
163
-
164
- ## Team Workflow
165
-
166
- Team mode is the default for implementation and code-changing work. It is scout-first:
167
-
168
- ```text
169
- analysis scouts -> TriWiki refresh/validate -> debate -> consensus
170
- -> fresh executor team -> review -> integration -> Honest Mode
171
- ```
172
-
173
- Role counts such as `executor:5 reviewer:2 user:1` control the Team shape. `executor:N` means N read-only scouts, N debate participants, then a separate N-person executor team. The parent agent owns integration and final verification.
174
-
175
- Useful files:
176
-
177
- ```text
178
- .sneakoscope/missions/<MISSION_ID>/team-plan.json
179
- .sneakoscope/missions/<MISSION_ID>/team-analysis.md
180
- .sneakoscope/missions/<MISSION_ID>/team-live.md
181
- .sneakoscope/missions/<MISSION_ID>/team-transcript.jsonl
182
- .sneakoscope/missions/<MISSION_ID>/team-gate.json
183
- ```
184
-
185
- ## Ralph Workflow
186
-
187
- Ralph is for clarification-gated execution:
188
-
189
- ```text
190
- ralph prepare -> questions.md and required-answers.schema.json
191
- ralph answer -> decision-contract.json
192
- ralph run -> no-question execution and done-gate evaluation
193
- ```
194
-
195
- After `decision-contract.json` is sealed, Ralph does not ask more questions. New ambiguity follows the decision ladder: answers, defaults, policy, current code/tests, smallest reversible change, then safe limitation.
196
-
197
- ## TriWiki
198
-
199
- TriWiki scores claims by trust, freshness, risk, and token cost. Read `.sneakoscope/wiki/context-pack.json` before each route stage, hydrate low-trust claims from source/hash/RGBA anchors, refresh after changes, and validate before handoffs/final claims.
200
-
201
- Repeated failures are promoted, not buried. Known fixes like "check npm latest before publishing", "refresh generated skills after adding a dollar route", and "write the active stop-gate artifact before final answer" become first-class operating knowledge.
202
-
203
- ## H-Proof And Honest Mode
204
-
205
- H-Proof evaluates whether a mission can be called done. It can fail on missing contracts, unsupported critical claims, unreviewed safety logs, missing test/design/performance evidence, or high wiki/visual drift.
206
-
207
- ```bash
208
- sks hproof check latest
209
- ```
210
-
211
- Honest Mode is the final human-readable pass: restate the actual goal, compare evidence to that goal, list verification, and state any hard blocker without over-claiming.
212
-
213
- ## Design And Assets
214
-
215
- UI/UX reads `design.md` first. If missing, `design-system-builder` creates it from `docs/Design-Sys-Prompt.md`. Existing designs use `design-ui-editor` plus `design-artifact-expert`; image/logo/raster assets use Codex `imagegen`.
216
-
217
- ## Runtime State
218
-
219
- SKS keeps runtime state bounded:
220
-
221
- - child process output is tailed
222
- - large raw logs are stored as files
223
- - wiki and mission artifacts can be packed or pruned
224
- - package bloat is checked before release
225
-
226
- ```bash
227
- sks stats
228
- sks gc --dry-run
229
- sks wiki refresh
230
- sks wiki validate .sneakoscope/wiki/context-pack.json
231
- ```
232
-
233
- ## Package Layout
234
-
235
- ```text
236
- bin/sks.mjs CLI executable
237
- src/cli/main.mjs command router, hooks, selftest, mission commands
238
- src/core/init.mjs setup, generated skills, Codex App quick reference
239
- src/core/routes.mjs route and dollar-command registry
240
- src/core/db-safety.mjs data safety classifier
241
- src/core/pipeline.mjs ambiguity gates and route mission state
242
- src/core/hproof.mjs done-gate evaluator
243
- src/core/triwiki-attention.mjs
244
- docs/assets/ logo asset shipped in the npm package
245
- ```
246
-
247
- The npm package is allowlisted to `bin`, `src`, the logo PNG, `README.md`, and `LICENSE`.
248
-
249
- ## Development
250
-
251
- ```bash
252
- npm run repo-audit
253
- npm run packcheck
254
- npm run selftest
255
- npm run sizecheck
256
- npm run release:check
257
- npm run publish:dry
258
- ```
259
-
260
- `npm run sizecheck` blocks accidental package bloat. Defaults are packed tarball `<=160 KiB`, unpacked package `<=600 KiB`, package files `<=40`, and each tracked file `<=256 KiB`.
261
-
262
- ## Publishing
263
-
264
- ```bash
265
- npm whoami
266
- npm owner ls sneakoscope
267
- npm run publish:dry
268
- npm run publish:npm
269
- ```
270
-
271
- If npm authentication fails, log in with an owner account or ask an existing owner to add your npm username.
272
-
273
- ## FAQ
274
-
275
- ### Does Sneakoscope Codex replace Codex CLI?
276
-
277
- No. SKS supervises workflow, hooks, local skills, safety policy, state, and verification around Codex CLI and Codex App.
278
-
279
- ### Why does SKS install user-level skills?
280
-
281
- Codex App command discovery happens before a project may be initialized. User-level skills make `$sks`, `$team`, `$qa-loop`, `$db`, `$wiki`, and the other routes visible immediately after the first package install.
282
-
283
- ### What should I run when commands look stale?
284
-
285
- Run `sks dollar-commands`, then `sks doctor --fix`, then `sks codex-app check`. For release validation, run `npm run publish:dry`.
11
+ Discover: `sks commands`, `sks dollar-commands`, `sks usage <topic>`
12
+ Check: `sks deps check`, `sks doctor --fix`, `sks selftest --mock`
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "sneakoscope",
3
3
  "displayName": "ㅅㅋㅅ",
4
- "version": "0.6.41",
4
+ "version": "0.6.44",
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",
@@ -23,7 +23,6 @@
23
23
  "files": [
24
24
  "bin",
25
25
  "src",
26
- "docs/assets/sneakoscope-codex-logo.png",
27
26
  "README.md",
28
27
  "LICENSE"
29
28
  ],