Skip to content

[DOCS] Document agent.skills.max_chars and system prompt injection changes #352

Closed

Description

@edenreich

Summary

inference-gateway/cli#761 adds a new user-facing config key, agent.skills.max_chars, and changes two system-prompt behaviors. The CLI configuration reference needs to cover them.

What changed:

  • New key agent.skills.max_chars (default 4000, 0 disables, env INFER_AGENT_SKILLS_MAX_CHARS): caps the rendered AVAILABLE SKILLS block in the agent system prompt. Skills past the budget are listed by name only (never a truncated description) and remain invocable via /<name>.
  • The injected memory index (memory.max_chars) now truncates at a line boundary instead of mid-entry.
  • The system prompt now carries a date-only Current date: line instead of a minute-resolution timestamp, so provider prompt-prefix caching survives across turns.

Example config:

agent:
  skills:
    enabled: true
    max_chars: 4000 # 0 disables the cap

Source PR: inference-gateway/cli#761

Acceptance Criteria

  • agent.skills.max_chars documented in the CLI configuration reference (default, 0 semantics, INFER_AGENT_SKILLS_MAX_CHARS env override)
  • Skills documentation notes the names-only overflow behavior and that capped skills stay invocable via /<name>
  • Memory documentation reflects line-boundary truncation of the injected index; system-prompt docs mention the date-only timestamp

Activity

  1. added
    documentation
    on Jul 6, 2026
  2. added theissue type on Jul 6, 2026
  3. moved this to Todo in 2026on Jul 6, 2026
  4. edenreich commented on Jul 6, 2026

    @edenreich
    ContributorAuthor

    @infer Can you work on this?

  5. inference-gateway-maintainer commented on Jul 6, 2026

    @inference-gateway-maintainer
    Contributor

    Model: ollama_cloud/deepseek-v4-flash · View Job

    Todos

    • Explore repo structure and understand existing docs
    • Add issue to Roadmap board and set Status=In progress
    • Create working branch
    • Document agent.skills.max_chars in CLI config reference (cli.md)
    • Update skills documentation (cli-skills.md) with max_chars and names-only overflow behavior
    • Update memory documentation (cli.md) with line-boundary truncation
    • Update system-prompt docs (cli.md) with date-only timestamp
    • Commit and push changes, create draft PR
    • Set Status=QA on the board

    Pull Request

    #359

    ✅ Infer Result: Success

    Updated cli.md and cli-skills.md to document agent.skills.max_chars (default 4000, 0 disables, env INFER_AGENT_SKILLS_MAX_CHARS) with names-only overflow behavior, line-boundary truncation of the memory index, and the date-only Current date: system prompt timestamp, and opened draft PR #359.

    Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 4m 59s

    Tokens: 4,320,415 in · 10,956 out · 4,331,371 total (42 requests)

    Tool calls: 48 total · 100% success rate

    Triggered by edenreich · Infer Action

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

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.0 🎉

    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