Skip to content

[DOCS] Document composer.yaml #1292

Closed
Closed

Description

@edenreich

Summary

Document ~/.infer/composer.yaml (part of inference-gateway/cli#1943, implemented in inference-gateway/cli#1948). It maps the composer's trigger characters per context (chat, room) to the menus they open, and it holds the status bar settings that moved out of config.yaml. The TUI and the desktop read the same file, the desktop through infer config get composer --format json.

What users need to know:

  • A trigger is any one special character - punctuation or a symbol, ASCII or not - such as @, #, ^ or ~. Letters, digits and longer keys fail the load, and so do the reserved /, ! and !!.
  • Sources are files, agents (every Markdown agent and built-in, or the room's members in a room) and issues. A trigger's list order is its menu's section order. A row still inserts its own token (@<path>, @<agent>, #<number>) whatever trigger opened the menu.
  • A context set in composer.yaml replaces that context's default table. Mapping issues to ^ in chat and leaving # out turns # off in chat, while a context the file leaves out keeps its defaults. The home and project layers merge per trigger.
  • An invalid file fails the load with the file and key named, for example invalid composer.yaml triggers.chat."a": a trigger is one special character.
  • The status bar settings moved from chat.status_bar in config.yaml to status_bar in composer.yaml, with no fallback. A chat.status_bar block left in config.yaml is ignored, so users move it by hand. The env overrides moved too, from INFER_CHAT_STATUS_BAR_* to INFER_COMPOSER_STATUS_BAR_*. infer init seeds composer.yaml with the defaults.

Acceptance Criteria

  • configuration.md documents composer.yaml: triggers per context, any special character as a trigger, sources, reserved characters, the per-context replacement of the defaults, and the validation errors
  • configuration.md documents the status bar settings under status_bar in composer.yaml, the INFER_COMPOSER_STATUS_BAR_* overrides, and that a leftover chat.status_bar block is ignored and must be moved by hand
  • cli.md moves every chat.status_bar.* key to composer.status_bar.*: the status indicator row table, the .infer/config.yaml example under Session working time (it becomes a composer.yaml example), the background job list linger and toggle
  • cli.md GitHub Issue References (#) says # is the default trigger and can be remapped in composer.yaml, and the TUI @ menu lists agents after the files
  • desktop.md The @ file menu and The # issue menu say the triggers come from composer.yaml, once [FEATURE] Read composer.yaml for the composer's menus and the status bar desktop#743 ships
  • Examples use plain ASCII and the YAML block style

Activity

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

    @edenreich
    ContributorAuthor

    @claude can you work on this?

  5. inference-gateway-maintainer commented on Nov 23, 2026

    @inference-gateway-maintainer
    Contributor

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


    Documented composer.yaml - PR #1296

    What changed

    • configuration.md has a new CLI Composer Settings section. It covers triggers per context, any one special character as a trigger, the three sources and their order, the reserved /, ! and !!, how a context you set replaces its defaults (with a ^ example), the load errors, and status_bar. A breaking-change note says the INFER_COMPOSER_STATUS_BAR_* overrides replace the old ones and that a leftover chat.status_bar block is ignored.
    • In cli.md, every chat.status_bar.* key is now composer.status_bar.*: the indicator table, the subagent linger, the hot reload table and the queue indicator. The Session working time example is now a composer.yaml example.
    • cli.md has a new File and Agent References (@) section saying agents come after files. The # section now says # is the default trigger and can be remapped.

    Not done

    bun run format, lint:md and build pass.
    | Branch | PR #1296

  6. moved this from Todo to In progress in 2026on Nov 23, 2026
  7. moved this from In progress to QA in 2026on Nov 23, 2026
  8. moved this from QA to Done in 2026on Nov 23, 2026
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

    documentation

    Type

    Projects

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions