Repository navigation
feat: a project brief every agent in the project gets - #1006
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 latest updates on your projects. Learn more about Vercel for GitHub. 1 Skipped Deployment
|
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.
A project now has a brief: text the user writes once on Settings › Instructions, which every thread in the project gets on any agent. Today standing rules like "branch from develop" live in one conversation, or in AGENTS.md, which a new worktree only sees once it's committed. Plan: docs/design/project-brief-notes.md (piece 1 of 2; notes come next).
How it works:
project_briefs, outside the event log). A save names the revision it started from, so a save from behind another device is refused and shows the newer text instead of overwriting it.ProviderServicelooks the brief up at every adapter start, recovery insidesendTurnincluded. Side answers, General Chats and threads behind the link fence get none.developer_instructionsfromconfig/read; a resumed thread whose brief changed gets it throughthread/inject_items, since Codex only writes developer instructions into the conversation when it creates a thread (checked live on 0.170). OpenCode and Pi: the end of their instructions. Muse and ACP agents: ahead of the first prompt after a start, sent again only when the brief's hash differs from the one kept in the resume cursor.Checked live on a throwaway server: a Codex thread and a Claude thread answered with the brief's code word; after an edit, a new Codex thread and an open one restarted got the new word, and a second restart added no extra copy.