session-orchestrator 5.0.0 → 5.2.0
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/.agents/skills/autopilot/SKILL.md +1 -0
- package/.agents/skills/bootstrap/SKILL.md +2 -0
- package/.agents/skills/brainstorm/SKILL.md +3 -0
- package/.agents/skills/close/SKILL.md +17 -0
- package/.agents/skills/debug/SKILL.md +2 -0
- package/.agents/skills/discovery/SKILL.md +2 -1
- package/.agents/skills/dispatcher/SKILL.md +2 -0
- package/.agents/skills/eli5/SKILL.md +2 -0
- package/.agents/skills/eval/SKILL.md +1 -0
- package/.agents/skills/evolve/SKILL.md +2 -1
- package/.agents/skills/go/SKILL.md +18 -0
- package/.agents/skills/grill/SKILL.md +2 -0
- package/.agents/skills/harness-audit/SKILL.md +16 -0
- package/.agents/skills/memory-cleanup/SKILL.md +1 -0
- package/.agents/skills/persona-panel/SKILL.md +1 -0
- package/.agents/skills/plan/SKILL.md +3 -1
- package/.agents/skills/portfolio/SKILL.md +17 -0
- package/.agents/skills/reconcile/SKILL.md +1 -0
- package/.agents/skills/release/SKILL.md +18 -0
- package/.agents/skills/repo-audit/SKILL.md +1 -0
- package/.agents/skills/spinout/SKILL.md +1 -0
- package/.agents/skills/sunset-review/SKILL.md +2 -0
- package/.agents/skills/test/SKILL.md +17 -0
- package/.agents/skills/ux-grill/SKILL.md +2 -0
- package/.claude-plugin/marketplace.json +3 -3
- package/.claude-plugin/plugin.json +2 -2
- package/.codex-plugin/plugin.json +2 -2
- package/.codex-plugin/skills/autopilot/SKILL.md +5 -4
- package/.codex-plugin/skills/bootstrap/SKILL.md +8 -4
- package/.codex-plugin/skills/brainstorm/SKILL.md +11 -4
- package/.codex-plugin/skills/close/SKILL.md +3 -3
- package/.codex-plugin/skills/convergence-monitoring/SKILL.md +2 -0
- package/.codex-plugin/skills/convergence-monitoring/agents/openai.yaml +5 -0
- package/.codex-plugin/skills/debug/SKILL.md +11 -4
- package/.codex-plugin/skills/discovery/SKILL.md +8 -4
- package/.codex-plugin/skills/dispatcher/SKILL.md +4 -4
- package/.codex-plugin/skills/eli5/SKILL.md +9 -4
- package/.codex-plugin/skills/eval/SKILL.md +9 -4
- package/.codex-plugin/skills/evolve/SKILL.md +9 -4
- package/.codex-plugin/skills/go/SKILL.md +3 -3
- package/.codex-plugin/skills/grill/SKILL.md +11 -4
- package/.codex-plugin/skills/harness-audit/SKILL.md +4 -3
- package/.codex-plugin/skills/memory-cleanup/SKILL.md +9 -4
- package/.codex-plugin/skills/npm-publish/SKILL.md +2 -0
- package/.codex-plugin/skills/npm-publish/agents/openai.yaml +5 -0
- package/.codex-plugin/skills/persona-panel/SKILL.md +5 -5
- package/.codex-plugin/skills/plan/SKILL.md +8 -4
- package/.codex-plugin/skills/portfolio/SKILL.md +3 -3
- package/.codex-plugin/skills/reconcile/SKILL.md +9 -4
- package/.codex-plugin/skills/release/SKILL.md +3 -3
- package/.codex-plugin/skills/repo-audit/SKILL.md +6 -4
- package/.codex-plugin/skills/spinout/SKILL.md +4 -4
- package/.codex-plugin/skills/sunset-review/SKILL.md +5 -4
- package/.codex-plugin/skills/test/SKILL.md +3 -3
- package/.codex-plugin/skills/ux-grill/SKILL.md +11 -4
- package/.cursor/commands/autopilot.md +4 -4
- package/.cursor/commands/bootstrap.md +5 -4
- package/.cursor/commands/brainstorm.md +5 -4
- package/.cursor/commands/close.md +4 -3
- package/.cursor/commands/convergence-monitoring.md +13 -0
- package/.cursor/commands/debug.md +4 -4
- package/.cursor/commands/discovery.md +4 -4
- package/.cursor/commands/dispatcher.md +4 -4
- package/.cursor/commands/eli5.md +4 -4
- package/.cursor/commands/eval.md +4 -4
- package/.cursor/commands/evolve.md +4 -4
- package/.cursor/commands/go.md +4 -3
- package/.cursor/commands/grill.md +4 -4
- package/.cursor/commands/harness-audit.md +3 -3
- package/.cursor/commands/memory-cleanup.md +4 -4
- package/.cursor/commands/npm-publish.md +13 -0
- package/.cursor/commands/persona-panel.md +4 -4
- package/.cursor/commands/plan.md +5 -4
- package/.cursor/commands/portfolio.md +3 -3
- package/.cursor/commands/reconcile.md +4 -4
- package/.cursor/commands/release.md +4 -3
- package/.cursor/commands/repo-audit.md +4 -4
- package/.cursor/commands/spinout.md +4 -4
- package/.cursor/commands/sunset-review.md +4 -4
- package/.cursor/commands/test.md +3 -3
- package/.cursor/commands/ux-grill.md +4 -4
- package/.cursor/rules/010-session-workflow.mdc +2 -2
- package/.cursor/skills/bootstrap/SKILL.md +1 -0
- package/.cursor/skills/close/SKILL.md +13 -0
- package/.cursor/skills/debug/SKILL.md +0 -1
- package/.cursor/skills/discovery/SKILL.md +0 -1
- package/.cursor/skills/dispatcher/SKILL.md +0 -1
- package/.cursor/skills/eli5/SKILL.md +0 -1
- package/.cursor/skills/evolve/SKILL.md +0 -1
- package/.cursor/skills/go/SKILL.md +13 -0
- package/.cursor/skills/grill/SKILL.md +0 -1
- package/.cursor/skills/harness-audit/SKILL.md +12 -0
- package/.cursor/skills/portfolio/SKILL.md +12 -0
- package/.cursor/skills/release/SKILL.md +13 -0
- package/.cursor/skills/repo-audit/SKILL.md +0 -1
- package/.cursor/skills/sunset-review/SKILL.md +0 -1
- package/.cursor/skills/test/SKILL.md +12 -0
- package/.cursor/skills/ux-grill/SKILL.md +0 -1
- package/.cursor-plugin/plugin.json +2 -2
- package/.orchestrator/policy/blocked-commands.json +10 -0
- package/AGENTS.md +1 -1
- package/CHANGELOG.md +80 -0
- package/README.md +74 -235
- package/commands/session.md +10 -0
- package/docs/USER-GUIDE.md +24 -0
- package/docs/ci-setup.md +53 -0
- package/docs/codex-setup.md +1 -1
- package/docs/components.md +12 -5
- package/docs/events-schema.md +5 -1
- package/docs/install.md +128 -0
- package/docs/persona-panel.md +1 -1
- package/docs/pi-setup.md +1 -1
- package/docs/rule-authoring.md +83 -14
- package/docs/scope-collision-guard.md +2 -0
- package/docs/session-config-reference.md +6 -4
- package/docs/session-config-template.md +38 -0
- package/docs/telemetry.md +15 -0
- package/hooks/_lib/hook-import-set.json +46 -6
- package/hooks/_lib/subagent-paths.mjs +15 -0
- package/hooks/_lib/vcs-create-matcher.mjs +217 -62
- package/hooks/enforce-scope.mjs +42 -1
- package/hooks/hooks-codex.json +1 -1
- package/hooks/hooks.json +1 -1
- package/hooks/on-session-end.mjs +14 -2
- package/hooks/on-stop.mjs +43 -1
- package/hooks/post-bash-write-verify.mjs +3 -0
- package/hooks/pre-auq-clarity.mjs +3 -0
- package/hooks/pre-bash-issue-budget.mjs +103 -17
- package/hooks/pre-task-scope-disjoint.mjs +152 -3
- package/hooks/skill-invocation-telemetry.mjs +2 -1
- package/package.json +3 -2
- package/pi/prompts/autopilot.md +3 -3
- package/pi/prompts/bootstrap.md +3 -3
- package/pi/prompts/brainstorm.md +3 -3
- package/pi/prompts/close.md +2 -2
- package/pi/prompts/convergence-monitoring.md +11 -0
- package/pi/prompts/debug.md +3 -3
- package/pi/prompts/discovery.md +3 -3
- package/pi/prompts/dispatcher.md +3 -3
- package/pi/prompts/eli5.md +3 -3
- package/pi/prompts/eval.md +3 -3
- package/pi/prompts/evolve.md +3 -3
- package/pi/prompts/go.md +2 -2
- package/pi/prompts/grill.md +3 -3
- package/pi/prompts/harness-audit.md +2 -3
- package/pi/prompts/memory-cleanup.md +3 -3
- package/pi/prompts/npm-publish.md +11 -0
- package/pi/prompts/persona-panel.md +3 -3
- package/pi/prompts/plan.md +3 -3
- package/pi/prompts/portfolio.md +2 -2
- package/pi/prompts/reconcile.md +3 -3
- package/pi/prompts/release.md +3 -3
- package/pi/prompts/repo-audit.md +3 -4
- package/pi/prompts/session.md +1 -1
- package/pi/prompts/spinout.md +3 -3
- package/pi/prompts/sunset-review.md +3 -3
- package/pi/prompts/templates-ack.md +1 -1
- package/pi/prompts/test.md +3 -3
- package/pi/prompts/ux-grill.md +3 -3
- package/scripts/archive-closed-prds.mjs +2 -2
- package/scripts/auq-audit.mjs +2 -3
- package/scripts/backfill-abandoned-sessions.mjs +57 -3
- package/scripts/backfill-evidence-digest.mjs +2 -1
- package/scripts/backfill-learnings-from-vault.mjs +2 -2
- package/scripts/check-package-manager.mjs +2 -2
- package/scripts/ci/assert-vitest-green.mjs +2 -1
- package/scripts/emit-session.mjs +2 -3
- package/scripts/export-hw-learnings.mjs +2 -1
- package/scripts/express-path.mjs +1 -1
- package/scripts/gc-stale-worktrees.mjs +2 -1
- package/scripts/generate-codex-skills.mjs +48 -4
- package/scripts/generate-cursor-adapter.mjs +173 -9
- package/scripts/generate-hook-import-set.mjs +12 -27
- package/scripts/generate-pi-prompts.mjs +183 -13
- package/scripts/github-protection-audit.mjs +2 -3
- package/scripts/lib/agent-frontmatter.mjs +23 -1
- package/scripts/lib/claude-md-budget-lint.mjs +2 -5
- package/scripts/lib/command-blocker.mjs +209 -9
- package/scripts/lib/config/drift-check.mjs +19 -0
- package/scripts/lib/convergence-monitor.mjs +2 -2
- package/scripts/lib/cursor-hook-bridge.mjs +2 -2
- package/scripts/lib/description-surface.mjs +2 -5
- package/scripts/lib/dispatcher/cli.mjs +2 -1
- package/scripts/lib/ecosystem-wizard.mjs +2 -1
- package/scripts/lib/fetch-baseline.mjs +3 -8
- package/scripts/lib/gitlab-ops/stale-mr-sweep.mjs +2 -1
- package/scripts/lib/gitlab-portfolio/cli.mjs +2 -1
- package/scripts/lib/instruction-budget-guard.mjs +186 -46
- package/scripts/lib/is-main-module.mjs +82 -0
- package/scripts/lib/locks/index.mjs +32 -25
- package/scripts/lib/maintenance-due-banner.mjs +69 -3
- package/scripts/lib/peer-discovery.mjs +2 -5
- package/scripts/lib/playwright-driver/runner.mjs +63 -2
- package/scripts/lib/reconcile/rule-expiry-sweep.mjs +642 -0
- package/scripts/lib/rules-sync.mjs +2 -5
- package/scripts/lib/scope-echo.mjs +392 -7
- package/scripts/lib/session-close-backfill.mjs +58 -6
- package/scripts/lib/state-md.mjs +84 -3
- package/scripts/lib/sunset/walker.mjs +31 -4
- package/scripts/lib/tests-src-ratio.mjs +2 -6
- package/scripts/lib/tmux-layout/telemetry-stats.mjs +2 -1
- package/scripts/lib/user-invocable-skills.mjs +185 -0
- package/scripts/lib/validate/check-banner-parity.mjs +2 -2
- package/scripts/lib/validate/check-cursor-adapter.mjs +2 -2
- package/scripts/lib/validate/check-dead-bridge.mjs +2 -2
- package/scripts/lib/validate/check-doc-cli-commands.mjs +2 -2
- package/scripts/lib/validate/check-entry-guard.mjs +366 -0
- package/scripts/lib/validate/check-guard-requires-parity.mjs +2 -2
- package/scripts/lib/validate/check-hooks-emit-event-guard.mjs +2 -2
- package/scripts/lib/validate/check-learning-provenance.mjs +2 -2
- package/scripts/lib/validate/check-skill-links.mjs +27 -6
- package/scripts/lib/validate/check-skill-script-paths.mjs +2 -2
- package/scripts/lib/validate/check-test-git-config-target.mjs +2 -2
- package/scripts/lib/validate/check-unicode-safety.mjs +2 -2
- package/scripts/lib/validate/check-untracked-test-deps.mjs +2 -2
- package/scripts/lib/validate/check-unwired-features.mjs +266 -11
- package/scripts/lib/validate/check-validator-registration.mjs +2 -2
- package/scripts/lib/validate/check-vcs-repo-flag.mjs +2 -2
- package/scripts/lib/validate-vendored-rules.mjs +35 -9
- package/scripts/lib/wave-transcript-tail.mjs +2 -2
- package/scripts/lock-reaper.mjs +2 -1
- package/scripts/materialize-wave-scope.mjs +87 -4
- package/scripts/migrate-sessions-jsonl.mjs +2 -1
- package/scripts/migrate-vault-paths.mjs +2 -3
- package/scripts/release.mjs +124 -35
- package/scripts/relocate-vault-corpus.mjs +2 -3
- package/scripts/repair-invalid-sessions.mjs +2 -2
- package/scripts/session-shape.mjs +2 -2
- package/scripts/site-numbers.mjs +35 -11
- package/scripts/sweep-expired-rules.mjs +216 -0
- package/scripts/validate-plugin.mjs +9 -0
- package/scripts/vault-consolidate.mjs +2 -2
- package/scripts/vault-mirror.mjs +2 -3
- package/scripts/wave-scope-binding.mjs +2 -3
- package/skills/_shared/bootstrap-gate.md +1 -1
- package/skills/_shared/monitor-patterns.md +1 -1
- package/skills/_shared/research-evidence.md +53 -0
- package/skills/_shared/state-ownership.md +3 -0
- package/skills/autopilot/SKILL.md +58 -4
- package/skills/bootstrap/SKILL.md +51 -1
- package/skills/brainstorm/SKILL.md +16 -0
- package/skills/claude-md-drift-check/checker.mjs +49 -11
- package/{commands/close.md → skills/close/SKILL.md} +9 -3
- package/skills/debug/SKILL.md +10 -0
- package/skills/discovery/SKILL.md +24 -1
- package/skills/discovery/probes-session.md +2 -2
- package/skills/dispatcher/SKILL.md +38 -7
- package/skills/eli5/SKILL.md +11 -0
- package/skills/eval/SKILL.md +14 -0
- package/skills/evolve/SKILL.md +8 -1
- package/skills/evolve/references/evolve-dialectic-mode.md +6 -2
- package/{commands/go.md → skills/go/SKILL.md} +9 -1
- package/skills/grill/SKILL.md +19 -0
- package/{commands/harness-audit.md → skills/harness-audit/SKILL.md} +7 -2
- package/skills/hook-development/SKILL.md +46 -41
- package/skills/memory-cleanup/SKILL.md +7 -0
- package/skills/npm-publish/SKILL.md +1 -1
- package/skills/persona-panel/SKILL.md +56 -1
- package/skills/persona-panel/persona-format.md +1 -1
- package/skills/plan/SKILL.md +28 -1
- package/skills/playwright-driver/SKILL.md +7 -10
- package/{commands/portfolio.md → skills/portfolio/SKILL.md} +8 -2
- package/skills/reconcile/SKILL.md +10 -0
- package/{commands/release.md → skills/release/SKILL.md} +16 -2
- package/skills/repo-audit/SKILL.md +7 -0
- package/skills/session-end/plan-verification.md +2 -2
- package/skills/session-plan/SKILL.md +1 -1
- package/skills/session-start/SKILL.md +5 -4
- package/skills/session-start/phase-8-5-express-path.md +6 -6
- package/skills/session-start/references/phase-1-5-session-continuity.md +1 -1
- package/skills/session-start/references/phase-2-7-portfolio-snapshot.md +1 -1
- package/skills/session-start/references/phase-4-ssot-environment-check.md +4 -3
- package/skills/spinout/SKILL.md +12 -1
- package/skills/sunset-review/SKILL.md +13 -0
- package/{commands/test.md → skills/test/SKILL.md} +10 -4
- package/skills/ux-grill/SKILL.md +19 -1
- package/skills/wave-executor/SKILL.md +7 -4
- package/skills/wave-executor/references/wave-executor-state-init.md +13 -1
- package/skills/wave-executor/references/wave-loop-dispatch.md +3 -1
- package/skills/wave-executor/references/wave-loop-review.md +17 -1
- package/commands/autopilot.md +0 -80
- package/commands/bootstrap.md +0 -56
- package/commands/brainstorm.md +0 -48
- package/commands/debug.md +0 -36
- package/commands/discovery.md +0 -32
- package/commands/dispatcher.md +0 -59
- package/commands/eli5.md +0 -33
- package/commands/eval.md +0 -28
- package/commands/evolve.md +0 -10
- package/commands/grill.md +0 -45
- package/commands/memory-cleanup.md +0 -26
- package/commands/persona-panel.md +0 -121
- package/commands/plan.md +0 -15
- package/commands/reconcile.md +0 -23
- package/commands/repo-audit.md +0 -24
- package/commands/spinout.md +0 -15
- package/commands/sunset-review.md +0 -27
- package/commands/ux-grill.md +0 -51
package/README.md
CHANGED
|
@@ -1,68 +1,49 @@
|
|
|
1
1
|
# Session Orchestrator
|
|
2
2
|
|
|
3
3
|
[](LICENSE)
|
|
4
|
-
[](CHANGELOG.md)
|
|
5
5
|
[](https://www.npmjs.com/package/session-orchestrator)
|
|
6
|
-
[](docs/telemetry/telemetry-claims.md)
|
|
7
6
|
|
|
8
7
|
**Give your agents a working rhythm.**
|
|
9
8
|
|
|
10
|
-
|
|
9
|
+
You type three commands:
|
|
11
10
|
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
11
|
+
- **`/session`** reads your repository, your open issues and the last session, proposes what to work on, and waits for your correction.
|
|
12
|
+
- **`/go`** runs the agreed work in waves of parallel agents and runs your test, typecheck and lint commands between each wave. Work that fails a check goes back to be fixed before the next wave starts.
|
|
13
|
+
- **`/close`** checks every planned item against what actually happened, commits, and files the rest as issues for next time.
|
|
15
14
|
|
|
16
|
-
|
|
15
|
+
Session Orchestrator is a free, MIT-licensed workflow plugin for **Claude Code, Codex CLI, Cursor IDE, or [Pi](docs/pi-setup.md)**. It runs on your machine and writes plain text into your repository. No account, no server, nothing to sign up for.
|
|
17
16
|
|
|
18
|
-
|
|
17
|
+
[](https://session-orchestrator.com)
|
|
19
18
|
|
|
20
|
-
|
|
19
|
+
```mermaid
|
|
20
|
+
flowchart LR
|
|
21
|
+
S["/session"] --> G["/go"]
|
|
22
|
+
G --> Q{"quality gate"}
|
|
23
|
+
Q -- "fails" --> G
|
|
24
|
+
Q -- "passes" --> C["/close"]
|
|
25
|
+
```
|
|
21
26
|
|
|
22
|
-
|
|
27
|
+
Longer explanation, with examples and screenshots: **[session-orchestrator.com](https://session-orchestrator.com)** ([auf Deutsch](https://session-orchestrator.com/de)).
|
|
23
28
|
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
| | |
|
|
27
|
-
|---|---|
|
|
28
|
-
| **Node.js** | **24 or later** (`node --version`) ; `package.json` `engines.node` is `>=24.0.0`. The plugin is ES modules and needs a real Node runtime. [Install Node.js](https://nodejs.org/). |
|
|
29
|
-
| **A coding agent** | Claude Code, Codex CLI, Cursor IDE, or Pi. This is a workflow layer *on top of* one of them, not a replacement. |
|
|
30
|
-
| **Harness version** | Codex CLI **0.144.4 or later** ([docs/codex-setup.md](docs/codex-setup.md)). No minimum is pinned for Claude Code, Cursor, or Pi; if `/plugin` (or the Cursor/Pi installer) runs, the plugin loads. |
|
|
31
|
-
| **OS** | macOS and Linux are tested in CI. Windows is untested and best-effort; shell hooks and the optional Bash/`jq` MCP server need WSL or Git Bash. |
|
|
32
|
-
| **Git** | A git repository. Session-orchestrator reads git state at every session start and commits at close. |
|
|
29
|
+
[User guide](docs/USER-GUIDE.md) · [Install & upgrade](docs/install.md) · [Changelog](CHANGELOG.md)
|
|
33
30
|
|
|
34
31
|
## Install
|
|
35
32
|
|
|
33
|
+
You need **Node.js 24 or later**, a git repository, and one of the four agents below. Full requirements, upgrade path and uninstall: [docs/install.md](docs/install.md).
|
|
34
|
+
|
|
36
35
|
| Platform | Install |
|
|
37
36
|
|---|---|
|
|
38
|
-
| **Claude Code** | `/plugin marketplace add Kanevry/session-orchestrator` then `/plugin install session-orchestrator@kanevry
|
|
39
|
-
| **Codex CLI** | `git clone
|
|
40
|
-
| **Cursor IDE** | `git clone
|
|
41
|
-
| **Pi** | `pi install npm:session-orchestrator`
|
|
42
|
-
|
|
43
|
-
For Claude Code, also install the package's Node dependencies **once** and restart Claude Code. First locate the installed plugin:
|
|
44
|
-
|
|
45
|
-
```bash
|
|
46
|
-
claude plugin list --json
|
|
47
|
-
```
|
|
48
|
-
|
|
49
|
-
Find the enabled `session-orchestrator@kanevry` entry, then replace the placeholder below with its `installPath` value:
|
|
50
|
-
|
|
51
|
-
```bash
|
|
52
|
-
cd "/absolute/installPath/from/the/list" && npm install
|
|
53
|
-
```
|
|
54
|
-
|
|
55
|
-
If that entry is missing or disabled, resolve it through `/plugin` first. Use the path reported for that entry; another cached version or a nested dependency is not the installed plugin.
|
|
56
|
-
|
|
57
|
-
Setup guides: [Codex](docs/codex-setup.md) · [Cursor IDE](docs/cursor-setup.md) · [Pi](docs/pi-setup.md). Per-IDE notes on `CLAUDE.md` vs `AGENTS.md`: [instruction-file-resolution](skills/_shared/instruction-file-resolution.md).
|
|
37
|
+
| **Claude Code** | `/plugin marketplace add Kanevry/session-orchestrator` then `/plugin install session-orchestrator@kanevry`, then [install its Node dependencies once](docs/install.md#claude-code-install-the-node-dependencies-once). |
|
|
38
|
+
| **Codex CLI** | `git clone` the repo, `npm install`, then `node scripts/codex-install.mjs` ([guide](docs/codex-setup.md)). |
|
|
39
|
+
| **Cursor IDE** | `git clone` the repo, `npm install`, then `node scripts/cursor-install.mjs /path/to/your/project` ([guide](docs/cursor-setup.md)). |
|
|
40
|
+
| **Pi** | `pi install npm:session-orchestrator` ([guide](docs/pi-setup.md)). |
|
|
58
41
|
|
|
59
42
|
## Quick Start
|
|
60
43
|
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
**1. Bootstrap the repo once.** Run `/bootstrap` in your project. It scaffolds the minimum structure and writes `.orchestrator/bootstrap.lock`, which session-start requires before `/session` will run.
|
|
44
|
+
**1. Run `/bootstrap` once in your project.** It creates the minimum structure and writes `.orchestrator/bootstrap.lock`. `/session` refuses to start until that file exists.
|
|
64
45
|
|
|
65
|
-
**2.
|
|
46
|
+
**2. Add a Session Config** to your project's instruction file — `CLAUDE.md` on Claude Code and Cursor, `AGENTS.md` on Codex CLI and Pi ([which file each platform reads](skills/_shared/instruction-file-resolution.md)). These seven fields are enough:
|
|
66
47
|
|
|
67
48
|
```yaml
|
|
68
49
|
## Session Config
|
|
@@ -76,152 +57,61 @@ persistence: true
|
|
|
76
57
|
enforcement: warn
|
|
77
58
|
```
|
|
78
59
|
|
|
79
|
-
Everything else is opt-in
|
|
60
|
+
The first three are the commands `/go` runs between waves and `/close` runs at the end — use whatever your project actually uses. Everything else is opt-in: [full template](docs/session-config-template.md) · [every key, its type and default](docs/session-config-reference.md).
|
|
80
61
|
|
|
81
|
-
**3.
|
|
62
|
+
**3. Run the loop.**
|
|
82
63
|
|
|
83
64
|
```text
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
.orchestrator/host.json # host-local identity for peer-session detection
|
|
88
|
-
.orchestrator/metrics/*.jsonl # append-only session, learning, event and subagent records
|
|
89
|
-
.orchestrator/steering/ # stable product/tech/structure context injected each session
|
|
90
|
-
.claude/STATE.md # wave progress and deviations (harness-specific directory)
|
|
65
|
+
/session feature # read the repo, propose scope, wait for your correction
|
|
66
|
+
/go # execute in waves, check between each
|
|
67
|
+
/close # verify, commit, file the rest as issues
|
|
91
68
|
```
|
|
92
69
|
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
```text
|
|
96
|
-
/session feature # research + Q&A: inspect git, issues, history, then agree on scope
|
|
97
|
-
/go # execute in typed waves sized by session type (feature: 3, deep: 5); quality gate between each
|
|
98
|
-
/close # verify every item, commit cleanly, file carryover issues for the rest
|
|
99
|
-
```
|
|
100
|
-
|
|
101
|
-
In Codex, invoke the same loop through the generated command skills:
|
|
102
|
-
|
|
103
|
-
```text
|
|
104
|
-
$session-orchestrator:session feature
|
|
105
|
-
$session-orchestrator:go
|
|
106
|
-
$session-orchestrator:close
|
|
107
|
-
```
|
|
108
|
-
|
|
109
|
-
These entries preserve each command's full workflow and prechecks. Codex's native `/goal` is a separate feature. `/plan` and `/evolve` extend the loop, but you can start with just these three.
|
|
110
|
-
|
|
111
|
-
## Upgrade
|
|
112
|
-
|
|
113
|
-
```text
|
|
114
|
-
/plugin update session-orchestrator@kanevry # Claude Code
|
|
115
|
-
```
|
|
116
|
-
|
|
117
|
-
Restart the harness afterwards, and re-run `npm install` in the plugin directory when the release adds dependencies. On Cursor and the Pi clone fallback, upgrade with `git pull` in your clone followed by the same install script you originally ran. Manage npm-installed Pi packages through Pi's package manager. For Codex, follow the [refresh instructions](docs/codex-setup.md#refresh-and-explicit-cache-invalidation) for your marketplace source, then reload the skill picker or restart Codex.
|
|
118
|
-
|
|
119
|
-
Session-start tells you when the running copy is behind: `scripts/lib/plugin-update-banner.mjs` compares the version of the code **that is actually loaded** against the published npm version and warns in the session-start banner (minor or major; patch-only updates stay silent). It fails silent: offline, a non-2xx response, or a malformed answer produces *no statement*, never a false "up to date".
|
|
120
|
-
|
|
121
|
-
Upgrading across a major version: **[docs/migration-v5.md](docs/migration-v5.md)** covers the current release: the agent-status reader API changes and close-time discovery is enabled by default. If upgrading from before v4, also follow **[docs/migration-v4.md](docs/migration-v4.md)** for the removed skills, commands and scripts and their replacements. [docs/migration-v3.md](docs/migration-v3.md) documents the older v2 → v3 path and the shape both guides follow (what changes · prerequisites · per-platform steps · what stays · known issues · rollback).
|
|
122
|
-
|
|
123
|
-
## Uninstall
|
|
124
|
-
|
|
125
|
-
Remove the plugin through your harness's own plugin manager: `/plugin` in Claude Code (marketplace entry `session-orchestrator@kanevry`), `codex plugin remove` on Codex CLI ([docs/codex-setup.md](docs/codex-setup.md)), or Pi's package manager for an npm-installed Pi package. On Cursor and the Pi clone fallback, delete the files the installer wrote into your project.
|
|
126
|
-
|
|
127
|
-
**What stays behind in your repo.** None of it is removed by uninstalling, and all of it is plain text you can delete by hand:
|
|
128
|
-
|
|
129
|
-
- `.orchestrator/`: `bootstrap.lock`, `metrics/` (your session and learning JSONL records), `policy/`, `steering/`, `runtime/`, `peers/`, `session.lock`
|
|
130
|
-
- `STATE.md` under your harness's state directory (`.claude/STATE.md` on Claude Code; see [Platform support](#platform-support))
|
|
131
|
-
- The `## Session Config` block you added to `CLAUDE.md` / `AGENTS.md`
|
|
132
|
-
- `.claude/rules/*.md` if you vendored the rule library via `/bootstrap --sync-rules`
|
|
133
|
-
|
|
134
|
-
Deleting `.orchestrator/metrics/` deletes your session history. Telemetry requires explicit consent (see [Data & telemetry](#safety--data--telemetry)). The session-start update check (`scripts/lib/plugin-update-banner.mjs`) makes an anonymous `GET` to the npm registry to compare your installed version against the latest release. Successful results are cached for 24 hours per repo; failed checks can retry at the next session start. Set `SO_DISABLE_UPDATE_CHECK=1` (or `DO_NOT_TRACK=1`) to turn it off.
|
|
135
|
-
|
|
136
|
-
## Lifecycle and waves
|
|
137
|
-
|
|
138
|
-
**Plan, Go, Close** describes the working rhythm. Bootstrap once per project, then start a session, execute its agreed scope, and close with evidence.
|
|
139
|
-
|
|
140
|
-
| Step | What happens | What carries forward |
|
|
141
|
-
|---|---|---|
|
|
142
|
-
| **Plan** | Read the code, issues and prior session. Agree the objective and assign file scopes. | One shared plan and separate responsibilities. |
|
|
143
|
-
| **Go** | Run independent tasks, combine the changes, check the result and fix findings. | Changes with verification evidence. |
|
|
144
|
-
| **Close** | Check the plan against the work, commit the result and record unfinished tasks. | A handover for the next session. |
|
|
145
|
-
|
|
146
|
-
Housekeeping uses **one** wave. Deep uses **five**; the **ultradeep** profile uses **seven**. Claude Code and Codex can run independent work in parallel. Cursor and Pi execute tasks sequentially. A failing check sends the findings back for correction.
|
|
70
|
+
On Codex the same three are `$session-orchestrator:session feature`, `$session-orchestrator:go`, `$session-orchestrator:close` ([Codex usage](docs/codex-setup.md#usage)). `/plan` and `/evolve` extend the loop; you can start with just these three.
|
|
147
71
|
|
|
148
|
-
|
|
149
|
-
<summary>Deep-session stages and the ultradeep profile</summary>
|
|
150
|
-
|
|
151
|
-
```mermaid
|
|
152
|
-
flowchart LR
|
|
153
|
-
D[Discovery] --> I[Implementation]
|
|
154
|
-
I --> P[Integration and polish]
|
|
155
|
-
P --> Q[Quality checks]
|
|
156
|
-
Q --> F[Finalization]
|
|
157
|
-
```
|
|
158
|
-
|
|
159
|
-
The deep session uses Discovery, Impl-Core, Impl-Polish, Quality and Finalization. Checks run between waves, with a full configured quality gate before completion. The diagram shows the successful path, not a guarantee that the first attempt passes.
|
|
160
|
-
|
|
161
|
-
Ultradeep is a profile over `session-type: deep`, not a fourth session-type value. It runs Research, Code-Discovery, Impl-Core, Impl-Polish, a read-only Review-Panel, Quality and Release, with a coordinator Synthesis-Gate after the first two waves. Downstream tooling still sees `deep`.
|
|
162
|
-
|
|
163
|
-
`/plan` is optional when you need a PRD or retrospective before a session. `/evolve` deliberately extracts patterns across sessions.
|
|
164
|
-
|
|
165
|
-
</details>
|
|
72
|
+
In headless Claude Code (`claude -p`), `/session` and `/plan` are reserved terminal-only built-in names and the bare form is refused; use `/session-orchestrator:session` and `/session-orchestrator:plan` there. Every other command keeps its bare form.
|
|
166
73
|
|
|
167
74
|
## How it works
|
|
168
75
|
|
|
169
|
-
The workflow starts with the state of the project. The plan records what to change, who handles each part and what counts as verified.
|
|
170
|
-
|
|
171
76
|
When you type `/session feature`:
|
|
172
77
|
|
|
173
|
-
1. **
|
|
174
|
-
2. **
|
|
175
|
-
3. **
|
|
176
|
-
4. **`/go`
|
|
177
|
-
5. **`/close`
|
|
178
|
-
|
|
179
|
-
Two complementary commands round out the loop: **`/plan`** runs *before* a session when you need a PRD or retrospective; **`/evolve`** runs occasionally to surface patterns across sessions and feed them back at the next start.
|
|
180
|
-
|
|
181
|
-
The system is markdown-driven config plus a thin Node runtime. Skills, commands, and agents are Markdown with YAML frontmatter; `scripts/lib/*.mjs` and `hooks/*.mjs` handle dispatch, validation, and telemetry. Everything is plain text: if something goes wrong, you can read every file and see what happened.
|
|
182
|
-
|
|
183
|
-
## What you get
|
|
78
|
+
1. **It reads the project.** Git state, open issues, recent commits, documentation, host resources and the records of previous sessions become a Session Overview with one recommendation.
|
|
79
|
+
2. **You correct the scope.** Nothing is implemented until you agree to the plan.
|
|
80
|
+
3. **The work is split into waves.** The session type decides how many: housekeeping 1, feature 3, deep 5, the ultradeep profile 7. Each wave gets a purpose, a list of file paths it may write to, and a result that can be checked.
|
|
81
|
+
4. **`/go` runs it.** Agents whose file scopes do not overlap run at the same time on Claude Code and Codex; Cursor and Pi run them one after another. After each wave the quality gate runs, and anything it reports goes back for correction before the next wave starts.
|
|
82
|
+
5. **`/close` checks and records.** It compares the plan against what happened, runs the full quality gate, commits file by file, and opens issues for whatever was not finished.
|
|
184
83
|
|
|
185
|
-
|
|
84
|
+
**What it writes into your repository**, and nothing else — all of it plain text, all of it local:
|
|
186
85
|
|
|
187
|
-
|
|
188
|
-
|
|
189
|
-
-
|
|
190
|
-
|
|
191
|
-
|
|
192
|
-
-
|
|
193
|
-
|
|
194
|
-
|
|
195
|
-
|
|
196
|
-
Full component inventory: [`docs/components.md`](docs/components.md). Version history and per-release detail: [CHANGELOG.md](CHANGELOG.md).
|
|
197
|
-
|
|
198
|
-
## Why this design
|
|
199
|
-
|
|
200
|
-
- **Typed waves, not one big batch.** Discovery first, so implementers start with shared context. Impl-Core before Impl-Polish, so architecture lands before integrations. Quality runs a *simplification pass* on AI-generated code **before** tests are written; otherwise tests pin the AI patterns into place.
|
|
201
|
-
- **Inter-wave reviews, not just end-of-session.** Catching regressions between waves stops a bad pattern from propagating into later work; the confidence floor filters speculative criticism so only high-signal findings reach you.
|
|
202
|
-
- **State persists across crashes.** `STATE.md` records wave progress and deviations; the next `/session` offers to resume from the last completed wave.
|
|
203
|
-
- **Hook enforcement has a defined platform boundary.** On Claude Code, the active destructive-command hook applies the policy’s blocking and warning rules. With an active compatible scope hook, supported writes outside declared paths warn in `warn` mode and block in `strict` mode; `off` disables scope checking. Cursor and Pi bridge supported events. Both guards are instructions only on Codex ([Platform support](#platform-support)).
|
|
204
|
-
- **Parallel *operator* sessions are treated as a hazard.** Two humans, or two of your own sessions, in the same working copy share one git index, one filesystem, one `STATE.md`. A heartbeat session lock, peer-scope manifests, and the PSA rule set in [`.claude/rules/parallel-sessions.md`](https://github.com/Kanevry/session-orchestrator/blob/main/.claude/rules/parallel-sessions.md) exist for exactly that axis.
|
|
205
|
-
- **Cross-session learning is opt-in and inspectable.** Every session writes a record; after 5+ sessions `/evolve analyze` extracts confidence-scored patterns you can read and prune. Nothing is hidden.
|
|
206
|
-
- **VCS dual support, no lock-in.** Auto-detects GitLab or GitHub from your remote and drives the full lifecycle for both.
|
|
207
|
-
|
|
208
|
-
A comparison with other orchestrators, distinguishing measured results from unmeasured claims: [`docs/components.md` § Comparisons](docs/components.md#comparisons).
|
|
86
|
+
```text
|
|
87
|
+
.orchestrator/bootstrap.lock # written by /bootstrap, the gate for every later run
|
|
88
|
+
.orchestrator/current-session.json # which session owns this working copy right now
|
|
89
|
+
.orchestrator/session.lock # heartbeat lock; stops two sessions colliding in one checkout
|
|
90
|
+
.orchestrator/host.json # host-local identity for peer-session detection
|
|
91
|
+
.orchestrator/metrics/*.jsonl # append-only session, learning, event and subagent records
|
|
92
|
+
.orchestrator/steering/ # stable product/tech/structure context injected each session
|
|
93
|
+
.claude/STATE.md # wave progress and deviations (harness-specific directory)
|
|
94
|
+
```
|
|
209
95
|
|
|
210
|
-
|
|
96
|
+
The plugin is **50 skills, 28 slash commands, 14 typed subagents and 27 hook files across 10 event types**. A slash command is a skill whose frontmatter says `user-invocable: true` (26 of them) or one of the two remaining `commands/*.md` files (`/session`, `/templates-ack`) — one definition per name, so nothing is listed twice in the `/` picker. Skills, commands and agents are Markdown with YAML frontmatter; the code that dispatches, validates and records runs in `scripts/lib/*.mjs` and `hooks/*.mjs`. There is no build step and no compiled artifact — when a session does something you did not expect, you can open the file that decided it. Full inventory: [`docs/components.md`](docs/components.md).
|
|
211
97
|
|
|
212
|
-
|
|
98
|
+
## Why it is built this way
|
|
213
99
|
|
|
214
|
-
- **
|
|
215
|
-
- **
|
|
216
|
-
- **
|
|
100
|
+
- **The wave order is deliberate.** Discovery runs first so every implementer starts from the same picture of the code. Impl-Core runs before Impl-Polish so the structure exists before anything integrates against it. The Quality wave simplifies generated code *before* tests are written — write the tests first and they assert whatever the model produced, so changing it later means rewriting the tests too.
|
|
101
|
+
- **Checks run between waves, not only at the end.** A mistake caught after wave 2 costs one wave. The same mistake found at `/close` has already been copied into every wave after it. Findings below the configured confidence threshold are not shown to you.
|
|
102
|
+
- **A crash does not lose the session.** `STATE.md` records which wave finished and what deviated from the plan. The next `/session` offers to continue from the last completed wave.
|
|
103
|
+
- **Two sessions in one working copy is treated as a real risk.** Two people, or two of your own sessions, in the same checkout share one git index, one filesystem and one `STATE.md`, and neither can see the other's uncommitted work. A heartbeat session lock, per-agent file-scope manifests, and the PSA rules in [`.claude/rules/parallel-sessions.md`](https://github.com/Kanevry/session-orchestrator/blob/main/.claude/rules/parallel-sessions.md) exist for exactly that case.
|
|
104
|
+
- **Guards run where the harness supports them, and the table below says where it does not.** A destructive-command policy — 11 rules block, 4 warn — and file-scope enforcement run as real hooks on Claude Code, as bridges on Cursor and Pi, and as instructions only on Codex. Details: [`docs/components.md`](docs/components.md#other-surfaces).
|
|
105
|
+
- **What it learns is opt-in and readable.** Every session appends a record. After 5 or more sessions, `/evolve analyze` proposes patterns with a confidence score; you read them and delete the ones you disagree with. Nothing is applied without you.
|
|
106
|
+
- **GitLab and GitHub, both fully.** It detects which one your remote points at and drives issues and merge/pull requests for either.
|
|
217
107
|
|
|
218
|
-
|
|
108
|
+
How this compares to other orchestrators, with measured results kept separate from unmeasured claims: [`docs/components.md` § Comparisons](docs/components.md#comparisons).
|
|
219
109
|
|
|
220
110
|
## Platform support
|
|
221
111
|
|
|
222
112
|
| Feature | Claude Code | Codex CLI | Cursor IDE | Pi |
|
|
223
113
|
|---|---|---|---|---|
|
|
224
|
-
| All
|
|
114
|
+
| All 28 commands | Native slash commands | Generated skills (`$session-orchestrator:<name>`) | Native `.cursor/commands` slash commands | Prompt templates |
|
|
225
115
|
| Parallel agents | Agent tool | Multi-agent roles | Sequential only | Sequential (parallel planned) |
|
|
226
116
|
| Session persistence | `.claude/STATE.md` | `.codex/STATE.md` | `.cursor/STATE.md` | `.pi/STATE.md` |
|
|
227
117
|
| Scope enforcement | Active PreToolUse hook; blocking in `strict`, reporting in `warn` | Instructions only; no compatible `apply_patch` handler | `preToolUse` + `beforeShellExecution` bridge; scope blocking requires `strict`; `afterFileEdit` is post-hoc | `tool_call` bridge; scope blocking requires `strict` |
|
|
@@ -229,86 +119,35 @@ If upgrading from before 4.0, also read [the v4 migration guide](docs/migration-
|
|
|
229
119
|
| AskUserQuestion | Native tool | Numbered-list fallback | Numbered-list fallback | Numbered-list fallback |
|
|
230
120
|
| Quality gates | Full | Full | Full | Full |
|
|
231
121
|
|
|
232
|
-
All platforms share the same skills, commands
|
|
233
|
-
|
|
234
|
-
## Safety & data & telemetry
|
|
235
|
-
|
|
236
|
-
**Your data stays in your repo.** Session Orchestrator runs locally, requires no account, and writes its records as append-only JSONL under `.orchestrator/metrics/` in *your* repository: sessions, learnings, events, subagent records. Those files are yours: readable, greppable, deletable. Optional anonymous usage telemetry is **off until you explicitly consent** and is separate from the local records ([docs/telemetry.md](docs/telemetry.md) says exactly what it would collect and how to turn it off). Reported metrics describe *this* repository under its own conditions and will not transfer unchanged to yours ([details](docs/telemetry/telemetry-claims.md)).
|
|
237
|
-
|
|
238
|
-
**Destructive-command guard.** On Claude Code, the active `hooks/pre-bash-destructive-guard.mjs` applies `.orchestrator/policy/blocked-commands.json` in the main session and in subagent waves. The policy has 10 blocking rules (`git reset --hard`, `rm -rf`, `git push --force`, and more) and 4 warning rules. Cursor and Pi use event bridges with documented limits; Codex does not enforce this guard. Scope `enforcement: warn` or `off` does not change the separate destructive-command policy. See [Platform support](#platform-support). Where the hook is active, bypass it per session only for intentional maintenance:
|
|
239
|
-
|
|
240
|
-
```yaml
|
|
241
|
-
allow-destructive-ops: true
|
|
242
|
-
```
|
|
243
|
-
|
|
244
|
-
The rule source of truth is [`.claude/rules/parallel-sessions.md`](https://github.com/Kanevry/session-orchestrator/blob/main/.claude/rules/parallel-sessions.md) (PSA-003), vendored to consumer repos via `/bootstrap`.
|
|
245
|
-
|
|
246
|
-
**Import probe.** `hooks/post-edit-import-probe.mjs` (PostToolUse on `Edit`/`Write`/`MultiEdit`) guards the other direction: a hook-reachable helper saved in a broken intermediate state makes *every* Bash/Edit/Write call fail with an internal hook error, host-wide, for every session sharing the working copy. Right after such a file is saved the probe runs ESLint `no-undef` on it (plus a child-process `import()` for `scripts/lib/**`) and reports the blast radius; it never blocks and always exits 0. It only fires for files listed in the committed allowlist [`hooks/_lib/hook-import-set.json`](hooks/_lib/hook-import-set.json), regenerated by `node scripts/generate-hook-import-set.mjs`. Kill switch: `SO_DISABLED_HOOKS=post-edit-import-probe`.
|
|
247
|
-
|
|
248
|
-
## Troubleshooting
|
|
249
|
-
|
|
250
|
-
**Codex plugin or hooks not loading.** Start with `codex plugin list --available --json`. Confirm `session-orchestrator@kanevry` is installed, enabled, unique, and at the tracked manifest version; then start a fresh task and review `/hooks`. Remove only the two allowlisted legacy IDs through `codex plugin remove`, and resolve marketplace conflicts through the public marketplace remove/add lifecycle before reinstalling. Any other pre-public plugin/config/cache/hook-state residue is unsupported: do not modify private Codex files; file an issue with `codex --version` plus the public plugin and marketplace list output. Full decision tree: [`docs/codex-setup.md`](docs/codex-setup.md#troubleshooting).
|
|
122
|
+
All four platforms share the same skills, commands and scripts; only the hooks differ, because each harness fires different events. Codex leaves its `PreToolUse` handlers empty because these guards do not yet match its tool names and edit payloads ([why](docs/codex-setup.md#why-our-pretooluse-guards-stay-unwired--the-reason-corrected)). Cursor and Pi have known event-coverage limits — see [`docs/cursor-setup.md`](docs/cursor-setup.md) and [`docs/pi-setup.md`](docs/pi-setup.md).
|
|
251
123
|
|
|
252
|
-
|
|
124
|
+
## Recent highlights (v5.2.0)
|
|
253
125
|
|
|
254
|
-
|
|
126
|
+
Highlights of the v5.2.0 line:
|
|
255
127
|
|
|
256
|
-
|
|
128
|
+
- **One definition per slash command.** 24 `commands/*.md` twins were folded into their `skills/<name>/SKILL.md`; the `/` picker no longer lists duplicates, `/discovery`, `/evolve` and `/plan` are live under `claude -p` again, and the Cursor, Pi and Codex wrappers are generated from one `user-invocable` reading (`scripts/lib/user-invocable-skills.mjs`) instead of four private ones. Operator-only commands (`/close`, `/go`, `/release`, …) keep `disable-model-invocation` on every generated surface.
|
|
129
|
+
- **Expired generated rules can now be swept.** `node scripts/sweep-expired-rules.mjs` (dry-run by default, `--apply` to write) removes the prose of expired entries from the consolidated `.claude/rules/` files while keeping their provenance pairs, so `/reconcile` does not re-propose the learning. It refuses symlinks and paths outside the rules directory, writes atomically, and reports the files it cannot map 1:1 instead of guessing.
|
|
130
|
+
- **Two guard holes closed.** The issue-budget hook enumerates every shell loop, so an exempt first loop no longer lifts the bulk deny for a second one; the entry-guard validator now also censuses the bare `argv[1].endsWith('<file>.mjs')` form. `release.mjs --check` asks both CI platforms about the release commit's sha rather than GitHub's own HEAD.
|
|
257
131
|
|
|
258
|
-
```bash
|
|
259
|
-
git clone https://github.com/Kanevry/session-orchestrator.git && cd session-orchestrator
|
|
260
|
-
npm install
|
|
261
|
-
npm test # vitest
|
|
262
|
-
npm run lint # ESLint v10 + Prettier
|
|
263
|
-
npm run typecheck # node --check on every .mjs file
|
|
264
|
-
```
|
|
265
|
-
|
|
266
|
-
`.npmrc` ships with `ignore-scripts=true` (supply-chain defence), so Husky git hooks don't auto-wire on install. Run `npx husky` once after cloning. `git commit` then runs gitleaks → owner-privacy scan → lint-staged → commitlint. CI re-runs everything, plus more.
|
|
267
|
-
|
|
268
|
-
Two directories share the name *rules* and play opposite roles: [`rules/`](rules/README.md) is the **deliverable rule library** shipped *out* to consumer repos via `/bootstrap --sync-rules`, while [`.claude/rules/`](https://github.com/Kanevry/session-orchestrator/tree/main/.claude/rules/) is this repo's own rule set with always-on and path-scoped entries.
|
|
269
|
-
|
|
270
|
-
Contributor docs: [Plugin Architecture (v3)](docs/plugin-architecture-v3.md) · [CONTRIBUTING.md](https://github.com/Kanevry/session-orchestrator/blob/main/CONTRIBUTING.md) · [sub-agent authoring spec](docs/agent-authoring.md).
|
|
271
|
-
|
|
272
|
-
## Why I built it
|
|
273
|
-
|
|
274
|
-
I kept a Notion page with 20–30 prompts for different projects. Before each session I copied the relevant row and explained how I wanted to work again. That routine gradually became Plan, Go, Close. I use it on my Mac M4 and the M5 at the office; Session Orchestrator is the tool that grew out of it.
|
|
275
132
|
|
|
276
|
-
|
|
277
|
-
|
|
278
|
-
Session Orchestrator is provided **as-is**, a community project with no SLA, no commercial support contract, and no guaranteed response time. Maintenance is best-effort.
|
|
279
|
-
|
|
280
|
-
[Buy me a coffee, if this helped.](https://paypal.me/Kanevry)
|
|
281
|
-
|
|
282
|
-
- Questions, ideas, show-and-tell → [GitHub Discussions](https://github.com/Kanevry/session-orchestrator/discussions)
|
|
283
|
-
- Bugs and feature requests → [Issues](https://github.com/Kanevry/session-orchestrator/issues)
|
|
284
|
-
|
|
285
|
-
What it is **not**:
|
|
286
|
-
|
|
287
|
-
- **Not an official product of any agent vendor.** An independent, community-maintained project, not affiliated with, endorsed by, or sponsored by Anthropic, OpenAI, Cursor, or any agent it integrates with. (It is distributed through the Claude Code plugin marketplace, but is not an Anthropic product.)
|
|
288
|
-
- **Not a replacement** for Claude Code / Codex CLI / Cursor / Pi. It is a workflow layer that runs *on top of* your existing agent; you still need one of those installed.
|
|
289
|
-
- **Not a multi-user product.** Single-operator by design; the parallel-session machinery protects one operator's concurrent sessions, not a shared team workspace.
|
|
133
|
+
Full changes and verification: [CHANGELOG.md](CHANGELOG.md).
|
|
290
134
|
|
|
291
135
|
## Documentation
|
|
292
136
|
|
|
293
|
-
- [
|
|
294
|
-
- [
|
|
295
|
-
- [Components &
|
|
296
|
-
- [
|
|
297
|
-
- [
|
|
298
|
-
- [Telemetry](docs/telemetry.md) · [Telemetry claims](docs/telemetry/telemetry-claims.md): what is collected, how metrics are measured, why they may not transfer
|
|
299
|
-
- [Example Configs](https://github.com/Kanevry/session-orchestrator/tree/main/docs/examples/): Session Config examples for Next.js, Express, Swift
|
|
300
|
-
- [CHANGELOG.md](CHANGELOG.md): version history
|
|
301
|
-
|
|
302
|
-
We follow [Conventional Commits](https://www.conventionalcommits.org/). See [CONTRIBUTING.md](https://github.com/Kanevry/session-orchestrator/blob/main/CONTRIBUTING.md).
|
|
137
|
+
- [User guide](docs/USER-GUIDE.md) — config reference, a walkthrough of one session, troubleshooting, FAQ
|
|
138
|
+
- [Install, upgrade, uninstall](docs/install.md) — requirements, per-harness setup, migration paths
|
|
139
|
+
- [Components & reference](docs/components.md) — every skill, command, agent and hook; the guards; comparisons
|
|
140
|
+
- [Telemetry](docs/telemetry.md) — what stays on your machine, what the optional anonymous telemetry would send, and every switch that turns it off
|
|
141
|
+
- [Contributing](https://github.com/Kanevry/session-orchestrator/blob/main/CONTRIBUTING.md) · [Plugin architecture](docs/plugin-architecture-v3.md) · [docs/ router](docs/README.md)
|
|
303
142
|
|
|
304
|
-
##
|
|
143
|
+
## Scope and support
|
|
305
144
|
|
|
306
|
-
|
|
145
|
+
Provided **as-is**: a community project, best-effort maintenance, no SLA. Questions and ideas go to [Discussions](https://github.com/Kanevry/session-orchestrator/discussions), bugs to [Issues](https://github.com/Kanevry/session-orchestrator/issues).
|
|
307
146
|
|
|
308
|
-
|
|
147
|
+
It is **not** an official product of any agent vendor — independent and community-maintained, not affiliated with, endorsed by or sponsored by Anthropic, OpenAI, Cursor or any agent it integrates with, and distributed through the Claude Code plugin marketplace without being an Anthropic product. It does **not replace** your agent; it runs on top of one, and you still need it installed. It is built for **one operator**: the parallel-session machinery protects your own concurrent sessions, not a shared team workspace.
|
|
309
148
|
|
|
310
|
-
|
|
149
|
+
The reasoning behind the method is taught at [agenticbuilders.at](https://agenticbuilders.at). The plugin is free and MIT; the courses go deeper and are not required to use it.
|
|
311
150
|
|
|
312
151
|
## License
|
|
313
152
|
|
|
314
|
-
[MIT](LICENSE)
|
|
153
|
+
[MIT](LICENSE) · [Privacy policy](https://gotzendorfer.at/en/session-orchestrator/privacy) · [npm](https://www.npmjs.com/package/session-orchestrator)
|
package/commands/session.md
CHANGED
|
@@ -48,3 +48,13 @@ This read is informational — session-start uses it to populate the resume bann
|
|
|
48
48
|
**Cold-start banner (PRD #500):** If `bootstrap.lock` exists with timestamp older than `cold-start.nudge-after-hours` (default 1h) and `sessions.jsonl` is empty, the SessionStart hook emits a one-time first-session nudge. Auto-silenced once `sessions.jsonl` has ≥ `cold-start.silence-after-sessions` entries (default 1).
|
|
49
49
|
|
|
50
50
|
**Invoke `session-orchestrator:session-start` via the `Skill` tool.** Follow its instructions precisely. Do NOT skip any phase. Do NOT make assumptions — verify everything in code and on the VCS platform.
|
|
51
|
+
|
|
52
|
+
## Headless (`claude -p`)
|
|
53
|
+
|
|
54
|
+
`session` and `plan` are **reserved terminal-only built-in names** in non-interactive sessions — under `claude -p` the bare form answers `"/session isn't available in this environment."`, and no frontmatter or manifest field overrides that (reproduced with an empty `CLAUDE_CONFIG_DIR` and no plugin loaded, claude 2.1.273, measured 2026-09-16). Use the namespaced form, which does resolve:
|
|
55
|
+
|
|
56
|
+
```bash
|
|
57
|
+
claude -p "/session-orchestrator:session deep" --plugin-dir "$PWD"
|
|
58
|
+
```
|
|
59
|
+
|
|
60
|
+
Interactive sessions are unaffected — `/session` works there as it always has.
|
package/docs/USER-GUIDE.md
CHANGED
|
@@ -1406,6 +1406,30 @@ For Claude Code, run these commands inside a Claude Code session, not in your sh
|
|
|
1406
1406
|
/plugin install session-orchestrator@kanevry
|
|
1407
1407
|
```
|
|
1408
1408
|
|
|
1409
|
+
### Node is missing from the hook PATH
|
|
1410
|
+
|
|
1411
|
+
The harness executes hook commands via `/bin/sh -c` with its own PATH. That
|
|
1412
|
+
shell does not source `~/.zshrc`/`~/.bashrc`, so Node installed via Homebrew,
|
|
1413
|
+
nvm, volta, or asdf can be invisible to hooks even though `node` works in your
|
|
1414
|
+
terminal.
|
|
1415
|
+
|
|
1416
|
+
All hook commands route through
|
|
1417
|
+
[`hooks/run-node.sh`](https://github.com/Kanevry/session-orchestrator/blob/main/hooks/run-node.sh),
|
|
1418
|
+
which resolves Node via `$SO_NODE_BIN` → PATH → well-known install dirs → nvm
|
|
1419
|
+
and degrades gracefully: hooks are skipped with **one** warning per 6 hours
|
|
1420
|
+
instead of a shell error on every tool call.
|
|
1421
|
+
|
|
1422
|
+
Fixes, in order of preference:
|
|
1423
|
+
|
|
1424
|
+
1. Launch the harness from a shell where `node` resolves.
|
|
1425
|
+
2. Export `SO_NODE_BIN=/abs/path/to/node`.
|
|
1426
|
+
3. Install Node 24+ to a standard location.
|
|
1427
|
+
|
|
1428
|
+
### `/session` refuses to start
|
|
1429
|
+
|
|
1430
|
+
It needs `.orchestrator/bootstrap.lock`. Run `/bootstrap` first, or
|
|
1431
|
+
`/bootstrap --retroactive` if the repo already has a `## Session Config` block.
|
|
1432
|
+
|
|
1409
1433
|
### "tsgo: command not found"
|
|
1410
1434
|
|
|
1411
1435
|
The default typecheck command is `npm run typecheck`. If your project's `typecheck` script invokes `tsgo`, install it or change `typecheck-command` to the runner your project actually uses:
|
package/docs/ci-setup.md
CHANGED
|
@@ -366,6 +366,59 @@ Documenting it here for completeness:
|
|
|
366
366
|
job's hardcoded `oauth2:` clone login, so a Project Access Token (or PAT)
|
|
367
367
|
is the variant that delivers on that original reasoning.
|
|
368
368
|
|
|
369
|
+
## `pack-lifecycle` job (#1375)
|
|
370
|
+
|
|
371
|
+
Every other job in `.gitlab-ci.yml` measures the git checkout, where every
|
|
372
|
+
tracked file is present by construction. `pack-lifecycle` is the only one that
|
|
373
|
+
measures what an **npm consumer** actually receives: it runs
|
|
374
|
+
`npm run test:pack`, which packs a tarball, installs it into a throwaway
|
|
375
|
+
consumer package, and then executes the hook out of
|
|
376
|
+
`node_modules/session-orchestrator/` rather than out of this repo.
|
|
377
|
+
|
|
378
|
+
What it proves, in the four assertions of
|
|
379
|
+
`tests/scripts/pack-install-lifecycle.test.mjs`:
|
|
380
|
+
|
|
381
|
+
1. The sha512 of the tarball the test packed is byte-for-byte the `integrity`
|
|
382
|
+
the fresh consumer's own `package-lock.json` recorded — so a tarball mutated
|
|
383
|
+
between pack and install, or a pipeline installing something other than what
|
|
384
|
+
it packed, is caught. (It is not a re-hash of the extracted tree: unpacking
|
|
385
|
+
does not preserve mtimes, so that would differ for non-defect reasons.)
|
|
386
|
+
2. The **installed** `hooks/pre-bash-destructive-guard.mjs` denies `rm -rf /`
|
|
387
|
+
with a single PreToolUse deny envelope on stdout. This is the class the
|
|
388
|
+
repo-checkout suite is blind to: with `.orchestrator/policy/` missing from the
|
|
389
|
+
published artefact the guard warns on stderr, prints nothing, and **exits 0**
|
|
390
|
+
— fail-open, and indistinguishable from a healthy allow by exit code alone
|
|
391
|
+
(measured 2026-09-16: plugin root without the policy file → `exit=0`,
|
|
392
|
+
`stdout=""`; with it → `exit=0`, 634 bytes, `permissionDecision: deny`).
|
|
393
|
+
3. The installed guard still allows a benign command with empty stdout — so a
|
|
394
|
+
packed guard that denies everything is caught too.
|
|
395
|
+
4. Every `$CLAUDE_PLUGIN_ROOT/…` path the installed `hooks/hooks.json` wires (28
|
|
396
|
+
at the time of writing, incl. `hooks/run-node.sh`) exists inside the installed
|
|
397
|
+
tree.
|
|
398
|
+
|
|
399
|
+
`tests/scripts/pack-policy-floor.test.mjs` does **not** subsume this: it reads
|
|
400
|
+
the pack**list** (`npm pack --dry-run --json`), which is a manifest claim about
|
|
401
|
+
names. It never writes a tarball, never installs, and never runs a line out of
|
|
402
|
+
the artefact.
|
|
403
|
+
|
|
404
|
+
**Cost and why it is opt-in locally.** ~20–30 s for the whole job (measured
|
|
405
|
+
2026-09-16: `npm pack` ~15 s, `npm install <tgz>` ~3 s / 67 packages, suite wall
|
|
406
|
+
time 26.8 s). It is the one job that **reaches the npm registry** — the consumer
|
|
407
|
+
install resolves this package's own runtime dependencies — so it is excluded
|
|
408
|
+
from the default `npm test`. `vitest.config.mjs` includes `tests/**` and is
|
|
409
|
+
config-protected, so the gate is an env flag rather than an exclude:
|
|
410
|
+
|
|
411
|
+
```bash
|
|
412
|
+
npm run test:pack # SO_PACK_TEST=1 vitest --run tests/scripts/pack-install-lifecycle.test.mjs
|
|
413
|
+
npx vitest run tests/scripts/pack-install-lifecycle.test.mjs # without the flag → 4 skipped, exit 0
|
|
414
|
+
```
|
|
415
|
+
|
|
416
|
+
The job is hard-`needs`-ed by `pipeline-gate`, like `test`: deleting it from
|
|
417
|
+
this file is a pipeline-*creation* error rather than a silently narrower gate.
|
|
418
|
+
The trade-off that buys is registry availability — a registry outage fails this
|
|
419
|
+
job, and therefore the pipeline, without any code being wrong. Retry the job;
|
|
420
|
+
do not make it `allow_failure`, which would restore the silent hole.
|
|
421
|
+
|
|
369
422
|
## `pipeline-gate` — the fan-in job
|
|
370
423
|
|
|
371
424
|
The last stage holds one job that depends on every blocking gate. It exists
|
package/docs/codex-setup.md
CHANGED
|
@@ -197,7 +197,7 @@ $session-orchestrator:discovery # run quality probes; optionally add a s
|
|
|
197
197
|
$session-orchestrator:evolve analyze # manage learnings (analyze, review or list)
|
|
198
198
|
```
|
|
199
199
|
|
|
200
|
-
These are skill invocations in the Codex prompt, not shell commands. Invoking `go` reads the full canonical `
|
|
200
|
+
These are skill invocations in the Codex prompt, not shell commands. Invoking `go` reads the full canonical `skills/go/SKILL.md`, including its Express Path and prechecks; invoking `close` reads `skills/close/SKILL.md`, including its state and ledger checks before the session-end workflow. Codex's native `/goal` is a separate feature. Typing `/go` or `/close` alone is not a portable invocation contract; select the skill or use its explicit namespaced form.
|
|
201
201
|
|
|
202
202
|
### Manifest Compatibility
|
|
203
203
|
|
package/docs/components.md
CHANGED
|
@@ -7,7 +7,7 @@ Detailed component inventory and architecture reference for Session Orchestrator
|
|
|
7
7
|
```mermaid
|
|
8
8
|
flowchart LR
|
|
9
9
|
USER([Operator]) -->|invokes /session| COORD[Coordinator]
|
|
10
|
-
COORD -->|reads| SK[Skills<br/>
|
|
10
|
+
COORD -->|reads| SK[Skills<br/>50 user-facing]
|
|
11
11
|
COORD -->|invokes| CMD[Commands<br/>26 slash-cmds]
|
|
12
12
|
COORD -->|dispatches| AG[Agents<br/>14 typed sub-agents]
|
|
13
13
|
AG -.->|parallel waves| W1[code-implementer]
|
|
@@ -18,7 +18,7 @@ flowchart LR
|
|
|
18
18
|
COORD -->|writes| METRIC[.orchestrator/metrics/<br/>sessions · learnings · events]
|
|
19
19
|
```
|
|
20
20
|
|
|
21
|
-
## Skills (
|
|
21
|
+
## Skills (50 user-facing)
|
|
22
22
|
|
|
23
23
|
- **Lifecycle:** `session-start`, `session-plan`, `wave-executor`, `session-end`, `quality-gates`, `using-orchestrator`
|
|
24
24
|
- **Authoring:** `mcp-builder`, `hook-development`, `frontmatter-guard`
|
|
@@ -32,9 +32,14 @@ flowchart LR
|
|
|
32
32
|
- **Operator ergonomics:** `eli5` (plain-language restatement of the last answer)
|
|
33
33
|
- **Visualization:** `tmux-layout` (opt-in operator side-channel — [ADR-0007](adr/0007-tmux-visualization-substrate.md))
|
|
34
34
|
|
|
35
|
-
## Commands (
|
|
35
|
+
## Commands (28)
|
|
36
36
|
|
|
37
|
-
|
|
37
|
+
A slash command has exactly ONE definition. 26 are skills with explicit `user-invocable: true` in `skills/<name>/SKILL.md` (the same file the model dispatches; `argument-hint` and `disable-model-invocation` live there too), and 2 are plain `commands/*.md` files without a same-named skill. Claude Code registers both shapes as `/session-orchestrator:<name>`, so a name that exists as both a command file and a user-invocable skill is listed twice in the `/` picker — `tests/commands/headless-bare-command-availability.test.mjs` forbids that twin.
|
|
38
|
+
|
|
39
|
+
- **Skills (26):** `/autopilot`, `/bootstrap`, `/brainstorm`, `/close`, `/convergence-monitoring`, `/debug`, `/discovery`, `/dispatcher`, `/eli5`, `/eval`, `/evolve`, `/go`, `/grill`, `/harness-audit`, `/memory-cleanup`, `/npm-publish`, `/persona-panel`, `/plan`, `/portfolio`, `/reconcile`, `/release`, `/repo-audit`, `/spinout`, `/sunset-review`, `/test`, `/ux-grill`.
|
|
40
|
+
- **Command files (2):** `/session` (its skill is `session-start`) and `/templates-ack` (an in-session hook bypass with no skill body).
|
|
41
|
+
|
|
42
|
+
Under `claude -p`, `/session` and `/plan` are reserved terminal built-ins; use `/session-orchestrator:session` and `/session-orchestrator:plan` there.
|
|
38
43
|
|
|
39
44
|
## Agents (14 typed sub-agents)
|
|
40
45
|
|
|
@@ -52,6 +57,8 @@ Codex uses the curated six-event project subset `SessionStart`, `PreToolUse`, `P
|
|
|
52
57
|
|
|
53
58
|
- **Output Styles (3):** `session-report`, `wave-summary`, `finding-report`.
|
|
54
59
|
- **Policy & rules:** `.orchestrator/policy/blocked-commands.json` (destructive-command rules); `.claude/rules/parallel-sessions.md` (PSA-001..PSA-004).
|
|
60
|
+
- **Destructive-command guard.** On Claude Code, the active `hooks/pre-bash-destructive-guard.mjs` applies `.orchestrator/policy/blocked-commands.json` in the main session and in subagent waves. The policy has 11 blocking rules (`git reset --hard`, `rm -rf`, `git push --force`, and more) and 4 warning rules. Cursor and Pi use event bridges with documented limits; Codex does not enforce this guard. Scope `enforcement: warn` or `off` does not change the separate destructive-command policy — see [Platform support](../README.md#platform-support). Where the hook is active, bypass it per session only for intentional maintenance by setting `allow-destructive-ops: true` in Session Config. The rule source of truth is [`.claude/rules/parallel-sessions.md`](https://github.com/Kanevry/session-orchestrator/blob/main/.claude/rules/parallel-sessions.md) (PSA-003), vendored to consumer repos via `/bootstrap`.
|
|
61
|
+
- **Import probe.** `hooks/post-edit-import-probe.mjs` (PostToolUse on `Edit`/`Write`/`MultiEdit`) guards the other direction: a hook-reachable helper saved in a broken intermediate state makes *every* Bash/Edit/Write call fail with an internal hook error, host-wide, for every session sharing the working copy. Right after such a file is saved the probe runs ESLint `no-undef` on it (plus a child-process `import()` for `scripts/lib/**`) and reports the blast radius; it never blocks and always exits 0. It only fires for files listed in the committed allowlist [`hooks/_lib/hook-import-set.json`](../hooks/_lib/hook-import-set.json), regenerated by `node scripts/generate-hook-import-set.mjs`. Kill switch: `SO_DISABLED_HOOKS=post-edit-import-probe`.
|
|
55
62
|
- **Codex:** `.codex-plugin/plugin.json` (tracked `+codex.<UTC timestamp>` version), generated command and skill entrypoints under `.codex-plugin/skills/`, compatibility config, agent role definitions, and the public marketplace/add/list lifecycle implemented by `scripts/codex-install.mjs`. `scripts/generate-codex-skills.mjs` produces the name union with commands taking precedence; [Codex usage](codex-setup.md#usage) explains selection. Every installer run refreshes via `plugin add`; hook trust remains an operator decision in a fresh task through `/hooks`.
|
|
56
63
|
- **Cursor:** `.cursor-plugin/plugin.json` registers canonical skills and `.mcp.json` using Cursor's native manifest format. Additional native component discovery is explicitly disabled; `scripts/cursor-install.mjs` supplies the existing command and hook adapters. The former standard root manifest was moved to prevent [Codex manifest interception](codex-setup.md#manifest-compatibility).
|
|
57
64
|
- **Pi:** `package.json` `pi` manifest, `pi/extensions/session-orchestrator.ts` bridge, `hooks/hooks-pi.json`, `scripts/pi-install.mjs`.
|
|
@@ -72,7 +79,7 @@ Surface counts measured 2026-09-06 by this repo's 360° ecosystem probe (`docs/a
|
|
|
72
79
|
|
|
73
80
|
| Axis | session-orchestrator | `open-gsd/gsd-core` |
|
|
74
81
|
|---|---|---|
|
|
75
|
-
| Commands / skills / agents | 26 /
|
|
82
|
+
| Commands / skills / agents | 26 / 50 / 14 | 70 / 71 / 35 |
|
|
76
83
|
| Hook guards | 27 hook files, 10 event types | 28 hooks, incl. write / read / prompt / workflow / secret-read / agent-isolation / worktree-path guards |
|
|
77
84
|
| Cross-session learning | `/evolve` + confidence-scored `learnings.jsonl`; reconcile turns eligible learnings into PROPOSED rules an operator approves one by one | `gsd-extract-learnings`, `gsd-mempalace-*` |
|
|
78
85
|
| Harness coverage | Claude Code, Codex CLI, Cursor IDE, Pi (4) | 44 `capabilities/` directories (pi, hermes, kimi, windsurf, opencode, ollama, …) |
|