Repository navigation
Conversation
allozaur
force-pushed
the
allozaur/feat/ui-library-prompts
branch
from
November 26, 2026 15:29
d71076f to
3927572
Compare
allozaur
force-pushed
the
allozaur/feat/ui-library-prompts
branch
from
November 26, 2026 16:12
3927572 to
48076bd
Compare
allozaur
force-pushed
the
allozaur/feat/ui-library-prompts
branch
from
November 26, 2026 16:19
48076bd to
e68f80c
Compare
allozaur
force-pushed
the
allozaur/feat/ui-library-prompts
branch
2 times, most recently
from
November 27, 2026 08:51
fc34db7 to
766ad20
Compare
allozaur
force-pushed
the
allozaur/feat/ui-library-prompts
branch
from
November 27, 2026 09:04
766ad20 to
9db2343
Compare
The Notes fixture server offers two prompts, one of them with an argument, so a demo can show MCP prompts without a third-party server. Assisted-by: Claude (Opus 5.5 Medium)
…tem message Prompts are kept in IndexedDB and listed on a Library page. A prompt is one kind of item whatever its source: the library is the app's own, and an extension adds another through the new promptSources point, which MCP uses for the prompts of its servers. /prompt, now a command of the chat form itself, and the System message list of the + menu show the prompts of every source, each with where it comes from. Assisted-by: Claude (Opus 5.5 Medium)
allozaur
force-pushed
the
allozaur/feat/ui-library-prompts
branch
from
November 27, 2026 09:26
9db2343 to
db8eb82
Compare
This branch has not been 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.
Overview
Llama Chat gets a Library page that keeps the prompts you reuse. A saved prompt is used the same way as an MCP prompt:
/promptlists both and sends the picked one with a message, and the System Message list of the + menu makes either one the chat's system message.Additional information
Stacked on the MCP skills PR (#137). First of three Library PRs: the attachments of existing chats (#140) and a Skills tab (#141) follow on top.
A fresh take on the Library draft #29, rebuilt on this stack (MCP as an extension on SDK v2). #29, its branch and its stack are left as they are. Its Media tab, a mock-up, is not carried over: the next PR lists real attachments.
Choices made here that are still open:
/promptis now a command of the chat form itself and lists every source. The MCP extension keeps only the form that asks for a prompt's arguments./promptand in the System Message list, not on the page.Known gaps:
How it works
/library: the saved prompts as cards, with search, New prompt, Edit and Delete. A card's menu has "Send in a new chat" and "As system message".promptSourcesextension point, and MCP contributes the prompts of its servers that way. The core does not import the MCP extension./prompt. The picker lists the library's prompts, then MCP's in the order of the servers. Every row names where the prompt comes from: Library, or the server. What is typed after/promptsearches the list.What changed
Two commits:
promptstable (DatabaseService, schema version 3),promptsStore, and aPROMPTattachment type. On a message it carries the prompt's text. On a system message it is a link: the message holds the text.extensions/points/prompts.ts:PromptSourceandPromptEntry, and thepromptSourcespoint.promptsStore.sourcesis the library followed by what extensions contribute.ChatFormPickerPromptsand the built-in/promptcommand,usePromptListshared by the picker and the two System Message lists,ChatFormActionAddSystemMessageSubmenu, a System Message page in the phone's Add sheet, and the prompt chip.chatStore.saveSystemPrompttakes the prompt a system message is made from, for a new chat and for an open one.ChatMessageSystem: the prompt card, its status and the two dialogs, ported from ui: prompt library, a System message submenu and a Library page #29.prompts.ts(the source),prompt-arguments.svelte.tsand the picker reduced to the arguments form. Its own/promptcommand and prompt list are gone./libraryroute,LibraryPrompts,LibraryPromptCard, the sidebar action.Testing
In
ui/apps/chat, on the tip of this branch:npm run checkandnpm run lintclean./promptnow go through the shared picker, with a new case for the library alone and one for both sources.LFM3-Omni-2Band a local MCP server with prompts: a prompt made on the Library page, a chat started from its card,/promptlisting the library's and the server's prompts, an MCP prompt with an argument attached and used as the system message, a library prompt as the system message of a new chat, and the sent conversation showing the prompt card and the chip. On a phone viewport: the Library row of the sidebar, the page, and the System Message page of the Add sheet.Not run: the E2E suite, a production build.
Demo script
Uses the demo harness's fixture MCP servers. Needs no model: nothing is sent.
Requirements
Claude (Opus 5.5 Medium)