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
chore(wip): batch of intentional dirty-tree changes — push as-is per Louis
Louis Beaumont3cf351f7e7d7
diff --git a/.claude/skills/user-feedback/SKILL.md b/.claude/skills/user-feedback/SKILL.mddeleted file mode 100644index ccf1eea05..000000000--- a/.claude/skills/user-feedback/SKILL.md+++ /dev/null@@ -1,107 +0,0 @@-----name: user-feedback-description: Query user feedback logs submitted via the app's "send logs" button. Use when debugging user-reported issues, searching for crash patterns, or reviewing feedback.-tools:- - Bash- - WebFetch------# User Feedback Logs--Query feedback and logs submitted by users through the screenpipe app's "send logs" button. Data is stored in Supabase and accessible via the admin logs API.--## Setup--The API requires a bearer token. Set `LOGS_ADMIN_SECRET` in your environment or pass it directly. Ask the project maintainer for the token if you don't have it.--```bash-export LOGS_ADMIN_SECRET="<token>"-```--## API Endpoint--```-GET https://screenpi.pe/api/admin/logs-Authorization: Bearer $LOGS_ADMIN_SECRET-```--## Query Parameters--| Param | Description | Example |-|-------|-------------|---------|-| `q` | Search feedback text (case-insensitive) | `q=crash` |-| `os` | Filter by OS | `os=darwin`, `os=windows`, `os=linux` |-| `app_version` | Exact version match | `app_version=2.2.290` |-| `identifier` | Filter by user/machine ID | |-| `screenpipe_id` | Filter by analytics ID | |-| `from` | Start date (ISO 8601) | `from=2026-03-30T00:00:00` |-| `to` | End date (ISO 8601) | `to=2026-03-31T00:00:00` |-| `limit` | Results per page (max 200) | `limit=20` |-| `offset` | Pagination offset | `offset=20` |--## Common Queries--### Recent feedback (last 24h)-```bash-curl -s "https://screenpi.pe/api/admin/logs?limit=20&from=$(date -u -v-24H '+%Y-%m-%dT%H:%M:%S' 2>/dev/null || date -u -d '24 hours ago' '+%Y-%m-%dT%H:%M:%S')" \- -H "Authorization: Bearer $LOGS_ADMIN_SECRET" | jq '.logs[] | {created_at, os, app_version, feedback: .feedback_text}'-```--### Search for a keyword in feedback-```bash-curl -s "https://screenpi.pe/api/admin/logs?q=audio&limit=20" \- -H "Authorization: Bearer $LOGS_ADMIN_SECRET" | jq '.logs[] | {created_at, os, app_version, feedback: .feedback_text}'-```--### Windows-only issues-```bash-curl -s "https://screenpi.pe/api/admin/logs?os=windows&limit=30" \- -H "Authorization: Bearer $LOGS_ADMIN_SECRET" | jq '.logs[] | {created_at, os_version, app_version, feedback: .feedback_text}'-```--### Feedback for a specific version-```bash-curl -s "https://screenpi.pe/api/admin/logs?app_version=2.2.290&limit=50" \- -H "Authorization: Bearer $LOGS_ADMIN_SECRET" | jq '.logs[] | {created_at, os, feedback: .feedback_text}'-```--### Count total feedback entries-```bash-curl -s "https://screenpi.pe/api/admin/logs?limit=1" \- -H "Authorization: Bearer $LOGS_ADMIN_SECRET" | jq '{total: .total}'-```--## Response Shape--```json-{- "logs": [- {- "id": "uuid",- "type": "user",- "identifier": "user_abc123",- "os": "darwin",- "os_version": "15.3.2",- "app_version": "2.2.290",- "feedback_text": "audio stopped working after update",- "screenpipe_id": "analytics_id",- "created_at": "2026-03-30T15:30:00Z",- "file_path": "logs/user/abc123/2026-03-30T15:30:00.log",- "screenshot_url": "logs/user/abc123/2026-03-30T15:30:00_screenshot.png",- "video_url": "logs/user/abc123/2026-03-30T15:30:00_video.mp4"- }- ],- "total": 1234,- "limit": 20,- "offset": 0-}-```--## Tips--- `file_path`, `screenshot_url`, and `video_url` are S3 keys, not direct URLs. You can't download them directly — they need signed URLs generated server-side.-- `feedback_text` can be null if the user just sent logs without writing a message.-- `identifier` is either a Clerk user ID (starts with `user_`) or a random machine UUID for anonymous users.-- Results are always sorted newest first.-- Use `from`/`to` to narrow time ranges when investigating specific incidents.-- Cross-reference `app_version` with git tags to check if the issue is fixed in a newer release.diff --git a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsxindex 7960ab3b5..186d051ab 100644--- a/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx+++ b/apps/screenpipe-app-tauri/components/settings/pipes-section.tsx@@ -2417,7 +2417,14 @@ export function PipesSection() {</p>) : executions.length > 0 ? (executions.map((exec) => (- <div key={exec.id} className="border p-2 space-y-1">+ // contain: layout paint isolates the markdown+ // subtree's reflow cost from page-wide layout+ // passes. Without it, opening the device /+ // schedule / timeout dropdowns (Radix calls+ // getBoundingClientRect on the trigger) freezes+ // the page while the browser re-lays-out every+ // execution row's markdown.+ <div key={exec.id} className="border p-2 space-y-1" style={{ contain: "layout paint" }}><div className="flex items-center gap-2 text-xs font-mono flex-wrap"><span className="text-muted-foreground">{exec.started_at ? new Date(exec.started_at).toLocaleString() : "queued"}@@ -2472,7 +2479,8 @@ export function PipesSection() {))) : (logs.slice().reverse().map((log, i) => (- <div key={i} className="border p-2 space-y-1">+ // see contain: layout paint comment above+ <div key={i} className="border p-2 space-y-1" style={{ contain: "layout paint" }}><div className="flex items-center gap-2 text-xs font-mono"><span className="text-muted-foreground">{new Date(log.started_at).toLocaleString()}</span><span>{log.success ? "✓" : "✗"}</span>diff --git a/apps/screenpipe-app-tauri/lib/utils/tauri.ts b/apps/screenpipe-app-tauri/lib/utils/tauri.tsindex 06f7d49f1..6c0e86bec 100644--- a/apps/screenpipe-app-tauri/lib/utils/tauri.ts+++ b/apps/screenpipe-app-tauri/lib/utils/tauri.ts@@ -1612,6 +1612,29 @@ asyncImagePiiRedaction?: boolean;* Tinfoil operator. Tracked separately; structured for swap-in.*/piiBackend?: string;+/**+ * Where the AI PII redaction actually runs. One switch flips+ * BOTH modalities (text + image) because the user-facing+ * "AI PII removal" toggle is one knob.+ *+ * - `"local"` (default): on-device ONNX models. Privacy by+ * construction — pixels and text never leave the box. Slower,+ * especially on weak hardware (~1-3 s per text row, ~60-180 ms+ * per frame).+ * - `"tinfoil"`: send to the screenpipe Tinfoil enclave (H200,+ * confidential compute). Much faster (~30-100 ms per row /+ * frame). Data leaves the device but is end-to-end encrypted+ * into an attested confidential-compute enclave that even+ * Tinfoil ops can't read into. Requires network ++ * `SCREENPIPE_PRIVACY_FILTER_API_KEY` (or the cloud auth key).+ *+ * Note on attestation: the proper attested-transport client+ * (Tinfoil's secure-client SDK) is Go/Python/JS-only at time of+ * writing. The Rust adapter currently uses plain HTTPS — which+ * gives confidentiality vs. the network but NOT vs. a malicious+ * Tinfoil operator. Tracked separately; structured for swap-in.+ */+piiBackend?: string;/*** Screenpipe cloud user ID. Empty string means not logged in.* Kept as String (not Option) to match existing store.bin schema.diff --git a/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md b/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.mdindex 54f84b79b..dfe9df684 100644--- a/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md+++ b/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md@@ -1,11 +1,11 @@---name: screenpipe-api-description: Query and persist the user's data via the local Screenpipe REST API at localhost:3030 — screen recordings, audio, UI elements, usage analytics, and the user's persistent memory store. Use when the user asks about their screen activity, meetings, apps, productivity, media export, retranscription, connected services, OR when they ask to save / remember / store / note information so it can be retrieved later (POST /memories — survives across sessions and is queryable by Claude/external agents via the same API).+description: Query the user's data via the local screenpipe REST API at localhost:3030 — screen recordings, audio, UI elements, usage analytics, and the user's persistent memory store. Use when the user asks about their screen activity, meetings, apps, productivity, media export, retranscription, connected services, OR when they ask to save / remember / store / note information so it can be retrieved later (POST /memories — survives across sessions and is queryable by Claude/external agents via the same API).---# Screenpipe API-Local REST API at `http://localhost:3030`. Full reference (60+ endpoints): https://docs.screenpi.pe/llms-full.txt+Local REST API at `http://localhost:3030`.## Authentication@@ -15,13 +15,7 @@ Local REST API at `http://localhost:3030`. Full reference (60+ endpoints): httpscurl -H "Authorization: Bearer $SCREENPIPE_LOCAL_API_KEY" "http://localhost:3030/..."```-The `$SCREENPIPE_LOCAL_API_KEY` env var is already set in your environment. Without it you get 403. The only exception is `/health` (no auth needed).--> ⚠️ **Use `$SCREENPIPE_LOCAL_API_KEY` — not `$SCREENPIPE_API_KEY`.** They are different env vars for different APIs:-> - `SCREENPIPE_LOCAL_API_KEY` (short `sp-<uuid>`) authenticates to `localhost:3030` (this skill).-> - `SCREENPIPE_API_KEY` (long JWT) authenticates to `https://api.screenpi.pe` (cloud LLM, not this skill).->-> Sending the JWT to `localhost:3030` will return `unauthorized` and lead you down a dead-end debugging path. If you only see one of these env vars, use that one — but if `SCREENPIPE_LOCAL_API_KEY` is missing, the local server will reject every request you make regardless. Don't substitute the JWT for it.+The `$SCREENPIPE_LOCAL_API_KEY` env var is already set in your environment. Without it you get 403. Endpoints that skip auth: `/health`, `/ws/health`, `/audio/device/status`, `/connections/oauth/callback`, `/frames/*`, `/notify`, `/pipes/store/*`.## Context Window Protection@@ -40,8 +34,8 @@ curl -H "Authorization: Bearer $SCREENPIPE_LOCAL_API_KEY" "http://localhost:3030| Parameter | Type | Required | Description ||-----------|------|----------|-------------|| `q` | string | No | Keywords. Do NOT use for audio searches — transcriptions are noisy, q filters too aggressively. |-| `content_type` | string | No | `all` (default), `accessibility`, `audio`, `input`, `ocr`, `memory`. Screen text is primarily captured via the OS accessibility tree (`accessibility`); OCR is a fallback for apps without accessibility support (games, remote desktops). Use `all` unless you need a specific modality. |-| `limit` | integer | No | Max 1-20. Default: 10 |+| `content_type` | string | No | `all` (default), `accessibility`, `audio`, `input`, `ocr`, `memory`. Screen text is primarily captured via the OS accessibility tree (`accessibility`); OCR is a fallback for apps without accessibility support (videos, games, remote desktops). Use `all` unless you need a specific modality. |+| `limit` | integer | No | Default: 20. Keep small (≤20) to protect context. || `offset` | integer | No | Pagination. Default: 0 || `start_time` | ISO 8601 or relative | **Yes** | Accepts `2024-01-15T10:00:00Z` or `16h ago`, `2d ago`, `30m ago` || `end_time` | ISO 8601 or relative | No | Defaults to now. Accepts `now`, `1h ago` |@@ -74,11 +68,9 @@ Decision tree:### Critical Rules1. **ALWAYS include `start_time`** — queries without time bounds WILL timeout-2. **Start with 1-2 hour ranges** — expand only if no results-3. **Use `app_name`** when user mentions a specific app-4. **Keep `limit` low** (5-10) initially-5. **"recent"** = 30 min. **"today"** = since midnight. **"yesterday"** = yesterday's range-6. If timeout, narrow the time range+2. **Use `app_name`** when user mentions a specific app (this is string contains)+3. **"recent"** = 30 min. **"today"** = since midnight. **"yesterday"** = yesterday's range+4. If timeout, narrow the time range### Response Format@@ -87,14 +79,12 @@ Decision tree:"data": [{"type": "OCR", "content": {"frame_id": 12345, "text": "...", "timestamp": "...", "app_name": "Chrome", "window_name": "..."}},{"type": "Audio", "content": {"chunk_id": 678, "transcription": "...", "timestamp": "...", "speaker": {"name": "John"}}},- {"type": "UI", "content": {"id": 999, "text": "Clicked 'Submit'", "timestamp": "...", "app_name": "Safari"}}+ {"type": "Input", "content": {"id": 999, "text": "Clicked 'Submit'", "timestamp": "...", "app_name": "Safari"}}],"pagination": {"limit": 10, "offset": 0, "total": 42}}```-> **Note**: The `"OCR"` type label is used for all screen text results, including text captured via the accessibility tree. Most screen text comes from accessibility, not OCR.----## 2. Activity Summary — `GET /activity-summary`@@ -176,7 +166,7 @@ Fields: `start_time`, `end_time` (or `frame_ids` array), `fps` (default 1.0). MaFPS guidelines: 5min→1.0, 30min→0.5, 1h→0.2, 2h+→0.1-Returns `{"file_path": "...", "frame_count": N, "duration_secs": N}`. Show path as inline code block for playback.+Returns `{"file_path": "...", "frame_count": N, "duration_secs": N, "file_size_bytes": N}`. Show path as inline code block for playback.### Audio & ffmpeg@@ -200,7 +190,7 @@ curl -X POST http://localhost:3030/audio/retranscribe \-d '{"start": "1h ago", "end": "now"}'```-Optional: `engine` (`whisper-large-v3-turbo`|`whisper-large-v3`|`deepgram`|`qwen3-asr`), `vocabulary` (array of `{"word": "...", "replacement": "..."}` for bias/replacement), `prompt` (topic context for Whisper).+Optional: `engine` (one of `deepgram`, `screenpipe-cloud`, `whisper-large`, `whisper-large-v3-turbo`, `whisper-large-v3-turbo-quantized`, `qwen3-asr`, `parakeet`, `parakeet-mlx`, `openai-compatible`), `vocabulary` (array of `{"word": "...", "replacement": "..."}` for bias/replacement), `prompt` (topic context for Whisper).Keep ranges short (1h max). Show old vs new transcription.@@ -453,7 +443,7 @@ curl -X DELETE http://localhost:3030/memories/1Parameters for `GET /memories`: `q` (FTS search), `source`, `tags`, `min_importance`, `start_time`, `end_time`, `limit`, `offset`.-Memories also appear in `/search?content_type=memory`.+Use `/memories` directly — `/search` does not currently surface `content_type=memory` results.### Creating Memories