docks-kit 0.22.7 → 0.22.9
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.md +4 -4
- package/README.md +7 -9
- package/cli/docs/command-guards.md +78 -117
- package/cli/docs/omp-models.md +17 -15
- package/cli/docs/sync-layers.md +4 -4
- package/cli/src/engine-native/ompRemovals.ts +35 -0
- package/cli/src/engine-native/ompYaml.ts +8 -15
- package/cli/src/generated/sotPayload.ts +3 -3
- package/package.json +1 -1
package/AGENTS.md
CHANGED
|
@@ -78,10 +78,10 @@ omp SoT notes:
|
|
|
78
78
|
- `SoT/.omp/AGENTS.md`, `config.yml`, `models.yml`, and `mcp.json` deploy to `~/.omp/agent/`.
|
|
79
79
|
- `SoT/.omp/intercom.json` deploys to `$PI_CODING_AGENT_DIR/intercom/config.json`. The default root is `~/.pi/agent`. Under a named omp profile (`OMP_PROFILE` or `PI_PROFILE`), it deploys to `<profile agentDir>/intercom/config.json`, because omp exports `PI_CODING_AGENT_DIR` as the profile agent directory.
|
|
80
80
|
- `ompFileDeploy.ts syncMergedYaml` deep-merges `config.yml` through `ompYaml.ts mergeOmpConfig` and `models.yml` through `mergeOmpModels`. Both wrap one generic mapping merge; only the config wrapper prunes stale `retry.fallbackChains` wildcards and merges `bash.patterns`.
|
|
81
|
-
- `SoT/.omp/config.yml` `bash.patterns` holds the destructive-command guards. omp's `CRITICAL_BASH_PATTERNS` check returns a bare safety override before a matching prompt rule, and `tools.approvalMode: yolo` ignores a bare override, so a prompt on a critical command becomes an allow, in subagents too (`omp://approval-mode.md`). Every `rm` shape that check can flag is therefore a deny: recursive `rm`, `sudo` anywhere before `rm` (also by path), any `rm` with an `r` or `f` option before an absolute path, and `--no-preserve-root`. By owner decision (0.20.9), the recursive-`rm` deny also covers any prefix (a `* rm ` copy of each bare cluster rule, so `env X=1 rm -rf b`, `xargs rm -rf`, `find . -exec rm -rf {} +`, and `git rm -r dir` are denied) and the `-ri`, `-ir`, `-Ri`, and `-iR` clusters for bare `rm`, `*/rm`, and `* rm`. By owner decision (0.21.0), 17 more denies cover bulk removal that can empty the home directory: `find -delete` (bare, `*/find`, `* find`), `-exec`, `-execdir`, `-ok`, and `-okdir` with `rm` or `*/rm`, and `xargs rm` in six shapes. No glob can express "inside the temporary directory", so `docks-kit scratch remove` checks that path in code.
|
|
82
|
-
- `ompSync.ts` runs `ompRemovals.ts syncOmpRemovals, retired-key inventory` right after the config merge, and that pass force-prunes retired kit-owned keys from `~/.omp/agent/config.yml` on every sync, without `--reconcile`. The pass is required because `mergeOmpConfig` is additive, so removing a key from the SoT alone never removes it from a deployed file. A key retired with a recorded value is pruned only while the deployed value still matches that value, so a user edit survives; a key retired outright, such as `providers.webSearchOrder`, is pruned at any value. The same pass removes each `bash.patterns` rule listed in `OMP_RETIRED_BASH_RULES`: the 39 file-removal rules retired in 0.20.9,
|
|
81
|
+
- `SoT/.omp/config.yml` `bash.patterns` holds the destructive-command guards. omp's `CRITICAL_BASH_PATTERNS` check returns a bare safety override before a matching prompt rule, and `tools.approvalMode: yolo` ignores a bare override, so a prompt on a critical command becomes an allow, in subagents too (`omp://approval-mode.md`). Every `rm` shape that check can flag is therefore a deny: recursive `rm`, `sudo` anywhere before `rm` (also by path), any `rm` with an `r` or `f` option before an absolute path, and `--no-preserve-root`. By owner decision (0.20.9), the recursive-`rm` deny also covers any prefix (a `* rm ` copy of each bare cluster rule, so `env X=1 rm -rf b`, `xargs rm -rf`, `find . -exec rm -rf {} +`, and `git rm -r dir` are denied) and the `-ri`, `-ir`, `-Ri`, and `-iR` clusters for bare `rm`, `*/rm`, and `* rm`. By owner decision (0.21.0), 17 more denies cover bulk removal that can empty the home directory: `find -delete` (bare, `*/find`, `* find`), `-exec`, `-execdir`, `-ok`, and `-okdir` with `rm` or `*/rm`, and `xargs rm` in six shapes. No glob can express "inside the temporary directory", so `docks-kit scratch remove` checks that path in code. A `$` or a backtick anywhere after `git push` in the same command is a deny, not a prompt (0.22.5, #120). A variable can expand to a `+` refspec or `--force`, and the matcher reads the text before the shell expands it. The agent reads the refusal and writes the ref literally, so no person is asked. The two rules are `*git push *$*` and ``*git push *`*``. Their leading `*` keeps a shell keyword such as `do`, a wrapper such as `env`, or a path before `git` from hiding the push. By owner decision (0.22.8, #126), the kit ships no omp prompt rule: `bash.patterns` holds only the denies plus the `trash *` allow, so every command that no deny matches runs without a question, in subagents too. Since 0.20.9 this run-without-question behavior covers a non-denied `rm`, `git rm`, `git worktree remove`, `gio trash`, and `docks-kit scratch remove`. Since 0.22.8 it also covers `git clean`, `git reset --hard`, a hook skip, and every `git push` that no deny matches. The force-push denies match only `git push --force` or `-f` directly before `origin main` or `origin master`, so another spelling, such as `git push origin main --force`, runs. A prompt rule that the user adds survives sync and still asks. `SoT/.omp/AGENTS.md` carries the agent rules for these commands, and it tells the agent to write each `git push` ref literally and to push the current branch with `git push -u origin HEAD`. Claude Code `permissions.ask` and Codex `docks.rules` keep their ask tiers. The list order is deny, then `trash *`. omp takes the first match. `ompYaml.ts mergeBashPatterns, grouped rule merge` keeps user rules and groups all rules as kit deny, user deny, user prompt, kit prompt, other user rules, kit allow, so a user deny or prompt precedes every kit allow. It treats a deployed rule equal to a kit rule (approval case-folded, `match` whitespace collapsed) as the kit copy, so a re-sync is a no-op. A rule the kit stops shipping stays as a user rule, so retire one through `ompRemovals.ts OMP_RETIRED_BASH_RULES`. `cli/test/lib/ompBashPatterns.ts` ports omp 18.11.1's matcher, critical patterns, and yolo resolution; `cli/test/unit/ompBashPatterns.test.ts` asserts each command's final outcome and the merge. omp subagents reject every `prompt`, and the `eval` tool stays unrestricted by owner decision.
|
|
82
|
+
- `ompSync.ts` runs `ompRemovals.ts syncOmpRemovals, retired-key inventory` right after the config merge, and that pass force-prunes retired kit-owned keys from `~/.omp/agent/config.yml` on every sync, without `--reconcile`. The pass is required because `mergeOmpConfig` is additive, so removing a key from the SoT alone never removes it from a deployed file. A key retired with a recorded value is pruned only while the deployed value still matches that value, so a user edit survives; a key retired outright, such as `providers.webSearchOrder`, is pruned at any value. The same pass removes each `bash.patterns` rule listed in `OMP_RETIRED_BASH_RULES`: the 39 file-removal rules retired in 0.20.9, the four `git push` prompts for a `$` or backtick word that 0.22.5 replaced with denies, and the 492 prompt rules retired in 0.22.8 (`RETIRED_PROMPT_MATCHES`). It compares with the merge's kit-rule normalization (approval case-folded, `match` whitespace collapsed), so a user rule with a different `match` or `approval` survives.
|
|
83
83
|
- `cycleOrder` ends with `astra` as its fifth stop. `modelRoles.astra` is `openai-codex/gpt-6-astra:xhigh`, and `modelTags.astra` is visible. Astra and Fable fall back to each other through concrete selectors. `modelRoles.fable` remains `anthropic/claude-fable-5-1:medium`, with visible `modelTags.fable`. The hidden `switch_fable` role uses the same Fable selector and keeps an empty fallback chain.
|
|
84
|
-
- `modelRoles.task` is `anthropic/claude-opus-5-5:high`, and `retry.fallbackChains.task` falls back to `openai-codex/gpt-6.1-sol:high`. `task.
|
|
84
|
+
- `modelRoles.task` is `anthropic/claude-opus-5-5:high`, and `retry.fallbackChains.task` falls back to `openai-codex/gpt-6.1-sol:high`. `task.enableEffort` is `false`: a caller `effort` outranks the role's level suffix, and `hi` maps to the top of the model ladder, so with the field on, `hi` spawns ran at `task.maxEffort` (`xhigh`) instead of the role level. With the field off, every spawn runs its role level, and `task.maxEffort` bounds only a per-call `model` with a `:level` suffix. `advisor` is `anthropic/claude-opus-5-5:medium` with an empty fallback chain, because a GPT-6 Sol advisor looped on repeated reads under an Opus 5.5 session. Never put any GPT model (`openai-codex/gpt-*`, including GPT-6.1 Sol and GPT-6 Astra) in the advisor role or chain; Astra also costs too much for this role. `smol`, `commit`, and `tiny` use `openai-codex/gpt-6-luna`. The kit-defined hidden `reviewer` role is `openai-codex/gpt-6.1-sol:xhigh` with `anthropic/claude-opus-5-5:xhigh` as its retry fallback, and all four reviewer entries in `task.agentModelOverrides` point to `@reviewer`. `ompOverlay.ts ROLE_ORDER, FALLBACK_ORDER` list `reviewer`, so a free session also replaces it. Only bundled `reviewer` and `security-reviewer` are discoverable OMP agents; `code-reviewer` and `plan-reviewer` stay dormant. The `SoT/toolchain.json` omp floor is 18.4.4, the oldest release the kit tested with `gpt-6.1-sol`. That release lists and serves the model through the `openai-codex` provider. `cli/docs/omp-models.md` records the checks.
|
|
85
85
|
- The seven Opus 5.5 roles (`default`, `slow`, `plan`, `designer`, `vision`, `task`, `advisor`) and the `smol`, `tiny`, `commit`, and `reviewer` retry chains use `anthropic/claude-opus-5-5` at the levels the role map records. `cli/docs/omp-models.md` carries the Artificial Analysis capture behind the role map, read 2026-09-29 at Intelligence Index v4.3.2 and Coding Agent Index v1.5 from the AA comparison-page metric tables. Opus 5.5 max has the highest index in that topic, at 58. AA has measured speed and latency for Opus 5.5 max and every GPT-6.1 Sol level; GPT-6 Luna medium is the only unmeasured speed and latency row.
|
|
86
86
|
- `modelRoles.web` is `web/firecrawl` and `retry.fallbackChains.web` carries the explicit 20-entry provider order. The kit declares both keys because the legacy `providers.webSearchOrder` key is retired: omp expands it in memory into these two keys and then drops it, and never writes that expansion back to disk. An explicit chain replaces omp's built-in web order wholesale, so every entry left out is a provider omp never tries. The owner removed the seven entries that named older models (Gemini 2.5 Flash, Claude Haiku 4.5, GPT-5.6, GPT-5.5, and Grok 4.5); keep every other provider.
|
|
87
87
|
- `SoT/.omp/models.yml` declares Astra's full `low, medium, high, xhigh, max` ladder with `defaultLevel: xhigh` as the worked provider ladder-override example. The temporary `anthropic.modelOverrides.claude-opus-5-5` block is gone, because the shared catalog now publishes the same limits, ladder, and prices. The removal switches omp from the block's `thinking.mode: effort` (a `budget_tokens` value per level from `ANTHROPIC_THINKING`, no effort value) to the catalog's `anthropic-adaptive` (adaptive thinking with the role's effort level); every kit Opus selector names its level, so the block's bare-selector `defaultLevel: high` is not needed. `ompRemovals.ts syncOmpModelRemovals, retired-block inventory` prunes it from `~/.omp/agent/models.yml` after the models merge, but only while the deployed block still equals the shipped one. `ompYaml.ts mergeOmpModels` preserves deployed-only keys in `~/.omp/agent/models.yml`, because a user file may carry provider credentials. Whole-file replacement is wrong.
|
|
@@ -92,7 +92,7 @@ omp SoT notes:
|
|
|
92
92
|
- Sync installs `pi-intercom` at the verified version from `SoT/toolchain.json`.
|
|
93
93
|
- Sync materializes the kit omp plugin `docks-kit-omp` from `SoT/.omp/plugin/` to `~/.docks-kit/omp-plugin` (`ompKitPlugin.ts syncKitPlugin`: directories 0700, files 0600, `package.json` `version` set to the kit version, stale files removed, no backups because the directory is kit-owned). `ompPlugins.ts syncPlugins, kit plugin link` then runs `omp plugin link <dir>` unless the `omp plugin list --json` npm row `docks-kit-omp` already has a `path` that resolves to that directory; `--skip-plugin-refresh` does not skip the link. The plugin extension registers `scratch_new`, `scratch_remove`, and `tidy_report`, adds a reminder after each bash command that created a resource, checks at session stop that those resources are gone, and at a main-session start claims `~/.cache/docks-kit/tidy.stamp.claim` and runs `docks-kit tidy --apply` in the background at most once per 12 hours. Every extension subprocess runs without a shell. The plugin also ships the `workspace-hygiene` skill and the `/cleanup` command. The plugin, the deployed rules, and the sweep call `docks-kit scratch` and `docks-kit tidy`, so a checkout sync must not run before the global `docks-kit` carries those commands.
|
|
94
94
|
- `task.agentIdleTtlMs` is `120000`, so omp parks an idle subagent after 2 minutes instead of 7. `browser.idleCloseSec` is `600`.
|
|
95
|
-
- By owner decision (0.21.0), resources on the workstation are always development, so `docks-kit tidy` sweeps them without a question. The omp prompt
|
|
95
|
+
- By owner decision (0.21.0), resources on the workstation are always development, so `docks-kit tidy` sweeps them without a question. The omp agent prompt, the `workspace-hygiene` skill, `/cleanup`, and the extension reminders limit the cleanup of a remote resource (reached through SSH or a provider CLI such as `wrangler`, `vercel`, `kubectl`, or a remote Docker host) to targets named local, development, dev, test, homolog, homologation, staging, or preview, the plan-lifecycle non-production definition. A production cleanup needs an `ask` immediately before it, must be rare, and a `yolo` invocation does not answer that ask. Prompt rules cannot force an agent to ask, so this rule has no `bash.patterns` guard.
|
|
96
96
|
- The omp CLI is upstream-owned. It updates through `omp update`, or through the external manager that owns the install, such as Tern or Nix. `omp update` refuses to run on an install that an external manager owns. Sync never installs or upgrades the CLI.
|
|
97
97
|
- `docks-kit omp [--model <selector>|--pick] [args...]` starts one interactive omp session. The overlay sets the 16 roles in `ompOverlay.ts ROLE_ORDER`, `judge` and `memory` included, to one free model, empties the 13 retry chains in `FALLBACK_ORDER`, and empties the chains keyed by the free model (bare, `off`, and every `THINKING_LADDER` level). Every other deployed chain stays as deployed. In particular, `modelRoles.web` and `retry.fallbackChains.web` keep the deployed web-search provider order. Thus a web search that falls through the `web/*` providers can reach the paid `openai-codex/gpt-6-luna` entry. It renders the overlay to `~/.cache/docks-kit/omp-free-<model>-<digest>.yml` (mode 0600). `ompOverlay.ts overlayFileName` gives each distinct model-and-level combination its own file, and the digest covers the selector and both levels. omp can re-read the overlay during a live session, so a second launcher with another model or level must not rewrite it. Deployed `~/.omp/agent/` files stay untouched, so the next plain `omp` run uses the paid configuration again.
|
|
98
98
|
- The launcher enforces the free model before omp starts. `omp.ts rejectedForwardedFlag` rejects a forwarded `--config`, `--model`, `--smol`, `--slow`, `--plan`, `--models`, `--provider`, `--prewalk-into`, or `--plan-yolo-into`, in both forms and also after a `--`, with exit 2 and a message that names the recoveries. `ompOverlay.ts buildOmpArgs` starts omp as `omp launch --config <overlay> --model <selector>[:<level>] [args...]`, so every forwarded word is message text, no omp subcommand runs through the launcher, and `--continue` or `--resume` keeps the free model. `ompOverlay.ts ompChildEnvironment` sets `PI_SMOL_MODEL`, `PI_SLOW_MODEL`, and `PI_PLAN_MODEL` to the free role values, and appends the overlay to `PI_CONFIG_FILES` so an `omp` that the bash tool of the session starts loads it too. The launcher prints one warning for each exported model variable that it replaces. In-session selection (`Alt+M`, `Alt+P`, `/switch`, `/model`, `/modelpreset`, `/resume`, a seance subagent), the `web` role, the model-kind roles `image`, `speech`, and `dictation`, and extensions and hooks stay outside the launcher. An `Alt+M` assignment of `default` writes `modelRoles.default` to the deployed `~/.omp/agent/config.yml`. `cli/docs/omp-models.md` lists these paths.
|
package/README.md
CHANGED
|
@@ -113,18 +113,16 @@ and a later flag-less sync reverts them. Full reference: `docks-kit docs flags`
|
|
|
113
113
|
Claude's native `rate_limits`; there is no OAuth fetch, shared usage cache,
|
|
114
114
|
or Stop hook. If Bun cannot be resolved or bootstrapped, sync preserves a
|
|
115
115
|
working legacy hook/statusline setup and reports that migration is deferred.
|
|
116
|
-
- **Command guards** — omp, Claude Code, and Codex share one
|
|
117
|
-
|
|
116
|
+
- **Command guards** — omp, Claude Code, and Codex share one policy for
|
|
117
|
+
destructive shell commands; to remove, agents use the trash
|
|
118
118
|
(`gio trash -- <path>`, or `trash <path>` on macOS); omp agents remove a
|
|
119
119
|
temporary file or directory with `docks-kit scratch remove`. `rm` of the
|
|
120
120
|
home directory or `/` and `HOME` reassignment are denied. omp also denies
|
|
121
|
-
every recursive `rm`, `find -delete`, `find -exec rm`, and `xargs rm
|
|
122
|
-
|
|
123
|
-
|
|
124
|
-
|
|
125
|
-
`git
|
|
126
|
-
Codex also ask before `find -delete`, a recursive `rm`, and every `git rm`.
|
|
127
|
-
An omp subagent cannot answer an ask, so omp rejects it; a Codex ask can go
|
|
121
|
+
every recursive `rm`, `find -delete`, `find -exec rm`, and `xargs rm`. The
|
|
122
|
+
kit ships no omp prompt rule, so omp runs every command that no deny
|
|
123
|
+
matches without a question, in subagents too. Claude Code and Codex ask
|
|
124
|
+
before a recursive `rm`, `find -delete`, every `git rm`, `git clean`,
|
|
125
|
+
`git reset --hard`, and any `git push` that could force; a Codex ask can go
|
|
128
126
|
to its `auto_review` reviewer. Details, per-tool differences, and gaps:
|
|
129
127
|
`docks-kit docs command-guards`.
|
|
130
128
|
- **Agent cleanup (omp)** — `docks-kit scratch` creates agent temporary
|
|
@@ -6,28 +6,39 @@ The short rule for agents: **to remove, use the trash**. Run
|
|
|
6
6
|
temporary file or directory with `docks-kit scratch remove <path>` instead.
|
|
7
7
|
To remove a path from the git index, run `git rm -- <path>`.
|
|
8
8
|
|
|
9
|
-
|
|
10
|
-
in a canonical form that is safe by construction
|
|
11
|
-
force, empty, or delete asks.
|
|
12
|
-
|
|
9
|
+
Claude Code and Codex follow one principle: **fail closed**. A command is
|
|
10
|
+
allowed only in a canonical form that is safe by construction, and every other
|
|
11
|
+
form that could force, empty, or delete asks. omp keeps only the deny part of
|
|
12
|
+
that principle. Where omp's critical-command check acts, the form is denied
|
|
13
|
+
instead of asked. omp also denies a `$` or a backtick after `git push`,
|
|
13
14
|
because the agent can always write the ref literally. A false positive in the
|
|
14
|
-
ask tier is accepted.
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
15
|
+
ask tier is accepted.
|
|
16
|
+
|
|
17
|
+
omp is the exception: by owner decision (0.22.8, #126), the kit ships no omp
|
|
18
|
+
prompt rule. The kit's `bash.patterns` holds only deny rules and the `trash *`
|
|
19
|
+
allow. Under the kit's `tools.approvalMode: yolo`, omp runs every command
|
|
20
|
+
that no deny matches without a question, in the main session and in
|
|
21
|
+
subagents. This includes any `rm` that omp does not deny, `git clean`,
|
|
22
|
+
`git reset --hard`, a force push that no deny matches, and a git command
|
|
23
|
+
that skips the repository's hooks. A prompt rule that the user adds to
|
|
24
|
+
`~/.omp/agent/config.yml` survives sync and still asks; a subagent rejects
|
|
25
|
+
it. The deployed omp agent prompt forbids `--force`, `-f`, and their
|
|
26
|
+
abbreviations with `git push`, and it forbids each hook skip. It tells the
|
|
27
|
+
agent to use `ask` before a force push, and to ask the user before
|
|
28
|
+
`git clean` or `git reset --hard`.
|
|
29
|
+
|
|
30
|
+
The policy sorts shell commands into three tiers. omp uses two of them: deny
|
|
31
|
+
and allow.
|
|
21
32
|
|
|
22
33
|
- **Deny**: the command never runs, and nobody can approve it in the session.
|
|
23
|
-
- **Ask**: the command needs approval before it runs.
|
|
24
|
-
|
|
25
|
-
rejects every ask in a subagent.
|
|
34
|
+
- **Ask**: the command needs approval before it runs. The kit ships no omp
|
|
35
|
+
rule in this tier.
|
|
26
36
|
- Claude Code asks a person, even in auto mode.
|
|
27
37
|
- Codex sends the prompt to the approvals reviewer in the kit's
|
|
28
38
|
`config.toml`. That reviewer is `auto_review`, a reviewer subagent, so a
|
|
29
39
|
Codex ask can be approved without a person.
|
|
30
|
-
- **Allow**: the agent may run the command alone.
|
|
40
|
+
- **Allow**: the agent may run the command alone. In omp, a command that no
|
|
41
|
+
rule matches runs too. The table below calls this `run`.
|
|
31
42
|
|
|
32
43
|
The omp `eval` tool stays unrestricted: `bash.patterns` does not gate a shell
|
|
33
44
|
that `eval` starts.
|
|
@@ -43,21 +54,24 @@ that `eval` starts.
|
|
|
43
54
|
| `git push --force` or `-f` to `origin main` or `origin master` | deny | deny | deny |
|
|
44
55
|
| Recursive `rm` (`-r`, `-R`, `-rf`, `-fr`, `-rfv`, `-ri`, `-ir`, `-Ri`, `-iR`, `--recursive`, other listed clusters) | deny, also behind any prefix (`env`, `xargs`, `nice`, `find -exec`, `git rm -r`) | ask | ask (every `rm` asks) |
|
|
45
56
|
| `rm` with an `r` or `f` option before an absolute path, `--no-preserve-root` | deny | ask if recursive, else classifier | ask |
|
|
46
|
-
| Any other `rm`: one file, several files, a glob, `-f` |
|
|
57
|
+
| Any other `rm`: one file, several files, a glob, `-f` | run | glob asks; the rest goes to the classifier | ask |
|
|
47
58
|
| `find ... -delete`, `find ... -exec rm` (also `-execdir`, `-ok`, `-okdir`), `xargs rm` | deny, in every position and by path | ask | ask (every `find` asks) |
|
|
48
|
-
| `git clean`, `git reset --hard` |
|
|
49
|
-
| `git push` that could force: see below |
|
|
59
|
+
| `git clean`, `git reset --hard` | run | ask | ask |
|
|
60
|
+
| `git push` that could force: see below | run, unless a deny above matches | ask | ask (every `git push` asks) |
|
|
50
61
|
| A `$` or a backtick anywhere after `git push` in the same command | deny, also after a shell keyword, a wrapper, or a path before `git`: see below | ask for a word that starts with `$` or a backtick | ask (every `git push` asks) |
|
|
51
|
-
| A git command that skips the repository's hooks: see below |
|
|
52
|
-
| `git rm -- <path>`, `git worktree remove -- <path>` |
|
|
53
|
-
| `git worktree remove --force -- <path>` |
|
|
54
|
-
| `docks-kit scratch remove <path>` |
|
|
55
|
-
| Any other non-recursive `git rm` or `git worktree remove` |
|
|
56
|
-
| `gio trash -- <path>` |
|
|
57
|
-
| Any other `gio trash` |
|
|
62
|
+
| A git command that skips the repository's hooks: see below | run | no rule; the classifier decides | ask for each `git push`, `git merge`, and `git rebase` that starts the command; no rule for `git commit`, `git am`, or `git pull` |
|
|
63
|
+
| `git rm -- <path>`, `git worktree remove -- <path>` | run | ask | ask |
|
|
64
|
+
| `git worktree remove --force -- <path>` | run; the omp agent prompt permits it once, after the commits are on the remote | ask | ask |
|
|
65
|
+
| `docks-kit scratch remove <path>` | run; the command removes only a path inside the scratch root, the system temporary directory, or `/var/tmp` | no rule | no rule |
|
|
66
|
+
| Any other non-recursive `git rm` or `git worktree remove` | run | ask | ask |
|
|
67
|
+
| `gio trash -- <path>` | run | allow | ask |
|
|
68
|
+
| Any other `gio trash` | run | ask with `--empty` or `--restore`; the rest goes to the classifier | ask |
|
|
58
69
|
| `trash <path>` (macOS) | allow | allow | allow |
|
|
59
70
|
|
|
60
|
-
|
|
71
|
+
In Claude Code, a `git push` asks when it holds any of these words. Codex
|
|
72
|
+
asks for every `git push`. omp runs each of these forms. Its force-push deny
|
|
73
|
+
matches only `git push --force` or `git push -f` directly before
|
|
74
|
+
`origin main` or `origin master`:
|
|
61
75
|
|
|
62
76
|
- a `+` refspec;
|
|
63
77
|
- any long option that starts with `--f`, such as `--force`,
|
|
@@ -66,12 +80,12 @@ A `git push` asks when it holds any of these words:
|
|
|
66
80
|
- `-f`, or a short-option cluster that starts with two of git push's
|
|
67
81
|
no-argument flags (`v`, `q`, `d`, `n`, `u`, `4`, `6`, `f`), such as `-vf`,
|
|
68
82
|
`-vvf`, or `-uvfq`;
|
|
69
|
-
-
|
|
70
|
-
|
|
83
|
+
- a word that starts with `$`, a backtick, a quote, or a backslash. omp
|
|
84
|
+
denies a `$` or a backtick anywhere after `git push`.
|
|
71
85
|
|
|
72
86
|
Each of these must begin a word: `feat/cache-vf` is a branch name, not an
|
|
73
|
-
option. `--follow-tags` also asks. This is an accepted false
|
|
74
|
-
it shares the `--f` prefix.
|
|
87
|
+
option. In Claude Code, `--follow-tags` also asks. This is an accepted false
|
|
88
|
+
positive, because it shares the `--f` prefix.
|
|
75
89
|
|
|
76
90
|
A `$` or a backtick hides the ref until the shell expands it, so the matcher
|
|
77
91
|
cannot tell `$b` from `+main` or `--force`. An unquoted value inside a word
|
|
@@ -81,7 +95,7 @@ also splits into more words: with `b="main --force"`, `HEAD:$b` becomes
|
|
|
81
95
|
branch name.
|
|
82
96
|
|
|
83
97
|
omp therefore denies a `$` or a backtick anywhere after `git push` in the same
|
|
84
|
-
command
|
|
98
|
+
command. The agent reads a refusal such as
|
|
85
99
|
`Blocked by bash pattern: *git push *$*`, writes the ref literally, and runs
|
|
86
100
|
the push without a question. The omp agent prompt names the literal forms:
|
|
87
101
|
`git push -u origin HEAD` for the current branch, and
|
|
@@ -91,54 +105,24 @@ such as `env`, or a path such as `/usr/bin/git` does not hide the push.
|
|
|
91
105
|
|
|
92
106
|
## Commands that skip the repository's hooks
|
|
93
107
|
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
`git am`, also after `git -C <dir>`;
|
|
102
|
-
- `-n`, or a short-option cluster that starts with two no-argument options,
|
|
103
|
-
in `git commit` or `git am`. Both read `-n` as `--no-verify`, also inside a
|
|
104
|
-
cluster such as `-anm`. The no-argument options are `q`, `v`, `s`, `e`, `a`,
|
|
105
|
-
`i`, `p`, `o`, `n`, and `z` for `git commit`, and `i`, `n`, `3`, `q`, `s`,
|
|
106
|
-
`u`, `k`, `m`, `c`, and `r` for `git am`;
|
|
107
|
-
- `core.hooksPath` or `core.hookspath` after `git`, as in `git -c`,
|
|
108
|
-
`git --config-env`, or `git config`;
|
|
109
|
-
- `GIT_CONFIG_COUNT` or `GIT_CONFIG_PARAMETERS` anywhere in the line, in any
|
|
110
|
-
assignment form such as `=`, `+=`, or `export`. These variables can
|
|
111
|
-
override any configuration key, `core.hooksPath` included, whatever its
|
|
112
|
-
spelling. A line that sets them does not start with `git`, and a
|
|
113
|
-
`GIT_CONFIG_PARAMETERS` entry keeps its inner quotes, as in
|
|
114
|
-
`'core.hooksPath'='/dev/null'`.
|
|
115
|
-
|
|
116
|
-
`git commit -m x`, `git commit -am x`, `git commit -sm x`, and
|
|
117
|
-
`git commit -mn x` (the message `n`) run without a prompt. These forms ask as
|
|
118
|
-
accepted false positives:
|
|
119
|
-
|
|
120
|
-
- another option that starts with `--no-v`, such as `--no-verbose`,
|
|
121
|
-
`--no-verify-signatures`, or `git send-email --no-validate`;
|
|
122
|
-
- a cluster of two no-argument options without `n`, such as
|
|
123
|
-
`git commit -aqm x`;
|
|
124
|
-
- a read such as `git config --get core.hooksPath`. To read the hooks
|
|
125
|
-
directory without a prompt, run `git rev-parse --git-path hooks`;
|
|
126
|
-
- message or search text that holds ` -n`, a two-letter cluster, or `--no-v`,
|
|
127
|
-
such as `git commit -m "use head -n 5"` or `git grep -- --no-verify`. Write
|
|
128
|
-
such a message with `git commit -F <file>`;
|
|
129
|
-
- a line with a later command, because omp tests the whole line:
|
|
130
|
-
`git commit -m x && git log -n 1` asks. Run the commit as its own command.
|
|
108
|
+
A git command can skip the repository's hooks, for example with
|
|
109
|
+
`--no-verify`, `git commit -n`, `git am -n`, or a `core.hooksPath` change.
|
|
110
|
+
The kit ships no omp rule for these commands, so omp runs them without a
|
|
111
|
+
question. The deployed omp agent prompt forbids each hook skip. Claude Code
|
|
112
|
+
has no rule either, so its classifier decides. Codex asks for each
|
|
113
|
+
`git push`, `git merge`, and `git rebase` that starts the command. Codex has
|
|
114
|
+
no rule for `git commit`, `git am`, or `git pull`.
|
|
131
115
|
|
|
132
116
|
## Why the tools differ
|
|
133
117
|
|
|
134
118
|
| Topic | omp | Claude Code | Codex |
|
|
135
119
|
| --- | --- | --- | --- |
|
|
136
120
|
| Rule order | First match wins | Deny, then ask, then allow, whatever the order | Strictest matching rule wins |
|
|
137
|
-
| Exception for one form |
|
|
121
|
+
| Exception for one form | The kit ships no omp prompt rule, so it needs no exception | An allow never beats a matching ask, so every `git rm` asks | An allow never beats a matching prompt, so every `gio trash` asks |
|
|
138
122
|
| Pattern | Glob on the whole line and on each quote-stripped segment; `*` crosses spaces; no literal `*` | Glob on each subcommand as written, quotes included; `\*` is a literal `*` | Exact argv tokens from the start, with alternatives |
|
|
139
123
|
| `rm` by path (`/bin/rm`) | Matched by `*/rm` forms | Matched by `*/rm` forms | Resolved to the `rm` rules |
|
|
140
124
|
| Leading assignment `X=1 cmd` | Part of the line | Stripped before deny and ask rules | A script with it is not split |
|
|
141
|
-
| What an ask means |
|
|
125
|
+
| What an ask means | The kit ships no ask; a user prompt rule asks a person in the main session, and a subagent rejects it | A person | The `auto_review` reviewer subagent |
|
|
142
126
|
| Critical-command check | Turns a prompt into an allow under yolo, so the kit denies those shapes | Asks or denies for an `rm` of a critical path | Prompts for a forced `rm` that no rule matches |
|
|
143
127
|
|
|
144
128
|
## How an agent removes files
|
|
@@ -212,11 +196,12 @@ the home directory, and no glob can express "inside the temporary directory".
|
|
|
212
196
|
- **omp**:
|
|
213
197
|
- The rules are ordered, and the first match wins.
|
|
214
198
|
- `*` matches any text, spaces included, and no escape spells a literal `*`.
|
|
215
|
-
- Deny
|
|
216
|
-
|
|
199
|
+
- Deny rules test the whole line and each segment between `;`, `&&`, `|`,
|
|
200
|
+
and similar operators, with quotes and escapes removed. So
|
|
217
201
|
`rm -rf "$HOME"` matches `rm * $HOME`.
|
|
218
202
|
- Allow rules apply only to a simple command.
|
|
219
|
-
- The kit lists rules as deny, then
|
|
203
|
+
- The kit ships no prompt rule. It lists rules as deny, then the `trash *`
|
|
204
|
+
allow.
|
|
220
205
|
- **Claude Code**:
|
|
221
206
|
- Deny beats ask, and ask beats allow, whatever the order.
|
|
222
207
|
- The rules match the command text as written, quotes included, so the kit
|
|
@@ -252,12 +237,6 @@ the home directory, and no glob can express "inside the temporary directory".
|
|
|
252
237
|
`git commit -m "rm -f /tmp/x"`. The `git push` deny matches text that names
|
|
253
238
|
`git push` before a `$`, such as `git commit -m "git push $b fails"`. Write
|
|
254
239
|
such a message with `git commit -F`.
|
|
255
|
-
- **omp, critical patterns in a line**: a line that holds one of omp's other
|
|
256
|
-
critical patterns turns any matching prompt rule on that line into an
|
|
257
|
-
allow. This applies to a compound line, such as one with `curl ... | sh`,
|
|
258
|
-
and to message text: `git commit -n -m "fix reboot loop"` runs, because
|
|
259
|
-
`reboot`, `shutdown`, `halt`, `mkfs`, `cryptsetup`, and `init 0` are
|
|
260
|
-
critical words.
|
|
261
240
|
- **omp, prefixed `rm`**: the kit denies a recursive `rm` behind any prefix,
|
|
262
241
|
such as `env X=1 rm -rf b`, `xargs rm -rf`, `find . -exec rm -rf {} +`, or
|
|
263
242
|
`git rm -r dir`. A `* rm ` rule also matches text, so a line such as
|
|
@@ -274,35 +253,21 @@ the home directory, and no glob can express "inside the temporary directory".
|
|
|
274
253
|
`remote.<name>.push` makes a plain `git push` force. No rule sees git
|
|
275
254
|
configuration. `git push --delete` and `git push --prune` remove remote
|
|
276
255
|
branches without force; they ask only in Codex.
|
|
277
|
-
- **omp, force push
|
|
278
|
-
|
|
279
|
-
|
|
256
|
+
- **omp, force push to `main` in another spelling**: the force-push deny
|
|
257
|
+
rules match only `git push --force` or `git push -f`, then
|
|
258
|
+
`origin main` or `origin master`. Every other force push to `main` runs
|
|
259
|
+
without a question, such as `git push origin main --force`,
|
|
260
|
+
`git push -vf origin main`, `git push --force-with-lease origin main`,
|
|
261
|
+
`git push origin +main`, `git push -f origin HEAD:main`, or
|
|
262
|
+
`git push --mirror origin`. Until 0.22.8 these forms asked.
|
|
263
|
+
- **omp, force push after a prefix**: the force-push deny rules start with
|
|
264
|
+
`git push`, not `*`. So a force push to `origin main` after a shell keyword,
|
|
265
|
+
a wrapper, or a path runs without a check, such as
|
|
280
266
|
`for r in a; do git push --force origin main; done`,
|
|
281
267
|
`env git push --force origin main`, or `/usr/bin/git push --force origin main`.
|
|
282
268
|
- **`git -C`**: no tool matches a git subcommand that does not follow `git`
|
|
283
|
-
directly, such as `git -C . push --force
|
|
284
|
-
|
|
285
|
-
`--no-verify` and `core.hooksPath` forms still ask after `git -C`.
|
|
286
|
-
- **omp, `core.hooksPath` spelling**: git reads section and variable names
|
|
287
|
-
without case, but omp matches with case. A key in another case, such as
|
|
288
|
-
`CORE.HOOKSPATH` or `Core.HooksPath`, after `git -c`, `git --config-env`, or
|
|
289
|
-
`git config` runs without a prompt.
|
|
290
|
-
- **omp, configuration files**: a configuration file can set
|
|
291
|
-
`core.hooksPath` without a rule seeing the key. This includes a file named
|
|
292
|
-
through `GIT_CONFIG_GLOBAL`, `GIT_CONFIG_SYSTEM`, `XDG_CONFIG_HOME`,
|
|
293
|
-
`include.path`, or `includeIf`, and a direct edit of `.git/config`. The kit
|
|
294
|
-
does not ask for these variables, because test scripts set
|
|
295
|
-
`GIT_CONFIG_GLOBAL=/dev/null` routinely.
|
|
296
|
-
- **omp on Windows, variable names**: Windows reads variable names without
|
|
297
|
-
case, so a name such as `git_config_count` also overrides configuration and
|
|
298
|
-
runs without a prompt.
|
|
299
|
-
- **omp, git aliases**: an alias for `commit` or `am`, such as `git ci -n` or
|
|
300
|
-
`git -c alias.ci=commit ci -n`, runs without a prompt.
|
|
301
|
-
- **omp, other hook skips**: no rule covers a hook-manager switch, such as
|
|
302
|
-
`HUSKY=0`, `SKIP=...`, or `LEFTHOOK=0`, or a change to the files in the
|
|
303
|
-
hooks directory. `git commit --no-post-rewrite` also runs: the
|
|
304
|
-
`post-rewrite` hook runs after the commit and cannot stop it. The deployed
|
|
305
|
-
omp prompt forbids each hook skip.
|
|
269
|
+
directly, such as `git -C . push --force origin main` or
|
|
270
|
+
`git -C . push origin $b`.
|
|
306
271
|
- **Claude Code, `HOME=` before a command**: Claude Code matches deny rules
|
|
307
272
|
past a leading assignment. So `HOME=/tmp/x cmd` reaches the classifier.
|
|
308
273
|
`export HOME=...`, `env HOME=...`, a bare `HOME=...` line, and any `rm` of
|
|
@@ -341,19 +306,18 @@ prompt. In Claude Code, any form with `--empty` or `--restore` asks.
|
|
|
341
306
|
1. kit deny;
|
|
342
307
|
2. user deny;
|
|
343
308
|
3. user prompt;
|
|
344
|
-
4. kit
|
|
345
|
-
|
|
346
|
-
|
|
347
|
-
6. the other user rules;
|
|
348
|
-
7. kit allow.
|
|
309
|
+
4. kit prompt (the kit ships none since 0.22.8);
|
|
310
|
+
5. the other user rules;
|
|
311
|
+
6. kit allow.
|
|
349
312
|
- A user deny or prompt thus precedes every kit allow, and no allow can
|
|
350
313
|
loosen a deny or a prompt.
|
|
351
314
|
- A repeat sync changes nothing.
|
|
352
315
|
- After the merge, `ompRemovals.ts syncOmpRemovals, retired bash-rule
|
|
353
316
|
inventory` removes the retired kit rules in `OMP_RETIRED_BASH_RULES` from
|
|
354
|
-
the deployed `bash.patterns` on every sync.
|
|
355
|
-
|
|
356
|
-
|
|
317
|
+
the deployed `bash.patterns` on every sync. The inventory also holds the
|
|
318
|
+
492 prompt rules that the kit retired in 0.22.8. It removes a rule only
|
|
319
|
+
when its `match` and `approval` equal a retired pair, so a different user
|
|
320
|
+
rule stays.
|
|
357
321
|
- **Claude Code**: sync unions each permissions array with the deployed one,
|
|
358
322
|
so user rules stay. `--reconcile` replaces the arrays with the SoT arrays.
|
|
359
323
|
- **Codex**: sync writes `~/.codex/rules/docks.rules` whole. Keep your own
|
|
@@ -390,8 +354,5 @@ Each check below is safe, because the shell never reaches `rm`.
|
|
|
390
354
|
`git status --porcelain` without `--ignored`).
|
|
391
355
|
- Git hooks: https://git-scm.com/docs/githooks (`--no-verify`,
|
|
392
356
|
`core.hooksPath`), https://git-scm.com/docs/git-commit and
|
|
393
|
-
https://git-scm.com/docs/git-am (`-n`)
|
|
394
|
-
(`-c`, `--config-env`), and https://git-scm.com/docs/git-config (names
|
|
395
|
-
without case, `GIT_CONFIG_COUNT`, `GIT_CONFIG_PARAMETERS`,
|
|
396
|
-
`GIT_CONFIG_GLOBAL`).
|
|
357
|
+
https://git-scm.com/docs/git-am (`-n`).
|
|
397
358
|
- macOS `trash`: https://keith.github.io/xcode-man-pages/trash.8.html
|
package/cli/docs/omp-models.md
CHANGED
|
@@ -388,21 +388,23 @@ quick answer.
|
|
|
388
388
|
`thinking-level: auto`. It resolves Opus 5.5 high. The `:high` suffix on
|
|
389
389
|
`modelRoles.task` is an explicit level, so it outranks the agent's `auto`,
|
|
390
390
|
and the auto classifier does not run for a `task` spawn.
|
|
391
|
-
- `task.enableEffort` is `
|
|
392
|
-
|
|
393
|
-
|
|
394
|
-
|
|
395
|
-
`
|
|
396
|
-
`
|
|
397
|
-
|
|
398
|
-
|
|
399
|
-
|
|
400
|
-
|
|
401
|
-
|
|
402
|
-
`
|
|
403
|
-
-
|
|
404
|
-
|
|
405
|
-
|
|
391
|
+
- `task.enableEffort` is `false`, so the task tool has no `effort` field and
|
|
392
|
+
every spawn runs the level of its agent's role. When the field is on, a
|
|
393
|
+
caller can pass `effort: lo`, `med`, or `hi`, and caller effort outranks the
|
|
394
|
+
role suffix. omp maps it onto the model's own ladder, not onto level names:
|
|
395
|
+
`lo` selects the lowest level, `med` the lower middle, and `hi` the highest
|
|
396
|
+
(`resolveTaskEffortLevel` in omp's `packages/tui/src/thinking.ts`,
|
|
397
|
+
omp 18.8.5). Then omp caps the result at `task.maxEffort`. On the
|
|
398
|
+
`low, medium, high, xhigh, max` ladder, `hi` gave `xhigh` under the
|
|
399
|
+
`xhigh` cap, so many `task` spawns ran Opus 5.5 xhigh despite the `:high`
|
|
400
|
+
role suffix. On 2026-11-05, a fresh `omp -p` run on omp 18.16.0 with the
|
|
401
|
+
field off had no `effort` field, and its `task` child recorded
|
|
402
|
+
`resolvedModel: anthropic/claude-opus-5-5:high`.
|
|
403
|
+
- `task.maxEffort` is `xhigh`. With `task.enableEffort` off, the cap applies
|
|
404
|
+
only to a per-call `model` with a `:level` suffix.
|
|
405
|
+
- `scout` and `sonic` always run GPT-6 Luna `medium`. The bundled `reviewer`
|
|
406
|
+
and `security-reviewer` resolve `@reviewer` and always run GPT-6.1 Sol
|
|
407
|
+
xhigh.
|
|
406
408
|
- The `code-reviewer` and `plan-reviewer` override entries remain dormant.
|
|
407
409
|
Both point to `@reviewer`. omp's task tool rejects both names as unknown
|
|
408
410
|
agents, so neither can spawn.
|
package/cli/docs/sync-layers.md
CHANGED
|
@@ -62,13 +62,13 @@ config.yml and models.yml are deep-merged (SoT keys win, mapping nodes merge,
|
|
|
62
62
|
deployed-only keys survive; config.yml also drops stale slash-bearing
|
|
63
63
|
`retry.fallbackChains` wildcards). A SoT list replaces the deployed list, except
|
|
64
64
|
config.yml `bash.patterns`: the merge keeps user rules and groups all rules as
|
|
65
|
-
kit deny, user deny, user prompt, kit
|
|
66
|
-
|
|
67
|
-
prompt, other user rules, and kit allow, so no allow loosens a deny or a prompt (see
|
|
65
|
+
kit deny, user deny, user prompt, kit prompt (the kit ships none since 0.22.8),
|
|
66
|
+
other user rules, and kit allow, so no allow loosens a deny or a prompt (see
|
|
68
67
|
`docks-kit docs command-guards`). After each merge, every sync (no
|
|
69
68
|
`--reconcile` needed) force-prunes the `ompRemovals.ts` retired-key inventory:
|
|
70
69
|
the retired kit `bash.patterns` rules in `OMP_RETIRED_BASH_RULES` (exact
|
|
71
|
-
`match` and `approval` pairs
|
|
70
|
+
`match` and `approval` pairs, including the 492 former kit prompt rules
|
|
71
|
+
retired in 0.22.8), config.yml keys whose deployed value still equals the value the kit used to
|
|
72
72
|
ship, `providers.webSearchOrder` at any value, and the retired
|
|
73
73
|
`anthropic.modelOverrides.claude-opus-5-5` block in models.yml while it still
|
|
74
74
|
matches the shipped block.
|
|
@@ -85,6 +85,37 @@ const OMP_RETIRED_MODEL_BLOCKS: ReadonlyArray<readonly [string, unknown]> = [
|
|
|
85
85
|
],
|
|
86
86
|
];
|
|
87
87
|
|
|
88
|
+
/** Each two-letter short-option cluster with a first letter from `first` and a second from `second`. */
|
|
89
|
+
function shortClusters(first: string, second: string): Array<string> {
|
|
90
|
+
return [...first].flatMap((a) => [...second].map((b) => `-${a}${b}`));
|
|
91
|
+
}
|
|
92
|
+
|
|
93
|
+
/** The rule pair that matches `option` as the first word after `command`, or after any later word. */
|
|
94
|
+
function optionRules(command: string, options: ReadonlyArray<string>): Array<string> {
|
|
95
|
+
return options.flatMap((option) => [`${command} ${option}*`, `${command} * ${option}*`]);
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
/**
|
|
99
|
+
* The 492 prompt rules the kit shipped through 0.22.7: history-destroying git,
|
|
100
|
+
* each `git push` spelling that could force, and each git command that skips
|
|
101
|
+
* the repository's hooks. The letter sets are the no-argument short options of
|
|
102
|
+
* `git push`, `git commit`, and `git am`; a cluster that starts with `-n` (or
|
|
103
|
+
* `-f` for `git push`) was covered by the single-option rule.
|
|
104
|
+
*/
|
|
105
|
+
const RETIRED_PROMPT_MATCHES: ReadonlyArray<string> = [
|
|
106
|
+
"git clean",
|
|
107
|
+
"git clean *",
|
|
108
|
+
"git reset *--hard*",
|
|
109
|
+
...optionRules("git push", ["-f", ...shortClusters("vqdnu46", "vqdnu46f"), "--f", "--mi", "+"]),
|
|
110
|
+
"*git * --no-v*",
|
|
111
|
+
...optionRules("*git commit", ["-n", ...shortClusters("qvseaipoz", "qvseaipnoz")]),
|
|
112
|
+
...optionRules("*git am", ["-n", ...shortClusters("i3qsukmcr", "in3qsukmcr")]),
|
|
113
|
+
"*git *core.hooksPath*",
|
|
114
|
+
"*git *core.hookspath*",
|
|
115
|
+
"*GIT_CONFIG_PARAMETERS*",
|
|
116
|
+
"*GIT_CONFIG_COUNT*",
|
|
117
|
+
];
|
|
118
|
+
|
|
88
119
|
/**
|
|
89
120
|
* `bash.patterns` rules the kit used to deploy, each with the exact match and
|
|
90
121
|
* approval it deployed. A deployed rule is pruned only while it equals one of
|
|
@@ -98,6 +129,9 @@ const OMP_RETIRED_MODEL_BLOCKS: ReadonlyArray<readonly [string, unknown]> = [
|
|
|
98
129
|
* The kit also prompted before a `git push` word that starts with `$` or a
|
|
99
130
|
* backtick. It now denies a `$` or a backtick anywhere after `git push`, so
|
|
100
131
|
* the old prompt copies would otherwise stay behind as user prompts.
|
|
132
|
+
*
|
|
133
|
+
* Since 0.22.8 the kit ships no prompt rule at all, because a subagent rejects
|
|
134
|
+
* every prompt; `RETIRED_PROMPT_MATCHES` lists the rest.
|
|
101
135
|
*/
|
|
102
136
|
const OMP_RETIRED_BASH_RULES: ReadonlyArray<{
|
|
103
137
|
readonly match: string;
|
|
@@ -146,6 +180,7 @@ const OMP_RETIRED_BASH_RULES: ReadonlyArray<{
|
|
|
146
180
|
{ match: "git push * $*", approval: "prompt" },
|
|
147
181
|
{ match: "git push `*", approval: "prompt" },
|
|
148
182
|
{ match: "git push * `*", approval: "prompt" },
|
|
183
|
+
...RETIRED_PROMPT_MATCHES.map((match) => ({ match, approval: "prompt" as const })),
|
|
149
184
|
];
|
|
150
185
|
|
|
151
186
|
/** Normalized rule key to the name a prune message reports. */
|
|
@@ -62,22 +62,18 @@ export function bashPatternKey(node: unknown): string | undefined {
|
|
|
62
62
|
|
|
63
63
|
/**
|
|
64
64
|
* omp evaluates `bash.patterns` in order, and the first matching rule wins. The
|
|
65
|
-
* merge groups the rules: kit deny, user deny, user prompt, kit
|
|
66
|
-
*
|
|
67
|
-
*
|
|
68
|
-
*
|
|
69
|
-
*
|
|
70
|
-
*
|
|
71
|
-
* tail allow loosens a deny or a prompt. A deployed rule equal to a kit rule is
|
|
72
|
-
* the kit copy, so a re-sync changes nothing. A rule the kit stops shipping
|
|
73
|
-
* stays as a user rule.
|
|
65
|
+
* merge groups the rules: kit deny, user deny, user prompt, kit prompt, the
|
|
66
|
+
* other user rules in their deployed order, then kit allow. A user deny or
|
|
67
|
+
* prompt therefore always precedes every kit allow, and no user or kit allow
|
|
68
|
+
* loosens a deny or a prompt. A deployed rule equal to a kit rule is the kit
|
|
69
|
+
* copy, so a re-sync changes nothing. A rule the kit stops shipping stays as a
|
|
70
|
+
* user rule.
|
|
74
71
|
*/
|
|
75
72
|
const mergeBashPatterns: MergeSequence = (path, sotSeq, deployedSeq) => {
|
|
76
73
|
if (path.length !== 2 || path[0] !== "bash" || path[1] !== "patterns") return;
|
|
77
74
|
const kitKeys = new Set(sotSeq.items.map(bashPatternKey));
|
|
78
|
-
const kit: Record<"deny" | "
|
|
75
|
+
const kit: Record<"deny" | "prompt" | "allow", Array<unknown>> = {
|
|
79
76
|
deny: [],
|
|
80
|
-
exception: [],
|
|
81
77
|
prompt: [],
|
|
82
78
|
allow: [],
|
|
83
79
|
};
|
|
@@ -88,9 +84,7 @@ const mergeBashPatterns: MergeSequence = (path, sotSeq, deployedSeq) => {
|
|
|
88
84
|
};
|
|
89
85
|
for (const item of sotSeq.items) {
|
|
90
86
|
const approval = bashPatternKey(item)?.split("\u0000")[0];
|
|
91
|
-
|
|
92
|
-
else if (kit.prompt.length === 0 && approval === "allow") kit.exception.push(item);
|
|
93
|
-
else kit.allow.push(item);
|
|
87
|
+
kit[approval === "deny" || approval === "prompt" ? approval : "allow"].push(item);
|
|
94
88
|
}
|
|
95
89
|
for (const item of deployedSeq.items) {
|
|
96
90
|
const key = bashPatternKey(item);
|
|
@@ -102,7 +96,6 @@ const mergeBashPatterns: MergeSequence = (path, sotSeq, deployedSeq) => {
|
|
|
102
96
|
...kit.deny,
|
|
103
97
|
...user.deny,
|
|
104
98
|
...user.prompt,
|
|
105
|
-
...kit.exception,
|
|
106
99
|
...kit.prompt,
|
|
107
100
|
...user.other,
|
|
108
101
|
...kit.allow,
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Generated by cli/scripts/generate-sot-payload.ts. DO NOT EDIT.
|
|
2
2
|
// Edit SoT/, notification.mp3, or package.json, then run: bun cli/scripts/generate-sot-payload.ts
|
|
3
3
|
|
|
4
|
-
export const GENERATED_PACKAGE_VERSION = "0.22.
|
|
4
|
+
export const GENERATED_PACKAGE_VERSION = "0.22.9"
|
|
5
5
|
|
|
6
6
|
export const GENERATED_PAYLOAD_TEXT = {
|
|
7
7
|
"SoT/.agents/skills.txt": "# Universal AI-agent skill manifest intentionally empty.\n# Global skill discovery is opt-in: add one slug per installed skill: <owner>/<repo>@<skill-name> (or a path to one skill directory).\n# EngineNative ignores comments and blank lines.\n",
|
|
@@ -18,7 +18,7 @@ export const GENERATED_PAYLOAD_TEXT = {
|
|
|
18
18
|
"SoT/.codex/plugins/marketplace.json": "{\n \"name\": \"docks\",\n \"interface\": {\n \"displayName\": \"DocksDocks\"\n },\n \"plugins\": [\n {\n \"name\": \"docks\",\n \"source\": {\n \"source\": \"git-subdir\",\n \"url\": \"https://github.com/DocksDocks/docks.git\",\n \"path\": \"./plugins/docks\",\n \"ref\": \"main\"\n },\n \"policy\": {\n \"installation\": \"AVAILABLE\",\n \"authentication\": \"ON_INSTALL\"\n },\n \"category\": \"Productivity\"\n },\n {\n \"name\": \"plan-lifecycle\",\n \"source\": {\n \"source\": \"git-subdir\",\n \"url\": \"https://github.com/DocksDocks/docks.git\",\n \"path\": \"./plugins/plan-lifecycle\",\n \"ref\": \"main\"\n },\n \"policy\": {\n \"installation\": \"AVAILABLE\",\n \"authentication\": \"ON_INSTALL\"\n },\n \"category\": \"Productivity\"\n }\n ]\n}\n",
|
|
19
19
|
"SoT/.codex/rules/docks.rules": "prefix_rule(pattern=[\"pwd\"], decision=\"allow\")\nprefix_rule(pattern=[\"ls\"], decision=\"allow\")\nprefix_rule(pattern=[\"cat\"], decision=\"allow\")\nprefix_rule(pattern=[\"head\"], decision=\"allow\")\nprefix_rule(pattern=[\"tail\"], decision=\"allow\")\nprefix_rule(pattern=[\"wc\"], decision=\"allow\")\nprefix_rule(pattern=[\"nl\"], decision=\"allow\")\nprefix_rule(pattern=[\"grep\"], decision=\"allow\")\nprefix_rule(pattern=[\"diff\"], decision=\"allow\")\nprefix_rule(pattern=[\"which\"], decision=\"allow\")\nprefix_rule(pattern=[\"date\"], decision=\"allow\")\nprefix_rule(pattern=[\"basename\"], decision=\"allow\")\nprefix_rule(pattern=[\"dirname\"], decision=\"allow\")\nprefix_rule(pattern=[\"realpath\"], decision=\"allow\")\nprefix_rule(pattern=[\"readlink\"], decision=\"allow\")\nprefix_rule(pattern=[\"jq\"], decision=\"allow\")\nprefix_rule(pattern=[\"cut\"], decision=\"allow\")\nprefix_rule(pattern=[\"tr\"], decision=\"allow\")\nprefix_rule(pattern=[\"echo\"], decision=\"allow\")\nprefix_rule(pattern=[\"printf\"], decision=\"allow\")\nprefix_rule(pattern=[\"printenv\"], decision=\"allow\")\nprefix_rule(pattern=[\"uname\"], decision=\"allow\")\nprefix_rule(pattern=[\"file\"], decision=\"allow\")\nprefix_rule(pattern=[\"stat\"], decision=\"allow\")\nprefix_rule(pattern=[\"du\"], decision=\"allow\")\nprefix_rule(pattern=[\"id\"], decision=\"allow\")\nprefix_rule(pattern=[\"whoami\"], decision=\"allow\")\n\nprefix_rule(pattern=[\"git\", \"status\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"blame\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"rev-parse\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"ls-files\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"ls-tree\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"branch\", \"--show-current\"], decision=\"allow\")\nprefix_rule(pattern=[\"git\", \"branch\", \"-vv\"], decision=\"allow\")\n\nprefix_rule(pattern=[\"gh\", \"pr\", \"view\"], decision=\"allow\")\nprefix_rule(pattern=[\"gh\", \"pr\", \"list\"], decision=\"allow\")\nprefix_rule(pattern=[\"gh\", \"pr\", \"diff\"], decision=\"allow\")\nprefix_rule(pattern=[\"gh\", \"pr\", \"status\"], decision=\"allow\")\nprefix_rule(pattern=[\"gh\", \"pr\", \"checks\"], decision=\"allow\")\n\nprefix_rule(pattern=[\"docker\", \"ps\"], decision=\"allow\")\n\nprefix_rule(pattern=[\"git\", \"push\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"reset\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"clean\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"merge\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"rebase\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"checkout\"], decision=\"prompt\")\nprefix_rule(pattern=[\"git\", \"mv\"], decision=\"prompt\")\n\nprefix_rule(pattern=[\"rm\"], decision=\"prompt\")\nprefix_rule(pattern=[\"mv\"], decision=\"prompt\")\nprefix_rule(pattern=[\"chmod\"], decision=\"prompt\")\nprefix_rule(pattern=[\"chown\"], decision=\"prompt\")\nprefix_rule(pattern=[\"kill\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pkill\"], decision=\"prompt\")\n\nprefix_rule(pattern=[\"npm\", \"install\"], decision=\"prompt\")\nprefix_rule(pattern=[\"npm\", \"uninstall\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pnpm\", \"add\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pnpm\", \"remove\"], decision=\"prompt\")\nprefix_rule(pattern=[\"yarn\", \"add\"], decision=\"prompt\")\nprefix_rule(pattern=[\"yarn\", \"remove\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pip\", \"install\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pip\", \"uninstall\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pip3\", \"install\"], decision=\"prompt\")\nprefix_rule(pattern=[\"pip3\", \"uninstall\"], decision=\"prompt\")\n\nprefix_rule(pattern=[\"docker\", \"run\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"rm\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"stop\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"volume\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"system\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"compose\", \"up\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"compose\", \"down\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"compose\", \"rm\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker\", \"compose\", \"stop\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker-compose\", \"up\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker-compose\", \"down\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker-compose\", \"rm\"], decision=\"prompt\")\nprefix_rule(pattern=[\"docker-compose\", \"stop\"], decision=\"prompt\")\n\n# `tail -f`/`--follow` never returns and hangs the agent (bare `tail` stays allowed above).\nprefix_rule(pattern=[\"tail\", \"-f\"], decision=\"prompt\")\nprefix_rule(pattern=[\"tail\", \"--follow\"], decision=\"prompt\")\n# These commands are prompt or absent, NOT allow, because argv-prefix matching\n# cannot gate a later write or exec flag, and allow runs outside the sandbox:\n# rg --pre=CMD; sed -n 'e CMD' or -ni; sort -o FILE or --compress-program=CMD;\n# the uniq OUTPUT operand; tree -o FILE; git diff/log/show --output=FILE;\n# git grep --open-files-in-pager=CMD or -O; git mv into .git/hooks.\n# Without a rule, sort, uniq, tree, git diff/log/show, and git grep run in the\n# sandbox with no prompt.\nprefix_rule(pattern=[\"rg\"], decision=\"prompt\")\nprefix_rule(pattern=[\"sed\", \"-n\"], decision=\"prompt\")\nprefix_rule(pattern=[\"find\"], decision=\"prompt\")\nprefix_rule(pattern=[\"sed\", \"-i\"], decision=\"prompt\")\nprefix_rule(pattern=[\"sed\", \"--in-place\"], decision=\"prompt\")\nprefix_rule(pattern=[\"awk\"], decision=\"prompt\")\nprefix_rule(pattern=[\"xargs\"], decision=\"prompt\")\nprefix_rule(pattern=[\"tee\"], decision=\"prompt\")\nprefix_rule(pattern=[\"curl\"], decision=\"prompt\")\nprefix_rule(pattern=[\"env\"], decision=\"prompt\")\n\nprefix_rule(pattern=[\"sudo\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"eval\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"mkfs\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"dd\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"git\", \"push\", \"--force\", \"origin\", \"main\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"git\", \"push\", \"--force\", \"origin\", \"master\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"git\", \"push\", \"-f\", \"origin\", \"main\"], decision=\"forbidden\")\nprefix_rule(pattern=[\"git\", \"push\", \"-f\", \"origin\", \"master\"], decision=\"forbidden\")\n\n# Destructive-command guards. Codex applies the strictest matching rule\n# (forbidden > prompt > allow), so an allow rule in another .rules file cannot\n# loosen them, and a narrow allow cannot carve an exception out of a prompt.\n# The rm, find, git push, git reset, and git clean prompt rules above already\n# make every recursive or bulk deletion and every history-destroying git\n# command prompt. Codex prefix rules cannot see an option after an operand,\n# so every rm prompts, a single-file rm too. A prompt goes to the approvals\n# reviewer in config.toml (auto_review), not always to a person.\n#\n# rm of the filesystem root as Codex runs it: argv tokens, or a plain script\n# that Codex splits into argv tokens.\nprefix_rule(pattern=[\"rm\", \"/\"], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[\"rm\", [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], \"/\"], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[\"rm\", [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], \"/\"], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[\"rm\", [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], [\"-r\", \"-R\", \"-f\", \"-rf\", \"-fr\", \"-Rf\", \"-fR\", \"-rfv\", \"-vrf\", \"-v\", \"--recursive\", \"--force\", \"--no-preserve-root\", \"--\"], \"/\"], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\n# Codex does not split a script that holds ~, $HOME, a glob, or a substitution.\n# It matches the whole [shell, -c, script] invocation, so these rules forbid\n# only the exact scripts listed.\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm ~\", \"rm -r ~\", \"rm -R ~\", \"rm -f ~\", \"rm -rf ~\", \"rm -fr ~\", \"rm -Rf ~\", \"rm -fR ~\", \"rm -r -f ~\", \"rm -f -r ~\", \"rm --recursive ~\", \"rm --recursive --force ~\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm ~/\", \"rm -r ~/\", \"rm -R ~/\", \"rm -f ~/\", \"rm -rf ~/\", \"rm -fr ~/\", \"rm -Rf ~/\", \"rm -fR ~/\", \"rm -r -f ~/\", \"rm -f -r ~/\", \"rm --recursive ~/\", \"rm --recursive --force ~/\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm $HOME\", \"rm -r $HOME\", \"rm -R $HOME\", \"rm -f $HOME\", \"rm -rf $HOME\", \"rm -fr $HOME\", \"rm -Rf $HOME\", \"rm -fR $HOME\", \"rm -r -f $HOME\", \"rm -f -r $HOME\", \"rm --recursive $HOME\", \"rm --recursive --force $HOME\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm $HOME/\", \"rm -r $HOME/\", \"rm -R $HOME/\", \"rm -f $HOME/\", \"rm -rf $HOME/\", \"rm -fr $HOME/\", \"rm -Rf $HOME/\", \"rm -fR $HOME/\", \"rm -r -f $HOME/\", \"rm -f -r $HOME/\", \"rm --recursive $HOME/\", \"rm --recursive --force $HOME/\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"$HOME\\\"\", \"rm -r \\\"$HOME\\\"\", \"rm -R \\\"$HOME\\\"\", \"rm -f \\\"$HOME\\\"\", \"rm -rf \\\"$HOME\\\"\", \"rm -fr \\\"$HOME\\\"\", \"rm -Rf \\\"$HOME\\\"\", \"rm -fR \\\"$HOME\\\"\", \"rm -r -f \\\"$HOME\\\"\", \"rm -f -r \\\"$HOME\\\"\", \"rm --recursive \\\"$HOME\\\"\", \"rm --recursive --force \\\"$HOME\\\"\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"$HOME/\\\"\", \"rm -r \\\"$HOME/\\\"\", \"rm -R \\\"$HOME/\\\"\", \"rm -f \\\"$HOME/\\\"\", \"rm -rf \\\"$HOME/\\\"\", \"rm -fr \\\"$HOME/\\\"\", \"rm -Rf \\\"$HOME/\\\"\", \"rm -fR \\\"$HOME/\\\"\", \"rm -r -f \\\"$HOME/\\\"\", \"rm -f -r \\\"$HOME/\\\"\", \"rm --recursive \\\"$HOME/\\\"\", \"rm --recursive --force \\\"$HOME/\\\"\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"$HOME\\\"/\", \"rm -r \\\"$HOME\\\"/\", \"rm -R \\\"$HOME\\\"/\", \"rm -f \\\"$HOME\\\"/\", \"rm -rf \\\"$HOME\\\"/\", \"rm -fr \\\"$HOME\\\"/\", \"rm -Rf \\\"$HOME\\\"/\", \"rm -fR \\\"$HOME\\\"/\", \"rm -r -f \\\"$HOME\\\"/\", \"rm -f -r \\\"$HOME\\\"/\", \"rm --recursive \\\"$HOME\\\"/\", \"rm --recursive --force \\\"$HOME\\\"/\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm ${HOME}\", \"rm -r ${HOME}\", \"rm -R ${HOME}\", \"rm -f ${HOME}\", \"rm -rf ${HOME}\", \"rm -fr ${HOME}\", \"rm -Rf ${HOME}\", \"rm -fR ${HOME}\", \"rm -r -f ${HOME}\", \"rm -f -r ${HOME}\", \"rm --recursive ${HOME}\", \"rm --recursive --force ${HOME}\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm ${HOME}/\", \"rm -r ${HOME}/\", \"rm -R ${HOME}/\", \"rm -f ${HOME}/\", \"rm -rf ${HOME}/\", \"rm -fr ${HOME}/\", \"rm -Rf ${HOME}/\", \"rm -fR ${HOME}/\", \"rm -r -f ${HOME}/\", \"rm -f -r ${HOME}/\", \"rm --recursive ${HOME}/\", \"rm --recursive --force ${HOME}/\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"${HOME}\\\"\", \"rm -r \\\"${HOME}\\\"\", \"rm -R \\\"${HOME}\\\"\", \"rm -f \\\"${HOME}\\\"\", \"rm -rf \\\"${HOME}\\\"\", \"rm -fr \\\"${HOME}\\\"\", \"rm -Rf \\\"${HOME}\\\"\", \"rm -fR \\\"${HOME}\\\"\", \"rm -r -f \\\"${HOME}\\\"\", \"rm -f -r \\\"${HOME}\\\"\", \"rm --recursive \\\"${HOME}\\\"\", \"rm --recursive --force \\\"${HOME}\\\"\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"${HOME}/\\\"\", \"rm -r \\\"${HOME}/\\\"\", \"rm -R \\\"${HOME}/\\\"\", \"rm -f \\\"${HOME}/\\\"\", \"rm -rf \\\"${HOME}/\\\"\", \"rm -fr \\\"${HOME}/\\\"\", \"rm -Rf \\\"${HOME}/\\\"\", \"rm -fR \\\"${HOME}/\\\"\", \"rm -r -f \\\"${HOME}/\\\"\", \"rm -f -r \\\"${HOME}/\\\"\", \"rm --recursive \\\"${HOME}/\\\"\", \"rm --recursive --force \\\"${HOME}/\\\"\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm \\\"${HOME}\\\"/\", \"rm -r \\\"${HOME}\\\"/\", \"rm -R \\\"${HOME}\\\"/\", \"rm -f \\\"${HOME}\\\"/\", \"rm -rf \\\"${HOME}\\\"/\", \"rm -fr \\\"${HOME}\\\"/\", \"rm -Rf \\\"${HOME}\\\"/\", \"rm -fR \\\"${HOME}\\\"/\", \"rm -r -f \\\"${HOME}\\\"/\", \"rm -f -r \\\"${HOME}\\\"/\", \"rm --recursive \\\"${HOME}\\\"/\", \"rm --recursive --force \\\"${HOME}\\\"/\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"rm /*\", \"rm -r /*\", \"rm -R /*\", \"rm -f /*\", \"rm -rf /*\", \"rm -fr /*\", \"rm -Rf /*\", \"rm -fR /*\", \"rm -r -f /*\", \"rm -f -r /*\", \"rm --recursive /*\", \"rm --recursive --force /*\"]], decision=\"forbidden\", justification=\"Never remove the home directory or the filesystem root. Move a path to the trash with gio trash -- <path> (Linux) or trash <path> (macOS 15+).\")\nprefix_rule(pattern=[[\"bash\", \"sh\", \"zsh\"], [\"-c\", \"-lc\"], [\"export HOME=$(mktemp -d)\", \"export HOME=\\\"$(mktemp -d)\\\"\", \"HOME=$(mktemp -d)\", \"HOME=\\\"$(mktemp -d)\\\"\"]], decision=\"forbidden\", justification=\"Never reassign HOME. Each command runs in a new shell, so use literal absolute paths.\")\n\n# Forced git removal discards uncommitted changes, and the prefix cannot see a\n# later --force, so both commands ask in every form.\nprefix_rule(pattern=[\"git\", \"rm\"], decision=\"prompt\", justification=\"git rm --force and git worktree remove --force discard uncommitted changes. A prefix rule cannot see a later --force, so every git rm and git worktree remove asks.\")\nprefix_rule(pattern=[\"git\", \"worktree\", \"remove\"], decision=\"prompt\", justification=\"git rm --force and git worktree remove --force discard uncommitted changes. A prefix rule cannot see a later --force, so every git rm and git worktree remove asks.\")\n\n# gio trash can empty the trash or overwrite a restored path, and the prefix\n# cannot tell those forms from gio trash -- <path>, so every gio trash asks.\n# The macOS trash command has no such option.\nprefix_rule(pattern=[\"gio\", \"trash\"], decision=\"prompt\", justification=\"gio trash -f --empty, -ff --empty, and --restore --force delete or overwrite data, and a prefix rule cannot tell them from gio trash -- <path>, so every gio trash asks.\")\nprefix_rule(pattern=[\"trash\"], decision=\"allow\")\n",
|
|
20
20
|
"SoT/.omp/AGENTS.md": "# Global OMP guidance\n\n- Verify unfamiliar or version-sensitive APIs and configuration against current official documentation before implementation.\n- When the user asks for an assessment rather than a change, report findings without editing.\n- For Docks plan reviews, cross-company review is standing-authorized; host security policy still applies.\n- Please remove all mannered prose.\n\n## Asking me things\n\nIf you need an answer from me, it MUST go through `ask`; do not ask in prose.\n\nMUST use `ask` before:\n- Anything irreversible or destructive: deleting/overwriting files or data you did not create,\n force-push, history rewrite, dropping tables, running migrations, mass rename, touching\n secrets/credentials, or publishing outward (release, upstream PR, issue, comment).\n- Two or more viable approaches whose tradeoffs are mine to own: schema/API/protocol shape,\n adding a dependency, or establishing a convention this repo does not already have.\n- A fact only I hold: intended semantics of an ambiguous requirement, which of several\n conflicting existing patterns is canonical, or which environment/account/target to use.\n- A request that contradicts the repo: surface the conflict and let me resolve it; never\n silently pick one side.\n\nWhen I invoke the `yolo` skill, that invocation answers every ask this section requires,\nuntil the run asks its merge question. It does not cover destructive work, secrets, or\nproduction systems.\n\nIf `ask` is not registered — subagent, headless, or `-p` print runs, where `hasUI` is false —\nthe MUST above cannot be satisfied: do not fabricate the call and do not stall on it. Take the\nconservative reversible option and put the question, plus the assumption you made, in your\nfinal report so whoever spawned you can decide.\n\nNEVER use `ask` for:\n- Permission to begin, or to confirm scope already stated in the request.\n- Anything a tool, grep, or doc can answer — go read it.\n- A cheap reversible choice — take the conservative option and say which you took.\n- Something already answered earlier in the conversation.\n\nBatch every open question into one `ask` call with multiple questions; do not serialize\nround trips. Being overruled ends the discussion — execute my call without relitigating.\n\n## Removing files\n\nTo remove, use the trash or a command that checks the path.\n\n- To remove a temporary file or directory, use the `scratch_remove` tool or run `docks-kit scratch remove <path>`. Both remove only a path inside the scratch root, the system temporary directory, or `/var/tmp`. `gio trash` does not work on a `tmpfs` `/tmp`.\n- To remove any other file or directory, run `gio trash -- <path>` on Linux or `trash <path>` on macOS.\n- To remove a path from the git index, run `git rm -- <path>`.\n- To remove a worktree, run `git worktree remove -- <path>`.\n- If git refuses because the worktree has changes, make sure that each of its commits is on the remote. Then make sure that `git status --porcelain` lists only generated files. Then run `git worktree remove --force -- <path>`.\n- Never pass `--force` two times to `git worktree remove`.\n- Write the `--` exactly as shown.\n- Do not use `rm`. omp denies a recursive `rm`, `find -delete`, `find -exec rm`, and `xargs rm`.\n- Do not delete files through `eval`, Python, or Node code.\n- A subagent cannot get my approval, so omp rejects every ask in a subagent.\n- Do not delete in bulk yourself (`git clean`, `git reset --hard`). In the main session, ask me first.\n- If a deletion needs `rm -r` or a bulk command, put the paths in your report. I run that deletion myself.\n- Do not use `--force`, `-f`, or an abbreviation of it with `git rm` or `git push`.\n- Write each ref of a `git push` command as literal text. Run `git push` as its own command. omp denies a command that holds a `$` or a backtick after `git push`.\n- To push the current branch, run `git push -u origin HEAD`. To delete several remote branches, list them in one command: `git push origin --delete <branch-a> <branch-b>`.\n- Write literal absolute paths. Do not use `~` or `$HOME` in a command.\n- Do not set or export `HOME`.\n\n## Repository hooks\n\n- Do not skip or turn off a repository hook. Do not use `--no-verify`, `git commit -n`, `git am -n`, or a `core.hooksPath` change.\n- When a hook fails on a problem that your change did not cause, report the failure. In the main session, ask me before you continue.\n\n## Cleaning up what you create\n\n- Follow the `workspace-hygiene` skill for each resource that you create: worktrees, temporary files and directories, processes, containers, clusters, tunnels, scheduled jobs, global installs, and remote test resources.\n- Create a temporary directory with the `scratch_new` tool or `docks-kit scratch new <label>`. Put each temporary file in that directory. Do not put a temporary file, a temporary directory, a package store, a cache, or a clone in `/tmp`.\n- Create a worktree only at `<data>/agent-worktrees/<repository>/<name>`. `<data>` is `$XDG_DATA_HOME`, or `.local/share` in the home directory when that variable is not set. Write the literal absolute path.\n- Run a test suite in single-run mode. Start a server, a watcher, a tunnel, or a database only as a named bash service or an async job. Do not detach a process with `nohup`, `setsid`, `disown`, `tmux`, or `screen`.\n- Do not install a package globally, add a scheduled job, or enable a service unless I ask for it.\n- Do not remove a Docker volume, image, or build cache that you did not create, and do not run `docker system prune`.\n- Before your final answer, remove each resource that you created and that the task no longer needs. Keep a resource only when I ask for it or a later step needs it, and name it in your final answer.\n- A scratch directory is deleted after 7 idle days. Put evidence that you cite in the issue, the pull request, or the repository.\n- Resources on this workstation are always development. A remote resource is one that you reach through SSH or a provider CLI, such as `wrangler`, `vercel`, `netlify`, `fly`, `supabase`, `kubectl`, or a remote Docker host.\n- Clean up a remote resource only when its target is named local, development, dev, test, homolog, homologation, staging, or preview. Every other target is production. For example, `wrangler delete` without `--env` acts on the top-level Worker, which is usually production.\n- Never stop, remove, undeploy, or delete a production resource without an `ask` immediately before it. A production cleanup must be rare. A `yolo` invocation does not answer this ask. In a subagent, do not do it; name the resource in your report.\n\n## Output Standard\n\nApply Simplified Technical English to all agent text. This includes responses, messages,\ndocumentation, comments, and interface text.\n\nReply in the language I use, and apply every rule below to that language.\n\nA rule that names English grammar applies only to English. The contraction ban is one\nsuch rule. In another language, follow the normal grammar of that language. Portuguese,\nSpanish, French, Italian, and German merge a preposition with an article, and that merge\nis required, not optional.\n\nTreat the word limits as approximate outside English.\n\n- Use the simplest precise technical term.\n- Use each term consistently.\n- Expand an abbreviation at its first occurrence.\n- Explain a technical term when I ask for an explanation.\n- Write complete and grammatically correct sentences.\n- Use active voice and identify the actor.\n- Use the imperative form for instructions.\n- Put only one action in each instruction sentence.\n- Put a necessary condition before its instruction.\n- Use simple verb tenses.\n- Do not use contractions, idioms, or slang. Avoid humor and rhetorical questions.\n- Keep procedural sentences to 20 words or fewer.\n- Keep descriptive sentences to 25 words or fewer.\n- Keep each paragraph to one topic and six sentences or fewer.\n- Do not use more than three nouns together.\n- Use vertical lists for complex information.\n- Put a warning or caution before a related hazardous instruction.\n\n### Naming\n\n- Say what the thing does before you name it. Put the technical term after the plain\n description, once, in parentheses.\n- Do not use a technical term as the only name for something you just introduced.\n- Prefer the short common word. Use \"use\", not \"utilize\". Use \"set up\", not \"provision\".\n- Do not explain by metaphor alone. A metaphor may follow a literal statement.\n",
|
|
21
|
-
"SoT/.omp/config.yml": "statusLine:\n compactThinkingLevel: false\n\ndefaultThinkingLevel: high\n\ncycleOrder:\n - smol\n - default\n - slow\n - fable\n - astra\n\ntier:\n anthropic: none\n\nadvisor:\n enabled: true\n syncBacklog: \"1\"\n\ngithub:\n enabled: true\n\nfind:\n enabled: true\n\nbrowser:\n idleCloseSec: 600\n\ntask:\n eager: always\n showResolvedModelBadge: true\n softRequestBudget: 200\n softRequestBudgetNotice: true\n batch: true\n enableLsp: true\n enableEffort: true\n maxEffort: xhigh\n maxConcurrency: 16\n maxRecursionDepth: 2\n maxRuntimeMs: 3600000\n agentIdleTtlMs: 120000\n agentModelOverrides:\n reviewer: \"@reviewer\"\n security-reviewer: \"@reviewer\"\n code-reviewer: \"@reviewer\"\n plan-reviewer: \"@reviewer\"\n\nmodelRoles:\n smol: openai-codex/gpt-6-luna:medium\n advisor: anthropic/claude-opus-5-5:medium\n designer: anthropic/claude-opus-5-5:high\n plan: anthropic/claude-opus-5-5:xhigh\n commit: openai-codex/gpt-6-luna:medium\n task: anthropic/claude-opus-5-5:high\n vision: anthropic/claude-opus-5-5:medium\n tiny: openai-codex/gpt-6-luna:low\n default: anthropic/claude-opus-5-5:high\n slow: anthropic/claude-opus-5-5:xhigh\n fable: anthropic/claude-fable-5-1:medium\n switch_fable: anthropic/claude-fable-5-1:medium\n astra: openai-codex/gpt-6-astra:xhigh\n reviewer: openai-codex/gpt-6.1-sol:xhigh\n web: web/firecrawl\n\nmodelTags:\n fable:\n name: Fable 5.1\n switch_fable:\n name: Fable switch default\n hidden: true\n astra:\n name: GPT-6 Astra\n reviewer:\n name: Reviewer\n hidden: true\n\ndisplay:\n showTokenUsage: true\n\nproviders:\n anthropic:\n serverSideFallback: false\n fetch: auto\n webSearchTimeoutSeconds: 30\n\nretry:\n fallbackChains:\n default:\n - openai-codex/gpt-6.1-sol:high\n advisor: []\n task:\n - openai-codex/gpt-6.1-sol:high\n vision:\n - openai-codex/gpt-6.1-sol:medium\n smol:\n - anthropic/claude-opus-5-5:low\n tiny:\n - anthropic/claude-opus-5-5:low\n commit:\n - anthropic/claude-opus-5-5:medium\n switch_fable: []\n fable:\n - openai-codex/gpt-6-astra:xhigh\n astra:\n - anthropic/claude-fable-5-1:medium\n reviewer:\n - anthropic/claude-opus-5-5:xhigh\n web:\n - web/exa\n - web/perplexity\n - openai-codex/gpt-6-luna\n - web/parallel\n - web/zai\n - web/tinyfish\n - web/jina\n - web/kagi\n - web/tavily\n - web/brave\n - web/kimi\n - web/synthetic\n - web/ollama\n - web/searxng\n - web/startpage\n - web/duckduckgo\n - web/ecosia\n - web/google\n - web/mojeek\n - web/public\n\nincludeWorkspaceTree: false\n\nbranchSummary:\n enabled: true\n\ncommands:\n enableOpencodeProject: false\n enableOpencodeUser: false\n\nskills:\n enableClaudeUser: false\n enableCodexUser: false\n enableAgentsUser: true\n\nsteeringMode: all\n\ndev:\n autoqa: false\n autoqaConsent: denied\n\ncompaction:\n thresholdTokens: -1\n idleEnabled: true\n handoffSaveToDisk: true\n\ndoubleEscapeAction: tree\ntextVerbosity: low\n\nfeatures:\n unexpectedStopDetection: smart\n\ncodexResets:\n autoRedeem: \"no\"\n\nstartup:\n quiet: true\n\ntools:\n approvalMode: yolo\n\nbash:\n # First match wins. omp checks deny and prompt rules against the whole line\n # and each quote-stripped segment, so `rm -rf \"$HOME\"` matches `rm * $HOME`.\n # `*` matches any text, spaces and slashes included; no escape spells a\n # literal `*`.\n # No rule matches a plain rm, git rm, git worktree remove, gio trash, or\n # docks-kit scratch remove, so yolo runs it.\n # omp's critical-command check turns a prompt into an allow under yolo, so\n # every rm shape it can flag is denied.\n patterns:\n # Deny: rm of the home directory or the filesystem root, sudo before rm,\n # rm with an r or f option before an absolute path, recursive rm (bare, by\n # path, or after any word such as env, xargs, find -exec, or git), bulk\n # removal through find -delete, find -exec rm, and xargs rm, HOME\n # reassignment, a force push to main or master, and a $ or a backtick\n # after git push.\n - { match: \"rm /\", approval: deny }\n - { match: \"rm / *\", approval: deny }\n - { match: \"rm * /\", approval: deny }\n - { match: \"rm * / *\", approval: deny }\n - { match: \"rm ~\", approval: deny }\n - { match: \"rm ~ *\", approval: deny }\n - { match: \"rm * ~\", approval: deny }\n - { match: \"rm * ~ *\", approval: deny }\n - { match: \"rm ~/\", approval: deny }\n - { match: \"rm ~/ *\", approval: deny }\n - { match: \"rm * ~/\", approval: deny }\n - { match: \"rm * ~/ *\", approval: deny }\n - { match: \"rm $HOME\", approval: deny }\n - { match: \"rm $HOME *\", approval: deny }\n - { match: \"rm * $HOME\", approval: deny }\n - { match: \"rm * $HOME *\", approval: deny }\n - { match: \"rm $HOME/\", approval: deny }\n - { match: \"rm $HOME/ *\", approval: deny }\n - { match: \"rm * $HOME/\", approval: deny }\n - { match: \"rm * $HOME/ *\", approval: deny }\n - { match: \"rm ${HOME}\", approval: deny }\n - { match: \"rm ${HOME} *\", approval: deny }\n - { match: \"rm * ${HOME}\", approval: deny }\n - { match: \"rm * ${HOME} *\", approval: deny }\n - { match: \"rm ${HOME}/\", approval: deny }\n - { match: \"rm ${HOME}/ *\", approval: deny }\n - { match: \"rm * ${HOME}/\", approval: deny }\n - { match: \"rm * ${HOME}/ *\", approval: deny }\n - { match: \"* rm /\", approval: deny }\n - { match: \"* rm / *\", approval: deny }\n - { match: \"* rm * /\", approval: deny }\n - { match: \"* rm * / *\", approval: deny }\n - { match: \"* rm ~\", approval: deny }\n - { match: \"* rm ~ *\", approval: deny }\n - { match: \"* rm * ~\", approval: deny }\n - { match: \"* rm * ~ *\", approval: deny }\n - { match: \"* rm ~/\", approval: deny }\n - { match: \"* rm ~/ *\", approval: deny }\n - { match: \"* rm * ~/\", approval: deny }\n - { match: \"* rm * ~/ *\", approval: deny }\n - { match: \"* rm $HOME\", approval: deny }\n - { match: \"* rm $HOME *\", approval: deny }\n - { match: \"* rm * $HOME\", approval: deny }\n - { match: \"* rm * $HOME *\", approval: deny }\n - { match: \"* rm $HOME/\", approval: deny }\n - { match: \"* rm $HOME/ *\", approval: deny }\n - { match: \"* rm * $HOME/\", approval: deny }\n - { match: \"* rm * $HOME/ *\", approval: deny }\n - { match: \"* rm ${HOME}\", approval: deny }\n - { match: \"* rm ${HOME} *\", approval: deny }\n - { match: \"* rm * ${HOME}\", approval: deny }\n - { match: \"* rm * ${HOME} *\", approval: deny }\n - { match: \"* rm ${HOME}/\", approval: deny }\n - { match: \"* rm ${HOME}/ *\", approval: deny }\n - { match: \"* rm * ${HOME}/\", approval: deny }\n - { match: \"* rm * ${HOME}/ *\", approval: deny }\n - { match: \"*/rm /\", approval: deny }\n - { match: \"*/rm / *\", approval: deny }\n - { match: \"*/rm * /\", approval: deny }\n - { match: \"*/rm * / *\", approval: deny }\n - { match: \"*/rm ~\", approval: deny }\n - { match: \"*/rm ~ *\", approval: deny }\n - { match: \"*/rm * ~\", approval: deny }\n - { match: \"*/rm * ~ *\", approval: deny }\n - { match: \"*/rm ~/\", approval: deny }\n - { match: \"*/rm ~/ *\", approval: deny }\n - { match: \"*/rm * ~/\", approval: deny }\n - { match: \"*/rm * ~/ *\", approval: deny }\n - { match: \"*/rm $HOME\", approval: deny }\n - { match: \"*/rm $HOME *\", approval: deny }\n - { match: \"*/rm * $HOME\", approval: deny }\n - { match: \"*/rm * $HOME *\", approval: deny }\n - { match: \"*/rm $HOME/\", approval: deny }\n - { match: \"*/rm $HOME/ *\", approval: deny }\n - { match: \"*/rm * $HOME/\", approval: deny }\n - { match: \"*/rm * $HOME/ *\", approval: deny }\n - { match: \"*/rm ${HOME}\", approval: deny }\n - { match: \"*/rm ${HOME} *\", approval: deny }\n - { match: \"*/rm * ${HOME}\", approval: deny }\n - { match: \"*/rm * ${HOME} *\", approval: deny }\n - { match: \"*/rm ${HOME}/\", approval: deny }\n - { match: \"*/rm ${HOME}/ *\", approval: deny }\n - { match: \"*/rm * ${HOME}/\", approval: deny }\n - { match: \"*/rm * ${HOME}/ *\", approval: deny }\n - { match: \"sudo rm\", approval: deny }\n - { match: \"sudo rm *\", approval: deny }\n - { match: \"sudo * rm\", approval: deny }\n - { match: \"sudo * rm *\", approval: deny }\n - { match: \"sudo */rm\", approval: deny }\n - { match: \"sudo */rm *\", approval: deny }\n - { match: \"* sudo rm\", approval: deny }\n - { match: \"* sudo rm *\", approval: deny }\n - { match: \"* sudo * rm\", approval: deny }\n - { match: \"* sudo * rm *\", approval: deny }\n - { match: \"* sudo */rm\", approval: deny }\n - { match: \"* sudo */rm *\", approval: deny }\n - { match: \"*/sudo rm\", approval: deny }\n - { match: \"*/sudo rm *\", approval: deny }\n - { match: \"*/sudo * rm\", approval: deny }\n - { match: \"*/sudo * rm *\", approval: deny }\n - { match: \"*/sudo */rm\", approval: deny }\n - { match: \"*/sudo */rm *\", approval: deny }\n - { match: \"rm *-*r* /*\", approval: deny }\n - { match: \"rm *-*R* /*\", approval: deny }\n - { match: \"rm *-*f* /*\", approval: deny }\n - { match: \"rm *-*F* /*\", approval: deny }\n - { match: \"rm *--no-preserve-root*\", approval: deny }\n - { match: \"* rm *-*r* /*\", approval: deny }\n - { match: \"* rm *-*R* /*\", approval: deny }\n - { match: \"* rm *-*f* /*\", approval: deny }\n - { match: \"* rm *-*F* /*\", approval: deny }\n - { match: \"* rm *--no-preserve-root*\", approval: deny }\n - { match: \"*/rm *-*r* /*\", approval: deny }\n - { match: \"*/rm *-*R* /*\", approval: deny }\n - { match: \"*/rm *-*f* /*\", approval: deny }\n - { match: \"*/rm *-*F* /*\", approval: deny }\n - { match: \"*/rm *--no-preserve-root*\", approval: deny }\n - { match: \"rm *-r *\", approval: deny }\n - { match: \"rm *-r\", approval: deny }\n - { match: \"rm *-rf *\", approval: deny }\n - { match: \"rm *-rf\", approval: deny }\n - { match: \"rm *-fr *\", approval: deny }\n - { match: \"rm *-fr\", approval: deny }\n - { match: \"rm *-rv *\", approval: deny }\n - { match: \"rm *-rv\", approval: deny }\n - { match: \"rm *-vr *\", approval: deny }\n - { match: \"rm *-vr\", approval: deny }\n - { match: \"rm *-rfv *\", approval: deny }\n - { match: \"rm *-rfv\", approval: deny }\n - { match: \"rm *-rvf *\", approval: deny }\n - { match: \"rm *-rvf\", approval: deny }\n - { match: \"rm *-frv *\", approval: deny }\n - { match: \"rm *-frv\", approval: deny }\n - { match: \"rm *-fvr *\", approval: deny }\n - { match: \"rm *-fvr\", approval: deny }\n - { match: \"rm *-vrf *\", approval: deny }\n - { match: \"rm *-vrf\", approval: deny }\n - { match: \"rm *-vfr *\", approval: deny }\n - { match: \"rm *-vfr\", approval: deny }\n - { match: \"rm *-ri *\", approval: deny }\n - { match: \"rm *-ri\", approval: deny }\n - { match: \"rm *-ir *\", approval: deny }\n - { match: \"rm *-ir\", approval: deny }\n - { match: \"rm *-Ri *\", approval: deny }\n - { match: \"rm *-Ri\", approval: deny }\n - { match: \"rm *-iR *\", approval: deny }\n - { match: \"rm *-iR\", approval: deny }\n - { match: \"rm *-R *\", approval: deny }\n - { match: \"rm *-R\", approval: deny }\n - { match: \"rm *-Rf *\", approval: deny }\n - { match: \"rm *-Rf\", approval: deny }\n - { match: \"rm *-fR *\", approval: deny }\n - { match: \"rm *-fR\", approval: deny }\n - { match: \"rm *-Rv *\", approval: deny }\n - { match: \"rm *-Rv\", approval: deny }\n - { match: \"rm *-vR *\", approval: deny }\n - { match: \"rm *-vR\", approval: deny }\n - { match: \"rm *-Rfv *\", approval: deny }\n - { match: \"rm *-Rfv\", approval: deny }\n - { match: \"rm *-Rvf *\", approval: deny }\n - { match: \"rm *-Rvf\", approval: deny }\n - { match: \"rm *-fRv *\", approval: deny }\n - { match: \"rm *-fRv\", approval: deny }\n - { match: \"rm *-fvR *\", approval: deny }\n - { match: \"rm *-fvR\", approval: deny }\n - { match: \"rm *-vRf *\", approval: deny }\n - { match: \"rm *-vRf\", approval: deny }\n - { match: \"rm *-vfR *\", approval: deny }\n - { match: \"rm *-vfR\", approval: deny }\n - { match: \"rm *--recursive *\", approval: deny }\n - { match: \"rm *--recursive\", approval: deny }\n - { match: \"*/rm *-r *\", approval: deny }\n - { match: \"*/rm *-r\", approval: deny }\n - { match: \"*/rm *-rf *\", approval: deny }\n - { match: \"*/rm *-rf\", approval: deny }\n - { match: \"*/rm *-fr *\", approval: deny }\n - { match: \"*/rm *-fr\", approval: deny }\n - { match: \"*/rm *-rv *\", approval: deny }\n - { match: \"*/rm *-rv\", approval: deny }\n - { match: \"*/rm *-vr *\", approval: deny }\n - { match: \"*/rm *-vr\", approval: deny }\n - { match: \"*/rm *-rfv *\", approval: deny }\n - { match: \"*/rm *-rfv\", approval: deny }\n - { match: \"*/rm *-rvf *\", approval: deny }\n - { match: \"*/rm *-rvf\", approval: deny }\n - { match: \"*/rm *-frv *\", approval: deny }\n - { match: \"*/rm *-frv\", approval: deny }\n - { match: \"*/rm *-fvr *\", approval: deny }\n - { match: \"*/rm *-fvr\", approval: deny }\n - { match: \"*/rm *-vrf *\", approval: deny }\n - { match: \"*/rm *-vrf\", approval: deny }\n - { match: \"*/rm *-vfr *\", approval: deny }\n - { match: \"*/rm *-vfr\", approval: deny }\n - { match: \"*/rm *-ri *\", approval: deny }\n - { match: \"*/rm *-ri\", approval: deny }\n - { match: \"*/rm *-ir *\", approval: deny }\n - { match: \"*/rm *-ir\", approval: deny }\n - { match: \"*/rm *-Ri *\", approval: deny }\n - { match: \"*/rm *-Ri\", approval: deny }\n - { match: \"*/rm *-iR *\", approval: deny }\n - { match: \"*/rm *-iR\", approval: deny }\n - { match: \"*/rm *-R *\", approval: deny }\n - { match: \"*/rm *-R\", approval: deny }\n - { match: \"*/rm *-Rf *\", approval: deny }\n - { match: \"*/rm *-Rf\", approval: deny }\n - { match: \"*/rm *-fR *\", approval: deny }\n - { match: \"*/rm *-fR\", approval: deny }\n - { match: \"*/rm *-Rv *\", approval: deny }\n - { match: \"*/rm *-Rv\", approval: deny }\n - { match: \"*/rm *-vR *\", approval: deny }\n - { match: \"*/rm *-vR\", approval: deny }\n - { match: \"*/rm *-Rfv *\", approval: deny }\n - { match: \"*/rm *-Rfv\", approval: deny }\n - { match: \"*/rm *-Rvf *\", approval: deny }\n - { match: \"*/rm *-Rvf\", approval: deny }\n - { match: \"*/rm *-fRv *\", approval: deny }\n - { match: \"*/rm *-fRv\", approval: deny }\n - { match: \"*/rm *-fvR *\", approval: deny }\n - { match: \"*/rm *-fvR\", approval: deny }\n - { match: \"*/rm *-vRf *\", approval: deny }\n - { match: \"*/rm *-vRf\", approval: deny }\n - { match: \"*/rm *-vfR *\", approval: deny }\n - { match: \"*/rm *-vfR\", approval: deny }\n - { match: \"*/rm *--recursive *\", approval: deny }\n - { match: \"*/rm *--recursive\", approval: deny }\n - { match: \"* rm *-r *\", approval: deny }\n - { match: \"* rm *-r\", approval: deny }\n - { match: \"* rm *-rf *\", approval: deny }\n - { match: \"* rm *-rf\", approval: deny }\n - { match: \"* rm *-fr *\", approval: deny }\n - { match: \"* rm *-fr\", approval: deny }\n - { match: \"* rm *-rv *\", approval: deny }\n - { match: \"* rm *-rv\", approval: deny }\n - { match: \"* rm *-vr *\", approval: deny }\n - { match: \"* rm *-vr\", approval: deny }\n - { match: \"* rm *-rfv *\", approval: deny }\n - { match: \"* rm *-rfv\", approval: deny }\n - { match: \"* rm *-rvf *\", approval: deny }\n - { match: \"* rm *-rvf\", approval: deny }\n - { match: \"* rm *-frv *\", approval: deny }\n - { match: \"* rm *-frv\", approval: deny }\n - { match: \"* rm *-fvr *\", approval: deny }\n - { match: \"* rm *-fvr\", approval: deny }\n - { match: \"* rm *-vrf *\", approval: deny }\n - { match: \"* rm *-vrf\", approval: deny }\n - { match: \"* rm *-vfr *\", approval: deny }\n - { match: \"* rm *-vfr\", approval: deny }\n - { match: \"* rm *-R *\", approval: deny }\n - { match: \"* rm *-R\", approval: deny }\n - { match: \"* rm *-ri *\", approval: deny }\n - { match: \"* rm *-ri\", approval: deny }\n - { match: \"* rm *-ir *\", approval: deny }\n - { match: \"* rm *-ir\", approval: deny }\n - { match: \"* rm *-Ri *\", approval: deny }\n - { match: \"* rm *-Ri\", approval: deny }\n - { match: \"* rm *-iR *\", approval: deny }\n - { match: \"* rm *-iR\", approval: deny }\n - { match: \"* rm *-Rf *\", approval: deny }\n - { match: \"* rm *-Rf\", approval: deny }\n - { match: \"* rm *-fR *\", approval: deny }\n - { match: \"* rm *-fR\", approval: deny }\n - { match: \"* rm *-Rv *\", approval: deny }\n - { match: \"* rm *-Rv\", approval: deny }\n - { match: \"* rm *-vR *\", approval: deny }\n - { match: \"* rm *-vR\", approval: deny }\n - { match: \"* rm *-Rfv *\", approval: deny }\n - { match: \"* rm *-Rfv\", approval: deny }\n - { match: \"* rm *-Rvf *\", approval: deny }\n - { match: \"* rm *-Rvf\", approval: deny }\n - { match: \"* rm *-fRv *\", approval: deny }\n - { match: \"* rm *-fRv\", approval: deny }\n - { match: \"* rm *-fvR *\", approval: deny }\n - { match: \"* rm *-fvR\", approval: deny }\n - { match: \"* rm *-vRf *\", approval: deny }\n - { match: \"* rm *-vRf\", approval: deny }\n - { match: \"* rm *-vfR *\", approval: deny }\n - { match: \"* rm *-vfR\", approval: deny }\n - { match: \"* rm *--recursive *\", approval: deny }\n - { match: \"* rm *--recursive\", approval: deny }\n # Bulk removal: find -delete, find -exec rm, and xargs rm, in every position.\n - { match: \"find *-delete*\", approval: deny }\n - { match: \"*/find *-delete*\", approval: deny }\n - { match: \"* find *-delete*\", approval: deny }\n - { match: \"*-exec rm *\", approval: deny }\n - { match: \"*-exec */rm *\", approval: deny }\n - { match: \"*-execdir rm *\", approval: deny }\n - { match: \"*-execdir */rm *\", approval: deny }\n - { match: \"*-ok rm *\", approval: deny }\n - { match: \"*-ok */rm *\", approval: deny }\n - { match: \"*-okdir rm *\", approval: deny }\n - { match: \"*-okdir */rm *\", approval: deny }\n - { match: \"*xargs rm\", approval: deny }\n - { match: \"*xargs rm *\", approval: deny }\n - { match: \"*xargs * rm\", approval: deny }\n - { match: \"*xargs * rm *\", approval: deny }\n - { match: \"*xargs */rm\", approval: deny }\n - { match: \"*xargs */rm *\", approval: deny }\n - { match: \"HOME=*\", approval: deny }\n - { match: \"export HOME=*\", approval: deny }\n - { match: \"env HOME=*\", approval: deny }\n - { match: \"env * HOME=*\", approval: deny }\n - { match: \"git push --force origin main\", approval: deny }\n - { match: \"git push --force origin main *\", approval: deny }\n - { match: \"git push --force origin master\", approval: deny }\n - { match: \"git push --force origin master *\", approval: deny }\n - { match: \"git push -f origin main\", approval: deny }\n - { match: \"git push -f origin main *\", approval: deny }\n - { match: \"git push -f origin master\", approval: deny }\n - { match: \"git push -f origin master *\", approval: deny }\n # A $ or a backtick anywhere after git push: the matcher reads the text\n # before the shell expands it, so it cannot tell a branch name from +main\n # or --force. An unquoted value inside a word also splits into more words.\n # A deny, not a prompt: the agent reads the refusal and writes the ref\n # literally (git push -u origin HEAD). No person is asked.\n # The leading * also reaches a git push after a shell keyword such as do,\n # after a wrapper such as env, and after a path such as /usr/bin/git.\n - { match: \"*git push *$*\", approval: deny }\n - { match: \"*git push *`*\", approval: deny }\n # Prompt: history-destroying git, and every git push spelling that could\n # force. A subagent cannot answer a prompt, so omp rejects it.\n - { match: \"git clean\", approval: prompt }\n - { match: \"git clean *\", approval: prompt }\n - { match: \"git reset *--hard*\", approval: prompt }\n - { match: \"git push -f*\", approval: prompt }\n - { match: \"git push * -f*\", approval: prompt }\n - { match: \"git push -vv*\", approval: prompt }\n - { match: \"git push * -vv*\", approval: prompt }\n - { match: \"git push -vq*\", approval: prompt }\n - { match: \"git push * -vq*\", approval: prompt }\n - { match: \"git push -vd*\", approval: prompt }\n - { match: \"git push * -vd*\", approval: prompt }\n - { match: \"git push -vn*\", approval: prompt }\n - { match: \"git push * -vn*\", approval: prompt }\n - { match: \"git push -vu*\", approval: prompt }\n - { match: \"git push * -vu*\", approval: prompt }\n - { match: \"git push -v4*\", approval: prompt }\n - { match: \"git push * -v4*\", approval: prompt }\n - { match: \"git push -v6*\", approval: prompt }\n - { match: \"git push * -v6*\", approval: prompt }\n - { match: \"git push -vf*\", approval: prompt }\n - { match: \"git push * -vf*\", approval: prompt }\n - { match: \"git push -qv*\", approval: prompt }\n - { match: \"git push * -qv*\", approval: prompt }\n - { match: \"git push -qq*\", approval: prompt }\n - { match: \"git push * -qq*\", approval: prompt }\n - { match: \"git push -qd*\", approval: prompt }\n - { match: \"git push * -qd*\", approval: prompt }\n - { match: \"git push -qn*\", approval: prompt }\n - { match: \"git push * -qn*\", approval: prompt }\n - { match: \"git push -qu*\", approval: prompt }\n - { match: \"git push * -qu*\", approval: prompt }\n - { match: \"git push -q4*\", approval: prompt }\n - { match: \"git push * -q4*\", approval: prompt }\n - { match: \"git push -q6*\", approval: prompt }\n - { match: \"git push * -q6*\", approval: prompt }\n - { match: \"git push -qf*\", approval: prompt }\n - { match: \"git push * -qf*\", approval: prompt }\n - { match: \"git push -dv*\", approval: prompt }\n - { match: \"git push * -dv*\", approval: prompt }\n - { match: \"git push -dq*\", approval: prompt }\n - { match: \"git push * -dq*\", approval: prompt }\n - { match: \"git push -dd*\", approval: prompt }\n - { match: \"git push * -dd*\", approval: prompt }\n - { match: \"git push -dn*\", approval: prompt }\n - { match: \"git push * -dn*\", approval: prompt }\n - { match: \"git push -du*\", approval: prompt }\n - { match: \"git push * -du*\", approval: prompt }\n - { match: \"git push -d4*\", approval: prompt }\n - { match: \"git push * -d4*\", approval: prompt }\n - { match: \"git push -d6*\", approval: prompt }\n - { match: \"git push * -d6*\", approval: prompt }\n - { match: \"git push -df*\", approval: prompt }\n - { match: \"git push * -df*\", approval: prompt }\n - { match: \"git push -nv*\", approval: prompt }\n - { match: \"git push * -nv*\", approval: prompt }\n - { match: \"git push -nq*\", approval: prompt }\n - { match: \"git push * -nq*\", approval: prompt }\n - { match: \"git push -nd*\", approval: prompt }\n - { match: \"git push * -nd*\", approval: prompt }\n - { match: \"git push -nn*\", approval: prompt }\n - { match: \"git push * -nn*\", approval: prompt }\n - { match: \"git push -nu*\", approval: prompt }\n - { match: \"git push * -nu*\", approval: prompt }\n - { match: \"git push -n4*\", approval: prompt }\n - { match: \"git push * -n4*\", approval: prompt }\n - { match: \"git push -n6*\", approval: prompt }\n - { match: \"git push * -n6*\", approval: prompt }\n - { match: \"git push -nf*\", approval: prompt }\n - { match: \"git push * -nf*\", approval: prompt }\n - { match: \"git push -uv*\", approval: prompt }\n - { match: \"git push * -uv*\", approval: prompt }\n - { match: \"git push -uq*\", approval: prompt }\n - { match: \"git push * -uq*\", approval: prompt }\n - { match: \"git push -ud*\", approval: prompt }\n - { match: \"git push * -ud*\", approval: prompt }\n - { match: \"git push -un*\", approval: prompt }\n - { match: \"git push * -un*\", approval: prompt }\n - { match: \"git push -uu*\", approval: prompt }\n - { match: \"git push * -uu*\", approval: prompt }\n - { match: \"git push -u4*\", approval: prompt }\n - { match: \"git push * -u4*\", approval: prompt }\n - { match: \"git push -u6*\", approval: prompt }\n - { match: \"git push * -u6*\", approval: prompt }\n - { match: \"git push -uf*\", approval: prompt }\n - { match: \"git push * -uf*\", approval: prompt }\n - { match: \"git push -4v*\", approval: prompt }\n - { match: \"git push * -4v*\", approval: prompt }\n - { match: \"git push -4q*\", approval: prompt }\n - { match: \"git push * -4q*\", approval: prompt }\n - { match: \"git push -4d*\", approval: prompt }\n - { match: \"git push * -4d*\", approval: prompt }\n - { match: \"git push -4n*\", approval: prompt }\n - { match: \"git push * -4n*\", approval: prompt }\n - { match: \"git push -4u*\", approval: prompt }\n - { match: \"git push * -4u*\", approval: prompt }\n - { match: \"git push -44*\", approval: prompt }\n - { match: \"git push * -44*\", approval: prompt }\n - { match: \"git push -46*\", approval: prompt }\n - { match: \"git push * -46*\", approval: prompt }\n - { match: \"git push -4f*\", approval: prompt }\n - { match: \"git push * -4f*\", approval: prompt }\n - { match: \"git push -6v*\", approval: prompt }\n - { match: \"git push * -6v*\", approval: prompt }\n - { match: \"git push -6q*\", approval: prompt }\n - { match: \"git push * -6q*\", approval: prompt }\n - { match: \"git push -6d*\", approval: prompt }\n - { match: \"git push * -6d*\", approval: prompt }\n - { match: \"git push -6n*\", approval: prompt }\n - { match: \"git push * -6n*\", approval: prompt }\n - { match: \"git push -6u*\", approval: prompt }\n - { match: \"git push * -6u*\", approval: prompt }\n - { match: \"git push -64*\", approval: prompt }\n - { match: \"git push * -64*\", approval: prompt }\n - { match: \"git push -66*\", approval: prompt }\n - { match: \"git push * -66*\", approval: prompt }\n - { match: \"git push -6f*\", approval: prompt }\n - { match: \"git push * -6f*\", approval: prompt }\n - { match: \"git push --f*\", approval: prompt }\n - { match: \"git push * --f*\", approval: prompt }\n - { match: \"git push --mi*\", approval: prompt }\n - { match: \"git push * --mi*\", approval: prompt }\n - { match: \"git push +*\", approval: prompt }\n - { match: \"git push * +*\", approval: prompt }\n # Prompt: every git command that skips the repository's hooks. Each rule\n # starts with * so that a prefix such as X=1, env, timeout, or /usr/bin/\n # before git still matches. git takes any unique prefix of --no-verify,\n # and git am takes the shortest, --no-v. git commit and git am read -n as\n # --no-verify, also inside a short-option cluster, so every cluster that\n # starts with -n or with two no-argument options asks. core.hooksPath\n # moves the hooks directory: the git rules match its two common\n # spellings, and the variable rules match each override through\n # GIT_CONFIG_COUNT or GIT_CONFIG_PARAMETERS.\n - { match: \"*git * --no-v*\", approval: prompt }\n - { match: \"*git commit -n*\", approval: prompt }\n - { match: \"*git commit * -n*\", approval: prompt }\n - { match: \"*git commit -qq*\", approval: prompt }\n - { match: \"*git commit * -qq*\", approval: prompt }\n - { match: \"*git commit -qv*\", approval: prompt }\n - { match: \"*git commit * -qv*\", approval: prompt }\n - { match: \"*git commit -qs*\", approval: prompt }\n - { match: \"*git commit * -qs*\", approval: prompt }\n - { match: \"*git commit -qe*\", approval: prompt }\n - { match: \"*git commit * -qe*\", approval: prompt }\n - { match: \"*git commit -qa*\", approval: prompt }\n - { match: \"*git commit * -qa*\", approval: prompt }\n - { match: \"*git commit -qi*\", approval: prompt }\n - { match: \"*git commit * -qi*\", approval: prompt }\n - { match: \"*git commit -qp*\", approval: prompt }\n - { match: \"*git commit * -qp*\", approval: prompt }\n - { match: \"*git commit -qn*\", approval: prompt }\n - { match: \"*git commit * -qn*\", approval: prompt }\n - { match: \"*git commit -qo*\", approval: prompt }\n - { match: \"*git commit * -qo*\", approval: prompt }\n - { match: \"*git commit -qz*\", approval: prompt }\n - { match: \"*git commit * -qz*\", approval: prompt }\n - { match: \"*git commit -vq*\", approval: prompt }\n - { match: \"*git commit * -vq*\", approval: prompt }\n - { match: \"*git commit -vv*\", approval: prompt }\n - { match: \"*git commit * -vv*\", approval: prompt }\n - { match: \"*git commit -vs*\", approval: prompt }\n - { match: \"*git commit * -vs*\", approval: prompt }\n - { match: \"*git commit -ve*\", approval: prompt }\n - { match: \"*git commit * -ve*\", approval: prompt }\n - { match: \"*git commit -va*\", approval: prompt }\n - { match: \"*git commit * -va*\", approval: prompt }\n - { match: \"*git commit -vi*\", approval: prompt }\n - { match: \"*git commit * -vi*\", approval: prompt }\n - { match: \"*git commit -vp*\", approval: prompt }\n - { match: \"*git commit * -vp*\", approval: prompt }\n - { match: \"*git commit -vn*\", approval: prompt }\n - { match: \"*git commit * -vn*\", approval: prompt }\n - { match: \"*git commit -vo*\", approval: prompt }\n - { match: \"*git commit * -vo*\", approval: prompt }\n - { match: \"*git commit -vz*\", approval: prompt }\n - { match: \"*git commit * -vz*\", approval: prompt }\n - { match: \"*git commit -sq*\", approval: prompt }\n - { match: \"*git commit * -sq*\", approval: prompt }\n - { match: \"*git commit -sv*\", approval: prompt }\n - { match: \"*git commit * -sv*\", approval: prompt }\n - { match: \"*git commit -ss*\", approval: prompt }\n - { match: \"*git commit * -ss*\", approval: prompt }\n - { match: \"*git commit -se*\", approval: prompt }\n - { match: \"*git commit * -se*\", approval: prompt }\n - { match: \"*git commit -sa*\", approval: prompt }\n - { match: \"*git commit * -sa*\", approval: prompt }\n - { match: \"*git commit -si*\", approval: prompt }\n - { match: \"*git commit * -si*\", approval: prompt }\n - { match: \"*git commit -sp*\", approval: prompt }\n - { match: \"*git commit * -sp*\", approval: prompt }\n - { match: \"*git commit -sn*\", approval: prompt }\n - { match: \"*git commit * -sn*\", approval: prompt }\n - { match: \"*git commit -so*\", approval: prompt }\n - { match: \"*git commit * -so*\", approval: prompt }\n - { match: \"*git commit -sz*\", approval: prompt }\n - { match: \"*git commit * -sz*\", approval: prompt }\n - { match: \"*git commit -eq*\", approval: prompt }\n - { match: \"*git commit * -eq*\", approval: prompt }\n - { match: \"*git commit -ev*\", approval: prompt }\n - { match: \"*git commit * -ev*\", approval: prompt }\n - { match: \"*git commit -es*\", approval: prompt }\n - { match: \"*git commit * -es*\", approval: prompt }\n - { match: \"*git commit -ee*\", approval: prompt }\n - { match: \"*git commit * -ee*\", approval: prompt }\n - { match: \"*git commit -ea*\", approval: prompt }\n - { match: \"*git commit * -ea*\", approval: prompt }\n - { match: \"*git commit -ei*\", approval: prompt }\n - { match: \"*git commit * -ei*\", approval: prompt }\n - { match: \"*git commit -ep*\", approval: prompt }\n - { match: \"*git commit * -ep*\", approval: prompt }\n - { match: \"*git commit -en*\", approval: prompt }\n - { match: \"*git commit * -en*\", approval: prompt }\n - { match: \"*git commit -eo*\", approval: prompt }\n - { match: \"*git commit * -eo*\", approval: prompt }\n - { match: \"*git commit -ez*\", approval: prompt }\n - { match: \"*git commit * -ez*\", approval: prompt }\n - { match: \"*git commit -aq*\", approval: prompt }\n - { match: \"*git commit * -aq*\", approval: prompt }\n - { match: \"*git commit -av*\", approval: prompt }\n - { match: \"*git commit * -av*\", approval: prompt }\n - { match: \"*git commit -as*\", approval: prompt }\n - { match: \"*git commit * -as*\", approval: prompt }\n - { match: \"*git commit -ae*\", approval: prompt }\n - { match: \"*git commit * -ae*\", approval: prompt }\n - { match: \"*git commit -aa*\", approval: prompt }\n - { match: \"*git commit * -aa*\", approval: prompt }\n - { match: \"*git commit -ai*\", approval: prompt }\n - { match: \"*git commit * -ai*\", approval: prompt }\n - { match: \"*git commit -ap*\", approval: prompt }\n - { match: \"*git commit * -ap*\", approval: prompt }\n - { match: \"*git commit -an*\", approval: prompt }\n - { match: \"*git commit * -an*\", approval: prompt }\n - { match: \"*git commit -ao*\", approval: prompt }\n - { match: \"*git commit * -ao*\", approval: prompt }\n - { match: \"*git commit -az*\", approval: prompt }\n - { match: \"*git commit * -az*\", approval: prompt }\n - { match: \"*git commit -iq*\", approval: prompt }\n - { match: \"*git commit * -iq*\", approval: prompt }\n - { match: \"*git commit -iv*\", approval: prompt }\n - { match: \"*git commit * -iv*\", approval: prompt }\n - { match: \"*git commit -is*\", approval: prompt }\n - { match: \"*git commit * -is*\", approval: prompt }\n - { match: \"*git commit -ie*\", approval: prompt }\n - { match: \"*git commit * -ie*\", approval: prompt }\n - { match: \"*git commit -ia*\", approval: prompt }\n - { match: \"*git commit * -ia*\", approval: prompt }\n - { match: \"*git commit -ii*\", approval: prompt }\n - { match: \"*git commit * -ii*\", approval: prompt }\n - { match: \"*git commit -ip*\", approval: prompt }\n - { match: \"*git commit * -ip*\", approval: prompt }\n - { match: \"*git commit -in*\", approval: prompt }\n - { match: \"*git commit * -in*\", approval: prompt }\n - { match: \"*git commit -io*\", approval: prompt }\n - { match: \"*git commit * -io*\", approval: prompt }\n - { match: \"*git commit -iz*\", approval: prompt }\n - { match: \"*git commit * -iz*\", approval: prompt }\n - { match: \"*git commit -pq*\", approval: prompt }\n - { match: \"*git commit * -pq*\", approval: prompt }\n - { match: \"*git commit -pv*\", approval: prompt }\n - { match: \"*git commit * -pv*\", approval: prompt }\n - { match: \"*git commit -ps*\", approval: prompt }\n - { match: \"*git commit * -ps*\", approval: prompt }\n - { match: \"*git commit -pe*\", approval: prompt }\n - { match: \"*git commit * -pe*\", approval: prompt }\n - { match: \"*git commit -pa*\", approval: prompt }\n - { match: \"*git commit * -pa*\", approval: prompt }\n - { match: \"*git commit -pi*\", approval: prompt }\n - { match: \"*git commit * -pi*\", approval: prompt }\n - { match: \"*git commit -pp*\", approval: prompt }\n - { match: \"*git commit * -pp*\", approval: prompt }\n - { match: \"*git commit -pn*\", approval: prompt }\n - { match: \"*git commit * -pn*\", approval: prompt }\n - { match: \"*git commit -po*\", approval: prompt }\n - { match: \"*git commit * -po*\", approval: prompt }\n - { match: \"*git commit -pz*\", approval: prompt }\n - { match: \"*git commit * -pz*\", approval: prompt }\n - { match: \"*git commit -oq*\", approval: prompt }\n - { match: \"*git commit * -oq*\", approval: prompt }\n - { match: \"*git commit -ov*\", approval: prompt }\n - { match: \"*git commit * -ov*\", approval: prompt }\n - { match: \"*git commit -os*\", approval: prompt }\n - { match: \"*git commit * -os*\", approval: prompt }\n - { match: \"*git commit -oe*\", approval: prompt }\n - { match: \"*git commit * -oe*\", approval: prompt }\n - { match: \"*git commit -oa*\", approval: prompt }\n - { match: \"*git commit * -oa*\", approval: prompt }\n - { match: \"*git commit -oi*\", approval: prompt }\n - { match: \"*git commit * -oi*\", approval: prompt }\n - { match: \"*git commit -op*\", approval: prompt }\n - { match: \"*git commit * -op*\", approval: prompt }\n - { match: \"*git commit -on*\", approval: prompt }\n - { match: \"*git commit * -on*\", approval: prompt }\n - { match: \"*git commit -oo*\", approval: prompt }\n - { match: \"*git commit * -oo*\", approval: prompt }\n - { match: \"*git commit -oz*\", approval: prompt }\n - { match: \"*git commit * -oz*\", approval: prompt }\n - { match: \"*git commit -zq*\", approval: prompt }\n - { match: \"*git commit * -zq*\", approval: prompt }\n - { match: \"*git commit -zv*\", approval: prompt }\n - { match: \"*git commit * -zv*\", approval: prompt }\n - { match: \"*git commit -zs*\", approval: prompt }\n - { match: \"*git commit * -zs*\", approval: prompt }\n - { match: \"*git commit -ze*\", approval: prompt }\n - { match: \"*git commit * -ze*\", approval: prompt }\n - { match: \"*git commit -za*\", approval: prompt }\n - { match: \"*git commit * -za*\", approval: prompt }\n - { match: \"*git commit -zi*\", approval: prompt }\n - { match: \"*git commit * -zi*\", approval: prompt }\n - { match: \"*git commit -zp*\", approval: prompt }\n - { match: \"*git commit * -zp*\", approval: prompt }\n - { match: \"*git commit -zn*\", approval: prompt }\n - { match: \"*git commit * -zn*\", approval: prompt }\n - { match: \"*git commit -zo*\", approval: prompt }\n - { match: \"*git commit * -zo*\", approval: prompt }\n - { match: \"*git commit -zz*\", approval: prompt }\n - { match: \"*git commit * -zz*\", approval: prompt }\n - { match: \"*git am -n*\", approval: prompt }\n - { match: \"*git am * -n*\", approval: prompt }\n - { match: \"*git am -ii*\", approval: prompt }\n - { match: \"*git am * -ii*\", approval: prompt }\n - { match: \"*git am -in*\", approval: prompt }\n - { match: \"*git am * -in*\", approval: prompt }\n - { match: \"*git am -i3*\", approval: prompt }\n - { match: \"*git am * -i3*\", approval: prompt }\n - { match: \"*git am -iq*\", approval: prompt }\n - { match: \"*git am * -iq*\", approval: prompt }\n - { match: \"*git am -is*\", approval: prompt }\n - { match: \"*git am * -is*\", approval: prompt }\n - { match: \"*git am -iu*\", approval: prompt }\n - { match: \"*git am * -iu*\", approval: prompt }\n - { match: \"*git am -ik*\", approval: prompt }\n - { match: \"*git am * -ik*\", approval: prompt }\n - { match: \"*git am -im*\", approval: prompt }\n - { match: \"*git am * -im*\", approval: prompt }\n - { match: \"*git am -ic*\", approval: prompt }\n - { match: \"*git am * -ic*\", approval: prompt }\n - { match: \"*git am -ir*\", approval: prompt }\n - { match: \"*git am * -ir*\", approval: prompt }\n - { match: \"*git am -3i*\", approval: prompt }\n - { match: \"*git am * -3i*\", approval: prompt }\n - { match: \"*git am -3n*\", approval: prompt }\n - { match: \"*git am * -3n*\", approval: prompt }\n - { match: \"*git am -33*\", approval: prompt }\n - { match: \"*git am * -33*\", approval: prompt }\n - { match: \"*git am -3q*\", approval: prompt }\n - { match: \"*git am * -3q*\", approval: prompt }\n - { match: \"*git am -3s*\", approval: prompt }\n - { match: \"*git am * -3s*\", approval: prompt }\n - { match: \"*git am -3u*\", approval: prompt }\n - { match: \"*git am * -3u*\", approval: prompt }\n - { match: \"*git am -3k*\", approval: prompt }\n - { match: \"*git am * -3k*\", approval: prompt }\n - { match: \"*git am -3m*\", approval: prompt }\n - { match: \"*git am * -3m*\", approval: prompt }\n - { match: \"*git am -3c*\", approval: prompt }\n - { match: \"*git am * -3c*\", approval: prompt }\n - { match: \"*git am -3r*\", approval: prompt }\n - { match: \"*git am * -3r*\", approval: prompt }\n - { match: \"*git am -qi*\", approval: prompt }\n - { match: \"*git am * -qi*\", approval: prompt }\n - { match: \"*git am -qn*\", approval: prompt }\n - { match: \"*git am * -qn*\", approval: prompt }\n - { match: \"*git am -q3*\", approval: prompt }\n - { match: \"*git am * -q3*\", approval: prompt }\n - { match: \"*git am -qq*\", approval: prompt }\n - { match: \"*git am * -qq*\", approval: prompt }\n - { match: \"*git am -qs*\", approval: prompt }\n - { match: \"*git am * -qs*\", approval: prompt }\n - { match: \"*git am -qu*\", approval: prompt }\n - { match: \"*git am * -qu*\", approval: prompt }\n - { match: \"*git am -qk*\", approval: prompt }\n - { match: \"*git am * -qk*\", approval: prompt }\n - { match: \"*git am -qm*\", approval: prompt }\n - { match: \"*git am * -qm*\", approval: prompt }\n - { match: \"*git am -qc*\", approval: prompt }\n - { match: \"*git am * -qc*\", approval: prompt }\n - { match: \"*git am -qr*\", approval: prompt }\n - { match: \"*git am * -qr*\", approval: prompt }\n - { match: \"*git am -si*\", approval: prompt }\n - { match: \"*git am * -si*\", approval: prompt }\n - { match: \"*git am -sn*\", approval: prompt }\n - { match: \"*git am * -sn*\", approval: prompt }\n - { match: \"*git am -s3*\", approval: prompt }\n - { match: \"*git am * -s3*\", approval: prompt }\n - { match: \"*git am -sq*\", approval: prompt }\n - { match: \"*git am * -sq*\", approval: prompt }\n - { match: \"*git am -ss*\", approval: prompt }\n - { match: \"*git am * -ss*\", approval: prompt }\n - { match: \"*git am -su*\", approval: prompt }\n - { match: \"*git am * -su*\", approval: prompt }\n - { match: \"*git am -sk*\", approval: prompt }\n - { match: \"*git am * -sk*\", approval: prompt }\n - { match: \"*git am -sm*\", approval: prompt }\n - { match: \"*git am * -sm*\", approval: prompt }\n - { match: \"*git am -sc*\", approval: prompt }\n - { match: \"*git am * -sc*\", approval: prompt }\n - { match: \"*git am -sr*\", approval: prompt }\n - { match: \"*git am * -sr*\", approval: prompt }\n - { match: \"*git am -ui*\", approval: prompt }\n - { match: \"*git am * -ui*\", approval: prompt }\n - { match: \"*git am -un*\", approval: prompt }\n - { match: \"*git am * -un*\", approval: prompt }\n - { match: \"*git am -u3*\", approval: prompt }\n - { match: \"*git am * -u3*\", approval: prompt }\n - { match: \"*git am -uq*\", approval: prompt }\n - { match: \"*git am * -uq*\", approval: prompt }\n - { match: \"*git am -us*\", approval: prompt }\n - { match: \"*git am * -us*\", approval: prompt }\n - { match: \"*git am -uu*\", approval: prompt }\n - { match: \"*git am * -uu*\", approval: prompt }\n - { match: \"*git am -uk*\", approval: prompt }\n - { match: \"*git am * -uk*\", approval: prompt }\n - { match: \"*git am -um*\", approval: prompt }\n - { match: \"*git am * -um*\", approval: prompt }\n - { match: \"*git am -uc*\", approval: prompt }\n - { match: \"*git am * -uc*\", approval: prompt }\n - { match: \"*git am -ur*\", approval: prompt }\n - { match: \"*git am * -ur*\", approval: prompt }\n - { match: \"*git am -ki*\", approval: prompt }\n - { match: \"*git am * -ki*\", approval: prompt }\n - { match: \"*git am -kn*\", approval: prompt }\n - { match: \"*git am * -kn*\", approval: prompt }\n - { match: \"*git am -k3*\", approval: prompt }\n - { match: \"*git am * -k3*\", approval: prompt }\n - { match: \"*git am -kq*\", approval: prompt }\n - { match: \"*git am * -kq*\", approval: prompt }\n - { match: \"*git am -ks*\", approval: prompt }\n - { match: \"*git am * -ks*\", approval: prompt }\n - { match: \"*git am -ku*\", approval: prompt }\n - { match: \"*git am * -ku*\", approval: prompt }\n - { match: \"*git am -kk*\", approval: prompt }\n - { match: \"*git am * -kk*\", approval: prompt }\n - { match: \"*git am -km*\", approval: prompt }\n - { match: \"*git am * -km*\", approval: prompt }\n - { match: \"*git am -kc*\", approval: prompt }\n - { match: \"*git am * -kc*\", approval: prompt }\n - { match: \"*git am -kr*\", approval: prompt }\n - { match: \"*git am * -kr*\", approval: prompt }\n - { match: \"*git am -mi*\", approval: prompt }\n - { match: \"*git am * -mi*\", approval: prompt }\n - { match: \"*git am -mn*\", approval: prompt }\n - { match: \"*git am * -mn*\", approval: prompt }\n - { match: \"*git am -m3*\", approval: prompt }\n - { match: \"*git am * -m3*\", approval: prompt }\n - { match: \"*git am -mq*\", approval: prompt }\n - { match: \"*git am * -mq*\", approval: prompt }\n - { match: \"*git am -ms*\", approval: prompt }\n - { match: \"*git am * -ms*\", approval: prompt }\n - { match: \"*git am -mu*\", approval: prompt }\n - { match: \"*git am * -mu*\", approval: prompt }\n - { match: \"*git am -mk*\", approval: prompt }\n - { match: \"*git am * -mk*\", approval: prompt }\n - { match: \"*git am -mm*\", approval: prompt }\n - { match: \"*git am * -mm*\", approval: prompt }\n - { match: \"*git am -mc*\", approval: prompt }\n - { match: \"*git am * -mc*\", approval: prompt }\n - { match: \"*git am -mr*\", approval: prompt }\n - { match: \"*git am * -mr*\", approval: prompt }\n - { match: \"*git am -ci*\", approval: prompt }\n - { match: \"*git am * -ci*\", approval: prompt }\n - { match: \"*git am -cn*\", approval: prompt }\n - { match: \"*git am * -cn*\", approval: prompt }\n - { match: \"*git am -c3*\", approval: prompt }\n - { match: \"*git am * -c3*\", approval: prompt }\n - { match: \"*git am -cq*\", approval: prompt }\n - { match: \"*git am * -cq*\", approval: prompt }\n - { match: \"*git am -cs*\", approval: prompt }\n - { match: \"*git am * -cs*\", approval: prompt }\n - { match: \"*git am -cu*\", approval: prompt }\n - { match: \"*git am * -cu*\", approval: prompt }\n - { match: \"*git am -ck*\", approval: prompt }\n - { match: \"*git am * -ck*\", approval: prompt }\n - { match: \"*git am -cm*\", approval: prompt }\n - { match: \"*git am * -cm*\", approval: prompt }\n - { match: \"*git am -cc*\", approval: prompt }\n - { match: \"*git am * -cc*\", approval: prompt }\n - { match: \"*git am -cr*\", approval: prompt }\n - { match: \"*git am * -cr*\", approval: prompt }\n - { match: \"*git am -ri*\", approval: prompt }\n - { match: \"*git am * -ri*\", approval: prompt }\n - { match: \"*git am -rn*\", approval: prompt }\n - { match: \"*git am * -rn*\", approval: prompt }\n - { match: \"*git am -r3*\", approval: prompt }\n - { match: \"*git am * -r3*\", approval: prompt }\n - { match: \"*git am -rq*\", approval: prompt }\n - { match: \"*git am * -rq*\", approval: prompt }\n - { match: \"*git am -rs*\", approval: prompt }\n - { match: \"*git am * -rs*\", approval: prompt }\n - { match: \"*git am -ru*\", approval: prompt }\n - { match: \"*git am * -ru*\", approval: prompt }\n - { match: \"*git am -rk*\", approval: prompt }\n - { match: \"*git am * -rk*\", approval: prompt }\n - { match: \"*git am -rm*\", approval: prompt }\n - { match: \"*git am * -rm*\", approval: prompt }\n - { match: \"*git am -rc*\", approval: prompt }\n - { match: \"*git am * -rc*\", approval: prompt }\n - { match: \"*git am -rr*\", approval: prompt }\n - { match: \"*git am * -rr*\", approval: prompt }\n - { match: \"*git *core.hooksPath*\", approval: prompt }\n - { match: \"*git *core.hookspath*\", approval: prompt }\n - { match: \"*GIT_CONFIG_PARAMETERS*\", approval: prompt }\n - { match: \"*GIT_CONFIG_COUNT*\", approval: prompt }\n # Allow: the macOS trash command.\n - { match: \"trash *\", approval: allow }\n",
|
|
21
|
+
"SoT/.omp/config.yml": "statusLine:\n compactThinkingLevel: false\n\ndefaultThinkingLevel: high\n\ncycleOrder:\n - smol\n - default\n - slow\n - fable\n - astra\n\ntier:\n anthropic: none\n\nadvisor:\n enabled: true\n syncBacklog: \"1\"\n\ngithub:\n enabled: true\n\nfind:\n enabled: true\n\nbrowser:\n idleCloseSec: 600\n\ntask:\n eager: always\n showResolvedModelBadge: true\n softRequestBudget: 200\n softRequestBudgetNotice: true\n batch: true\n enableLsp: true\n enableEffort: false\n maxEffort: xhigh\n maxConcurrency: 16\n maxRecursionDepth: 2\n maxRuntimeMs: 3600000\n agentIdleTtlMs: 120000\n agentModelOverrides:\n reviewer: \"@reviewer\"\n security-reviewer: \"@reviewer\"\n code-reviewer: \"@reviewer\"\n plan-reviewer: \"@reviewer\"\n\nmodelRoles:\n smol: openai-codex/gpt-6-luna:medium\n advisor: anthropic/claude-opus-5-5:medium\n designer: anthropic/claude-opus-5-5:high\n plan: anthropic/claude-opus-5-5:xhigh\n commit: openai-codex/gpt-6-luna:medium\n task: anthropic/claude-opus-5-5:high\n vision: anthropic/claude-opus-5-5:medium\n tiny: openai-codex/gpt-6-luna:low\n default: anthropic/claude-opus-5-5:high\n slow: anthropic/claude-opus-5-5:xhigh\n fable: anthropic/claude-fable-5-1:medium\n switch_fable: anthropic/claude-fable-5-1:medium\n astra: openai-codex/gpt-6-astra:xhigh\n reviewer: openai-codex/gpt-6.1-sol:xhigh\n web: web/firecrawl\n\nmodelTags:\n fable:\n name: Fable 5.1\n switch_fable:\n name: Fable switch default\n hidden: true\n astra:\n name: GPT-6 Astra\n reviewer:\n name: Reviewer\n hidden: true\n\ndisplay:\n showTokenUsage: true\n\nproviders:\n anthropic:\n serverSideFallback: false\n fetch: auto\n webSearchTimeoutSeconds: 30\n\nretry:\n fallbackChains:\n default:\n - openai-codex/gpt-6.1-sol:high\n advisor: []\n task:\n - openai-codex/gpt-6.1-sol:high\n vision:\n - openai-codex/gpt-6.1-sol:medium\n smol:\n - anthropic/claude-opus-5-5:low\n tiny:\n - anthropic/claude-opus-5-5:low\n commit:\n - anthropic/claude-opus-5-5:medium\n switch_fable: []\n fable:\n - openai-codex/gpt-6-astra:xhigh\n astra:\n - anthropic/claude-fable-5-1:medium\n reviewer:\n - anthropic/claude-opus-5-5:xhigh\n web:\n - web/exa\n - web/perplexity\n - openai-codex/gpt-6-luna\n - web/parallel\n - web/zai\n - web/tinyfish\n - web/jina\n - web/kagi\n - web/tavily\n - web/brave\n - web/kimi\n - web/synthetic\n - web/ollama\n - web/searxng\n - web/startpage\n - web/duckduckgo\n - web/ecosia\n - web/google\n - web/mojeek\n - web/public\n\nincludeWorkspaceTree: false\n\nbranchSummary:\n enabled: true\n\ncommands:\n enableOpencodeProject: false\n enableOpencodeUser: false\n\nskills:\n enableClaudeUser: false\n enableCodexUser: false\n enableAgentsUser: true\n\nsteeringMode: all\n\ndev:\n autoqa: false\n autoqaConsent: denied\n\ncompaction:\n thresholdTokens: -1\n idleEnabled: true\n handoffSaveToDisk: true\n\ndoubleEscapeAction: tree\ntextVerbosity: low\n\nfeatures:\n unexpectedStopDetection: smart\n\ncodexResets:\n autoRedeem: \"no\"\n\nstartup:\n quiet: true\n\ntools:\n approvalMode: yolo\n\nbash:\n # First match wins. omp checks deny rules against the whole line and each\n # quote-stripped segment, so `rm -rf \"$HOME\"` matches `rm * $HOME`. `*`\n # matches any text, spaces and slashes included; no escape spells a literal\n # `*`.\n # The kit ships no prompt rule, because a subagent rejects every prompt.\n # A command that no deny rule matches runs under yolo, unless a prompt rule\n # that the user added matches it: a plain rm, git rm, git worktree remove,\n # gio trash, docks-kit scratch remove, git clean, git reset --hard, and\n # every git push that the denies below do not stop.\n # omp's critical-command check turns a prompt into an allow under yolo, so\n # every rm shape it can flag is a deny.\n patterns:\n # Deny: rm of the home directory or the filesystem root, sudo before rm,\n # rm with an r or f option before an absolute path, recursive rm (bare, by\n # path, or after any word such as env, xargs, find -exec, or git), bulk\n # removal through find -delete, find -exec rm, and xargs rm, HOME\n # reassignment, a force push to main or master, and a $ or a backtick\n # after git push.\n - { match: \"rm /\", approval: deny }\n - { match: \"rm / *\", approval: deny }\n - { match: \"rm * /\", approval: deny }\n - { match: \"rm * / *\", approval: deny }\n - { match: \"rm ~\", approval: deny }\n - { match: \"rm ~ *\", approval: deny }\n - { match: \"rm * ~\", approval: deny }\n - { match: \"rm * ~ *\", approval: deny }\n - { match: \"rm ~/\", approval: deny }\n - { match: \"rm ~/ *\", approval: deny }\n - { match: \"rm * ~/\", approval: deny }\n - { match: \"rm * ~/ *\", approval: deny }\n - { match: \"rm $HOME\", approval: deny }\n - { match: \"rm $HOME *\", approval: deny }\n - { match: \"rm * $HOME\", approval: deny }\n - { match: \"rm * $HOME *\", approval: deny }\n - { match: \"rm $HOME/\", approval: deny }\n - { match: \"rm $HOME/ *\", approval: deny }\n - { match: \"rm * $HOME/\", approval: deny }\n - { match: \"rm * $HOME/ *\", approval: deny }\n - { match: \"rm ${HOME}\", approval: deny }\n - { match: \"rm ${HOME} *\", approval: deny }\n - { match: \"rm * ${HOME}\", approval: deny }\n - { match: \"rm * ${HOME} *\", approval: deny }\n - { match: \"rm ${HOME}/\", approval: deny }\n - { match: \"rm ${HOME}/ *\", approval: deny }\n - { match: \"rm * ${HOME}/\", approval: deny }\n - { match: \"rm * ${HOME}/ *\", approval: deny }\n - { match: \"* rm /\", approval: deny }\n - { match: \"* rm / *\", approval: deny }\n - { match: \"* rm * /\", approval: deny }\n - { match: \"* rm * / *\", approval: deny }\n - { match: \"* rm ~\", approval: deny }\n - { match: \"* rm ~ *\", approval: deny }\n - { match: \"* rm * ~\", approval: deny }\n - { match: \"* rm * ~ *\", approval: deny }\n - { match: \"* rm ~/\", approval: deny }\n - { match: \"* rm ~/ *\", approval: deny }\n - { match: \"* rm * ~/\", approval: deny }\n - { match: \"* rm * ~/ *\", approval: deny }\n - { match: \"* rm $HOME\", approval: deny }\n - { match: \"* rm $HOME *\", approval: deny }\n - { match: \"* rm * $HOME\", approval: deny }\n - { match: \"* rm * $HOME *\", approval: deny }\n - { match: \"* rm $HOME/\", approval: deny }\n - { match: \"* rm $HOME/ *\", approval: deny }\n - { match: \"* rm * $HOME/\", approval: deny }\n - { match: \"* rm * $HOME/ *\", approval: deny }\n - { match: \"* rm ${HOME}\", approval: deny }\n - { match: \"* rm ${HOME} *\", approval: deny }\n - { match: \"* rm * ${HOME}\", approval: deny }\n - { match: \"* rm * ${HOME} *\", approval: deny }\n - { match: \"* rm ${HOME}/\", approval: deny }\n - { match: \"* rm ${HOME}/ *\", approval: deny }\n - { match: \"* rm * ${HOME}/\", approval: deny }\n - { match: \"* rm * ${HOME}/ *\", approval: deny }\n - { match: \"*/rm /\", approval: deny }\n - { match: \"*/rm / *\", approval: deny }\n - { match: \"*/rm * /\", approval: deny }\n - { match: \"*/rm * / *\", approval: deny }\n - { match: \"*/rm ~\", approval: deny }\n - { match: \"*/rm ~ *\", approval: deny }\n - { match: \"*/rm * ~\", approval: deny }\n - { match: \"*/rm * ~ *\", approval: deny }\n - { match: \"*/rm ~/\", approval: deny }\n - { match: \"*/rm ~/ *\", approval: deny }\n - { match: \"*/rm * ~/\", approval: deny }\n - { match: \"*/rm * ~/ *\", approval: deny }\n - { match: \"*/rm $HOME\", approval: deny }\n - { match: \"*/rm $HOME *\", approval: deny }\n - { match: \"*/rm * $HOME\", approval: deny }\n - { match: \"*/rm * $HOME *\", approval: deny }\n - { match: \"*/rm $HOME/\", approval: deny }\n - { match: \"*/rm $HOME/ *\", approval: deny }\n - { match: \"*/rm * $HOME/\", approval: deny }\n - { match: \"*/rm * $HOME/ *\", approval: deny }\n - { match: \"*/rm ${HOME}\", approval: deny }\n - { match: \"*/rm ${HOME} *\", approval: deny }\n - { match: \"*/rm * ${HOME}\", approval: deny }\n - { match: \"*/rm * ${HOME} *\", approval: deny }\n - { match: \"*/rm ${HOME}/\", approval: deny }\n - { match: \"*/rm ${HOME}/ *\", approval: deny }\n - { match: \"*/rm * ${HOME}/\", approval: deny }\n - { match: \"*/rm * ${HOME}/ *\", approval: deny }\n - { match: \"sudo rm\", approval: deny }\n - { match: \"sudo rm *\", approval: deny }\n - { match: \"sudo * rm\", approval: deny }\n - { match: \"sudo * rm *\", approval: deny }\n - { match: \"sudo */rm\", approval: deny }\n - { match: \"sudo */rm *\", approval: deny }\n - { match: \"* sudo rm\", approval: deny }\n - { match: \"* sudo rm *\", approval: deny }\n - { match: \"* sudo * rm\", approval: deny }\n - { match: \"* sudo * rm *\", approval: deny }\n - { match: \"* sudo */rm\", approval: deny }\n - { match: \"* sudo */rm *\", approval: deny }\n - { match: \"*/sudo rm\", approval: deny }\n - { match: \"*/sudo rm *\", approval: deny }\n - { match: \"*/sudo * rm\", approval: deny }\n - { match: \"*/sudo * rm *\", approval: deny }\n - { match: \"*/sudo */rm\", approval: deny }\n - { match: \"*/sudo */rm *\", approval: deny }\n - { match: \"rm *-*r* /*\", approval: deny }\n - { match: \"rm *-*R* /*\", approval: deny }\n - { match: \"rm *-*f* /*\", approval: deny }\n - { match: \"rm *-*F* /*\", approval: deny }\n - { match: \"rm *--no-preserve-root*\", approval: deny }\n - { match: \"* rm *-*r* /*\", approval: deny }\n - { match: \"* rm *-*R* /*\", approval: deny }\n - { match: \"* rm *-*f* /*\", approval: deny }\n - { match: \"* rm *-*F* /*\", approval: deny }\n - { match: \"* rm *--no-preserve-root*\", approval: deny }\n - { match: \"*/rm *-*r* /*\", approval: deny }\n - { match: \"*/rm *-*R* /*\", approval: deny }\n - { match: \"*/rm *-*f* /*\", approval: deny }\n - { match: \"*/rm *-*F* /*\", approval: deny }\n - { match: \"*/rm *--no-preserve-root*\", approval: deny }\n - { match: \"rm *-r *\", approval: deny }\n - { match: \"rm *-r\", approval: deny }\n - { match: \"rm *-rf *\", approval: deny }\n - { match: \"rm *-rf\", approval: deny }\n - { match: \"rm *-fr *\", approval: deny }\n - { match: \"rm *-fr\", approval: deny }\n - { match: \"rm *-rv *\", approval: deny }\n - { match: \"rm *-rv\", approval: deny }\n - { match: \"rm *-vr *\", approval: deny }\n - { match: \"rm *-vr\", approval: deny }\n - { match: \"rm *-rfv *\", approval: deny }\n - { match: \"rm *-rfv\", approval: deny }\n - { match: \"rm *-rvf *\", approval: deny }\n - { match: \"rm *-rvf\", approval: deny }\n - { match: \"rm *-frv *\", approval: deny }\n - { match: \"rm *-frv\", approval: deny }\n - { match: \"rm *-fvr *\", approval: deny }\n - { match: \"rm *-fvr\", approval: deny }\n - { match: \"rm *-vrf *\", approval: deny }\n - { match: \"rm *-vrf\", approval: deny }\n - { match: \"rm *-vfr *\", approval: deny }\n - { match: \"rm *-vfr\", approval: deny }\n - { match: \"rm *-ri *\", approval: deny }\n - { match: \"rm *-ri\", approval: deny }\n - { match: \"rm *-ir *\", approval: deny }\n - { match: \"rm *-ir\", approval: deny }\n - { match: \"rm *-Ri *\", approval: deny }\n - { match: \"rm *-Ri\", approval: deny }\n - { match: \"rm *-iR *\", approval: deny }\n - { match: \"rm *-iR\", approval: deny }\n - { match: \"rm *-R *\", approval: deny }\n - { match: \"rm *-R\", approval: deny }\n - { match: \"rm *-Rf *\", approval: deny }\n - { match: \"rm *-Rf\", approval: deny }\n - { match: \"rm *-fR *\", approval: deny }\n - { match: \"rm *-fR\", approval: deny }\n - { match: \"rm *-Rv *\", approval: deny }\n - { match: \"rm *-Rv\", approval: deny }\n - { match: \"rm *-vR *\", approval: deny }\n - { match: \"rm *-vR\", approval: deny }\n - { match: \"rm *-Rfv *\", approval: deny }\n - { match: \"rm *-Rfv\", approval: deny }\n - { match: \"rm *-Rvf *\", approval: deny }\n - { match: \"rm *-Rvf\", approval: deny }\n - { match: \"rm *-fRv *\", approval: deny }\n - { match: \"rm *-fRv\", approval: deny }\n - { match: \"rm *-fvR *\", approval: deny }\n - { match: \"rm *-fvR\", approval: deny }\n - { match: \"rm *-vRf *\", approval: deny }\n - { match: \"rm *-vRf\", approval: deny }\n - { match: \"rm *-vfR *\", approval: deny }\n - { match: \"rm *-vfR\", approval: deny }\n - { match: \"rm *--recursive *\", approval: deny }\n - { match: \"rm *--recursive\", approval: deny }\n - { match: \"*/rm *-r *\", approval: deny }\n - { match: \"*/rm *-r\", approval: deny }\n - { match: \"*/rm *-rf *\", approval: deny }\n - { match: \"*/rm *-rf\", approval: deny }\n - { match: \"*/rm *-fr *\", approval: deny }\n - { match: \"*/rm *-fr\", approval: deny }\n - { match: \"*/rm *-rv *\", approval: deny }\n - { match: \"*/rm *-rv\", approval: deny }\n - { match: \"*/rm *-vr *\", approval: deny }\n - { match: \"*/rm *-vr\", approval: deny }\n - { match: \"*/rm *-rfv *\", approval: deny }\n - { match: \"*/rm *-rfv\", approval: deny }\n - { match: \"*/rm *-rvf *\", approval: deny }\n - { match: \"*/rm *-rvf\", approval: deny }\n - { match: \"*/rm *-frv *\", approval: deny }\n - { match: \"*/rm *-frv\", approval: deny }\n - { match: \"*/rm *-fvr *\", approval: deny }\n - { match: \"*/rm *-fvr\", approval: deny }\n - { match: \"*/rm *-vrf *\", approval: deny }\n - { match: \"*/rm *-vrf\", approval: deny }\n - { match: \"*/rm *-vfr *\", approval: deny }\n - { match: \"*/rm *-vfr\", approval: deny }\n - { match: \"*/rm *-ri *\", approval: deny }\n - { match: \"*/rm *-ri\", approval: deny }\n - { match: \"*/rm *-ir *\", approval: deny }\n - { match: \"*/rm *-ir\", approval: deny }\n - { match: \"*/rm *-Ri *\", approval: deny }\n - { match: \"*/rm *-Ri\", approval: deny }\n - { match: \"*/rm *-iR *\", approval: deny }\n - { match: \"*/rm *-iR\", approval: deny }\n - { match: \"*/rm *-R *\", approval: deny }\n - { match: \"*/rm *-R\", approval: deny }\n - { match: \"*/rm *-Rf *\", approval: deny }\n - { match: \"*/rm *-Rf\", approval: deny }\n - { match: \"*/rm *-fR *\", approval: deny }\n - { match: \"*/rm *-fR\", approval: deny }\n - { match: \"*/rm *-Rv *\", approval: deny }\n - { match: \"*/rm *-Rv\", approval: deny }\n - { match: \"*/rm *-vR *\", approval: deny }\n - { match: \"*/rm *-vR\", approval: deny }\n - { match: \"*/rm *-Rfv *\", approval: deny }\n - { match: \"*/rm *-Rfv\", approval: deny }\n - { match: \"*/rm *-Rvf *\", approval: deny }\n - { match: \"*/rm *-Rvf\", approval: deny }\n - { match: \"*/rm *-fRv *\", approval: deny }\n - { match: \"*/rm *-fRv\", approval: deny }\n - { match: \"*/rm *-fvR *\", approval: deny }\n - { match: \"*/rm *-fvR\", approval: deny }\n - { match: \"*/rm *-vRf *\", approval: deny }\n - { match: \"*/rm *-vRf\", approval: deny }\n - { match: \"*/rm *-vfR *\", approval: deny }\n - { match: \"*/rm *-vfR\", approval: deny }\n - { match: \"*/rm *--recursive *\", approval: deny }\n - { match: \"*/rm *--recursive\", approval: deny }\n - { match: \"* rm *-r *\", approval: deny }\n - { match: \"* rm *-r\", approval: deny }\n - { match: \"* rm *-rf *\", approval: deny }\n - { match: \"* rm *-rf\", approval: deny }\n - { match: \"* rm *-fr *\", approval: deny }\n - { match: \"* rm *-fr\", approval: deny }\n - { match: \"* rm *-rv *\", approval: deny }\n - { match: \"* rm *-rv\", approval: deny }\n - { match: \"* rm *-vr *\", approval: deny }\n - { match: \"* rm *-vr\", approval: deny }\n - { match: \"* rm *-rfv *\", approval: deny }\n - { match: \"* rm *-rfv\", approval: deny }\n - { match: \"* rm *-rvf *\", approval: deny }\n - { match: \"* rm *-rvf\", approval: deny }\n - { match: \"* rm *-frv *\", approval: deny }\n - { match: \"* rm *-frv\", approval: deny }\n - { match: \"* rm *-fvr *\", approval: deny }\n - { match: \"* rm *-fvr\", approval: deny }\n - { match: \"* rm *-vrf *\", approval: deny }\n - { match: \"* rm *-vrf\", approval: deny }\n - { match: \"* rm *-vfr *\", approval: deny }\n - { match: \"* rm *-vfr\", approval: deny }\n - { match: \"* rm *-R *\", approval: deny }\n - { match: \"* rm *-R\", approval: deny }\n - { match: \"* rm *-ri *\", approval: deny }\n - { match: \"* rm *-ri\", approval: deny }\n - { match: \"* rm *-ir *\", approval: deny }\n - { match: \"* rm *-ir\", approval: deny }\n - { match: \"* rm *-Ri *\", approval: deny }\n - { match: \"* rm *-Ri\", approval: deny }\n - { match: \"* rm *-iR *\", approval: deny }\n - { match: \"* rm *-iR\", approval: deny }\n - { match: \"* rm *-Rf *\", approval: deny }\n - { match: \"* rm *-Rf\", approval: deny }\n - { match: \"* rm *-fR *\", approval: deny }\n - { match: \"* rm *-fR\", approval: deny }\n - { match: \"* rm *-Rv *\", approval: deny }\n - { match: \"* rm *-Rv\", approval: deny }\n - { match: \"* rm *-vR *\", approval: deny }\n - { match: \"* rm *-vR\", approval: deny }\n - { match: \"* rm *-Rfv *\", approval: deny }\n - { match: \"* rm *-Rfv\", approval: deny }\n - { match: \"* rm *-Rvf *\", approval: deny }\n - { match: \"* rm *-Rvf\", approval: deny }\n - { match: \"* rm *-fRv *\", approval: deny }\n - { match: \"* rm *-fRv\", approval: deny }\n - { match: \"* rm *-fvR *\", approval: deny }\n - { match: \"* rm *-fvR\", approval: deny }\n - { match: \"* rm *-vRf *\", approval: deny }\n - { match: \"* rm *-vRf\", approval: deny }\n - { match: \"* rm *-vfR *\", approval: deny }\n - { match: \"* rm *-vfR\", approval: deny }\n - { match: \"* rm *--recursive *\", approval: deny }\n - { match: \"* rm *--recursive\", approval: deny }\n # Bulk removal: find -delete, find -exec rm, and xargs rm, in every position.\n - { match: \"find *-delete*\", approval: deny }\n - { match: \"*/find *-delete*\", approval: deny }\n - { match: \"* find *-delete*\", approval: deny }\n - { match: \"*-exec rm *\", approval: deny }\n - { match: \"*-exec */rm *\", approval: deny }\n - { match: \"*-execdir rm *\", approval: deny }\n - { match: \"*-execdir */rm *\", approval: deny }\n - { match: \"*-ok rm *\", approval: deny }\n - { match: \"*-ok */rm *\", approval: deny }\n - { match: \"*-okdir rm *\", approval: deny }\n - { match: \"*-okdir */rm *\", approval: deny }\n - { match: \"*xargs rm\", approval: deny }\n - { match: \"*xargs rm *\", approval: deny }\n - { match: \"*xargs * rm\", approval: deny }\n - { match: \"*xargs * rm *\", approval: deny }\n - { match: \"*xargs */rm\", approval: deny }\n - { match: \"*xargs */rm *\", approval: deny }\n - { match: \"HOME=*\", approval: deny }\n - { match: \"export HOME=*\", approval: deny }\n - { match: \"env HOME=*\", approval: deny }\n - { match: \"env * HOME=*\", approval: deny }\n - { match: \"git push --force origin main\", approval: deny }\n - { match: \"git push --force origin main *\", approval: deny }\n - { match: \"git push --force origin master\", approval: deny }\n - { match: \"git push --force origin master *\", approval: deny }\n - { match: \"git push -f origin main\", approval: deny }\n - { match: \"git push -f origin main *\", approval: deny }\n - { match: \"git push -f origin master\", approval: deny }\n - { match: \"git push -f origin master *\", approval: deny }\n # A $ or a backtick anywhere after git push: the matcher reads the text\n # before the shell expands it, so it cannot tell a branch name from +main\n # or --force. An unquoted value inside a word also splits into more words.\n # A deny, not a prompt: the agent reads the refusal and writes the ref\n # literally (git push -u origin HEAD). No person is asked.\n # The leading * also reaches a git push after a shell keyword such as do,\n # after a wrapper such as env, and after a path such as /usr/bin/git.\n - { match: \"*git push *$*\", approval: deny }\n - { match: \"*git push *`*\", approval: deny }\n # Allow: the macOS trash command.\n - { match: \"trash *\", approval: allow }\n",
|
|
22
22
|
"SoT/.omp/intercom.json": "{\n \"brokerCommand\": \"bun\",\n \"brokerArgs\": []\n}\n",
|
|
23
23
|
"SoT/.omp/mcp.json": "{\n \"$schema\": \"https://raw.githubusercontent.com/can1357/oh-my-pi/main/packages/coding-agent/src/config/mcp-schema.json\",\n \"disabledServers\": [\n \"chrome-devtools\",\n \"context7:context7\",\n \"openaiDeveloperDocs\"\n ]\n}\n",
|
|
24
24
|
"SoT/.omp/models.yml": "providers:\n openai-codex:\n modelOverrides:\n gpt-6-astra:\n thinking:\n mode: effort\n efforts:\n - low\n - medium\n - high\n - xhigh\n - max\n defaultLevel: xhigh\n",
|
|
@@ -58,4 +58,4 @@ export const GENERATED_PAYLOAD_PATHS = [
|
|
|
58
58
|
"notification.mp3"
|
|
59
59
|
] as const
|
|
60
60
|
|
|
61
|
-
export const GENERATED_PAYLOAD_HASH = "
|
|
61
|
+
export const GENERATED_PAYLOAD_HASH = "cf65f221720713b50dc51df7d42d793e58f49a959fe56330258dc8c969378fb7"
|
package/package.json
CHANGED