Skip to content

[DOCS] Desktop: an agent chat runs as its Markdown agent through the CLI #1115

Closed

Description

@edenreich

Summary

In the desktop app, a chat with one of your own agents now runs as that Markdown agent through the CLI (inference-gateway/desktop#448, resolving inference-gateway/desktop#447, on top of inference-gateway/cli#1751). The desktop opens the daemon thread with agent: <name> and the CLI reads the agent file. The body becomes the system prompt, the front-matter model is the chat's model, and tools / disallowedTools restrict what the agent can use. The app now reads agents from the same four directories as the CLI, and the Settings "Agents directory" field is gone. desktop.md has no section on your own agents yet beyond "Agent computers", so this needs one.

Acceptance Criteria

  • desktop.md gets a section on your own (Markdown) agents. An agent chat runs on the agent's front-matter model. In an agent chat the top-bar model picker shows that model read-only, and you change it in Edit agent > Model, which writes the front matter. An agent without a model (empty or inherit) follows the model selected in the top bar.
  • The same section says the agent's body is the chat's system prompt, and that tools / disallowedTools restrict the tools the agent can use in that chat.
  • Document where agents are read from, first match winning on a name: .infer/agents and .agents/agents of the directory the chat runs in, then ~/.infer/agents and ~/.agents/agents. A new agent is saved to ~/.infer/agents, and edits, renames and deletes act in the directory the agent was found in. Settings no longer has an "Agents directory" field.
  • Under "Agent computers": an agent whose own model the target workspace cannot serve fails with a message naming the provider key to add, instead of silently switching to the workspace's model.
  • Note that agent chats need infer v0.247.0 or newer.
  • Source: feat(agents): run an agent chat as its Markdown agent through the CLI desktop#448 and [FEATURE] Run an agent chat as its Markdown agent through the CLI desktop#447. The CLI side is tracked in [DOCS] Daemon threads opened as a named Markdown agent #1114.

Activity

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

    @edenreich
    ContributorAuthor

    @claude can you document this? use /ponytail:ponytail check first if it's still relevant.

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

    @inference-gateway-maintainer
    Contributor

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


    Done

    • Checked relevance - feat(agents): run an agent chat as its Markdown agent through the CLI desktop#448 is merged, so the behavior ships and the ticket is live
    • Read desktop.md and the desktop sources for the real UI labels (AgentEditor, ModelSelect, SettingsView, markdown_agents.rs, workspace-model.ts)
    • Added a ## Your own agents section, right before Agent computers
    • Pointed the Settings Agents tab at it, and updated the "chat keeps its model" limit under Moving a chat
    • bun run format, lint:md, format:check, build - all pass
    • Committed and opened the PR

    What the new section says

    • An agent chat runs as its Markdown agent through the CLI, with a table mapping the file to the chat: body -> system prompt, model -> the chat's model, tools / disallowedTools -> the tools it may use, workspace -> its computer.
    • The top-bar model picker is read-only in an agent chat and changed in Edit agent > Model, which writes the front matter. An empty or inherit model follows the top-bar model. tools / disallowedTools have no editor field, so they are edited in the file.
    • The four directories agents are read from, first match winning on a name, with new agents saved to ~/.infer/agents and edits, renames and deletes acting where the agent was found. Settings no longer has an Agents directory field.
    • Agent chats need infer v0.247.0 or newer.
    • Under Moving a chat: an agent whose front matter fixes its model is not quietly switched to the workspace's model - the chat fails with the provider key to add.

    Create a PR - already opened as #1116.

    Not done / risks: I did not touch cli.md, whose "Markdown subagent presets" still lists only two agent directories (.infer/agents, ~/.infer/agents) - that is the separate CLI ticket. I did not run the app, so the labels come from reading the desktop sources rather than seeing the UI, and the Agent-computers key message is quoted from workspace-model.ts rather than from a live run.
    | Branch

  6. moved this from Todo to In progress in 2026on Nov 7, 2026
  7. moved this from In progress to QA in 2026on Nov 7, 2026
  8. moved this from QA to Done in 2026on Nov 7, 2026
  9. inference-gateway-releaser commented on Nov 8, 2026

    @inference-gateway-releaser
    Contributor

    🎉 This issue has been resolved in version 0.9.24 🎉

    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

    • Status
      Done

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions