Skip to content

[DOCS] Document bash allowed-list, headless approval_behaviour, skills default-on, and chat-TUI updates #194

Closed

Description

@edenreich

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)

  1. Bash auto-approval is now a per-mode allowed-list (default-deny).

    • Configure tools.bash.mode.{all,plan,standard,auto}.allow. mode.all is the every-mode baseline, unioned with the active mode's own list.
    • Matching is full-command: a bare token like gh allows only gh; entries opt into arguments (gh issue.*). The single .* sentinel means unrestricted (used by mode.auto).
    • A clean-command guard rejects (for every non-.* mode): command substitution, multi-command chains/pipelines, file-write redirects, dangerous find actions, and env-var leaks (a printing/publishing command such as echo/printf/gh ... create|comment|edit may not expand $VAR).
    • Removed: tools.bash.whitelist.commands, the INFER_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 onto mode.all.allow, so CI can add a few safe commands (for example git commit / git push) without shipping .*.
  2. Headless infer agent is now secure-by-default.

    • New tools.safety.approval_behaviour (prompt | ipc | block, default prompt) decides HOW a needed approval is delivered; the existing require_approval decides 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).
  3. Agent skills are enabled by default (agent.skills.enabled: true).

  4. /model is unified and /switch is deprecated. /model <name> permanently switches the active model; /model <name> <prompt...> runs a single message with that model and restores the session model afterward.

  5. New diff-viewer / git-staging keybindings in infer chat: patch line selection, hunk split, and stage-all / unstage-all. (Keys are configurable in keybindings.yaml; document the defaults.)

Affected pages

  • configuration.md - replace the bash whitelist config with the per-mode tools.bash.mode.<mode>.allow model; add tools.safety.approval_behaviour and agent.skills.enabled default 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 /model command 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; document INFER_TOOLS_BASH_ALLOW_APPEND and the controlled-autonomy CI profile instead.

Examples to add

  • A minimal tools.bash.mode.standard.allow snippet and the .* sentinel for mode.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.md documents tools.bash.mode.<mode>.allow (per-mode, default-deny, full-command match, .* sentinel) and the clean-command guard, with the old tools.bash.whitelist.* keys removed.
  • tools.safety.approval_behaviour (prompt/ipc/block) and the WHETHER-vs-HOW relationship with require_approval are documented, including the controlled-autonomy CI profile.
  • INFER_TOOLS_BASH_ALLOW_APPEND / --tools-bash-allow-append are documented; all references to INFER_TOOLS_BASH_WHITELIST_COMMANDS* and --tools-bash-whitelist-commands* are removed.
  • All "whitelist" references in cli.md and github-action.md are updated to the allowed-list model.
  • agent.skills.enabled default-on is reflected in cli-skills.md and cli.md.
  • The unified /model command and /switch deprecation are documented.
  • The new diff-viewer keybindings (patch line selection, hunk split, stage-all/unstage-all) are documented with their default keys.

Activity

  1. added
    documentation
    on Jun 8, 2026
  2. added theissue type on Jun 8, 2026
  3. moved this to Todo in 2026on Jun 8, 2026
  4. edenreich commented on Jun 8, 2026

    @edenreich
    ContributorAuthor

    @claude Can you document it? use /maintainer

  5. claude commented on Jun 8, 2026

    @claude
    Contributor

    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, and build.

    Acceptance criteria

    • Per-mode tools.bash.mode.<mode>.allow (default-deny, full-command match, .* sentinel) and the clean-command guard documented; old tools.bash.whitelist.* keys removed
    • tools.safety.approval_behaviour (prompt/ipc/block) + the whether-vs-how split with require_approval, plus the controlled-autonomy CI profile
    • INFER_TOOLS_BASH_ALLOW_APPEND / --tools-bash-allow-append documented; all INFER_TOOLS_BASH_WHITELIST_COMMANDS* / --tools-bash-whitelist-commands* references removed
    • All "whitelist" wording in cli.md and github-action.md moved to the allowed-list model (incl. the web_fetch.allowed_domains rename from the same PR)
    • agent.skills.enabled default-on reflected in cli-skills.md and cli.md
    • Unified /model command + /switch deprecation documented
    • New diff-viewer keybindings documented with defaults: space/v line-select, s hunk split, A stage-all (git add -A), U unstage-all (git reset -q HEAD), ]/[ hunk nav

    Files changed

    • cli.md — Bash allowed-list rewrite, hardened gh defaults, approval model + headless secure-by-default, skills default-on, Auto-Accept destructive-action prompt, unified /model, diff-viewer keybindings
    • cli-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 profile

    One 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 is cli.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 in configuration.md, say the word and I'll add it.
    · branch docs/issue-194-20260608-1133

  6. moved this from Todo to Done in 2026on Jun 8, 2026
  7. inference-gateway-releaser commented on Jun 10, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.6.110 🎉

    The release is available on GitHub release

    Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    documentationreleased

    Type

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions