sneakoscope 0.7.11 → 0.7.13
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 +27 -27
- package/package.json +2 -2
- package/src/cli/install-helpers.mjs +12 -13
- package/src/cli/main.mjs +87 -100
- package/src/cli/maintenance-commands.mjs +31 -31
- package/src/core/artifact-schemas.mjs +6 -6
- package/src/core/codex-app.mjs +1 -1
- package/src/core/evaluation.mjs +3 -3
- package/src/core/fsx.mjs +1 -1
- package/src/core/init.mjs +6 -6
- package/src/core/pipeline.mjs +2 -2
- package/src/core/ppt.mjs +100 -19
- package/src/core/questions.mjs +1 -1
- package/src/core/routes.mjs +9 -9
- package/src/core/team-live.mjs +8 -8
- package/src/core/tmux-ui.mjs +447 -0
- package/src/core/warp-ui.mjs +0 -557
package/README.md
CHANGED
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
|
|
3
3
|

|
|
4
4
|
|
|
5
|
-
Sneakoscope Codex (`sks`, displayed as `ㅅㅋㅅ`) is a Codex CLI/App harness for repeatable agent workflows. It adds terminal commands, Codex App `$` prompt commands,
|
|
5
|
+
Sneakoscope Codex (`sks`, displayed as `ㅅㅋㅅ`) is a Codex CLI/App harness for repeatable agent workflows. It adds terminal commands, Codex App `$` prompt commands, tmux-native CLI workspaces, Team/QA/Research routes, inspectable pipeline plans, a maximum-speed Computer Use lane, a fast Goal bridge for native `/goal` persistence, Context7 evidence checks, DB safety, TriWiki context tracking, lightweight skill dreaming, Honest Mode, and release-readiness gates.
|
|
6
6
|
|
|
7
7
|
## Quick Start
|
|
8
8
|
|
|
@@ -43,14 +43,14 @@ sks selftest --mock
|
|
|
43
43
|
|
|
44
44
|
| Area | What it does |
|
|
45
45
|
| --- | --- |
|
|
46
|
-
| CLI runtime | `sks
|
|
46
|
+
| CLI runtime | `sks tmux open` and `sks --mad` explicitly launch Codex CLI with tmux; bare `sks` only prints help/readiness surfaces. |
|
|
47
47
|
| Codex App commands | Installs generated skills so `$Team`, `$From-Chat-IMG`, `$DFix`, `$QA-LOOP`, `$PPT`, `$Goal`, `$DB`, `$Wiki`, `$Help`, and related routes are visible in prompt workflows. |
|
|
48
48
|
| Pipeline plans | Writes `pipeline-plan.json` for stateful routes so the runtime lane, kept stages, skipped stages, verification commands, and no-unrequested-fallback invariant are visible with `sks pipeline plan`. |
|
|
49
49
|
| Team orchestration | Runs substantial work through ambiguity handling, scouts, TriWiki refresh, debate, runtime task graphs, worker inboxes, implementation, review, cleanup, reflection, and Honest Mode; narrow work should use Proof Field evidence to skip unrelated pipeline work instead of expanding Team. |
|
|
50
50
|
| Skill dreaming | Records cheap generated-skill usage counters in JSON and only periodically scans `.agents/skills` for keep, merge, prune, and improvement candidates. Reports are recommendation-only and never delete skills automatically. |
|
|
51
51
|
| From-Chat-IMG | Turns chat screenshots plus original attachments into source-bound work orders, then requires scoped QA evidence before completion. |
|
|
52
52
|
| QA loop | Dogfoods UI/API behavior with safety gates, Codex Computer Use-only UI evidence, safe fixes, and rechecks. |
|
|
53
|
-
| PPT pipeline | Uses `$PPT` for simple, restrained, information-first HTML/PDF presentation artifacts, first asking delivery context, audience profile, STP strategy, decision context, and 3+ pain-point to solution/aha mappings before source research, design-system work, HTML/PDF export, and render QA.
|
|
53
|
+
| PPT pipeline | Uses `$PPT` for simple, restrained, information-first HTML/PDF presentation artifacts, first asking delivery context, audience profile, STP strategy, decision context, and 3+ pain-point to solution/aha mappings before source research, design-system work, HTML/PDF export, and render QA. Independent strategy/render/file-write phases run in parallel where inputs allow and are recorded in `ppt-parallel-report.json`; editable source HTML is preserved under `source-html/`, PPT-only temporary build files are cleaned after completion, and generated image assets must prefer Codex App built-in image generation through `$imagegen`. |
|
|
54
54
|
| Computer Use fast lane | Uses `$Computer-Use` / `$CU` for UI/browser/visual work that needs maximum speed: skip Team debate and upfront TriWiki loops, use Codex Computer Use directly, then refresh/validate TriWiki and run Honest Mode at final closeout. |
|
|
55
55
|
| Goal | Provides a fast SKS bridge overlay for Codex native persisted `/goal` create, pause, resume, and clear controls; implementation continues through the selected SKS execution route. |
|
|
56
56
|
| TriWiki voxels | Maintains `.sneakoscope/wiki/context-pack.json` as the context SSOT with coordinate anchors, voxel metadata, `attention.use_first`, and `attention.hydrate_first`. |
|
|
@@ -65,21 +65,21 @@ sks selftest --mock
|
|
|
65
65
|
- npm
|
|
66
66
|
- Codex CLI for terminal workflows
|
|
67
67
|
- Codex App for app-facing workflows, with Codex Computer Use required for UI/browser evidence
|
|
68
|
-
-
|
|
68
|
+
- tmux for the CLI-first runtime
|
|
69
69
|
- Context7 MCP for current-docs-gated routes
|
|
70
70
|
|
|
71
|
-
Install
|
|
71
|
+
Install tmux from [tmux.dev/download](https://www.tmux.dev/download). On macOS, Homebrew users can also install it with:
|
|
72
72
|
|
|
73
73
|
```sh
|
|
74
|
-
brew install
|
|
74
|
+
brew install tmux
|
|
75
75
|
```
|
|
76
76
|
|
|
77
77
|
`sks --mad` is stricter than the normal runtime path:
|
|
78
78
|
|
|
79
79
|
- Checks npm for a newer `sneakoscope` before launch and asks whether to update when the terminal can answer y/n.
|
|
80
80
|
- Installs the latest Codex CLI with `npm i -g @openai/codex@latest` when it is missing and you approve or pass `--yes`.
|
|
81
|
-
- Requires
|
|
82
|
-
-
|
|
81
|
+
- Requires tmux 3.x or newer before opening the session.
|
|
82
|
+
- Creates or reuses a named detached tmux session, splits panes, and prints the attach command.
|
|
83
83
|
|
|
84
84
|
## Installation
|
|
85
85
|
|
|
@@ -152,30 +152,30 @@ sks --version
|
|
|
152
152
|
```sh
|
|
153
153
|
sks bootstrap
|
|
154
154
|
sks deps check
|
|
155
|
-
sks deps install
|
|
155
|
+
sks deps install tmux
|
|
156
156
|
sks codex-app check
|
|
157
157
|
sks doctor --fix
|
|
158
158
|
sks fix-path
|
|
159
159
|
```
|
|
160
160
|
|
|
161
|
-
### Open Codex CLI With
|
|
161
|
+
### Open Codex CLI With tmux
|
|
162
162
|
|
|
163
163
|
```sh
|
|
164
|
-
sks
|
|
165
|
-
sks
|
|
166
|
-
sks
|
|
164
|
+
sks tmux open
|
|
165
|
+
sks tmux check
|
|
166
|
+
sks tmux status --once
|
|
167
167
|
```
|
|
168
168
|
|
|
169
|
-
`sks
|
|
169
|
+
`sks tmux open` creates or reuses a named tmux session for Codex CLI only when that is explicitly requested. `sks` and `sks tmux check` are diagnostic/help surfaces and do not start a workspace.
|
|
170
170
|
|
|
171
|
-
### MAD
|
|
171
|
+
### MAD tmux Launch
|
|
172
172
|
|
|
173
173
|
```sh
|
|
174
174
|
sks --mad
|
|
175
175
|
sks --mad --yes
|
|
176
176
|
```
|
|
177
177
|
|
|
178
|
-
This creates/uses the `sks-mad-high` Codex profile for a one-shot full-access, high-reasoning
|
|
178
|
+
This creates/uses the `sks-mad-high` Codex profile for a one-shot full-access, high-reasoning tmux session with `approval_policy = "on-request"` and `approvals_reviewer = "auto_review"`. It is scoped to that explicit command and does not change normal SKS/DB safety defaults. Repeat launches reuse the same named SKS MAD tmux session.
|
|
179
179
|
|
|
180
180
|
MAD does not disable the pipeline contract: stages, executors, reviewers, and auto-review policy still must not invent unrequested fallback implementation code. If the requested path cannot be implemented, SKS should block with evidence rather than add substitute behavior.
|
|
181
181
|
|
|
@@ -194,19 +194,19 @@ sks team "implement this feature" executor:3 reviewer:1
|
|
|
194
194
|
sks team watch latest
|
|
195
195
|
sks team lane latest --agent analysis_scout_1 --follow
|
|
196
196
|
sks team message latest --from analysis_scout_1 --to executor_1 --message "handoff note"
|
|
197
|
-
sks team cleanup-
|
|
197
|
+
sks team cleanup-tmux latest
|
|
198
198
|
sks team status latest
|
|
199
199
|
sks team dashboard latest
|
|
200
200
|
sks team log latest
|
|
201
201
|
```
|
|
202
202
|
|
|
203
|
-
Team mode prepares the mission, records live events, compiles runtime tasks and worker inboxes, writes schema-backed effort/work-order/dashboard artifacts, and opens a named
|
|
203
|
+
Team mode prepares the mission, records live events, compiles runtime tasks and worker inboxes, writes schema-backed effort/work-order/dashboard artifacts, and opens a named tmux Team session with split live lanes when tmux is available. `sks team dashboard` renders the cockpit panes for mission overview, agent lanes, task DAG, QA/dogfood, artifacts/evidence, and performance.
|
|
204
204
|
|
|
205
|
-
The
|
|
205
|
+
The tmux Team launch is a live orchestration screen: the first pane follows `sks team watch <mission-id> --follow` as the mission overview, and neighboring split panes follow individual `sks team lane <mission-id> --agent <name> --follow` views. SKS gives lanes role-specific colors, labels, and terminal titles, so scouts, planning/debate voices, executors, reviewers, and safety lanes are visually distinct while the same evidence is mirrored into `team-transcript.jsonl`, `team-live.md`, and `team-dashboard.json`.
|
|
206
206
|
|
|
207
207
|
Agent sessions communicate through the bounded Team transcript. Use `sks team message <mission-id|latest> --from <agent> --to <agent|all> --message "..."` to add direct or broadcast messages; lane panes show messages addressed to that agent plus the fallback global tail.
|
|
208
208
|
|
|
209
|
-
When the Team route reaches `session_cleanup`, SKS marks the
|
|
209
|
+
When the Team route reaches `session_cleanup`, SKS marks the tmux session record complete and asks `watch --follow` / `lane --follow` panes to show a cleanup summary and stop. You can also run `sks team cleanup-tmux <mission-id|latest>` manually, or `sks team cleanup-tmux latest --close` to kill the recorded tmux session.
|
|
210
210
|
|
|
211
211
|
### QA, Computer Use, Goal, Research, DB, Wiki, GX
|
|
212
212
|
|
|
@@ -282,7 +282,7 @@ Default setup adds these generated SKS paths to the project `.gitignore`; `--loc
|
|
|
282
282
|
|
|
283
283
|
Use `sks dollar-commands` to confirm that terminal discovery and Codex App prompt commands agree.
|
|
284
284
|
|
|
285
|
-
TriWiki is intentionally sparse: `sks wiki sweep` records demote, soft-forget, archive, delete, promote-to-skill, and promote-to-rule candidates instead of injecting every old claim into future prompts. `sks harness fixture` validates the broader Harness Growth Factory contract: deliberate forgetting fixtures, skill card metadata, experiment schema, tool-error taxonomy, permission profiles, MultiAgentV2 defaults, and
|
|
285
|
+
TriWiki is intentionally sparse: `sks wiki sweep` records demote, soft-forget, archive, delete, promote-to-skill, and promote-to-rule candidates instead of injecting every old claim into future prompts. `sks harness fixture` validates the broader Harness Growth Factory contract: deliberate forgetting fixtures, skill card metadata, experiment schema, tool-error taxonomy, permission profiles, MultiAgentV2 defaults, and tmux cockpit view coverage. `sks code-structure scan` flags handwritten files above 1000/2000/3000-line thresholds so new logic can be extracted before command files become harder to maintain.
|
|
286
286
|
|
|
287
287
|
## Prompt `$` Commands
|
|
288
288
|
|
|
@@ -322,8 +322,8 @@ sks selftest --mock
|
|
|
322
322
|
### Start A CLI Workspace
|
|
323
323
|
|
|
324
324
|
```sh
|
|
325
|
-
sks
|
|
326
|
-
sks
|
|
325
|
+
sks tmux check
|
|
326
|
+
sks tmux open
|
|
327
327
|
```
|
|
328
328
|
|
|
329
329
|
For the high-reasoning full-access profile:
|
|
@@ -385,14 +385,14 @@ npm install -g .
|
|
|
385
385
|
|
|
386
386
|
If the global command is stale, reinstall globally from the repo or from npm.
|
|
387
387
|
|
|
388
|
-
###
|
|
388
|
+
### tmux is missing
|
|
389
389
|
|
|
390
390
|
```sh
|
|
391
|
-
sks deps install
|
|
392
|
-
sks
|
|
391
|
+
sks deps install tmux
|
|
392
|
+
sks tmux check
|
|
393
393
|
```
|
|
394
394
|
|
|
395
|
-
Install
|
|
395
|
+
Install tmux from [tmux.dev/download](https://www.tmux.dev/download) or run `brew install tmux` on macOS, then re-run `sks tmux check`.
|
|
396
396
|
|
|
397
397
|
### Codex App tools are missing
|
|
398
398
|
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "sneakoscope",
|
|
3
3
|
"displayName": "ㅅㅋㅅ",
|
|
4
|
-
"version": "0.7.
|
|
4
|
+
"version": "0.7.13",
|
|
5
5
|
"description": "Sneakoscope Codex: database-safe Codex CLI/App harness with Team, Goal, 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
|
-
"
|
|
60
|
+
"tmux",
|
|
61
61
|
"auto-review",
|
|
62
62
|
"browser-use",
|
|
63
63
|
"computer-use",
|
|
@@ -8,7 +8,7 @@ import { getCodexInfo } from '../core/codex-adapter.mjs';
|
|
|
8
8
|
import { formatHarnessConflictReport, llmHarnessCleanupPrompt, scanHarnessConflicts } from '../core/harness-conflicts.mjs';
|
|
9
9
|
import { installSkills } from '../core/init.mjs';
|
|
10
10
|
import { context7ConfigToml, DOLLAR_SKILL_NAMES, GETDESIGN_REFERENCE, hasContext7ConfigText, RECOMMENDED_SKILLS } from '../core/routes.mjs';
|
|
11
|
-
import {
|
|
11
|
+
import { platformTmuxInstallHint, tmuxReadiness } from '../core/tmux-ui.mjs';
|
|
12
12
|
|
|
13
13
|
export async function postinstall({ bootstrap }) {
|
|
14
14
|
const installRoot = path.resolve(process.env.INIT_CWD || process.cwd());
|
|
@@ -50,8 +50,8 @@ export async function postinstall({ bootstrap }) {
|
|
|
50
50
|
console.log('\nNext:');
|
|
51
51
|
console.log(' sks bootstrap');
|
|
52
52
|
console.log(`\nSKS bootstrap was not run automatically: ${bootstrapDecision.reason}.`);
|
|
53
|
-
console.log('This initializes the current project, installs SKS Codex App skills, verifies Codex App/Context7 readiness, and checks
|
|
54
|
-
console.log('Dependency repair: sks deps check; sks deps install
|
|
53
|
+
console.log('This initializes the current project, installs SKS Codex App skills, verifies Codex App/Context7 readiness, and checks tmux/runtime dependencies.');
|
|
54
|
+
console.log('Dependency repair: sks deps check; sks deps install tmux');
|
|
55
55
|
console.log('Open runtime after readiness is green: sks\n');
|
|
56
56
|
}
|
|
57
57
|
|
|
@@ -210,18 +210,17 @@ async function ensureGlobalGetdesignSkillDuringInstall() {
|
|
|
210
210
|
export async function ensureRelatedCliTools(args = []) {
|
|
211
211
|
const skip = args.includes('--skip-cli-tools') || process.env.SKS_SKIP_CLI_TOOLS === '1';
|
|
212
212
|
const codex = await ensureCodexCliTool({ skip });
|
|
213
|
-
const
|
|
213
|
+
const tmux = await tmuxReadiness().catch((err) => ({ ok: false, version: null, error: err.message }));
|
|
214
214
|
return {
|
|
215
215
|
codex,
|
|
216
|
-
|
|
217
|
-
ok: Boolean(
|
|
218
|
-
|
|
219
|
-
|
|
220
|
-
|
|
221
|
-
|
|
222
|
-
|
|
223
|
-
|
|
224
|
-
error: warp.error || null
|
|
216
|
+
tmux: {
|
|
217
|
+
ok: Boolean(tmux.ok),
|
|
218
|
+
bin: tmux.bin || null,
|
|
219
|
+
version: tmux.version || null,
|
|
220
|
+
min_version: tmux.min_version || '3.0',
|
|
221
|
+
current_session: Boolean(tmux.current_session),
|
|
222
|
+
install_hint: tmux.ok ? null : platformTmuxInstallHint(),
|
|
223
|
+
error: tmux.error || null
|
|
225
224
|
}
|
|
226
225
|
};
|
|
227
226
|
}
|