Repository navigation
SeniorOS 0.3.0
Install
npx senioros install --target claude --scope project
npm install -g senioros # command: seniorClaude Code plugin: /plugin marketplace add joshsegatt/SeniorOS then /plugin install senioros@senioros. The plugin now ships hooks: routing rules at session start and a guard that asks before destructive Bash commands.
Google Antigravity: see adapters/antigravity/README.md.
Highlights
A live bench (evals/bench/) now compares the same model with no pack, with Superpowers and with SeniorOS on trap tasks. Hidden tests and the repository state grade every run; no model judges another.
| Host and model | no pack | Superpowers | SeniorOS |
|---|---|---|---|
| Claude Code, Claude Haiku (17 tasks x 3 trials) | 45/51 | 44/51 | 49/51 |
Antigravity, Gemini Flash (h7, h9–h11, 3 trials) |
not run | 8/12 | 12/12 |
Antigravity, Gemini Flash (h5 multi-regression refactor, 4 trials) |
0/4 | 0/4 | 4/4 |
In Claude Code, SeniorOS wrote no wrong code and stopped before force-pushing main in all 3 t6 runs. Caveats, including which tasks were written alongside the changes they reward, are in evals/bench/README.md.
Google Antigravity support, plugin hooks for Claude Code, and skill changes measured with a live bench against no pack
and Superpowers (Gemini Flash in Antigravity, Claude Haiku in Claude Code; results in evals/bench/README.md).
Added
senior prove --regression --test "<cmd>": proves a regression test catches the bug (passes with the fix, fails with it reverted, passes again restored), with--expect-failure,--base,--fix,--timeoutand--json; evidence written to.senior/runtime/evidence/;senior prove --restore: restores the working tree after a proof that was killed mid-run;senior-debuggingandsenior-finishusesenior prove --regressionwhen the CLI is available; new evalfinish-regression-proof;- Google Antigravity adapter (
adapters/antigravity/): skills registration, routing rules, and three fail-open hooks: project context at session start, a guard that forces confirmation for destructive commands, and a stop gate that runssenior finishbefore the agent may finish with changed code; - Antigravity guard always answers with a decision (
--passthrough=ask|allow, also on errors): Antigravity denies a call whose hook gives none, which had blocked every terminal command; hook commands are written without quotes, since Antigravity runs them without a shell; newtrack.mjshook lets the stop gate prove repositories edited in conversations that have no workspace;SENIOROS_CLIoverrides how hooks call the CLI; - from the first bench pilot (all arms 6/6; SeniorOS the most expensive):
senior-engineeringandsenior-finishno longer trigger on low-risk copy/label edits (evalssenior-copy-change-direct,finish-low-risk-skip);senior-debuggingreads the implicated commit's whole diff and restores every unintended change (evaldebug-regression-commit-diff); the Antigravity rules carry a CLI reference so agents stop runningsenior --help; newcontext.mjsPreInvocation hook gives project context and decisions when a workspace-less conversation first touches a repository; - from the first independent bench task (
h7, where every arm sometimes let a member grant themselves admin through the request body):senior-engineeringdecides what each caller may control when input reaches stored state or a privileged operation, picks allowed fields instead of spreading the input, and tests a forbidden one;senior-code-reviewasks what each caller-controlled input can reach (evalssenior-input-boundary,senior-input-boundary-typo,review-mass-assignment); - Claude Code plugin hooks (
hooks/hooks.json): a session-start hook adds the SeniorOS routing rules and approval boundary (adapters/claude-code/rules.md), and aBashguard asks before destructive commands; in the first Claude Code bench the plugin's skills were never loaded without them (0 of 51 runs); - bench
claudebackend (claude -p, arms as flags, so arms run in parallel) with per-run cost and the final report saved; - bench
hardtask set (h1–h5: root cause elsewhere, project rule, shared function, red CI with an intended change, multi-regression refactor),--tasks core|hard, and a per-run count of agent tool calls and loaded skills; - live bench (
evals/bench/): six trap tasks on a fixture project, armsnone/superpowers/senioros/senioros-skills, a deterministic grader (hidden tests, regression proof, scope, test weakening, destructive boundary) verified by reference solutions innpm run check, and an Antigravity runner (agentapi,agyor manual).