Skip to content

docs: document infer-action system prompt override semantics - #357

Merged
edenreich merged 4 commits into
mainfrom
fix/issue-355
Jul 6, 2026
Merged

edenreich merged 4 commits into
mainfrom
fix/issue-355

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #355

Summary

Document the infer-action system prompt override semantics following inference-gateway/infer-action#177, which restores the agent system prompt delivery (silently dropped since CLI v0.105.0) and clarifies the prompt-override semantics.

Changes

  • Add a new "System prompt override" section documenting the four system-prompt-* inputs (system-prompt-issue, system-prompt-pr, system-prompt-pr-fork, system-prompt-direct) and their semantics
  • Document that a custom system prompt REPLACES the action's bundled prompt, and the resulting prompt replaces the CLI's base system prompt text
  • Document that the CLI still appends its dynamic context block (skills, memory, tools, sandbox, bash allow-list info) because the action pins INFER_AGENT_SYSTEM_PROMPT_WITH_DEFAULTS=true
  • Document Claude Code subscription mode prompt behavior via INFER_PROMPTS_AGENT_SYSTEM_PROMPT_CLAUDE_CODE
  • Add the four system-prompt-* inputs to the inputs reference table
  • Link back to fix: send the agent system prompt via INFER_PROMPTS_AGENT_SYSTEM_PROMPT (dead env var since CLI v0.105.0) infer-action#177

@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

  • Investigate the Lint CI failure
  • Fix the lint issue in github-action.md
  • Run lint locally to verify fix
  • Commit and push the fix

Pull Request

#357

✅ Infer Result: Success

The Lint CI failure was caused by Prettier formatting issues in github-action.md - the table column widths in the new "System prompt override" section and the inputs reference table had slightly misaligned column widths that didn't match Prettier's formatting rules. Ran prettier --write to fix the table column widths, verified both format:check and lint:md pass, then committed and pushed the fix.

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

Tokens: 741,970 in · 2,577 out · 744,547 total (24 requests)

Tool calls: 29 total · 83% success rate

⚠️ 5 failed tool call(s)
  • Bash: exit status 1: Unknown JSON field: "checks"
    Available fields:
    additions
    assignees
    author
    autoMergeRequest
    baseRefName
    baseRefOid
    body
    changedFiles
    closed
    closedAt
    closingIssuesReferences
    comments
    commits
    createdAt
    deletions
    files
    fullDatabaseId
    headRefName
    headRefOid
    headRepository
    headRepositoryOwner
    id
    isCrossRepository
    isDraft
    labels
    latestReviews
    maintainerCanModify
    mergeCommit
    mergeStateStatus
    mergeable
    mergedAt
    mergedBy
    milestone
    number
    potentialMergeCommit
    projectCards
    projectItems
    reactionGroups
    reviewDecision
    reviewRequests
    reviews
    state
    statusCheckRollup
    title
    updatedAt
    url
  • 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] github-action.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] github-action.md
    [�[33mwarn�[39m] Code style issues found in the above file. Run Prettier with --write to fix.
  • Bash: exit status 1: Checking formatting...
    github-action.md
    [�[33mwarn�[39m] github-action.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:43
@edenreich
edenreich requested a review from a team as a code owner July 6, 2026 18:43
@edenreich
edenreich merged commit 58c8bc4 into main Jul 6, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-355 branch July 6, 2026 20:28
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 infer-action system prompt override semantics (replaces CLI base prompt, dynamic context appended)

1 participant