Skip to content

[DOCS] CLI docs drift: infer agent is now infer headless, infer init is userspace, mcp toggle and url #777

Closed

Description

Summary

cli.md, a2a.md and opentask.md document CLI commands, flags and config keys that the CLI the docs pin (v0.208.0) does not have. The command tree is registered in cmd/root/root.go; the other sources are cited per item. The most visible problem is infer agent, which was renamed to infer headless in CLI v0.166.0 and now fails with unknown command.

Acceptance Criteria

  • cli.md and a2a.md: replace infer agent with infer headless. cmd/root/root.go registers no top-level agent command (the only agent is infer debug agent). Affected places:
    • the Core Commands and Command Reference tables
    • the examples under Telemetry, Workflows > GitHub Issue Resolution and Troubleshooting > Tool Execution Problems
    • the prose references (session resume, --result-file, Bash allow-list, GitHub operations, Agent tool, Memory sync, conversations show)
    • the infer agent "Analyze my calendar ..." example in a2a.md
  • cli.md: infer init seeds the userspace baseline in ~/.infer/ (config.yaml, mcp.yaml, prompts.yaml, agents.yaml, shortcuts/, skills/ and so on) and writes nothing to the project (cmd/init/init.go). Project overrides go through infer config set --project, or --project on infer mcp / infer agents. Fix these places:
    • the Core Commands row ("Creates .infer/config.yaml with defaults")
    • the Command Reference row and the help sample ("Initialize project configuration")
    • the Configuration Files intro ("scaffolds the project configuration directory")
    • MCP Integration > Setup ("Initialize project to create .infer/mcp.yaml")
  • cli.md MCP Integration: infer mcp toggle does not exist. cmd/mcp/mcp.go provides list, status, start, stop, add, remove, update, enable, disable, enable-global and disable-global
  • cli.md MCP Integration mcp.yaml example: MCPServerEntry in config/mcp.go has no url key, so url: 'http://localhost:3000/sse' is silently ignored and the entry resolves to http://localhost/mcp. Describe external servers with scheme / host / port / path, or add them with infer mcp add <name> <url>, which splits the URL into those fields
  • cli.md Key Configuration Areas > Storage Backends: "SQLite (default)" is wrong. The default storage.type is jsonl (DefaultConfig in config/config.go), as the Conversation Management section already says
  • cli.md Command Mapping and Support and Resources: both "full configuration reference" links point to docs/configuration.md, which does not exist in the CLI repo; the file is docs/configuration-reference.md
  • cli.md Essential Environment Variables: INFER_TOOLS_SAFETY_APPROVAL_BEHAVIOUR accepts prompt | ipc | judge | block (config/config.go); the comment omits judge
  • opentask.md: infer headless --output ag-ui should be infer headless --format ag-ui. cmd/headless/headless.go defines --format (json, json-pretty, ag-ui, text) and no --output flag

Activity

  1. added
    documentation
    on Sep 25, 2026
  2. edenreich commented on Sep 25, 2026

    @edenreich
    Contributor

    @claude Can you work on this?

  3. inference-gateway-maintainer commented on Sep 25, 2026

    @inference-gateway-maintainer
    ContributorAuthor

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


    CLI docs drift fixed

    All acceptance criteria are done and pushed: PR #781

    • Gather context (cli.md, a2a.md, opentask.md)
    • infer agent -> infer headless across tables, examples and prose in cli.md + a2a.md
    • infer init documented as seeding the userspace baseline in ~/.infer/ (Core Commands row, Command Reference row, --help sample, Configuration Files intro, MCP Setup)
    • Dropped the non-existent infer mcp toggle; listed the real subcommands (list, status, start, stop, add, remove, update, enable, disable, enable-global, disable-global)
    • mcp.yaml external-server example now uses scheme/host/port/path plus a pointer to infer mcp add <name> <url>
    • Storage Backends: JSONL is the default, SQLite demoted
    • Both "full configuration reference" links -> docs/configuration-reference.md
    • INFER_TOOLS_SAFETY_APPROVAL_BEHAVIOUR comment now lists judge
    • opentask.md: --output ag-ui -> --format ag-ui
    • bun run lint:md, bun run format:check, bun run build - all pass

    Two extras picked up along the way, since the rename touched the same lines:

    • Awkward "in headless infer headless" phrasings became links to [headless mode] instead.
    • Two already-broken anchors, #session-id-agent and #session-id-headless, now point at #resuming-a-session-session-id.
    • The mcp.yaml row in the Configuration Files table moved from scope "Project" to "Project/user", matching the corrected infer init behavior.
      | Branch
  4. inference-gateway-releaser commented on Sep 26, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.17 🎉

    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