Repository navigation
Description
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,fallbacksends it to the most relevant member or asks for a mention.
Design
- Config -
~/.infer/rooms.yamlis a split file under theroomskey: the router (decision model,min_confidence,fallback),context_posts, and the rooms with their project and agents. A room'sagentsentry"*"means every agent, resolved when the room is read, so a new agent joinspublicon its own. Definingpublicin the file replaces the default. - Routing - reuses the
internal/decisioncontext (Decider, typed predicates). The gateway serves/v1/decisionsonly withDECISIONS_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_conversationandrun_agent_inputthrough 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 sessionOriginfrom feat(agent): message another agent's orchestrator through the daemon #1942 gainsroom. - Composer -
@stays shared by files and agents.~/.infer/composer.yamlmaps 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 fromconfig.yaml. A trigger only picks the menu and its order, never the inserted text, which the CLI parses. The router treats@xas a mention only whenxnames a known agent, so file references pass through. - Clients - the binding gets
list_rooms,follow_room(aroom_snapshot, thenroom_postandroom_activity),post_roomandleave_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.
- [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
- [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
- [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
- [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
- 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-versionbump in the desktop, where feat(chat): show a chat's agent, label and sender from the CLI desktop#740 merges too - [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
- [FEATURE] Create and edit rooms desktop#742 Create and edit rooms - needs the release
- [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
- [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
- [DOCS] Document messaging another agent docs#1290 Document messaging another agent - needs the release
- [DOCS] Document composer.yaml docs#1292 Document composer.yaml - needs the release
- [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
- [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
- [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
- [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
- Agents mentioning each other, or posting to a room with a tool
- Moving the peer messages of feat(agent): message another agent's orchestrator through the daemon #1942 onto the daemon's member clients
- Per-room router settings
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
Collapse Sub-issuesSub-issues
Metadata
Metadata
Assignees
Labels
Type
Projects
- StatusShow more project fieldsTodo
Activity
[-][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[/+]feat(rooms): add rooms.yaml config, the room log and infer rooms comm…
feat(rooms): route a room post by mention or a decision model (#1955)
feat(rooms): the daemon hosts rooms, delivering posts to members and …
feat(rooms): rooms in the TUI, like a Slack channel, with members tha…
feat(rooms): approve or reject a member's tool call from the room (#1963
fix(agent): the judge reads a follow-up against the request it follows (