Repository navigation
feat: project notes agents leave for later threads - #1008
Merged
Merged
Conversation
The plan (docs/design/project-brief-notes.md, rev 3) and the first part of piece 1: project_briefs (migration 122) with a revision checked on save, the ProjectContext service with projectContext.subscribe and projectContext.setBrief, the projectContext capability, the optional projectInstructions on ProviderSessionStartInput, and the ProjectInstructions lookup ProviderService will use at every start. Delivery to each provider and the page come next.
…ry computer A Brief section under the project picker: a text box, Save, and a line saying which computers the save reached. Each computer's save sends the revision this app last saw there; a stale answer from the picked computer shows the newer text and keeps the user's edit one click away. Computers that hold another brief get a Use this brief on <computer> too button. Hidden where the project's computer lacks the projectContext capability. Also: projectContext.subscribe and setBrief on the web RPC client, the source's brief carried into Set up on another computer, ways in from the project menu, the command palette and the lead chat's crown card, and the app guide's place and topic for the brief.
ProviderService looks up the project's brief at every adapter start, recovery inside sendTurn included, and hands it to the adapter. Side answers, General Chats and threads behind the link fence get none. - Claude: after Threadlines' own system prompt append. - Codex: the thread's developer instructions, after the user's own from config/read. A resumed thread whose brief changed gets it added with thread/inject_items, since Codex writes developer instructions into the conversation only when it creates a thread. - OpenCode: the end of the threadlines instructions entry. - Pi: the end of the instructions file. - Muse and ACP agents: ahead of the first prompt after a start, again only when the brief's hash differs from the one kept in the cursor. "Set up on another computer" copies the brief with the project, into an empty brief only. Piece 1's labels say "Project brief" until notes land.
- The brief saves on the same folder of the same repository on each computer, whatever the sidebar's grouping: grouping by repository no longer joins another project in that repository, and "Keep separate" no longer leaves the other computers out. - Each computer's revision is taken when the edit begins, so a brief saved on another computer meanwhile is refused there, not overwritten. - ACP: a prompt the agent refused, or one a revert removed, sends the brief again on the next prompt. - Codex: a revert forgets which brief the conversation holds, so the next resume adds it again rather than leaving it out.
…the ones they may see
…es in the thread The Notes section lists the picked project's notes on its computer, with Keep and Discard for suggestions, Show to all threads for a note kept without asking, and the user's own add, edit and remove. The "Notes agents write" setting sits at its top. A suggestion also shows as a plain row after the turn that wrote it, read from the computer's project context, so nothing that decides a thread needs the user sees it. One shared subscription per computer feeds both. The menu and crown card now say "Project brief and notes" and "Brief and notes", and the guide topic covers notes.
Saving, removing, approving and resolving a suggestion were four RPCs, which pushed the WebSocket RPC table past the type checker's size limit. They are now one, changeNote, whose payload says which by kind and which answers with the note after a save or a kept suggestion.
…es the version seen - An agent without the access level its chat asks for (Pi has no Auto) runs at the next safer one, and notes now judge it at that level, both as a writer's ceiling and as a reader. - "Show to all threads" carries the version the row shows; a note its writer rewrote since is refused instead of approved unseen. - An open note keeps the user's draft when the note changes elsewhere, and says it changed.
The previous change judged readers and writers alike by the level a runtime really runs at. When the provider list can't place a runtime, that falls back to the three legacy levels, so a real Auto reader would count as Auto-accept edits and see notes limited to that level. A writer still uses the level it runs at, which only narrows its note's ceiling; a reader now uses the level asked for, which only hides more notes.
With the editor kept open across a rewrite, the button sent the version from the list, so a rewrite the user hadn't read would be approved. While a note is open, approval now names the version of the text on screen, and the server refuses it once the note has changed.
|
The latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
Main is the brief's squash on top of #1007, and this branch already holds both, so the merge changes no code.
badcuban
added a commit
that referenced
this pull request
Nov 19, 2026
Project notes (#1008) added project_note_write; it gets the same saved-key check as the other room tools that change something.
This branch was previously deployed
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Agents can now leave short project notes that later threads in the project read: how to run a flaky test, which port a service needs. Stacked on #1006 (the project brief); plan: docs/design/project-brief-notes.md, piece 2.
How it works:
project_note_readreads one by title;project_note_writewrites one.projectContext.changeNote: four more RPCs pushed the WebSocket RPC table past the size where the type checker turns the server's layer types intoany.The two tools add 1,368 bytes to the tools Claude loads on demand, nothing up front. The Claude replays are re-recorded because Claude's allowed tools now include them.
Checked live on a throwaway server: a Codex thread wrote a note (a suggestion under Ask), it was kept through the app's RPC, and a new Claude thread found it through its list and
project_note_read.