Skip to content

docs: document agent.skills.max_chars, line-boundary truncation, and date-only system prompt - #359

Merged
edenreich merged 3 commits into
mainfrom
fix/issue-352
Jul 6, 2026
Merged

edenreich merged 3 commits into
mainfrom
fix/issue-352

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #352

Summary

Documents three changes from inference-gateway/cli#761: the new agent.skills.max_chars config key, line-boundary truncation of the memory index, and the date-only system prompt timestamp. These updates span the CLI configuration reference (cli.md) and the Agent Skills guide (cli-skills.md).

Changes

  • cli.md (Agent Skills section): Added max_chars: 4000 to the skills config example, documenting the cap on the rendered AVAILABLE SKILLS block and the 0-disables semantics.
  • cli-skills.md (Enabling and disabling): Added agent.skills.max_chars to the settings table (default 4000, type int, env INFER_AGENT_SKILLS_MAX_CHARS). Documented the names-only overflow behavior for skills past the budget and that capped skills remain invocable via /<name>.
  • cli.md (Persistent Memory): Updated the memory.yaml comment and the max_chars table description to note that truncation respects line boundaries (no mid-entry cuts).
  • cli.md (Key Configuration Areas): Added a note that the built-in system prompt uses a date-only Current date: line to preserve provider-side prompt-prefix caching across turns.

@edenreich

Copy link
Copy Markdown
Contributor

@infer CI is failing - can you fix it?

@inference-gateway-maintainer

inference-gateway-maintainer Bot commented Jul 6, 2026 •

Copy link
Copy Markdown
Contributor Author

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

Todos

  • Check current branch and PR state
  • Investigate CI failure - run repo checks
  • Fix CI failures - formatting issues in cli.md
  • Commit and push fixes

Pull Request

#359

✅ Infer Result: Success

Fixed the CI failure: Prettier detected misaligned table column widths in cli.md (the memory config table's max_chars and max_entry_chars rows had descriptions that didn't match the column separator widths). Ran prettier --write cli.md to auto-fix the table formatting, verified all checks pass (lint:md, format:check, build), and pushed commit 66c8077.

Model: ollama_cloud/deepseek-v4-flash · Exit Code: 0 · Duration: 1m 56s

Tokens: 1,343,730 in · 2,616 out · 1,346,346 total (23 requests)

Tool calls: 28 total · 89% success rate

⚠️ 3 failed tool call(s)
  • Bash: exit status 127: $ prettier --check .
    /usr/bin/bash: line 1: prettier: command not found
    error: script "format:check" exited with code 127
  • Bash: exit status 1: $ prettier --check .
    Checking formatting...
    [�[33mwarn�[39m] cli.md
    [�[33mwarn�[39m] Code style issues found in the above file. Run Prettier with --write to fix.
    error: script "format:check" exited with code 1
  • Bash: exit status 1: Checking formatting...
    [�[33mwarn�[39m] cli.md
    [�[33mwarn�[39m] Code style issues found in the above file. Run Prettier with --write to fix.

Triggered by edenreich · Infer Action

@edenreich
edenreich marked this pull request as ready for review July 6, 2026 18:42
@edenreich
edenreich requested a review from a team as a code owner July 6, 2026 18:42
@edenreich
edenreich merged commit 73d49b5 into main Jul 6, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-352 branch July 6, 2026 18:43
inference-gateway-releaser Bot added a commit that referenced this pull request Jul 9, 2026
## [0.9.0](0.8.0...0.9.0) (2026-07-09)

### ✨ Features

* generate ADK provider tables from the schema ([#347](#347)) ([aece944](aece944)), closes [#346](#346)

### 👷 CI

* **claude:** centralize claude.yml via reusable workflow ([#372](#372)) ([9a41158](9a41158))
* **infer:** centralize infer.yml via reusable workflow ([#367](#367)) ([47d5fb2](47d5fb2))
* **infer:** centralize infer.yml via reusable workflow ([#368](#368)) ([305d621](305d621))

### 📚 Documentation

* add Wait tool documentation to CLI reference ([#371](#371)) ([8018c50](8018c50)), references [inference-gateway/cli#792](inference-gateway/cli#792)
* add Z-AI provider documentation ([#363](#363)) ([3c3db53](3c3db53))
* document agent.skills.max_chars, line-boundary truncation, and date-only system prompt ([#359](#359)) ([73d49b5](73d49b5))
* document infer chat --session-id flag ([#351](#351)) ([d6b3cf6](d6b3cf6))
* document infer-action system prompt override semantics ([#357](#357)) ([58c8bc4](58c8bc4))
* **github-action:** add zai-api-key input to the inputs table ([#366](#366)) ([a129831](a129831))
* remove Claude Code subscription mode documentation ([#374](#374)) ([442a9fa](442a9fa)), references [inference-gateway/cli#812](inference-gateway/cli#812)
* **rust-adk:** add NVIDIA provider to Rust ADK docs ([#345](#345)) ([a329e43](a329e43)), references [#347](#347)
* update memory documentation for per-project fact organization and entry caps ([#350](#350)) ([8dca0cd](8dca0cd)), closes [#348](#348)

### 🔧 Miscellaneous

* **deps:** bump claude-code 2.1.197 -> 2.1.201 ([#353](#353)) ([5f714de](5f714de))
* **deps:** bump claude-code-action v1.0.165 -> v1.0.169 ([#370](#370)) ([293e9b8](293e9b8))
* **deps:** bump infer CLI v0.130.1 -> v0.133.0, infer-action v0.24.0 -> v0.26.0 ([#354](#354)) ([824a288](824a288))
* **deps:** bump infer CLI v0.133.0 -> v0.133.1, infer-action v0.27.0 -> v0.27.1 ([#360](#360)) ([03ec147](03ec147))
* **deps:** bump infer CLI v0.133.1 -> v0.137.0, infer-action v0.27.1 -> v0.29.0 ([#361](#361)) ([e7bec3e](e7bec3e))
* **deps:** bump infer CLI v0.137.0 -> v0.138.0, infer-action v0.29.0 -> v0.30.1 ([#365](#365)) ([02be4c8](02be4c8))
* **deps:** bump infer CLI v0.138.0 -> v0.140.1 ([#375](#375)) ([2fd4097](2fd4097))
* **deps:** bump infer-action v0.26.0 -> v0.26.1 ([#356](#356)) ([17f74f8](17f74f8))
* **deps:** bump infer-action v0.26.1 -> v0.27.0 ([#358](#358)) ([89c944b](89c944b))
* enable debug mode in infer.yml workflow ([9e373c6](9e373c6))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.9.0 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

@inference-gateway-releaser inference-gateway-releaser Bot added the released Shipped in a release label Jul 9, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

released Shipped in a release

Projects

None yet

Development

Successfully merging this pull request may close these issues.

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

1 participant