Skip to content

[DOCS] cli renames per-mode prompt config to mode adjustments (mode-change reminder is the sole mode-instruction carrier) #623

Closed

Description

Summary

inference-gateway/cli PR #1135 (resolves cli#1134) renames the per-mode prompt config surface and re-purposes the per-mode texts. The mode-specific instructions are no longer system prompts: the system prompt at message[0] is now guaranteed byte-stable across agent-mode switches (Shift+Tab) to keep the prompt/KV cache warm, and the per-mode instructions are delivered by the built-in on_mode_change system reminder instead.

Config changes shipped in cli PR #1135 (docs/ in that repo are updated in the same PR):

  • agent.system_prompt_plan / agent.system_prompt_auto renamed to agent.mode_adjustment_plan / agent.mode_adjustment_auto (YAML keys mode_adjustment_plan / mode_adjustment_auto). They ship empty; the built-in texts live in the mode-change reminder guidance map in reminders.yaml.
  • New env vars INFER_PROMPTS_AGENT_MODE_ADJUSTMENT_PLAN / _AUTO. The old INFER_PROMPTS_AGENT_SYSTEM_PROMPT_PLAN / _AUTO still load with a deprecation warning and lose when both are set.
  • The deprecated YAML keys still load into the new fields (new keys win).
  • Guidance precedence per mode: user-edited reminders.yaml guidance beats prompts.yaml mode adjustment beats built-in default.
  • New behavior: the mode-change reminder is the sole carrier of mode-specific instructions, so with reminders.enabled: false those instructions are not delivered.

This repo's docs (site/landing pages) may describe agent.system_prompt_plan / agent.system_prompt_auto or the plan-mode prompt model; they should be reconciled with the new surface.

Source PR: inference-gateway/cli#1135

Acceptance Criteria

  • Any page here that documents agent.system_prompt_plan / agent.system_prompt_auto or INFER_PROMPTS_AGENT_SYSTEM_PROMPT_PLAN / _AUTO is updated to agent.mode_adjustment_plan / agent.mode_adjustment_auto and the new env vars, with a deprecation note for the old names.
  • The plan-mode story reflects that plan instructions arrive via the on_mode_change system reminder while the system prompt stays byte-stable across mode switches (KV-cache rationale).
  • The reminders.enabled: false trade-off (mode-specific instructions not delivered) is stated wherever reminder behavior is described.

Activity

  1. added
    documentation
    on Aug 31, 2026
  2. edenreich commented on Aug 31, 2026

    @edenreich
    Contributor

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

  3. added theissue type on Aug 31, 2026
  4. moved this to Todo in 2026on Aug 31, 2026
  5. inference-gateway-maintainer commented on Aug 31, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    Done - PR #624

    • Gather context (only cli.md referenced the old surface)
    • Update cli.md for mode_adjustment_plan / mode_adjustment_auto + new env vars, with deprecation note
    • Document the mode-change reminder as sole carrier + KV-cache rationale
    • State the reminders.enabled: false trade-off
    • lint:md, format:check, build all pass
    • Commit + PR

    Changes (all in cli.md)

    • New How mode instructions are delivered subsection under Plan Mode: system prompt at message[0] is byte-stable across Shift+Tab (KV-cache rationale), per-mode text rides in the built-in mode-change-reminder {guidance} placeholder, plus the precedence table (reminders.yaml guidance > prompts.yaml mode adjustment > built-in).
    • Auto-Accept Mode: prompts.agent.system_prompt_auto -> mode_adjustment_auto delivered via the reminder; deprecation note covers the old YAML keys and INFER_PROMPTS_AGENT_SYSTEM_PROMPT_PLAN / _AUTO (new names win).
    • Added INFER_PROMPTS_AGENT_MODE_ADJUSTMENT_PLAN / _AUTO to the environment variables block.
    • System Reminders: documented the on_mode_change trigger and the guidance field.
    • reminders.enabled: false trade-off stated in both the mode section and the reminders precedence section (tool restrictions unaffected, only guidance text is lost).

    Skipped: the wider drift between this page's reminders schema and upstream (extra hook points, merge: true, additional triggers) - out of scope for this issue, worth its own ticket.
    | Branch | PR #624

  6. moved this from Todo to In progress in 2026on Aug 31, 2026
  7. moved this from In progress to QA in 2026on Aug 31, 2026
  8. moved this from QA to Done in 2026on Aug 31, 2026
  9. inference-gateway-releaser commented on Sep 22, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.14 🎉

    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