YC (S26) | Open Computer History | Continuously record your company computer work, map your workflows, help you find work worth automating, and power your agents' context
Rust agentsagiaiai-memoryaudio-recordingcomputer-visionhermeshermes-agentllmlocal-ailocal-firstmachine-learningmcpmultimodalopenclawprivacyrewindscreen-recordingspeech-to-textycombinator
fix: update skill + prompts for richer activity-summary
Louis Beaumontb614d46c6dd7
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsxindex 0b899a2c8..044573a9d 100644--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx@@ -132,12 +132,13 @@ BEHAVIOR RULES:- Act immediately on clear requests. NEVER ask for confirmation when the user's intent is obvious.- If a search returns empty, silently fix your query and retry (widen time range, remove filters). Do NOT list "possibilities" or ask the user what to do.- Be concise. Cite timestamps when relevant. Convert all UTC timestamps to the user's local timezone before displaying.+- When summarizing activity, write like a knowledgeable assistant recapping the user's day — connect the dots between windows, content, and audio into a narrative. Name specific projects, files, people, and URLs. Say "you were debugging a Windows crash for 20 min, then reviewed a PR about team member display names" not "you used WezTerm for 39 min and Arc for 8 min." The window titles and key_texts from activity-summary contain the specifics — use them.TOOL SELECTION (use the right tool for the job):- "meeting", "call", "conversation", "what did I/they say" → search with content_type: "audio", NO q param- "how long", "time spent", "which apps", "most used" → use activity-summary (NOT raw frame counts or SQL)- "what was on screen", "what was I reading/looking at" → search with content_type: "all" or "accessibility"-- Broad overview ("what was I doing?") → activity-summary FIRST, then drill into search-content+- Broad overview ("what was I doing?") → activity-summary FIRST. The windows field shows exactly what the user was working on (window titles, URLs, time per tab). Usually sufficient without further searches.CRITICAL SEARCH RULES (database has 600k+ entries):1. ALWAYS include start_time in EVERY search - NEVER search without a time rangediff --git a/crates/screenpipe-connect/screenpipe-mcp/src/index.ts b/crates/screenpipe-connect/screenpipe-mcp/src/index.tsindex f6227e2a9..9c9357cc2 100644--- a/crates/screenpipe-connect/screenpipe-mcp/src/index.ts+++ b/crates/screenpipe-connect/screenpipe-mcp/src/index.ts@@ -119,9 +119,10 @@ const TOOLS: Tool[] = [{name: "activity-summary",description:- "Lightweight activity overview (~200-500 tokens): app usage with active minutes, audio speakers, recent texts. " ++ "Rich activity overview: app usage, window/tab titles with URLs and time spent, key text per context, audio transcriptions. " +"USE THIS FIRST for broad questions: 'what was I doing?', 'how long on X?', 'which apps?'. " +- "Only escalate to search-content if you need specific text content.",+ "The 'windows' field shows exactly what the user worked on (e.g. 'Debug crash issue — 20 min', 'Stripe pricing page — 5 min'). " ++ "Usually sufficient without further searches.",annotations: { title: "Activity Summary", readOnlyHint: true, openWorldHint: false, idempotentHint: true },inputSchema: {type: "object",diff --git a/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md b/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.mdindex f8e536632..316a295ea 100644--- a/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md+++ b/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md@@ -87,7 +87,13 @@ Decision tree:curl "http://localhost:3030/activity-summary?start_time=1h%20ago&end_time=now"```-Returns app usage with accurate `active_minutes`, first/last seen, recent texts, audio summary. ~200-500 tokens. Best starting point.+Returns a rich overview with:+- **apps**: usage with `active_minutes`, first/last seen+- **windows**: every distinct window/tab with title, `browser_url`, and time spent — this is the most valuable field, it tells you exactly what the user was working on+- **key_texts**: one representative text snippet per window context (user input fields prioritized over static page text)+- **audio_summary.top_transcriptions**: actual transcription text with speaker and timestamp (not just counts)++This is usually enough to answer "what was I doing?" without further searches. Only drill into `/search` if you need verbatim quotes or specific content.---