sangsoe
Orchestration for Claude Code sessions on Orca. The current stable release is v0.1.13; what changed is in CHANGELOG.md.
Install
macOS with Homebrew, Claude Code, Orca and an authenticated gh. Run these in order, in a terminal or each on a Claude Code ! line (step 3 says what changes there).
-
brew install JeongJaeSoon/tap/sangsoe, then sangsoe --version. Newer Homebrew refuses a formula from a third-party tap until you trust it, and the install may stop with Error: Refusing to load formula jeongjaesoon/tap/sangsoe from untrusted tap jeongjaesoon/tap. (seen for the pre-release formula; the stable one differs only in the name). Trusting is your decision, because it sets what Homebrew will install from this tap: run brew trust --formula jeongjaesoon/tap/sangsoe (the refusal also offers brew trust jeongjaesoon/tap for the whole tap) and repeat the install. Then sangsoe --version prints sangsoe <version>, for example sangsoe 0.1.13. With the pre-release formula sangsoe-rc installed, run Uninstall first: the install refuses while sangsoe-rc is there.
-
sangsoe install registers and enables the Claude Code plugin, registers the Orca plugin, then runs sangsoe doctor. It is safe to re-run. On a first install it prints:
claude: added marketplace sangsoe → /opt/homebrew/opt/sangsoe/libexec
claude: installed sangsoe@sangsoe
claude: Orca starts new sessions with this profile (/Users/<you>/.claude)
orca: loaded, approval waits — fingerprint ap1-…; next: sangsoe plugin approve
When the plugin was installed but disabled, install also prints claude: enabled sangsoe@sangsoe. The third line differs when Orca starts sessions with another Claude profile (see below).
Unless a registration step fails first, install ends, after the doctor rows, with the running sessions whose sangsoe MCP server started before this install: one row each (pid <pid> <working directory> runs an install older than sangsoe <version> installed <version>), then restart each with claude --continue in its terminal …. With none it prints stale sessions: none. It only lists them; it writes to no terminal and does not change the exit code. sangsoe install --stale-sessions prints this list alone.
In the doctor rows that follow, FAIL orca plugin: local.sangsoe waits for approval is expected, and warn orca-plugin-version may appear with it. Both name sangsoe plugin approve as the fix. warn permissions: 0 of 45 sangsoe rules present in … is expected too, with sangsoe install --permissions as the fix (the next step), and warn auto-compact window: … with sangsoe install --auto-compact as the fix. Every other row should be ok; a notice row names a command to run.
-
sangsoe install --permissions adds the permissions.allow rules sangsoe's own sessions need, so a worker or lead does not stop on a permission prompt: one rule for sangsoe's MCP tools (mcp__plugin_sangsoe_sangsoe), one per Orca command sangsoe's skills, agents and adapters run (Bash(orca orchestration ask:*), Bash(orca worktree set:*), Bash(orca status:*), Bash(orca orchestration worker-show:*) and the like) the read-only Bash(gh pr view:*), the read-only sangsoe verbs a gate or skill tells a session to run (Bash(sangsoe pressure wait:*), brief, todo, doctor; install, uninstall, land, plugin approve and item new have no rule), plus Read rules for sangsoe's own state under the home directory the command runs in (~/.config/sangsoe, ~/.local/share/sangsoe). The list is not kept by hand: core/install/permissions.generated.ts is derived by node scripts/gen-permissions.ts from the commands those sources run, with the source file next to each rule, and a test fails when a command has no rule or a rule covers nothing run (decision 265). Three rules name a handle: Bash(orca terminal close --terminal term_*) (decision 263: closing one terminal by its handle, so auto mode does not refuse what the unit_close tool has already checked), and Bash(orca terminal read --terminal term_*) and Bash(orca terminal send --terminal term_*) (decision 265: a session can read another terminal and type into it, by handle only); no rule allows a bare terminal close, read or send, and none allows orca terminal create, a worker start or a worktree delete. No rule allows git push, gh pr merge, gh api, rm or brew. It writes the settings.json of the Claude profile it runs under and of the one Orca starts sessions with, when that is another directory. It prints a unified diff and asks Add these 45 rules? [y/N] (90 when it writes two profiles); only y writes, and a file that changed while the question was open is left as it is. The write replaces the file in one step, keeps a copy of the old file as settings.json.sangsoe-backup, and changes nothing else in it: other rules, key order and indentation stay as they were. It prints `permissions: ad