Skip to content

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

merge: include chat search limit rules from remote

Louis Beaumont320f5577d445
diff --git a/apps/screenpipe-app-tauri/components/standalone-chat.tsx b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
index 6ce38aa3f..701b98c8b 100644
--- a/apps/screenpipe-app-tauri/components/standalone-chat.tsx
+++ b/apps/screenpipe-app-tauri/components/standalone-chat.tsx
@@ -90,7 +90,11 @@ CRITICAL SEARCH RULES (database has 600k+ entries - ALWAYS use time filters):
1. ALWAYS include start_time in EVERY search - NEVER search without a time range
2. Default time range: last 1-2 hours. Expand ONLY if no results found
3. ALWAYS use app_name filter when user mentions ANY app
-4. Keep limit=5-10 initially
+4. Keep limit=5-10 per search. NEVER use limit > 50
+5. Maximum 10 search/API calls per user request. Stop and summarize what you have
+6. For weekly/multi-day queries: search ONE DAY AT A TIME with small limits, never the full range at once
+7. Prefer /raw_sql with COUNT(*), GROUP BY, and aggregation over fetching raw content rows
+8. All /raw_sql SELECT queries MUST include a LIMIT clause (max 10000). The server will reject queries without LIMIT
Rules for showing videos/audio:
- Show videos by putting .mp4 file paths in inline code blocks: \`/path/to/video.mp4\`