Skip to content

[FEATURE] Rooms: talk to several agents in one place, routed by mention or a decision model #1943

Open
8 of 14 issues completed

Description

@edenreich

Summary

Rooms: one place where people talk to several agents, like a Slack channel. A mention such as @tester routes a post to that agent. A post with no mention goes to whichever agents it is relevant to, as a decision model picks them. Rooms get their own config file, rooms.yaml.

A room starts as the user talking to agents on their own daemon. Then it becomes multi-user (#1960): the owner invites other people into a room with a scoped token or a client certificate. Guests read the log, post, ping members and see each other come and go, and an invite never reaches the rest of the owner's daemon. Agents mentioning each other in a room comes later.

Language

  • Room - a named group of agents the user, and the people they invite, talk to, in one project, defined in rooms.yaml. By default there is one, public, with every agent of the user's own in it. The built-ins (main, explore, general-purpose, plan) join a room only by name.
  • Guest - a person the room's owner invited with a scoped token or a client certificate ([FEATURE] Rooms: invite other people to a room with a scoped token or a client certificate #1960). A guest posts under their own name and reaches only the rooms the invite names.
  • Member - an agent in a room. It keeps its own session, tools and computer, under the deterministic session id room-<room>-<agent>.
  • Post - one entry of the room's append-only log, by the user or a member. It records its mentions, whom it was routed to and with what probability.
  • Router - mentions of members win. Otherwise one decision request asks one predicate per member and the post goes to each member at or above min_confidence. If nobody passes, fallback sends it to the most relevant member or asks for a mention.

Design

  • Config - ~/.infer/rooms.yaml is a split file under the rooms key: the router (decision model, min_confidence, fallback), context_posts, and the rooms with their project and agents. A room's agents entry "*" means every agent, resolved when the room is read, so a new agent joins public on its own. Defining public in the file replaces the default.
  • Routing - reuses the internal/decision context (Decider, typed predicates). The gateway serves /v1/decisions only with DECISIONS_ENABLED=true, so the supervisor and the desktop set it whenever rooms name a router model.
  • Delivery - the daemon owns each room. Like the Telegram adapter, one daemon-owned client per member session sends resume_conversation and run_agent_input through the registry, and logs the member's answer as its post. Members on other workspaces are reached through the lease relay. Nothing depends on a sender's worker staying alive, unlike the peer messages of feat(agent): message another agent's orchestrator through the daemon #1942.
  • Persistence - the room log is JSONL at ~/.infer/projects/<slug>/rooms/<room>.jsonl, beside the conversations. The session Origin from feat(agent): message another agent's orchestrator through the daemon #1942 gains room.
  • Composer - @ stays shared by files and agents. ~/.infer/composer.yaml maps the composer's trigger characters to menus per context (chat, room) for the TUI and the desktop alike, and takes over the status bar settings from config.yaml. A trigger only picks the menu and its order, never the inserted text, which the CLI parses. The router treats @x as a mention only when x names a known agent, so file references pass through.
  • Clients - the binding gets list_rooms, follow_room (a room_snapshot, then room_post and room_activity), post_room and leave_room. The desktop adds a Rooms filter, a room view and member mentions in the composer.

Order

Prerequisite: #1942 merged (in review). Member sessions reuse its session origin.

  1. [FEATURE] composer.yaml: the composer's trigger characters per context and its status bar settings #1947 composer.yaml - needs nothing, and unblocks the desktop's composer menus
  2. [FEATURE] Rooms config and the room log #1944 Rooms config and the room log - needs feat(agent): message another agent's orchestrator through the daemon #1942
  3. [FEATURE] Route a room post by mention or a decision model #1945 Route a room post by mention or a decision model - needs [FEATURE] Rooms config and the room log #1944
  4. [FEATURE] The daemon hosts rooms: post, deliver to members and log their replies #1946 The daemon hosts rooms - needs [FEATURE] Rooms config and the room log #1944 and [FEATURE] Route a room post by mention or a decision model #1945
  5. CLI release with feat(agent): message another agent's orchestrator through the daemon #1942, [FEATURE] composer.yaml: the composer's trigger characters per context and its status bar settings #1947 and [FEATURE] Rooms config and the room log #1944-[FEATURE] The daemon hosts rooms: post, deliver to members and log their replies #1946, then one .cli-version bump in the desktop, where feat(chat): show a chat's agent, label and sender from the CLI desktop#740 merges too
  6. [FEATURE] Read composer.yaml for the composer's menus and the status bar desktop#743 Read composer.yaml for the composer's menus and the status bar - needs the release
  7. [FEATURE] Create and edit rooms desktop#742 Create and edit rooms - needs the release
  8. [FEATURE] Rooms in the sidebar: a room view of every agent's posts and member mentions in the composer desktop#741 Rooms in the sidebar, the room view and member mentions - needs [TASK] Improve Claude Code Headless Integration with Streaming Events #743 and the release
  9. [FEATURE] Rooms in the TUI: a Room status indicator with a dropdown to switch rooms #1954 Rooms in the TUI: a Room status indicator with a dropdown to switch rooms - needs [FEATURE] The daemon hosts rooms: post, deliver to members and log their replies #1946, and ships in a later CLI release so the desktop never waits on it
  10. [DOCS] Document messaging another agent docs#1290 Document messaging another agent - needs the release
  11. [DOCS] Document composer.yaml docs#1292 Document composer.yaml - needs the release
  12. [DOCS] Document rooms docs#1291 Document rooms - needs [FEATURE] Rooms in the sidebar: a room view of every agent's posts and member mentions in the composer desktop#741
  13. [FEATURE] Rooms: approve a member's escalated tool call from the room #1958 Approve a member's escalated tool call from the room - needs [FEATURE] Rooms in the TUI: a Room status indicator with a dropdown to switch rooms #1954
  14. [FEATURE] Rooms: a member whose agent pins a workspace runs on that computer #1959 A member whose agent pins a workspace runs on that computer - needs [FEATURE] Rooms in the TUI: a Room status indicator with a dropdown to switch rooms #1954
  15. [FEATURE] Rooms: invite other people to a room with a scoped token or a client certificate #1960 Invite other people to a room with a scoped token or a client certificate - needs [FEATURE] Rooms in the TUI: a Room status indicator with a dropdown to switch rooms #1954

The CLI goes first so that one release and one .cli-version bump carry everything the desktop needs. #1947 leads because it waits on nothing while #1942 is in review.

Out of scope for v1

Acceptance Criteria

  • Every sub-issue is done
  • In the desktop, a post with a mention reaches only that member, a post without one reaches the members the router picks, and each answer shows in the room under its author

Sub-issues

Sub-issues

8 of 14 Issues completed
Loading 14 sub-issues

Activity

  1. added
    enhancement
    on Nov 23, 2026
  2. changed the title [-][FEATURE] Rooms: talk to several agents in one place, routed by @mention or a decision model[/-] [+][FEATURE] Rooms: talk to several agents in one place, routed by mention or a decision model[/+] on 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

    enhancement

    Projects

    • Status
      Todo

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions