Repository navigation
Description
Summary
Source PR: inference-gateway/cli#618
PR #618 changes several user-facing surfaces in the infer CLI and renames the bash auto-approval model. The docs need updating to match, and some existing pages still describe the removed "whitelist" vocabulary.
What changed (user-facing)
-
Bash auto-approval is now a per-mode allowed-list (default-deny).
- Configure
tools.bash.mode.{all,plan,standard,auto}.allow.mode.allis the every-mode baseline, unioned with the active mode's own list. - Matching is full-command: a bare token like
ghallows onlygh; entries opt into arguments (gh issue.*). The single.*sentinel means unrestricted (used bymode.auto). - A clean-command guard rejects (for every non-
.*mode): command substitution, multi-command chains/pipelines, file-write redirects, dangerousfindactions, and env-var leaks (a printing/publishing command such asecho/printf/gh ... create|comment|editmay not expand$VAR). - Removed:
tools.bash.whitelist.commands, theINFER_TOOLS_BASH_WHITELIST_COMMANDS[_APPEND]env vars, and the--tools-bash-whitelist-commands*flags. - New append override:
--tools-bash-allow-append/INFER_TOOLS_BASH_ALLOW_APPEND(comma/newline list, env wins over flag) merges ontomode.all.allow, so CI can add a few safe commands (for examplegit commit/git push) without shipping.*.
- Configure
-
Headless
infer agentis now secure-by-default.- New
tools.safety.approval_behaviour(prompt|ipc|block, defaultprompt) decides HOW a needed approval is delivered; the existingrequire_approvaldecides WHETHER. - Headless runs in standard mode: an off-list / mutating action is sent for IPC approval when a broker is attached (
--require-approval, e.g. the channel manager), otherwise blocked with a reason. There is no more.*default; full autonomy is an explicit opt-in. - Controlled-autonomy CI profile:
approval_behaviour: block+tools.write.require_approval: false+ a curated bash allow-list / the append override. - Auto-accept mode gets a dedicated destructive-action safety prompt (
prompts.agent.system_prompt_auto).
- New
-
Agent skills are enabled by default (
agent.skills.enabled: true). -
/modelis unified and/switchis deprecated./model <name>permanently switches the active model;/model <name> <prompt...>runs a single message with that model and restores the session model afterward. -
New diff-viewer / git-staging keybindings in
infer chat: patch line selection, hunk split, and stage-all / unstage-all. (Keys are configurable inkeybindings.yaml; document the defaults.)
Affected pages
configuration.md- replace the bash whitelist config with the per-modetools.bash.mode.<mode>.allowmodel; addtools.safety.approval_behaviourandagent.skills.enableddefault change.cli.md- the existing "Whitelist" section (around line 533) uses removed terminology and must be rewritten to the allowed-list model; update the approval and skills sections; document the unified/modelcommand and the new diff-viewer keybindings.cli-skills.md- note that skills are now on by default.github-action.md- the existing "whitelist" references (around lines 62, 115-118) are stale; documentINFER_TOOLS_BASH_ALLOW_APPENDand the controlled-autonomy CI profile instead.
Examples to add
- A minimal
tools.bash.mode.standard.allowsnippet and the.*sentinel formode.auto. - A CI snippet using
INFER_TOOLS_BASH_ALLOW_APPEND="git commit,git push". - A controlled-autonomy config block (
approval_behaviour: block+tools.write.require_approval: false).
Acceptance Criteria
-
configuration.mddocumentstools.bash.mode.<mode>.allow(per-mode, default-deny, full-command match,.*sentinel) and the clean-command guard, with the oldtools.bash.whitelist.*keys removed. -
tools.safety.approval_behaviour(prompt/ipc/block) and the WHETHER-vs-HOW relationship withrequire_approvalare documented, including the controlled-autonomy CI profile. -
INFER_TOOLS_BASH_ALLOW_APPEND/--tools-bash-allow-appendare documented; all references toINFER_TOOLS_BASH_WHITELIST_COMMANDS*and--tools-bash-whitelist-commands*are removed. - All "whitelist" references in
cli.mdandgithub-action.mdare updated to the allowed-list model. -
agent.skills.enableddefault-on is reflected incli-skills.mdandcli.md. - The unified
/modelcommand and/switchdeprecation are documented. - The new diff-viewer keybindings (patch line selection, hunk split, stage-all/unstage-all) are documented with their default keys.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
edenreich commentedon Jun 8, 2026
@claude Can you document it? use /maintainer
claude commentedon Jun 8, 2026
Claude finished @edenreich's task in 20m 3s —— View job •
docs/issue-194-20260608-1133• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-194-20260608-1133?quick_pull=1&title=Issue%20%23194%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23194%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documented CLI changes from inference-gateway/cli#618 ✅
Opened PR #195 (
Closes #194). All checks pass locally:lint:md,format:check, andbuild.Acceptance criteria
tools.bash.mode.<mode>.allow(default-deny, full-command match,.*sentinel) and the clean-command guard documented; oldtools.bash.whitelist.*keys removedtools.safety.approval_behaviour(prompt/ipc/block) + the whether-vs-how split withrequire_approval, plus the controlled-autonomy CI profileINFER_TOOLS_BASH_ALLOW_APPEND/--tools-bash-allow-appenddocumented; allINFER_TOOLS_BASH_WHITELIST_COMMANDS*/--tools-bash-whitelist-commands*references removedcli.mdandgithub-action.mdmoved to the allowed-list model (incl. theweb_fetch.allowed_domainsrename from the same PR)agent.skills.enableddefault-on reflected incli-skills.mdandcli.md/modelcommand +/switchdeprecation documentedspace/vline-select,shunk split,Astage-all (git add -A),Uunstage-all (git reset -q HEAD),]/[hunk navFiles changed
cli.md— Bash allowed-list rewrite, hardenedghdefaults, approval model + headless secure-by-default, skills default-on, Auto-Accept destructive-action prompt, unified/model, diff-viewer keybindingscli-skills.md— skills enabled by default (callout, enable/disable section, settings table)github-action.md— allow-list wording,INFER_TOOLS_BASH_ALLOW_APPEND, controlled-autonomy CI profileOne decision to confirm
The issue lists
configuration.md, but that page is the gateway env-var reference — the bash/safety/skills keys are CLI config (.infer/config.yaml) whose existing home iscli.md. I documented them there to keep gateway and CLI config separate, rather than introducing CLI config into the gateway page. If you'd prefer a dedicated CLI-configuration section inconfiguration.md, say the word and I'll add it.· branch
docs/issue-194-20260608-1133inference-gateway-releaser commentedon Jun 10, 2026
🎉 This issue has been resolved in version 0.6.110 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀