Skip to content

feat: a project can have a lead chat - #970

Merged
badcuban merged 2 commits into
mainfrom
feat/lead-chat-1-role
Nov 17, 2026
Merged

badcuban merged 2 commits into
mainfrom
feat/lead-chat-1-role

Conversation

@badcuban

Copy link
Copy Markdown
Collaborator

Problem

Running several agents on one project means doing the coordinating yourself: deciding which thread takes what, and checking back on each one. There was no single place to hand work to a project.

Change

Any thread can be made its project's lead chat, one per project, from the thread menu, the project menu or the command palette. The lead is told on every turn that it coordinates: it answers small questions itself and starts threads for the work, which report back as threads an agent starts do today.

  • leadThreadId on the project (migration 116, one nullable column), set by a new project.lead.set command. Archive and delete clear it; moving the lead to another computer is refused.
  • The lead's row stays first in the sidebar with its own mark, and the chat header says Lead chat.
  • A lead may start 10 threads and send 20 messages per user message (5 and 10 elsewhere).
  • Design: docs/design/lead-chat.md. This is piece 1; the others are stacked on top.

Checks

fmt, lint, typecheck, the full server suite and the full browser suite pass. Reviewed by GPT-6.1 Sol: four findings, three fixed. Left: an agent that cannot use the thread tools can still be made the lead (the app cannot know before its session starts), and is told to say it cannot coordinate.

Each project can now name one thread its lead chat: the place to drop work
for the project, whose agent coordinates threads for it
(docs/design/lead-chat.md, piece 1 of 4).

The project keeps a pointer to its lead (`leadThreadId`, migration 116),
set with `project.lead.set` and carried on the existing project update
event. Archiving or deleting the lead ends it in the same decision; the lead
can't be put back under a parent or moved to another computer, and a
pointer at an archived or missing thread reads as no lead. The lead's agent
hears its role at the start of every turn, and may start 10 threads and
send 20 messages per user message instead of 5 and 10.

In the app the lead is set and unset from the thread menu, the project
menu (Open or New lead chat), the command palette and a keybinding command.
Its row sorts first in the sidebar with a flag and never wraps up on its
own; the chat shows a Lead chat label and invites work in the composer. The
app guide has a lead chat topic.
KeybindingCommand is a closed set that older clients decode strictly. A user
rule naming navigate.leadChat would make an older client reject the whole
keybinding list, and with it the computer's config. Go to lead chat stays in
the command palette.
@vercel

vercel Bot commented Nov 17, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
threadlines Ready Ready Preview Nov 17, 2026 4:55pm UTC

Request Review

@badcuban
badcuban added this pull request to the merge queue Nov 17, 2026
Merged via the queue into main with commit d19ed4a Nov 17, 2026
24 checks passed
@badcuban
badcuban deleted the feat/lead-chat-1-role branch November 17, 2026 17:08

This branch was successfully deployed

1 active deployment
Preview — c5a99175 Deployed Nov 17, 2026 by vercel[bot]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant