You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
[DOCS] Document the CLI tools policy in ~/.infer/tools.yaml #914
The CLI moved the whole tools: section out of config.yaml into a userspace-only ~/.infer/tools.yaml (inference-gateway/cli#1507, inference-gateway/cli#1501). infer config set tools.* is now rejected, infer config get tools.* still works, and the INFER_TOOLS_* env overrides are unchanged. A project .infer/config.yaml can no longer change tool approval, and infer's file tools never write tools.yaml, the same way they never write sandbox.yaml.
The keys that apply to every tool (enabled, custom_dir, max_result_bytes, safety) sit at the top of tools.yaml, and each tool's section sits under tools:. infer config get and INFER_TOOLS_* still name them all tools.<key>, for example tools.safety.require_approval and tools.bash.timeout:
# ~/.infer/tools.yamlsafety:
require_approval: trueapproval_behaviour: judgetools:
bash:
mode:
standard:
allow:
- make test
Acceptance Criteria
cli.md (around lines 2256-2314) replaces the infer config set tools.* examples with ~/.infer/tools.yaml snippets (global keys at the top, each tool's section under tools:) or INFER_TOOLS_* env vars
cli-judge-mode.md (line 136) sets safety.approval_behaviour: judge in ~/.infer/tools.yaml instead of running infer config set tools.safety.approval_behaviour judge
The CLI configuration pages list tools.yaml next to sandbox.yaml as a userspace-only file the agent cannot write
The pages describe the change without tracker links, as AGENTS.md in this repo requires
cli.md - Tool Configuration now documents ~/.infer/tools.yaml with a flat sample plus the guarantees it shares with sandbox.yaml: project copies and a tools: block in any config.yaml are ignored, the file tools refuse to write it, infer config set tools.* is rejected while infer config get tools still prints effective values, and INFER_TOOLS_* overrides are unchanged (set-but-empty wins). Ten tools:-wrapped YAML blocks (Bash per-mode allowed-list, gh baseline, Wait, WebSearch, WebFetch, ImageEdit, ImageVariation, Agent, command allow-listing, the controlled-autonomy CI profile) are flattened to the file's root-level form. The configuration-files table gains a tools.yaml row (User only) next to sandbox.yaml, the config.yaml row says a tools: block there is ignored, infer init's seed list and the Security Features list mention it, the config tools * command-mapping rows point at the file instead of config set, and Custom Tool Security no longer claims a project .infer/config.yaml can change the approval policy.
cli-judge-mode.md sets safety.approval_behaviour: judge in ~/.infer/tools.yaml; cli-channels.md moves the Schedule enablement snippet there; cli-scheduling.md names the gate as schedule.* in that file.
Not done
The fourth acceptance criterion - linking back to the CLI pull request - is intentionally skipped: this repo's AGENTS.md forbids referencing GitHub issues or pull requests in doc content, so the behavior is described instead and provenance stays in the changelog. Say the word if you want the link in anyway.
| Branch
Activity
edenreich commentedon Oct 2, 2026
@claude can you document this?
inference-gateway-maintainer commentedon Oct 2, 2026
Claude finished @edenreich's task in 5m 3s —— View job •
docs/issue-914-20261002-2208• [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-914-20261002-2208?quick_pull=1&title=Issue%20%23914%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23914%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)Documented the
~/.infer/tools.yamlpolicy filecli.md,cli-judge-mode.md,sandbox.yamlprecedent, upstream CLI change)cli.mdTool Configuration around~/.infer/tools.yaml# ~/.infer/tools.yamlpath commentinfer config set tools.*examplestools.yamlnext tosandbox.yamlas a userspace-only, agent-unwritable policy filecli-judge-mode.mdsetssafety.approval_behaviour: judgein the filecli-channels.md(Schedule tool) andcli-scheduling.mdformat:check,lint:md,build- all passPR: #915
What changed
cli.md- Tool Configuration now documents~/.infer/tools.yamlwith a flat sample plus the guarantees it shares withsandbox.yaml: project copies and atools:block in anyconfig.yamlare ignored, the file tools refuse to write it,infer config set tools.*is rejected whileinfer config get toolsstill prints effective values, andINFER_TOOLS_*overrides are unchanged (set-but-empty wins). Tentools:-wrapped YAML blocks (Bash per-mode allowed-list,ghbaseline, Wait, WebSearch, WebFetch, ImageEdit, ImageVariation, Agent, command allow-listing, the controlled-autonomy CI profile) are flattened to the file's root-level form. The configuration-files table gains atools.yamlrow (User only) next tosandbox.yaml, theconfig.yamlrow says atools:block there is ignored,infer init's seed list and the Security Features list mention it, theconfig tools *command-mapping rows point at the file instead ofconfig set, and Custom Tool Security no longer claims a project.infer/config.yamlcan change the approval policy.cli-judge-mode.mdsetssafety.approval_behaviour: judgein~/.infer/tools.yaml;cli-channels.mdmoves the Schedule enablement snippet there;cli-scheduling.mdnames the gate asschedule.*in that file.Not done
The fourth acceptance criterion - linking back to the CLI pull request - is intentionally skipped: this repo's
AGENTS.mdforbids referencing GitHub issues or pull requests in doc content, so the behavior is described instead and provenance stays in the changelog. Say the word if you want the link in anyway.| Branch
feat(config): move the tools policy into a protected userspace tools.…
inference-gateway-releaser commentedon Oct 4, 2026
🎉 This issue has been resolved in version 0.9.21 🎉
The release is available on GitHub release
Your semantic-release bot 📦🚀