Installs into .claude/skills of the current project.
Sponsors
SSkills DirectorySkills Directory
Know which skills are safe — weekly.
SSkills DirectorySkills Directory
Is that skill safe to install?
Are you the author of Settings?
Add the live security badge to your README. It updates with every re-scan.
[](https://www.skillsdirectory.com/skills/talas9-settings)
---
name: settings
description: Show or change anti-hall settings. Use for "anti-hall settings", "turn off X", "set auto-handover to 80%".
---
# Settings
## When to use
Show or change any anti-hall setting. Use when the user says "anti-hall settings", "show anti-hall settings", "change anti-hall settings", "turn off X", "turn on X", "set auto-handover to 80%", "turn off auto-handover", "stop nagging me to compact", "what's the auto-handover threshold", "what are my anti-hall settings", or similar for any guard, Jev, statusline, limit-conservation, or DevSwarm knob.
anti-hall keeps every user-facing setting in ONE place: `~/.anti-hall/settings.json`,
organized into sections (autoHandover, guards, safety, context, maintenance, jev,
jevIntegrations, limitConserve, devswarm, statusline, ...). `ah-engine settings` is the
only thing that reads or writes it. Every hook anti-hall registers has an on/off switch
(default = on, the old behaviour); `show` ends with the short list of parts that have no
switch on purpose, and why. `jevIntegrations` (v0.108.4) is a dedicated section holding
every per-integration Jev trust mode as its own row/setting — see the `jev` skill's
"Per-integration modes" for the full table.
## Default: grouped `show`, then the section
`/config` (the plugin's options screen) has only the headline switches (auto-handover on/threshold,
Jev on, DevSwarm supervisor mode, model routing, limit conservation), the four safety guards and
the API keys. Every other setting lives in `~/.anti-hall/settings.json`, grouped by category
(section). When the user says "anti-hall settings" / "change my settings":
1. Run the grouped overview, one table per category, and tell them which categories exist:
`"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings show`
2. Then show only the category they care about:
`"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings show --section <category> [--all]`
3. Change with `set <section.key> <value>`, undo with `reset <section.key>` (below).
4. The engine's own keys (polling cadences, audit and stall limits, statusline widgets, script deadlines, ...) live in the plugin's
`engine/defaults/*.toml`, not in the schema above; list them with their defaults, env variables and descriptions:
`"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings tunables [<category|key prefix>] [--all]` (read-only: edit the file to change one).
A non-default value set in Claude Code's plugin options in earlier versions is copied into
`~/.anti-hall/settings.json` by the update or `doctor --repair` run of the first release that
runs the migration (safety keys are copied as human-confirmed values), and still resolves
until then (a stored plugin option stays a read-only source below the settings file);
`/anti-hall:settings` is the place to see and change every setting.
## Direct named changes: one `set`, no table
When the user names a setting and a value ("turn off the merge gate", "set auto-handover
to 80%", "disable Jev", "hide the statusline email"), resolve it to a `section.key` and
value and apply it:
```
"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings set <section.key> <value>
```
then confirm with the single-key line from `get <section.key>`. Never print the full
table for a direct change. A validation failure (out-of-range number, unknown enum value)
comes back as `{ok:false, error}` on `--json` or an `error:` line otherwise — relay it
and ask for a valid value; never silently coerce or guess one. A safety key (see below)
needs the extra `--confirmed` step instead of a plain `set`.
A value set this way is stored in settings.json and WINS over any stored plugin option
(env > file > plugin option > legacy > default); `reset <section.key>` removes the override
so the stored plugin option (any setting that has one, row or not), the legacy source or the default takes over again.
Known limitation: a plugin-option value equal to the default counts as unset (a lower tier
answers); to pin a default-valued setting, `set` it here.
## Safety guards: a human direct command, or a confirmed warning — never inferred
`safety.gitGuard`, `safety.commandGuard`, `safety.editGuard`, `safety.swarmGuard`,
`guards.stashGuard`, `guards.editGuardAllow`, `guards.allowSubagentMailbox` and
`devswarm.maintainerNotice.post` are safety keys (owner decision: no hard refusal — a human direct command, or a
confirmation after a clear, plain warning, is enough). `set` to the risky value (a guard off, a
bypass on, a new allow-list path) needs `--confirmed`, and so does a `reset` whose
fallback value is the risky one (e.g. resetting an armed `guards.stashGuard`, whose
default is off); re-arming a guard, narrowing a list, or a reset back to a safe default
does not. Without `--confirmed`, nothing changes and the CLI returns one short,
factual, human-readable line (`{ok:false, needsConfirmation:true, warning}` on
`--json`) — calm facts, not alarming, built from that key's own one-sentence
`safetyNote` in the schema.
- **The user directly asked to change that guard** ("turn off git-guard", "disable
the stash guard") — that request IS the confirmation. Run `set`/`reset` with
`--confirmed` right away; do not ask again.
- **Otherwise** (you are about to touch a safety key as a side effect of something
else the user asked for) — show the one-line warning verbatim (or run the command
once without `--confirmed` and relay the `warning` it returns), then ask with
**AskUserQuestion**: "Yes, change it" / "No, keep it". Apply (`--confirmed`) only
on yes; on no, or on no answer, leave it unchanged and say so.
- **Never infer consent** from context, and never add `--confirmed` on your own
initiative to get past the warning — that is exactly the case this gate exists for.
A value in `~/.anti-hall/settings.json` counts for these keys like any other (normal
precedence: env > settings.json > plugin option > default). Nothing mechanically stops an
agent from writing that file directly; the owner chose consent over an extra guard, so
the rule is the same as above — never hand-edit a safety key in settings.json to get
around the confirmation.
A one-off pause is still the per-guard, per-session `skip.json` escape hatch (key `<guard>@<session-id>`), only on the user's
explicit request.
## Trusting a project command allowlist
A repo can list its own sanctioned commands in `<repo>/.anti-hall/command-allow.json`
(`{"patterns":["^literal command ...$"]}`), which command-guard then lets the main
thread run inline. Because that file lives in the working tree, a cloned repo could
ship one — so it applies ONLY after the user trusts that exact file content with `trust-command-allow`:
```
"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings trust-command-allow [<repo>] # print patterns, record nothing
"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings trust-command-allow [<repo>] --confirmed # record the trust
```
Trust is a sha256 of the file bytes stored OUTSIDE the repo in
`~/.anti-hall/trusted-command-allow.json`, keyed by the repo's real path; any edit to
the file makes it untrusted until re-trusted. A symlinked allowlist is refused.
Patterns must start with `^` + a literal command word and end with `$`; unbounded
wildcards (`.*`, `.+`, `[^x]*`) and top-level `|` are ignored. `/anti-hall:doctor`
reports untrusted/changed allowlists and ignored patterns. Same consent rule as the
safety keys above: `--confirmed` only on the user's direct request or a yes after
showing them the printed patterns — never on your own initiative.
## Trusting a project doc-edit allowlist
A repo can list repo-relative globs in `<repo>/.anti-hall/edit-allow.json`
(`{"paths":["docs/**","PLAN.md","*.md"]}`). edit-guard then lets the main thread
(a DevSwarm Primary or coordinator) Edit/Write matching files directly instead of
delegating them. It uses the same trust model as the command allowlist and applies
only after the user trusts that exact file content with `trust-edit-allow`:
```
"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings trust-edit-allow [<repo>] # print paths, record nothing
"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings trust-edit-allow [<repo>] --confirmed # record the trust
```
Trust lives in `~/.anti-hall/trusted-edit-allow.json`, and any edit to the file revokes
it. A symlinked file is refused. Absolute paths, `..` and match-everything globs (`**`,
`*`, `**/*`) are ignored. A match never covers a path outside the repo, `.git`,
`.anti-hall` (so the file cannot authorize itself; the main thread may not edit it at
all), `.claude`, `.codex`, hook config, or `~/.claude`. Subagents are unaffected.
Kill-switch: `guards.projectEditAllow=false`.
## Semantic judge: `judge on|off|status`
The opt-in speculation-judge (`jev.semanticJudge`, off by default) has a one-line switch:
```bash
"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings judge on|off|status
```
`on` sets the flag, then says whether an Anthropic key is visible to the CLI (never the key
itself; a key stored as a plugin option is visible to hooks only, so "not visible" means
unverified from the CLI) and how to add one, and prints the cost: about $0.0001–0.001 and
1–3 s per turn end, estimated, not measured; precision 0.78–0.81 and recall 1.0 measured on
the inference benchmark (84 synthetic cases). With `jev.judgeBackend` `cli` it uses the local
`claude -p` CLI on the user's Claude login instead of a key (about 5–6 s per turn end, measured). `status` shows on/off, key
visibility and the model (`jev.judgeModel`). Relay that output; do not add claims about accuracy.
## Advisor mode (Sonnet main + Opus advisor)
Recommended setup: run Sonnet as the main model and Opus as the advisor (the `advisor` tool). Hard decisions go to the advisor; the rest stays on Sonnet.
| Rule | Switch (default on) | Enforced |
|---|---|---|
| Retry | `guards.advisorRetry` | a second edit of the same file after a failed test or build, with no advisor call in between, is blocked once; also a second fix dispatch for one issue with no advisor call since the first (non-flagship main) |
| Thinking | `guards.advisorThinking` | non-flagship main: a fix/design/investigate/plan/review dispatch with no advisor call since your last message is nudged, the second is blocked once per task |
| Say-do | `guards.advisorSayDo` | non-flagship main: a turn that says it will ask the advisor and does not is blocked once at Stop |
| Plan | `guards.advisorPlan` | writing a plan file or calling ExitPlanMode with no advisor call since the task began is blocked once |
| Review | `guards.advisorReview` | a review-shaped agent spawn on Sonnet or Haiku is blocked once (use Opus, Fable or Codex) |
All three stay silent unless the session has the advisor tool, block once per trigger, are capped per session, never fire on a Stop continuation and fail open. Their lists, patterns, caps and texts live in the plugin's `advisor.toml` and `advisory.toml`. Adherence is counted under `advisory` in the engine report (`ah-engine status --json`): `advisor_consult.consult`, `advisor_retry.armed`, `.consulted` (consult after a failure), `.injected` (blocks fired), `.acted_on` (block followed by a consult), `advisor_review` and `advisor_plan` `.injected` and `.suppressed`; each session also keeps its own tally in its `advisor-retry-<session>.json` state file.
Turn it off with `set guards.advisorRetry false` (likewise `guards.advisorPlan`, `guards.advisorReview`, `guards.advisorThinking`, `guards.advisorSayDo`) or the env `ANTIHALL_ADVISOR_RETRY`, `ANTIHALL_ADVISOR_PLAN`, `ANTIHALL_ADVISOR_REVIEW`, `ANTIHALL_ADVISOR_THINKING`, `ANTIHALL_ADVISOR_SAY_DO` set to `0`.
The plan rule and the retry re-edit rule, in the main session only, are skipped while the main model ranks equal or higher than the advisor model (haiku < sonnet < opus < fable, matched by family name, so a new version needs no edit): an Opus main with an Opus advisor is left alone. A subagent is never exempted, and an unknown main or advisor model keeps the guard on. The review rule and the phase-3 rules are not affected. Switch: `guards.advisorRank` (env `ANTIHALL_ADVISOR_RANK`, default off); counters `advisor_guard.skipped_equal_or_higher`, `applied_lower_model`, `applied_unknown_model`, `applied_subagent_unranked`, and the metric `advisor_rank{result}`.
## Turning a hook off
"Turn off the task-list nudge", "stop the per-turn verify-first line", "disable the
parent gate" and the like are one `set <section.key> false`. The switch keys:
`context.*` (verify-first injections, task tracker, handover resume, defect nudge;
`context.protocolLevel` (`compact` default / `full` = today's complete text everywhere, the one-key rollback) and `context.orchFullOn` (`auto` default / `spawn` / `session` / `off`: when the full orchestration rules arrive under compact);
`context.dedupeWindowMin` — fallback per-session suppression window (minutes) for
repeated UserPromptSubmit blocks (LIMIT CONSERVATION, TASK-LIST, DEVSWARM COMMS
OVERRIDE, DEVSWARM WORKSPACES) when a burst of queued prompts lands in one turn,
default 20, 0 = off/disables emit-dedupe entirely; suppression counts surface in
`/anti-hall:doctor`),
`maintenance.*` (repair-on-reload, progress prune, pre-compact snapshot, task
lifecycle log, session-end MCP reaper), `guards.*` (api, speculation, claim ledger,
task, task-list, scan throttle; `guards.modelRouting` takes `strict|advisory|off`;
`guards.noBlockingQuestions` takes `off|advise|block` (default `off`; Claude only — watches the
`AskUserQuestion` tool; live firing not yet verified, see docs/KB-claude-code-hooks.md);
`guards.questionAgentsNote` (default on) adds one advisory line to a question asked while background
agents are in flight, independent of that mode;
`guards.sharedTreeAgentNote` (default on) adds one advisory sentence when a write-capable agent is
spawned without `isolation:"worktree"` while another write-capable agent runs in the same working tree;
`guards.spawnCeiling` (default on) blocks an agent spawn when the session already runs too many agents (default 12, shrinking in steps as the 5-hour or weekly limit nears; skip entry `spawn-ceiling`);
`guards.usageAwareDispatch` (default on) advises cheaper models and fewer agents at the soft usage threshold and blocks new spawns at the hard one (skip entry `spawn-usage`);
`guards.mergeSidePickAdvisory` (default on) adds one advisory to a push when a conflict was resolved by
taking one side wholesale (`--ours`/`--theirs`, `-X ours|theirs`) and no test run followed;
`guards.idleAgentSweep` (default on) lists, once per prompt, agents that finished but were never stopped
(teammates: TaskStop; Codex: close_agent), when `guards.idleAgentSweepCount` (3) are idle or one has been
idle `guards.idleAgentSweepMin` (15) minutes;
`guards.injectionRepeatEvery` — turns between full re-injections of a static
per-turn reminder block (VERIFY-FIRST, the DevSwarm PRIMARY dispatch-tier/
top-fan-out-tier suffixes) once its first-turn/post-compact copy is consumed,
default 10, 0 = every turn; `guards.codexQuotaDetect` — record a Codex
quota/rate-limit exhaustion seen in a `codex:codex-rescue` result so other
sessions stop rediscovering it independently, default on;
`guards.coordinatorWorkWindowMinutes` (default 10, 0 = off; main-thread state-changing Bash calls counted over that many minutes — in a non-git project only coordinator-writable or fresh scripts count),
`guards.coordinatorWorkNudgeAt` (default 4, 0 = no nudge), `guards.coordinatorWorkBlockAt` (default 7, 0 = no block; recovery commands and loosely matched inline code are never blocked),
`guards.coordinatorWorkMaxEntries` (default 50, min 1), `guards.bashEditParity` (default on — command-guard applies edit-guard's verdict to Bash writes into repo files in the main thread), `guards.shellWriteChecks` (default on — api-guard and ship-it-guard also check Bash file writes) and `guards.gitGuardHeredocData` (default on — git-guard does not scan a heredoc body that only feeds a prose file, a commit message or a PR body; off = scan every body as shell)),
and `devswarm.*` (parentGate, childGate, parentInbox, childTurn, childRole, childDrain,
parentReplyTracker, commsGuard, inboxReadGuard, wakeWatch, appSync, screenshotSync, spawnFromOrigin, spawnSource;
`dispatchTierText` turns the Primary dispatch-tier text off everywhere, `inlineWorkNudge` (independent of it) the once-per-session
nudge to spin a child workspace after `inlineWorkNudgeThreshold` inline edits; `tickRosterEvery` N>0 appends the
roster to every Nth `inbox tick --quiet`, default 0 = off). The new question/dispatch/nudge/roster keys have no
/config row (settings file or env only, like every non-headline setting).
Settings are read when each hook runs, so a change applies from the next hook call.
## `show` only when asked
Only when the user explicitly asks to see settings ("show my anti-hall settings", "what
are my settings"), run:
```
"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings show # or: show --section <key> [--all]
```
and present the output as-is (per-section markdown tables; the Source column says
which tier answered — `plugin-option` (a stored plugin option), `file`, `env`, `legacy`, `default`).
A question about ONE value ("what's the auto-handover threshold") is a single
`get <section.key>`, not a `show`.
## Auto-handover (`autoHandover` section)
The auto-handover trigger (`auto-handover` + the Stop-time
`auto-handover-pause-nag`) is **on by default at 93%** of this session's actual context window (plus an absolute `maxTokens` ceiling of 500000 that
only bites on 1M windows — see below). When the main agent first crosses it, it self-writes a handover, tells the user,
and suggests `/compact` or `/clear`. Follow-up reminders fire every `nagStepPct`
further points and at a quiet pause (at most once per `nagQuietMin` minutes, and
never the same percentage twice within one step) unless `nag` is off.
**Post-handover new-work gate (v0.109.0, `gateNewWork`, on by default).** Once
usage is past the threshold AND this session's handover file has been written,
each new request gets a short directive: the agent judges the request's size
itself BEFORE starting it, and if it would need more than `gateBudgetPct` (default
5) points of the context window it offers two choices — (a) add it to the task
list and the handover and start it after `/compact` or `/clear`, or (b) proceed
anyway if you insist (an explicit insistence always overrides the gate). Quick
questions, finishing the in-flight task the handover names, and spawning a
DevSwarm workspace pass straight through. A measured backstop sends ONE reminder
per handover once usage grows more than `gateBudgetPct` points past where the
handover was saved: refresh the handover and offer to park the rest.
**Decisive compact/clear prompt (v0.109.5, `decisivePrompt`, on by default).** At a
turn-ending Stop point (the fire-once or the natural-pause nag in
`auto-handover-pause-nag`), once this session's `HANDOVER*.md` exists and
is fresh (no counted file-changing action — including subagent edits and Bash
writes — happened after it was written; the same shared detector
`tasklist-guard` uses), the directive tells the agent to END its
reply with one prominent, glyph-led line naming the exact command: `🟢 **GOOD POINT
TO /compact NOW**: handover saved at <path>. /compact keeps working on the same
task; /clear if the next task is different.` — or, when the handover's own "Open
items"/"Next action" read as done, `🟢 **GOOD POINT TO /clear NOW**` instead. If the
handover has gone STALE since it was written, the line becomes `⚠️ **Refresh the
handover first**, then /compact` and never claims a "good point". If freshness cannot
be determined (no readable transcript, e.g. a Codex rollout), the line is a neutral
`📝 Handover saved at <path>. If you've continued working since, refresh it; then
/compact.` — never 🟢. "Next action" counts as done only when it reads exactly
none/done/complete/nothing. Codex sessions get
`/new` in place of `/clear`. Off reverts to the plain (non-decisive) fire/pause-nag
wording.
| Key | Default | Meaning |
|---|---|---|
| `autoHandover.enabled` | `true` | the whole trigger |
| `autoHandover.pct` | `93` | threshold, 1-99 (env `ANTIHALL_AUTO_HANDOVER_PCT`; env `0` = off for that process) |
| `autoHandover.maxTokens` | `500000` | absolute token ceiling (env `ANTIHALL_AUTO_HANDOVER_MAX_TOKENS`; `0` = off); only bites on 1M windows at the default; when set, a real token count, so it fires the full directive even when the window is unknown |
| `autoHandover.nag` | `true` | follow-up reminders |
| `autoHandover.nagStepPct` | `5` | milestone step, in points |
| `autoHandover.nagQuietMin` | `15` | minutes between pause reminders |
| `autoHandover.gateNewWork` | `true` | post-handover new-work gate (size-first, park-or-proceed offer) |
| `autoHandover.gateBudgetPct` | `5` | post-handover budget in context-window points, 1-50; also the one-shot backstop distance |
| `autoHandover.decisivePrompt` | `true` | end-of-reply decisive `/compact`\|`/clear`\|`/new` line (or "refresh first" when stale) at a turn-ending Stop point |
"Turn off auto-handover" = `set autoHandover.enabled false`; "set auto-handover to
80%" = `set autoHandover.pct 80`. The older one-purpose CLI still works as an alias
over the same keys:
`~/.anti-hall/ah-engine/bin/ah-engine auto-handover-config get [--json] | set <1-99> | off | on | max-tokens <n> | nag on|off | nag-step <n> | nag-quiet <n>`.
### Recommended setup: hand over 5% before auto-compact
The shipped defaults are `autoHandover.pct` = 93 and `autoHandover.maxTokens` = 500000. They are set to pair with the Claude Code auto-compact settings below.
The rule: the handover fires about 5% of the context window before that model's auto-compact, so the agent writes it while it still has room.
| Model window | Auto-compact | Recommended anti-hall setting |
|---|---|---|
| 200k | Claude auto-compact at 98% (`CLAUDE_AUTOCOMPACT_PCT_OVERRIDE=98`) | `autoHandover.pct` = 93 (shipped default) |
| 1M | `CLAUDE_CODE_AUTO_COMPACT_WINDOW=550000`. Claude Code clamps it to the model window, so 200k models are unaffected and 1M models compact at about 55%. | `autoHandover.maxTokens` = 500000 (shipped default) |
`pct` and `maxTokens` fire on whichever comes first, so a `maxTokens` of 500000 only bites on 1M sessions. To change them:
```
ah-engine auto-handover-config set 93
ah-engine auto-handover-config max-tokens 500000
```
Why cap a 1M window: on one machine, over 7 days and about 4.3k transcripts, turns above 550k context were 41% of input tokens, and a 55% cap simulated about 32% less input. This is a measured example from one machine, not a guarantee.
Codex: leave `model_auto_compact_token_limit` alone. If you do set it, the same rule applies: hand over 5% of the window before it.
Context % comes from the best source available: the statusline's real
`context_window` figure (Claude), the rollout's `model_context_window` (Codex), else
a transcript estimate (`ANTIHALL_CONTEXT_WINDOW_TOKENS` overrides the window size). An
estimate with an unknown window gets only a soft advisory from the percent path (the
token ceiling still fires the directive). If a long autonomous turn never reaches a
new prompt, the Stop hook delivers the directive once instead. Before every compaction
`precompact-snapshot` writes a mechanical `PRECOMPACT-<n>.md` safety-net snapshot
next to the handovers (it never blocks compaction). Planned, not shipped yet: the PreCompact snapshot will also write a "since the last handover" delta (all user messages since the handover, commits and files, task changes, agent final reports), built mechanically with no model call. Today it writes only what is described here.
## Engine settings (`ah-engine`)
The per-hook switches above (`guards.*`, `safety.*`, `context.*`, ...) are honoured by the engine and by the Node hooks alike, so
`set` works the same with or without the engine. The engine's own tunables (limits, texts, rules, dispatch rows, `telemetry.enabled`,
`telemetry.retention_days`, per-entry `mode` on/shadow/off) are NOT `ah-engine settings` keys: they are plain files in the plugin's
`engine/` directory plus the engine's `config.toml`. Show them with `ah-engine config --json` (each value with its source),
validate an edit with `ah-engine config validate <file>`, restore a missing key with `ah-engine config heal`. A bad edit falls back
to the last-known-good copy, then the SHA-verified pristine copy in `engine/defaults.pristine/`, then Node.
The pristine copy uses generated bundles for non-pinned files and loose copies for the four pinned files. Maintainers regenerate
it with `ah-regen`; users edit the engine config layers. The automatic
engine download is opt-in: the setting `engine.bootstrap` (boolean, default false; `ah-engine settings set engine.bootstrap true`), or the env var `AH_ENGINE_BOOTSTRAP=1` (0 forces it off), which overrides the setting; without it the plugin's one shell file, `hooks/install.sh`, only prints one notice per session until you run `sh hooks/install.sh --download`. The crash-loop and roll-back switches are engine tunables too: `client.spawn_n` / `client.spawn_window_s` (daemon starts that stop respawning), `daemon.healthy_after_s` (uptime that makes a binary "known good") and `rollback.*` (`rollback.on_mismatch=0` turns the checksum roll-back off; `rollback.fail_n` / `rollback.fail_window_s` set how many wrapper failures count; the install lock has four more: `rollback.install_lock` (the directory of the one lock every writer of the engine binary shares), `rollback.lock_wait_s` (how long an install, ah-update roll-back or sha recording waits for it), `rollback.lock_hook_wait_s` (how long the hook wrapper's integrity check waits before skipping; a held lock never holds a session) and `rollback.lock_stale_s` (a lock held longer is broken; one whose holder is gone is broken at once); list them with `settings tunables rollback`. The start-up probe warm-up is `host_spawn.prewarm` (on by default), `host_spawn.prewarm_programs` (the interpreters whose version probe it runs) and `host_spawn.prewarm_timeout_ms`.
## Allow or block remote commands
Two plain lists in the engine config decide which remote commands (any binary: `gh`, `kubectl`, `firebase`, ...) the main thread may run:
- `command.remote_allow`: always runs in the main thread (shipped: gh issue/label/pr create, comment, edit, close, reopen).
- `command.remote_block`: always blocked, with an "irreversible or sensitive" reason (shipped: gh pr merge, release, repo edit/delete, secret, `gh api -X POST|PUT|PATCH|DELETE`).
- Block wins over allow. A command in neither list keeps the default rule (reads pass, mutations block).
- An entry is a command prefix: binary, then leading subcommand words (global flags like `-R owner/repo` are skipped), then optionally an option and its value (`gh api -X POST`).
Ask the user first: **this project or the whole machine?** The lists live in the engine's `config.toml` in the engine state directory (`ah-engine config --json` shows the effective value of every key and which file set it), which is machine-wide (user level); there is no per-project layer for these keys, so say so if they ask for project scope. Do not edit the plugin's `engine/defaults/` files.
Add and remove with four more lists in `config.toml`; the effective list is the shipped one, minus `*_remove`, plus `*_add`:
```toml
[command]
remote_allow_add = ["firebase hosting:channel:deploy"]
remote_allow_remove = ["gh pr create"]
remote_block_add = ["kubectl delete"]
remote_block_remove = ["gh secret"]
```
(Setting `remote_allow` / `remote_block` themselves replaces the shipped list outright; prefer add/remove.)
Check the result with `ah-engine config --json` and `ah-engine config validate <file>`.
## Resetting a setting
`"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings reset <section.key>` removes the
settings.json override for that one key, so the stored plugin option (if the key has a
`pluginOption`), the legacy source, or the schema default takes over again.
## Scripting / non-interactive use
Every subcommand takes `--json` for machine-readable output:
```
"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings show --json
"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings show --section jev --json
"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings get jev.enabled --json
"$HOME/.anti-hall/ah-engine/bin/ah-engine" settings set limitConserve.threshold 90 --json
```
`show --section jev` (and `--section jevIntegrations`) also prints **Jev integrations —
effective mode**: every integration id, the mode the runtime actually applies (master
switch and `ANTIHALL_JEV_<ID>=0` folded in), the stored value, its source tier, and the
log it writes to (`jevEffectiveIntegrations` in `--json`). `speculation`, `triage` and
`findingDedup` usually show source `default`: no install writes them, so they run on the
schema default `on`.
## What this skill never does
- Never edits `~/.anti-hall/settings.json` (or any legacy config file) by hand —
always through `ah-engine settings`, so validation and the atomic write always
run.
- Never deletes a legacy config file (e.g. `~/.anti-hall/jev.json`) — anti-hall
forward-migrates its values into `settings.json` once (see
`migrations`) but always leaves the legacy file in place.
- Never invents a setting or value not in the schema — `ah-engine settings show`
is the source of truth for what exists and what it currently is.