Skip to content

[FEATURE] Built-in /config skill to change settings from chat #1499

Description

@edenreich

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:

Proposed shape

  • internal/skills/builtins/config/SKILL.md, seeded by infer init like bug and tmux. /config <text> already routes to the agent as a skill invocation (isSkillInvocation), so no new shortcut is needed and the shortcut Reload side 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, --project only 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 get and docs/configuration-reference.md when the key is ambiguous. One AskUserQuestion round at most. Show key: old -> new and ask to apply. Apply, then run /reload or 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 set rejects tools.* 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 set command for the user to run.
  • infer must be allow-listed in the bash mode or each call prompts, same caveat the bug skill documents for gh.

Acceptance Criteria

  • /config set the gateway timeout to 300 ends with gateway.timeout: 30 -> 300 applied to the running session after the user confirms, and infer config get gateway.timeout prints 300 afterwards.
  • /config switch the model to <provider/model> updates agent.model and the status bar shows the new model without restarting.
  • /config allow rm -rf in bash or any tools.* request is refused by the skill with a pointer to ~/.infer/tools.yaml, and infer 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.md lists the skill and docs/commands-reference.md mentions /config.

Activity

  1. added
    enhancement
    on Oct 2, 2026
  2. added theissue type on Oct 2, 2026
  3. changed the title [-][FEATURE] Implement config skill[/-] [+][FEATURE] Built-in /config skill to change settings from chat[/+] on Oct 2, 2026
  4. moved this to Todo in 2026on Oct 2, 2026
  5. inference-gateway-releaser commented on Oct 3, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.223.0 🎉

    The release is available on:

    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

    enhancementreleased

    Projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions