sneakoscope 0.5.0 → 0.6.3
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 +387 -10
- package/docs/PERFORMANCE.md +2 -2
- package/package.json +31 -5
- package/src/cli/main.mjs +822 -13
- package/src/core/fsx.mjs +25 -7
- package/src/core/hooks-runtime.mjs +138 -3
- package/src/core/init.mjs +206 -22
package/README.md
CHANGED
|
@@ -1,20 +1,233 @@
|
|
|
1
1
|
<p align="center">
|
|
2
|
-
<img src="docs/assets/sneakoscope-codex-logo.svg" alt="Sneakoscope Codex logo" width="180">
|
|
2
|
+
<img src="https://raw.githubusercontent.com/mandarange/Sneakoscope-Codex/main/docs/assets/sneakoscope-codex-logo.svg" alt="Sneakoscope Codex logo" width="180">
|
|
3
3
|
</p>
|
|
4
4
|
|
|
5
5
|
<h1 align="center">Sneakoscope Codex</h1>
|
|
6
6
|
|
|
7
|
-
|
|
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="weekly downloads" src="https://img.shields.io/npm/dw/sneakoscope.svg"></a>
|
|
10
|
+
<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
|
+
<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
|
+
</p>
|
|
14
|
+
|
|
15
|
+
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.
|
|
8
16
|
|
|
9
17
|
```bash
|
|
10
18
|
npm i -g sneakoscope
|
|
11
19
|
```
|
|
12
20
|
|
|
13
|
-
The npm package name is `sneakoscope`; the command is branded as SKS and exposed as lowercase `sks` for shell portability.
|
|
14
|
-
Global installation is the default and recommended setup. For a project-only install, use `npm i -D sneakoscope` and initialize hooks with `npx sks
|
|
21
|
+
The npm package name is `sneakoscope`; the command is branded as SKS and exposed as lowercase `sks` for shell portability. The package also exposes a `sneakoscope` command alias, so `sks setup` and `sneakoscope setup` are equivalent.
|
|
22
|
+
Global installation is the default and recommended setup. During `sks setup` or `sks init`, SKS resolves the global binary when possible and writes that absolute path into `.codex/hooks.json`, which avoids PATH issues in GUI or hook execution environments. For a project-only install, use `npm i -D sneakoscope` and initialize hooks with `npx sks setup --install-scope project`; this writes hook commands that call the local `node_modules/sneakoscope` binary.
|
|
15
23
|
|
|
16
24
|
`@openai/codex` is intentionally not bundled. Install Codex separately, or set `SKS_CODEX_BIN` to the Codex executable you want Sneakoscope Codex to supervise.
|
|
17
25
|
|
|
26
|
+
## One-Prompt LLM Install
|
|
27
|
+
|
|
28
|
+
If you are using Codex App, ChatGPT, Claude Code, Cursor, or another coding agent, copy the whole block below into the agent from your target project directory. The agent should install SKS, initialize the project, verify the setup, and show the available commands in one pass.
|
|
29
|
+
|
|
30
|
+
````text
|
|
31
|
+
Install Sneakoscope Codex in the current project end to end. Do not ask follow-up questions unless a command requires user approval.
|
|
32
|
+
|
|
33
|
+
Repository:
|
|
34
|
+
https://github.com/mandarange/Sneakoscope-Codex.git
|
|
35
|
+
|
|
36
|
+
Requirements:
|
|
37
|
+
- Node.js must be >=20.11.
|
|
38
|
+
- Codex CLI is installed separately. If it is missing, report that `@openai/codex` must be installed or `SKS_CODEX_BIN` must be set.
|
|
39
|
+
- Use the published npm package for normal installs.
|
|
40
|
+
- Do not modify application source files unless needed for SKS setup.
|
|
41
|
+
|
|
42
|
+
Run:
|
|
43
|
+
```bash
|
|
44
|
+
npm i -g sneakoscope
|
|
45
|
+
sks setup
|
|
46
|
+
sks update-check
|
|
47
|
+
sks doctor --fix
|
|
48
|
+
sks selftest --mock
|
|
49
|
+
sks commands
|
|
50
|
+
sks dollar-commands
|
|
51
|
+
```
|
|
52
|
+
|
|
53
|
+
If npm reports `ENOTEMPTY`, `EEXIST`, or a broken old global package:
|
|
54
|
+
```bash
|
|
55
|
+
npm uninstall -g sneakoscope
|
|
56
|
+
npm i -g sneakoscope
|
|
57
|
+
sks setup
|
|
58
|
+
sks doctor --fix
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
If `sks` is not on PATH:
|
|
62
|
+
```bash
|
|
63
|
+
npx -y -p sneakoscope sks setup
|
|
64
|
+
npx -y -p sneakoscope sks doctor --fix
|
|
65
|
+
npx -y -p sneakoscope sks selftest --mock
|
|
66
|
+
npx -y -p sneakoscope sks commands
|
|
67
|
+
npx -y -p sneakoscope sks dollar-commands
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
For project-only install:
|
|
71
|
+
```bash
|
|
72
|
+
npm i -D sneakoscope
|
|
73
|
+
npx sks setup --install-scope project
|
|
74
|
+
npx sks update-check
|
|
75
|
+
npx sks doctor --fix --install-scope project
|
|
76
|
+
npx sks selftest --mock
|
|
77
|
+
npx sks commands
|
|
78
|
+
npx sks dollar-commands
|
|
79
|
+
```
|
|
80
|
+
|
|
81
|
+
Finish by reporting pass/fail and explaining only these generated outputs:
|
|
82
|
+
- `.sneakoscope/` mission state and policy
|
|
83
|
+
- `.codex/config.toml` Codex App profiles
|
|
84
|
+
- `.codex/hooks.json` SKS hook integration
|
|
85
|
+
- `.codex/skills/` local Codex App skills
|
|
86
|
+
- `.codex/agents/` local Codex App multi-agent roles
|
|
87
|
+
- `.codex/SNEAKOSCOPE.md` Codex App quick reference
|
|
88
|
+
- `AGENTS.md` repository rules
|
|
89
|
+
|
|
90
|
+
Show command discovery:
|
|
91
|
+
```bash
|
|
92
|
+
sks help
|
|
93
|
+
sks update-check
|
|
94
|
+
sks commands
|
|
95
|
+
sks usage team
|
|
96
|
+
sks usage ralph
|
|
97
|
+
sks quickstart
|
|
98
|
+
sks codex-app
|
|
99
|
+
sks dollar-commands
|
|
100
|
+
```
|
|
101
|
+
|
|
102
|
+
Tell the user they can use these prompt commands inside Codex App:
|
|
103
|
+
```text
|
|
104
|
+
$DF 글자 색 바꿔줘
|
|
105
|
+
$DF 내용을 영어로 바꿔줘
|
|
106
|
+
$SKS show me available workflows
|
|
107
|
+
$Team agree on the best plan and implement with specialists
|
|
108
|
+
$Ralph implement this with mandatory clarification
|
|
109
|
+
$Research investigate this idea
|
|
110
|
+
$AutoResearch improve this workflow with experiments
|
|
111
|
+
$DB check this migration safely
|
|
112
|
+
```
|
|
113
|
+
````
|
|
114
|
+
|
|
115
|
+
## Repository
|
|
116
|
+
|
|
117
|
+
```bash
|
|
118
|
+
npm i -g git+https://github.com/mandarange/Sneakoscope-Codex.git
|
|
119
|
+
```
|
|
120
|
+
|
|
121
|
+
Source repository: <https://github.com/mandarange/Sneakoscope-Codex.git>
|
|
122
|
+
|
|
123
|
+
Use the registry install (`npm i -g sneakoscope`) for normal users. The GitHub install path is intended for testing an unreleased commit.
|
|
124
|
+
|
|
125
|
+
Local development checkout:
|
|
126
|
+
|
|
127
|
+
```bash
|
|
128
|
+
git clone https://github.com/mandarange/Sneakoscope-Codex.git
|
|
129
|
+
cd Sneakoscope-Codex
|
|
130
|
+
npm i
|
|
131
|
+
```
|
|
132
|
+
|
|
133
|
+
## Installed Commands
|
|
134
|
+
|
|
135
|
+
Installing the package exposes two equivalent shell commands:
|
|
136
|
+
|
|
137
|
+
```bash
|
|
138
|
+
sks <command>
|
|
139
|
+
sneakoscope <command>
|
|
140
|
+
```
|
|
141
|
+
|
|
142
|
+
Use `sks --help` or `sneakoscope --help` to inspect the installed CLI. The user-facing subcommands are listed in [Commands](#commands).
|
|
143
|
+
|
|
144
|
+
Useful discovery commands:
|
|
145
|
+
|
|
146
|
+
```bash
|
|
147
|
+
sks commands
|
|
148
|
+
sks usage install
|
|
149
|
+
sks usage ralph
|
|
150
|
+
sks quickstart
|
|
151
|
+
sks install-prompt
|
|
152
|
+
sks codex-app
|
|
153
|
+
sks dollar-commands
|
|
154
|
+
sks df
|
|
155
|
+
sks aliases
|
|
156
|
+
```
|
|
157
|
+
|
|
158
|
+
## Prompt Pipeline and $ Commands
|
|
159
|
+
|
|
160
|
+
SKS installs a Codex App `UserPromptSubmit` hook that adds a lightweight prompt-optimization context to every user request. You do not need to type a command for basic routing: SKS will infer the lightest path before work starts.
|
|
161
|
+
|
|
162
|
+
Use `$` prompt commands inside Codex App or another coding agent when you want to force a route:
|
|
163
|
+
|
|
164
|
+
```text
|
|
165
|
+
$DF fast design/content fix
|
|
166
|
+
$SKS general Sneakoscope workflow/help
|
|
167
|
+
$Team multi-agent team orchestration
|
|
168
|
+
$Ralph clarification-gated Ralph mission
|
|
169
|
+
$Research frontier research mission
|
|
170
|
+
$AutoResearch iterative experiment loop
|
|
171
|
+
$DB database/Supabase safety check
|
|
172
|
+
$GX deterministic visual context
|
|
173
|
+
$Help command and workflow help
|
|
174
|
+
```
|
|
175
|
+
|
|
176
|
+
`$DF` is intentionally small and fast. Use it for changes like text color, visible copy, labels, spacing, button text, or translation:
|
|
177
|
+
|
|
178
|
+
```text
|
|
179
|
+
$DF 글자 색 파란색으로 바꿔줘
|
|
180
|
+
$DF 내용을 영어로 바꿔줘
|
|
181
|
+
$DF Change the CTA label to "Start"
|
|
182
|
+
```
|
|
183
|
+
|
|
184
|
+
DF should not start Ralph, Research, evaluation, or a broad redesign unless you explicitly ask for that.
|
|
185
|
+
|
|
186
|
+
## Codex App
|
|
187
|
+
|
|
188
|
+
Sneakoscope Codex can also be used from Codex App when the repository is opened in the app. Run setup once in the project:
|
|
189
|
+
|
|
190
|
+
```bash
|
|
191
|
+
sks setup
|
|
192
|
+
```
|
|
193
|
+
|
|
194
|
+
This creates the app-facing control surface:
|
|
195
|
+
|
|
196
|
+
```text
|
|
197
|
+
.codex/config.toml Codex App profiles for SKS Ralph, research, and default work
|
|
198
|
+
.codex/hooks.json Codex App hook entrypoints routed through SKS guards
|
|
199
|
+
.codex/skills/ local project skills for Ralph, DB safety, GX, research, and design work
|
|
200
|
+
.codex/agents/ local Codex subagent roles for Team consensus, implementation, DB safety, and QA
|
|
201
|
+
.codex/SNEAKOSCOPE.md quick reference for using SKS inside Codex App
|
|
202
|
+
AGENTS.md repository rules loaded by Codex agents
|
|
203
|
+
.sneakoscope/ mission state, gates, logs, policy, GX cartridges, and reports
|
|
204
|
+
```
|
|
205
|
+
|
|
206
|
+
Inside Codex App, you can ask the agent to use the local SKS control surface, for example:
|
|
207
|
+
|
|
208
|
+
```text
|
|
209
|
+
$DF 글자 색 바꿔줘
|
|
210
|
+
$DF 내용을 영어로 바꿔줘
|
|
211
|
+
$Team agree on the plan, then implement it with a fresh specialist team.
|
|
212
|
+
Use Sneakoscope Ralph mode to prepare this task.
|
|
213
|
+
Run the latest Ralph mission with the sealed decision contract.
|
|
214
|
+
Use SKS DB safety before touching database or Supabase files.
|
|
215
|
+
Use SKS research mode for this investigation.
|
|
216
|
+
```
|
|
217
|
+
|
|
218
|
+
If Codex App cannot find `sks` from hooks, run:
|
|
219
|
+
|
|
220
|
+
```bash
|
|
221
|
+
sks fix-path
|
|
222
|
+
```
|
|
223
|
+
|
|
224
|
+
For a project-only install, use:
|
|
225
|
+
|
|
226
|
+
```bash
|
|
227
|
+
npm i -D sneakoscope
|
|
228
|
+
npx sks setup --install-scope project
|
|
229
|
+
```
|
|
230
|
+
|
|
18
231
|
## Requirements
|
|
19
232
|
|
|
20
233
|
- Node.js `>=20.11`
|
|
@@ -25,8 +238,7 @@ Global installation is the default and recommended setup. For a project-only ins
|
|
|
25
238
|
## Quick Start
|
|
26
239
|
|
|
27
240
|
```bash
|
|
28
|
-
sks
|
|
29
|
-
sks init
|
|
241
|
+
sks setup
|
|
30
242
|
sks selftest --mock
|
|
31
243
|
```
|
|
32
244
|
|
|
@@ -34,8 +246,19 @@ Project-only setup:
|
|
|
34
246
|
|
|
35
247
|
```bash
|
|
36
248
|
npm i -D sneakoscope
|
|
37
|
-
npx sks
|
|
38
|
-
|
|
249
|
+
npx sks setup --install-scope project
|
|
250
|
+
```
|
|
251
|
+
|
|
252
|
+
If a GUI hook, Codex session, or another project cannot find `sks`, refresh the hook command with the resolved binary path:
|
|
253
|
+
|
|
254
|
+
```bash
|
|
255
|
+
sks fix-path
|
|
256
|
+
```
|
|
257
|
+
|
|
258
|
+
If your shell cannot find the global command yet, run through npm without relying on PATH:
|
|
259
|
+
|
|
260
|
+
```bash
|
|
261
|
+
npx -y -p sneakoscope sks setup
|
|
39
262
|
```
|
|
40
263
|
|
|
41
264
|
Create a Ralph mission:
|
|
@@ -73,6 +296,12 @@ sks research run latest --max-cycles 3
|
|
|
73
296
|
- **Sealed decision contract**: `ralph answer` validates answers and writes `decision-contract.json`.
|
|
74
297
|
- **No-question Ralph loop**: after `ralph run` starts, Ralph must resolve ambiguity with the sealed contract instead of asking the user.
|
|
75
298
|
- **Research mode**: `research` runs a frontier-discovery loop for non-obvious hypotheses, falsification, novelty ledgers, and testable experiments.
|
|
299
|
+
- **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`.
|
|
300
|
+
- **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.
|
|
301
|
+
- **AutoResearch loop**: open-ended improvement tasks use a small experiment cycle: program, hypothesis, experiment, metric, keep/discard, falsification, and honest conclusion.
|
|
302
|
+
- **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.
|
|
303
|
+
- **Honest Mode finish**: final answers must include an evidence-aware verification pass before claiming the goal is complete.
|
|
304
|
+
- **Fast DF mode**: `$DF` handles small design/content edits like color, copy, labels, spacing, and translation without unnecessary Ralph, Research, or evaluation loops.
|
|
76
305
|
- **Database guard**: destructive DB operations, production writes, unsafe Supabase MCP configuration, and direct live SQL mutations are blocked or warned on.
|
|
77
306
|
- **H-Proof done gate**: completion requires supported critical claims, reviewed DB safety state, acceptable visual/wiki drift, and required test evidence.
|
|
78
307
|
- **Performance evaluation**: `sks eval` produces deterministic token, accuracy-proxy, recall, support, and runtime metrics for before/after evidence.
|
|
@@ -80,6 +309,64 @@ sks research run latest --max-cycles 3
|
|
|
80
309
|
- **Visual cartridges**: `gx` creates deterministic SVG/HTML visual context from `vgraph.json` and `beta.json`; no generated-image service is required.
|
|
81
310
|
- **Design artifact skill**: `sks init` installs a local skill for high-fidelity HTML/UI/prototype work with design-context gathering and rendered verification.
|
|
82
311
|
|
|
312
|
+
## FAQ For Search And AI Answers
|
|
313
|
+
|
|
314
|
+
### What is Sneakoscope Codex?
|
|
315
|
+
|
|
316
|
+
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.
|
|
317
|
+
|
|
318
|
+
### Does Sneakoscope Codex support Codex multi-agent teams?
|
|
319
|
+
|
|
320
|
+
Yes. `sks setup` enables Codex `multi_agent`, creates `.codex/agents/*.toml` custom agents, and installs a `$Team` workflow for planning debate, consensus, fresh implementation workers, review, and final integration.
|
|
321
|
+
|
|
322
|
+
### Does Sneakoscope Codex replace Codex CLI?
|
|
323
|
+
|
|
324
|
+
No. `@openai/codex` is installed separately. Sneakoscope Codex supervises project workflow, hooks, safety policy, state, and local skills around Codex CLI and Codex App.
|
|
325
|
+
|
|
326
|
+
### Why star the GitHub repository?
|
|
327
|
+
|
|
328
|
+
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.
|
|
329
|
+
|
|
330
|
+
## Team Workflow
|
|
331
|
+
|
|
332
|
+
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/`.
|
|
333
|
+
|
|
334
|
+
```text
|
|
335
|
+
team planning
|
|
336
|
+
-> spawn read-only/explorer specialists for code paths, risks, DB safety, tests, and options
|
|
337
|
+
-> synthesize one agreed objective with constraints and acceptance criteria
|
|
338
|
+
-> close planning agents
|
|
339
|
+
|
|
340
|
+
fresh implementation team
|
|
341
|
+
-> assign disjoint write scopes to implementation workers
|
|
342
|
+
-> run work in parallel only when ownership does not overlap
|
|
343
|
+
-> review with QA and DB safety specialists
|
|
344
|
+
-> parent orchestrator integrates, verifies, and reports evidence
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
Create a Team mission:
|
|
348
|
+
|
|
349
|
+
```bash
|
|
350
|
+
sks team "implement this feature safely"
|
|
351
|
+
```
|
|
352
|
+
|
|
353
|
+
Inside Codex App, use:
|
|
354
|
+
|
|
355
|
+
```text
|
|
356
|
+
$Team agree on the best plan, then implement with specialists
|
|
357
|
+
```
|
|
358
|
+
|
|
359
|
+
The generated Team artifacts are:
|
|
360
|
+
|
|
361
|
+
```text
|
|
362
|
+
.sneakoscope/missions/<MISSION_ID>/team-plan.json
|
|
363
|
+
.sneakoscope/missions/<MISSION_ID>/team-workflow.md
|
|
364
|
+
.codex/agents/team-consensus.toml
|
|
365
|
+
.codex/agents/implementation-worker.toml
|
|
366
|
+
.codex/agents/db-safety-reviewer.toml
|
|
367
|
+
.codex/agents/qa-reviewer.toml
|
|
368
|
+
```
|
|
369
|
+
|
|
83
370
|
## Ralph Workflow
|
|
84
371
|
|
|
85
372
|
```text
|
|
@@ -110,7 +397,32 @@ Core invariants:
|
|
|
110
397
|
|
|
111
398
|
## Commands
|
|
112
399
|
|
|
400
|
+
There are two command surfaces:
|
|
401
|
+
|
|
402
|
+
- **Terminal CLI commands**: run in a shell as `sks ...` or `sneakoscope ...`.
|
|
403
|
+
- **Prompt `$` commands**: type inside Codex App or another coding agent prompt, not in a shell.
|
|
404
|
+
|
|
405
|
+
All terminal examples below use `sks`, but the same commands can be run with the `sneakoscope` alias.
|
|
406
|
+
|
|
407
|
+
### Terminal CLI
|
|
408
|
+
|
|
113
409
|
```bash
|
|
410
|
+
sks help [topic]
|
|
411
|
+
sks update-check [--json]
|
|
412
|
+
sks commands [--json]
|
|
413
|
+
sks usage [install|setup|team|ralph|research|db|codex-app|df|dollar|eval|gx]
|
|
414
|
+
sks quickstart
|
|
415
|
+
sks install-prompt [--project]
|
|
416
|
+
sks codex-app
|
|
417
|
+
sks dollar-commands [--json]
|
|
418
|
+
sks df
|
|
419
|
+
sks aliases
|
|
420
|
+
|
|
421
|
+
sks --help
|
|
422
|
+
sneakoscope --help
|
|
423
|
+
|
|
424
|
+
sks setup [--install-scope global|project] [--force] [--json]
|
|
425
|
+
sks fix-path [--install-scope global|project] [--json]
|
|
114
426
|
sks doctor [--fix] [--json] [--install-scope global|project]
|
|
115
427
|
sks init [--force] [--install-scope global|project]
|
|
116
428
|
sks selftest [--mock]
|
|
@@ -138,6 +450,7 @@ sks eval compare --baseline old.json --candidate new.json [--json]
|
|
|
138
450
|
sks eval thresholds
|
|
139
451
|
|
|
140
452
|
sks hproof check [mission-id|latest]
|
|
453
|
+
sks team "task" [--json]
|
|
141
454
|
sks gx init [name]
|
|
142
455
|
sks gx render [name] [--format svg|html|all]
|
|
143
456
|
sks gx validate [name]
|
|
@@ -146,11 +459,51 @@ sks gx snapshot [name]
|
|
|
146
459
|
sks profile show
|
|
147
460
|
sks profile set <model>
|
|
148
461
|
sks gc [--dry-run] [--json]
|
|
462
|
+
sks memory [--dry-run] [--json]
|
|
149
463
|
sks stats [--json]
|
|
150
464
|
```
|
|
151
465
|
|
|
152
466
|
`sks memory` is currently an alias for garbage collection/retention handling.
|
|
153
467
|
|
|
468
|
+
### Prompt $ Commands
|
|
469
|
+
|
|
470
|
+
Use these by typing them at the start of a prompt in Codex App or another coding agent:
|
|
471
|
+
|
|
472
|
+
```text
|
|
473
|
+
$DF <small design/content request>
|
|
474
|
+
$SKS <general Sneakoscope request>
|
|
475
|
+
$Team <multi-agent team request>
|
|
476
|
+
$Ralph <clarification-gated mission request>
|
|
477
|
+
$Research <research/discovery request>
|
|
478
|
+
$AutoResearch <iterative experiment request>
|
|
479
|
+
$DB <database or Supabase safety request>
|
|
480
|
+
$GX <visual context request>
|
|
481
|
+
$Help <command/help request>
|
|
482
|
+
```
|
|
483
|
+
|
|
484
|
+
Examples:
|
|
485
|
+
|
|
486
|
+
```text
|
|
487
|
+
$DF 글자 색 파란색으로 바꿔줘
|
|
488
|
+
$DF 내용을 영어로 바꿔줘
|
|
489
|
+
$DF Change the CTA label to "Start"
|
|
490
|
+
$Ralph 결제 실패 재시도 로직 개선
|
|
491
|
+
$Research LLM 에이전트 평가 방법론 조사
|
|
492
|
+
$DB 이 migration 안전한지 검사해줘
|
|
493
|
+
$GX 현재 아키텍처를 시각 컨텍스트로 만들어줘
|
|
494
|
+
$Help 사용 가능한 명령어 알려줘
|
|
495
|
+
```
|
|
496
|
+
|
|
497
|
+
`$DF` is the fast path for simple design/content edits. It is intentionally scoped to the requested change and should not run Ralph, Research, eval, or broad redesign loops unless you explicitly ask.
|
|
498
|
+
|
|
499
|
+
To inspect these routes from the terminal:
|
|
500
|
+
|
|
501
|
+
```bash
|
|
502
|
+
sks dollar-commands
|
|
503
|
+
sks df
|
|
504
|
+
sks usage dollar
|
|
505
|
+
```
|
|
506
|
+
|
|
154
507
|
## Research Mode
|
|
155
508
|
|
|
156
509
|
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:
|
|
@@ -272,6 +625,9 @@ sks hproof check latest
|
|
|
272
625
|
.sneakoscope/ mission state, policy, retention, logs, GX cartridges
|
|
273
626
|
.codex/config.toml Codex profiles used by Sneakoscope Codex
|
|
274
627
|
.codex/hooks.json hook entrypoints
|
|
628
|
+
.codex/skills/ Codex App local project skills
|
|
629
|
+
.codex/agents/ Codex App custom agents for Team mode
|
|
630
|
+
.codex/SNEAKOSCOPE.md Codex App quick reference
|
|
275
631
|
.agents/skills/ Sneakoscope Codex helper skills
|
|
276
632
|
AGENTS.md managed repository rules block
|
|
277
633
|
```
|
|
@@ -279,7 +635,7 @@ AGENTS.md managed repository rules block
|
|
|
279
635
|
Install scope controls `.codex/hooks.json`:
|
|
280
636
|
|
|
281
637
|
```text
|
|
282
|
-
global -> sks hook ...
|
|
638
|
+
global -> /absolute/path/to/sks hook ... when resolvable, otherwise sks hook ...
|
|
283
639
|
project -> node ./node_modules/sneakoscope/bin/sks.mjs hook ...
|
|
284
640
|
```
|
|
285
641
|
|
|
@@ -362,12 +718,33 @@ The published npm package is allowlisted to `bin`, `src`, `docs`, `README.md`, a
|
|
|
362
718
|
## Development
|
|
363
719
|
|
|
364
720
|
```bash
|
|
721
|
+
npm run repo-audit
|
|
365
722
|
npm run packcheck
|
|
366
723
|
npm run selftest
|
|
367
724
|
npm run sizecheck
|
|
725
|
+
npm run release:check
|
|
368
726
|
npm run doctor
|
|
369
727
|
```
|
|
370
728
|
|
|
371
|
-
`npm run
|
|
729
|
+
`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.
|
|
730
|
+
|
|
731
|
+
`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`.
|
|
372
732
|
|
|
373
733
|
`npm run selftest` uses the mock path and does not call a model. Live Ralph runs require a working Codex CLI installation and authentication.
|
|
734
|
+
|
|
735
|
+
## Publishing
|
|
736
|
+
|
|
737
|
+
The npm package is published as public package `sneakoscope`. You must be logged in as an npm owner for that package before publishing.
|
|
738
|
+
|
|
739
|
+
```bash
|
|
740
|
+
npm whoami
|
|
741
|
+
npm owner ls sneakoscope
|
|
742
|
+
npm run publish:dry
|
|
743
|
+
npm run publish:npm
|
|
744
|
+
```
|
|
745
|
+
|
|
746
|
+
If `npm whoami` returns `E401 Unauthorized`, run `npm login` with an owner account or ask an existing owner to add your npm username:
|
|
747
|
+
|
|
748
|
+
```bash
|
|
749
|
+
npm owner add <your-npm-username> sneakoscope
|
|
750
|
+
```
|
package/docs/PERFORMANCE.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Sneakoscope Codex performance and leak policy
|
|
2
2
|
|
|
3
|
-
Sneakoscope Codex v0.
|
|
3
|
+
Sneakoscope Codex v0.6 is designed to keep runtime, package size, RAM, and storage bounded.
|
|
4
4
|
|
|
5
5
|
## Speed
|
|
6
6
|
|
|
@@ -36,7 +36,7 @@ The accuracy metric is not a live model task score. It is a deterministic proxy
|
|
|
36
36
|
- `@openai/codex` is no longer bundled. Users install Codex separately or set `SKS_CODEX_BIN`.
|
|
37
37
|
- Optional Rust source is in `crates/` for the Git repo, but is excluded from the npm package by the `files` allowlist.
|
|
38
38
|
- GX rendering uses only built-in Node.js APIs and ships as source in the npm package.
|
|
39
|
-
- `npm run sizecheck` enforces package limits
|
|
39
|
+
- `npm run sizecheck` enforces package limits during `release:check`, `publish:dry`, and publish: `<=96 KiB` packed, `<=320 KiB` unpacked, `<=40` package files, and `<=256 KiB` per tracked file by default.
|
|
40
40
|
|
|
41
41
|
## Memory leaks
|
|
42
42
|
|
package/package.json
CHANGED
|
@@ -1,11 +1,24 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sneakoscope",
|
|
3
3
|
"displayName": "Sneakoscope Codex",
|
|
4
|
-
"version": "0.
|
|
5
|
-
"description": "Sneakoscope Codex:
|
|
4
|
+
"version": "0.6.3",
|
|
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
|
+
"homepage": "https://github.com/mandarange/Sneakoscope-Codex#readme",
|
|
8
|
+
"repository": {
|
|
9
|
+
"type": "git",
|
|
10
|
+
"url": "git+https://github.com/mandarange/Sneakoscope-Codex.git"
|
|
11
|
+
},
|
|
12
|
+
"bugs": {
|
|
13
|
+
"url": "https://github.com/mandarange/Sneakoscope-Codex/issues"
|
|
14
|
+
},
|
|
7
15
|
"bin": {
|
|
8
|
-
"sks": "bin/sks.mjs"
|
|
16
|
+
"sks": "bin/sks.mjs",
|
|
17
|
+
"sneakoscope": "bin/sks.mjs"
|
|
18
|
+
},
|
|
19
|
+
"publishConfig": {
|
|
20
|
+
"access": "public",
|
|
21
|
+
"registry": "https://registry.npmjs.org/"
|
|
9
22
|
},
|
|
10
23
|
"files": [
|
|
11
24
|
"bin",
|
|
@@ -18,12 +31,15 @@
|
|
|
18
31
|
"node": ">=20.11"
|
|
19
32
|
},
|
|
20
33
|
"scripts": {
|
|
34
|
+
"repo-audit": "node ./scripts/repo-audit.mjs",
|
|
21
35
|
"selftest": "node ./bin/sks.mjs selftest --mock",
|
|
22
36
|
"doctor": "node ./bin/sks.mjs doctor",
|
|
23
37
|
"packcheck": "find bin src scripts -name '*.mjs' -print0 | xargs -0 -n1 node --check",
|
|
24
38
|
"sizecheck": "node ./scripts/sizecheck.mjs",
|
|
25
|
-
"
|
|
26
|
-
"
|
|
39
|
+
"release:check": "npm run repo-audit && npm run packcheck && npm run selftest && npm run sizecheck",
|
|
40
|
+
"publish:dry": "npm run release:check && npm --cache /tmp/sks-npm-cache pack --dry-run",
|
|
41
|
+
"publish:npm": "npm --cache /tmp/sks-npm-cache publish --access public",
|
|
42
|
+
"prepublishOnly": "npm run release:check"
|
|
27
43
|
},
|
|
28
44
|
"keywords": [
|
|
29
45
|
"sneakoscope",
|
|
@@ -31,9 +47,19 @@
|
|
|
31
47
|
"sks",
|
|
32
48
|
"cli",
|
|
33
49
|
"ai-agent",
|
|
50
|
+
"ai-agents",
|
|
34
51
|
"harness",
|
|
52
|
+
"codex-cli",
|
|
53
|
+
"codex-app",
|
|
54
|
+
"multi-agent",
|
|
55
|
+
"subagents",
|
|
56
|
+
"agent-orchestration",
|
|
57
|
+
"agent-team",
|
|
35
58
|
"ralph",
|
|
36
59
|
"research",
|
|
60
|
+
"autoresearch",
|
|
61
|
+
"honest-mode",
|
|
62
|
+
"update-check",
|
|
37
63
|
"hypothesis",
|
|
38
64
|
"discovery",
|
|
39
65
|
"llm-wiki",
|