Skip to content

[DOCS] Document /reload and the built-in /config skill #916

Closed

Description

@edenreich

Summary

The CLI gained a /reload chat shortcut, a built-in config skill and a validation guard on infer config set in inference-gateway/cli#1508 (closes inference-gateway/cli#1502 and inference-gateway/cli#1499). The docs site does not cover any of them yet.

/reload re-reads the config files and INFER_* env in a running infer chat.

  • It applies these keys to the session: gateway.timeout, agent.model, agent.max_turns, agent.max_tokens, agent.reasoning_effort and the whole chat.status_bar section (indicators hide or show right away).
  • Every other changed key is named in the status line as "restart to apply". Tools, sandbox and approval policy never change mid-session.
  • A config that fails validation, or a reload while the agent is busy, keeps the previous config and shows the error.
  • gateway.url and gateway.api_key take effect on restart.

The config built-in skill handles /config <request>, e.g. /config set the gateway timeout to 300.

  • It maps the request to a dotted key and shows key: old -> new.
  • It writes with infer config set only after the user confirms, then tells the user to type /reload.
  • It refuses tool, sandbox, MCP, channel, plugin, hook and judge policy and secrets, and names the file to edit by hand.
  • infer config get/set are not allow-listed by default, so each call asks for approval.

infer config set now rejects a value the config loader would refuse (e.g. agent.reasoning_effort=bogus). It restores the previous file instead of leaving a config that stops infer from starting.

Affected pages:

  • cli-skills.md:
    • Built-in skills: "Three built-ins ship today" becomes four.
    • Add a "The config skill" subsection next to bug and demo.
    • Update the frontmatter description that lists the built-ins.
  • cli.md: a short "Reloading configuration in chat" section near the configuration content covering /reload, the hot keys and the restart notice. Also mention that infer config set validates before saving.

Example to add:

infer config set gateway.timeout 300
# then, in infer chat:
/reload
# status line: Reloaded gateway.timeout

Acceptance Criteria

  • cli-skills.md lists the config built-in with its flow (resolve key, confirm, infer config set, /reload) and what it refuses.
  • cli.md documents /reload: the hot keys, the "restart to apply" notice, and that a failed validation or a busy agent keeps the previous config.
  • cli.md notes that infer config set rejects values that fail validation and keeps the previous file.
  • Pages link back to feat: reload configuration in chat and add a built-in /config skill cli#1508.

Activity

  1. added
    documentation
    on Oct 2, 2026
  2. added theissue type on Oct 2, 2026
  3. added this to 2026 and removed this from 2026on Oct 3, 2026
  4. edenreich commented on Oct 3, 2026

    @edenreich
    ContributorAuthor

    @claude can you work on this? use /ponytail:ponytail

  5. inference-gateway-maintainer commented on Oct 3, 2026

    @inference-gateway-maintainer
    Contributor

    Claude finished @edenreich's task in 3m 12s —— View job • docs/issue-916-20261003-1137 • [Create PR ➔](https://github.com/inference-gateway/docs/compare/main...docs/issue-916-20261003-1137?quick_pull=1&title=Issue%20%23916%3A%20Changes%20from%20Claude&body=This%20PR%20addresses%20issue%20%23916%0A%0AGenerated%20with%20%5BClaude%20Code%5D(https%3A%2F%2Fclaude.ai%2Fcode)


    Done - PR #923

    • Gather context (read cli-skills.md, cli.md, AGENTS.md)
    • Verify behavior against the CLI source (reload hot-key map, reload summary strings, built-in config/SKILL.md, the restore path in config set)
    • Track issue on Roadmap board (In progress -> QA)
    • cli-skills.md: three built-ins -> four, config row, frontmatter description, catalog note
    • cli-skills.md: new "The config skill" subsection - resolve key, confirm key: old -> new, write with infer config set, hand back /reload, plus what it refuses and the approval note
    • cli.md: new "Reloading configuration in chat" section - hot keys table, "restart to apply" notice, failed-validation and busy-agent cases
    • cli.md: /reload added to the Built-in Commands table
    • cli.md: config set validates on load-back and restores the previous file
    • Validate: bun run lint:md, bun run format:check, bun run build all pass
    • Commit + open PR

    Pull request: #923

    One acceptance criterion skipped

    "Pages link back to inference-gateway/cli#1508" was not done on purpose. AGENTS.md in this repo forbids referencing GitHub issues or PRs in doc content ("no tracker numbers or links... provenance belongs in the generated CHANGELOG.md"). The pages describe the behavior instead. Say the word if you want the link in anyway and I will add it.
    | Branch

  6. inference-gateway-releaser commented on Oct 4, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.21 🎉

    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

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions