Skip to content

docs: rename infer agent to infer headless with --format, json-pretty, exit codes, and headless behavior docs - #542

Merged
edenreich merged 1 commit into
mainfrom
fix/issue-541
Aug 11, 2026
Merged

edenreich merged 1 commit into
mainfrom
fix/issue-541

Conversation

@inference-gateway-maintainer

Copy link
Copy Markdown
Contributor

Resolves #541

Summary

CLI PR inference-gateway/cli#1041 renames the headless command from infer agent to infer headless and reworks its output formats. This update documents that rename, the new --format flag (replacing --output-format), the new json-pretty format, stream event types, exit codes, and headless-specific behaviors (subagent mode, background-task completion, session rollover).

Changes

  • Renamed all infer agent references to infer headless across cli.md, cli-hooks.md, cli-skills.md, cli-channels.md, a2a.md, desktop.md, and github-action.md (the separate infer agents A2A registry command is unchanged)
  • Updated the headless command section (cli.md) with a new --format flag description documenting all four values: json, json-pretty, ag-ui, text, with a json-pretty usage example and a note about the legacy --output-format rename
  • Added a stream event types table documenting the JSON line shapes: info, assistant, tool, approval_request, session_stats, and agent_error
  • Documented bare tool-result content (no legacy Result of tool call: / Tool execution failed: envelope) and structured tool_execution metadata
  • Added exit codes table (0: success, 1: failed, 2: max turns exhausted)
  • Documented headless-specific behaviors: always-headless subagent mode, background-task completion bounded by a2a.task.agent_mode_max_wait_seconds, and automatic session rollover with non-UUID group-key support

…, exit codes, and headless behavior docs

Renames all infer agent references to infer headless across cli.md, cli-hooks.md, cli-skills.md, cli-channels.md, a2a.md, desktop.md, and github-action.md. The separate infer agents A2A registry command is unchanged.

The headless section now documents: --format flag with json, json-pretty, ag-ui, text values; stream event types (info, assistant, tool, approval_request, session_stats, agent_error); bare tool-result content; exit codes (0, 1, 2); always-headless subagent mode; background-task completion; and session rollover with non-UUID group-key support.
@edenreich
edenreich marked this pull request as ready for review August 11, 2026 01:11
@edenreich
edenreich requested a review from a team as a code owner August 11, 2026 01:11
@edenreich
edenreich merged commit f324666 into main Aug 11, 2026
1 check passed
@edenreich
edenreich deleted the fix/issue-541 branch August 11, 2026 01:11
inference-gateway-releaser Bot added a commit that referenced this pull request Aug 17, 2026
## [0.9.11](0.9.10...0.9.11) (2026-08-17)

### 📚 Documentation

* add browser extension bridge protocol page ([#557](#557)) ([23dab3c](23dab3c))
* add cli scheduling page with github backend ([#549](#549)) ([f3ed7b4](f3ed7b4))
* document project grouping with drag-and-drop sidebar groups ([#544](#544)) ([8951736](8951736))
* document the .infer/artifacts directory ([#550](#550)) ([fd7b1eb](fd7b1eb))
* **github-action:** document the apt input for pre-agent package installation ([#553](#553)) ([7f3865e](7f3865e))
* **github-action:** document the languages input for toolchain setup ([#554](#554)) ([f81f667](f81f667))
* rename infer agent to infer headless with --format, json-pretty, exit codes, and headless behavior docs ([#542](#542)) ([f324666](f324666))
* rename infer channels-manager to infer daemon, update scheduling for run records ([#548](#548)) ([6767ae8](6767ae8))

### 🔧 Miscellaneous

* **deps-dev:** bump @types/node from 26.1.2 to 26.2.0 in the bun group ([#556](#556)) ([5629f4d](5629f4d))
@inference-gateway-releaser

Copy link
Copy Markdown
Contributor

🎉 This PR is included in version 0.9.11 🎉

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 Aug 17, 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 headless rename and output formats including json-pretty

1 participant