Linger is An Open-Source Personal Agent That Runs Fully on Your PC. We aim to break Big Tech’s grip on AI by bringing powerful local AI to everyday computers through efficient model–harness co-design, so everyone can run their own.
feat(voice): start decks and designed files as tasks, keep memory out of the goal
Ethande45cd4424d8
diff --git a/apps/teamhub/internal/voicelive/documents.go b/apps/teamhub/internal/voicelive/documents.goindex 240e7b38..5e794d27 100644--- a/apps/teamhub/internal/voicelive/documents.go+++ b/apps/teamhub/internal/voicelive/documents.go@@ -37,7 +37,7 @@ var DocumentTools = []Tool{"title is one line; content is the whole body in Markdown, written only from what the user said and this conversation; never invent facts, names or numbers. An empty content makes an empty document. " +"To show an image from the user's computer, such as one a task made, write  with its path as ls prints it; it is copied into the document. An error with image names the one to fix, and nothing was created. " +"It returns document_id and revision_id. Then say in one short sentence what you wrote and that it is open beside the chat. Change it later with edit_document, replace_document_text or rename_document. " +- "An email is open_email_canvas; research and long reports are start_task.",+ "An email is open_email_canvas; research, long reports, slide decks and designed pieces are start_task.",Parameters: objectSchema([]string{"title"}, map[string]any{"title": stringProperty("The document title, one line"),"content": stringProperty("The whole body in Markdown"),diff --git a/apps/teamhub/internal/voicelive/voicelive.go b/apps/teamhub/internal/voicelive/voicelive.goindex e667a33d..e9a53a40 100644--- a/apps/teamhub/internal/voicelive/voicelive.go+++ b/apps/teamhub/internal/voicelive/voicelive.go@@ -261,7 +261,8 @@ func memorySection(memory UserMemory) string {return ""}return "## About the User\n" +- "From the user's memory.md; use it to know who you talk to and answer questions about who they are and what they do. For anything about their past (what was said, decided or done), look it up as usual.\n" ++ "From the user's memory.md; use it to know who you talk to and answer questions about who they are and what they do. For anything about their past (what was said, decided or done), look it up as usual. " ++ "It is not part of any request: when you start work, a preference here that may apply goes after the goal on its own line, marked as a preference from memory the task may follow.\n" +strings.Join(lines, "\n") + "\n\n"}diff --git a/apps/voice-runtime/src/realtime.ts b/apps/voice-runtime/src/realtime.tsindex 8814bda9..a548e65a 100644--- a/apps/voice-runtime/src/realtime.ts+++ b/apps/voice-runtime/src/realtime.ts@@ -65,7 +65,7 @@ Pick the one place the answer or the work lives:- Chat, common knowledge, opinions, arithmetic: answer directly.${webSearch ? "- A live fact one sentence answers (weather, news, an exchange rate, a stock price): web_search on the spot and give the one or two lines that matter. Never search the web for chat or recommendations, for research, comparisons or prices of several things, or to look at a particular website (GitHub, a store, a booking or ticket site): " + (localBrowser ? "that is computer_browser, or start_task with surface web for long work" : "that is start_task with surface web") + ".\n" : ""}${localBrowser ? "- A website the user wants to open, browse, search or read together with you, or a site they name (“open Xiaohongshu”, “search it on Bing”): computer_browser, yourself, in the browser on their own computer. Long work across many pages, comparing several things or anything that ends in a document is start_task.\n" : ""}- The user's own past and anything about them (who they are, their work and people, what was discussed or decided, their Wiki, notes, daily or weekly reports, someone's page): recall_memory, also when that page is open on the screen. If it finds nothing, say you found nothing; say what the screen shows only if the user asks about the screen.- This app's window, which the user is looking at: page_action to operate it (open a room, click, scroll, close, type, search) and read_page when they ask about what is on it (“this page”, “here”, “this on the screen”). It reaches nothing outside this app.-${has("page_action") && has("search_documents") ? "- A file, deck or document the user wants opened or shown: search_documents with their words for its document_id, unless a message in context is plainly that very file, then page_action open_document with it; it opens beside the chat when this room has it and in the Library otherwise. Check the title in its result before you say it is open. Never hop rooms or click Attach file for this.\n" : ""}${has("create_document") ? "- A new document the user wants (notes, a plan, a checklist, a draft): create_document, written from what they said; it opens beside the chat.\n" : ""}${documentEdits ? "- A document, canvas or file in this app the user wants renamed or changed (its title, a sentence, a section, all of it): rename_document, replace_document_text or edit_document yourself, on the spot, reading it first with read_document when you need its text" + (has("insert_document_image") ? "; an image into it, such as a task's output, is insert_document_image" : "") + ". Its comments: list_comments to read them; add_comment, reply_comment and resolve_comment act as the user. Deleting or moving it is start_task.\n" : ""}${appReads.length ? `- What is in ${appReads.join(", ")}: look it up yourself on the spot and say the one or two things that matter. ${slackSend ? "Sending a Slack message is send_slack, also with a file (a document here or a task's output) and to the user's own DM: call it as soon as the user wants it sent. " : ""}Replying to email, booking or changing anything else there is start_task with surface apps.\n` : ""}${has("create_routine") ? "- A reminder at a set time or work on a schedule (“remind me at eight to call mom”, “every weekday at nine tell me my day”): create_routine; which ones exist is list_routines; pausing, resuming, running or deleting one is change_routine. It reminds in this chat, with no phone notification.\n" : ""}${has("create_agent") ? "- A new Agent the user wants made (a teammate for a job): create_agent, with complete instructions written from what they said.\n" : ""}${emailCanvas ? `- A new email the user wants written: open_email_canvas at once; it opens beside the chat for them to read and edit. Changing it is edit_email_canvas; ${has("attach_email_file") ? "attaching a file to it (a document or file in this app, or a task's output) is attach_email_file; " : ""}${emailDelivery ? "saving it in Gmail is save_email_draft, and sending it is send_email_canvas: call it as soon as the user wants it sent" : "saving it in Gmail or sending it is start_task"}.\n` : ""}- Everything else that takes time or happens outside this app: start_task, with surface web for websites and anything “in the browser”, desktop for apps and files on their computer (WeChat, the Feishu or Slack app, Excel, Figma, Downloads, a window on their screen), apps for their connected email, calendar or Slack, workspace for research, reports and multi-step work here. Several pieces of work are several start_task calls. Say one short line and keep talking; the result comes back by itself. Never say work is started unless start_task returned started.+${has("page_action") && has("search_documents") ? "- A file, deck or document the user wants opened or shown: search_documents with their words for its document_id, unless a message in context is plainly that very file, then page_action open_document with it; it opens beside the chat when this room has it and in the Library otherwise. Check the title in its result before you say it is open. Never hop rooms or click Attach file for this.\n" : ""}${has("create_document") ? "- A new document the user wants (notes, a plan, a checklist, a draft): create_document, written from what they said; it opens beside the chat.\n" : ""}${has("start_task") ? "- A designed file the user wants (a deck or PPT, a poster, an invitation, an infographic): start_task with surface workspace at once, its goal only what they said about it (topic, audience, style, length, language).\n" : ""}${documentEdits ? "- A document, canvas or file in this app the user wants renamed or changed (its title, a sentence, a section, all of it): rename_document, replace_document_text or edit_document yourself, on the spot, reading it first with read_document when you need its text" + (has("insert_document_image") ? "; an image into it, such as a task's output, is insert_document_image" : "") + ". Its comments: list_comments to read them; add_comment, reply_comment and resolve_comment act as the user. Deleting or moving it is start_task.\n" : ""}${appReads.length ? `- What is in ${appReads.join(", ")}: look it up yourself on the spot and say the one or two things that matter. ${slackSend ? "Sending a Slack message is send_slack, also with a file (a document here or a task's output) and to the user's own DM: call it as soon as the user wants it sent. " : ""}Replying to email, booking or changing anything else there is start_task with surface apps.\n` : ""}${has("create_routine") ? "- A reminder at a set time or work on a schedule (“remind me at eight to call mom”, “every weekday at nine tell me my day”): create_routine; which ones exist is list_routines; pausing, resuming, running or deleting one is change_routine. It reminds in this chat, with no phone notification.\n" : ""}${has("create_agent") ? "- A new Agent the user wants made (a teammate for a job): create_agent, with complete instructions written from what they said.\n" : ""}${emailCanvas ? `- A new email the user wants written: open_email_canvas at once; it opens beside the chat for them to read and edit. Changing it is edit_email_canvas; ${has("attach_email_file") ? "attaching a file to it (a document or file in this app, or a task's output) is attach_email_file; " : ""}${emailDelivery ? "saving it in Gmail is save_email_draft, and sending it is send_email_canvas: call it as soon as the user wants it sent" : "saving it in Gmail or sending it is start_task"}.\n` : ""}- Everything else that takes time or happens outside this app: start_task, with surface web for websites and anything “in the browser”, desktop for apps and files on their computer (WeChat, the Feishu or Slack app, Excel, Figma, Downloads, a window on their screen), apps for their connected email, calendar or Slack, workspace for research, reports and multi-step work here. Several pieces of work are several start_task calls. Say one short line and keep talking; the result comes back by itself. Never say work is started unless start_task returned started.- While work is running: what the user answers to it or changes about it goes to reply_to_task; stopping it is cancel_task; how far it is, list_tasks${has("check_task") ? ", and what exactly one found or needs, check_task" : ""}; an approval it waits on is decide_approval, only after the user agrees to that answer.- Messages, Pocket Notes and rooms in this app: the matching tool. send_message and find_rooms reach only rooms in this app; ${slackSend ? "Slack is send_slack, and " : ""}replying or posting in ${slackSend ? "" : "Slack, "}Feishu, WeChat or email is start_task. A change (send, note, create, delete) is restated in one sentence and done with confirmed=true only after the user agrees. A message body holds only what the user wants to say.${pageChainRule(tools)}- If a search finds nothing, the name may have been misheard (“level eight” may be “Lev8”): try a close spelling once more, then ask how to spell it.