Repository navigation
[FEATURE] Built-in /config skill to change settings from chat #1499
Copy link
Copy link
Labels
Description
Summary
Add a built-in config skill so the user can type /config can you adjust the gateway timeout to 300 in the TUI and have the agent change the setting for them, with the change applied to the running session. The agent maps the request to dotted config keys, shows the current value, asks for confirmation, writes the change with the existing infer config set, and triggers a reload. It never touches approval policy.
Prerequisites, split out of this issue:
- [FEATURE] Move tools config to a protected userspace tools.yaml #1501: move
tools:into a protected userspacetools.yamlso the agent cannot approve its own tools once it is allowed to edit config. - [FEATURE] Reload configuration in chat with /reload #1502: real
/reloadin chat so the change takes effect without restarting.
Proposed shape
internal/skills/builtins/config/SKILL.md, seeded byinfer initlikebugandtmux./config <text>already routes to the agent as a skill invocation (isSkillInvocation), so no new shortcut is needed and the shortcutReloadside effect stays owned by/reload.- The skill shells out to the CLI instead of editing YAML:
infer config get <key>to show the current value and validate the key,infer config set <key> <value>to write (userspace by default,--projectonly when the user asks for the project override). This reuses key resolution, type parsing and the write path, and keeps the skill out of the~/.infer/approval prompts the sandbox would otherwise raise for a raw Write. - Flow: resolve the key(s) from the request, using
infer config getanddocs/configuration-reference.mdwhen the key is ambiguous. OneAskUserQuestionround at most. Showkey: old -> newand ask to apply. Apply, then run/reloador tell the user which keys are restart-only (per [FEATURE] Reload configuration in chat with /reload #1502). - Hard limits written into the skill and enforced by the prerequisites, not by the prompt alone: never
tools.*,sandbox,auth,judge,channels,mcp,plugins,hooks. The skill says so and points to the file to edit by hand.infer config setrejectstools.*after [FEATURE] Move tools config to a protected userspace tools.yaml #1501 anyway. - Nothing is changed without explicit confirmation; declining leaves the exact
infer config setcommand for the user to run. infermust be allow-listed in the bash mode or each call prompts, same caveat thebugskill documents forgh.
Acceptance Criteria
-
/config set the gateway timeout to 300ends withgateway.timeout: 30 -> 300applied to the running session after the user confirms, andinfer config get gateway.timeoutprints 300 afterwards. -
/config switch the model to <provider/model>updatesagent.modeland the status bar shows the new model without restarting. -
/config allow rm -rf in bashor anytools.*request is refused by the skill with a pointer to~/.infer/tools.yaml, andinfer config set tools.bash.mode.default.allow ...fails on its own ([FEATURE] Move tools config to a protected userspace tools.yaml #1501). - An unknown or ambiguous key leads to one clarifying question or a clear "no such key", never a guessed write.
- Declining the confirmation changes nothing and prints the command the user can run themselves.
- Restart-only keys produce the restart notice from [FEATURE] Reload configuration in chat with /reload #1502 instead of a false "applied".
-
docs/skills.mdlists the skill anddocs/commands-reference.mdmentions/config.
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsDone
Activity
[-][FEATURE] Implement config skill[/-][+][FEATURE] Built-in /config skill to change settings from chat[/+]feat(config): move the tools policy into a protected userspace tools.…
inference-gateway-releaser commentedon Oct 3, 2026
🎉 This issue has been resolved in version 0.223.0 🎉
The release is available on:
Your semantic-release bot 📦🚀