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
docs: update pipes & architecture in content/ (Mintlify source)
Louis Beaumont37920d50267b
diff --git a/content/docs-mintlify-mig-tmp/architecture.mdx b/content/docs-mintlify-mig-tmp/architecture.mdxindex 1d850cbae..0854b13a7 100644--- a/content/docs-mintlify-mig-tmp/architecture.mdx+++ b/content/docs-mintlify-mig-tmp/architecture.mdx@@ -54,7 +54,7 @@ REST API on `localhost:3030`:### 5. pipes-[pipes](/pipes) are scheduled AI agents (`.md` files) that run on your screen data. an AI agent (like [pi](https://github.com/mariozechner/pi-coding-agent)) reads the prompt, queries the screenpipe API, and takes action.+[pipes](/pipes) are scheduled AI agents (`.md` files) that run on your screen data. an AI agent (like [pi](https://github.com/badlogic/pi-mono)) reads the prompt, queries the screenpipe API, and takes action.pipes run in `~/.screenpipe/pipes/{name}/` and are scheduled via cron-like intervals.diff --git a/content/docs-mintlify-mig-tmp/pipes.mdx b/content/docs-mintlify-mig-tmp/pipes.mdxindex f65b3efdd..3350bd4f8 100644--- a/content/docs-mintlify-mig-tmp/pipes.mdx+++ b/content/docs-mintlify-mig-tmp/pipes.mdx@@ -12,9 +12,21 @@ copy this prompt into [claude code](https://docs.anthropic.com/en/docs/claude-co```text create a pipecreate a screenpipe pipe that [DESCRIBE WHAT YOU WANT].-a screenpipe pipe is a single markdown file at ~/.screenpipe/pipes/{name}/pipe.md+## what is screenpipe?++screenpipe is a desktop app that continuously records your screen (OCR) and audio (transcription).+it runs a local API at http://localhost:3030 that lets you query everything you've seen, said, or heard.++## what is a pipe?++a pipe is a scheduled AI agent defined as a single markdown file: ~/.screenpipe/pipes/{name}/pipe.md+every N minutes, screenpipe runs a coding agent (like pi or claude-code) with the pipe's prompt.+the agent can query your screen data, write files, call external APIs, send notifications, etc.++## pipe.md format++the file starts with YAML frontmatter, then the prompt body:-the file must start with YAML frontmatter:---name: my-pipeschedule: every 30m@@ -22,22 +34,69 @@ lookback: 30menabled: true----then the prompt body tells the AI agent what to do each run.-the agent can query screen data via: curl "http://localhost:3030/search?limit=20&start_time={{start_time}}&end_time={{end_time}}"-it can also write files, call external APIs, etc.+Your prompt instructions here...++## screenpipe search API++the agent queries screen data via the local REST API:++curl "http://localhost:3030/search?limit=20&content_type=all&start_time={{start_time}}&end_time={{end_time}}"++### query parameters+- q: text search query (optional)+- content_type: "ocr" | "audio" | "ui" | "all" | "ocr+audio" | "ocr+ui" | "audio+ui"+- limit: max results (default 20)+- offset: pagination offset+- start_time / end_time: ISO 8601 timestamps+- app_name: filter by app (e.g. "chrome", "cursor")+- window_name: filter by window title+- browser_url: filter by URL (e.g. "github.com")+- min_length / max_length: filter by text length+- speaker_ids: filter audio by speaker IDs++### OCR results (what was on screen)+each result contains:+- text: the OCR'd text visible on screen+- app_name: which app was active (e.g. "Arc", "Cursor", "Slack")+- window_name: the window title+- browser_url: the URL if it was a browser+- timestamp: when it was captured+- file_path: path to the video frame+- focused: whether the window was focused++### audio results (what was said/heard)+each result contains:+- transcription: the spoken text+- speaker_id: numeric speaker identifier+- timestamp: when it was captured+- device_name: which audio device (mic or system audio)+- device_type: "input" (microphone) or "output" (system audio)++### UI events (accessibility data, macOS only)+query via: curl "http://localhost:3030/ui-events?app_name=Slack&limit=50&start_time={{start_time}}&end_time={{end_time}}"+event types: text (keyboard input), click, app_switch, window_focus, clipboard, scroll++## template variables++these are replaced in the prompt before execution:+- {{start_time}}: ISO 8601 start (based on lookback)+- {{end_time}}: ISO 8601 end (current time)+- {{date}}: current date (YYYY-MM-DD)+- {{timezone}}: timezone abbreviation (e.g. PST)+- {{timezone_offset}}: UTC offset (e.g. -08:00)-available template variables: {{start_time}}, {{end_time}}, {{date}}, {{timezone}}, {{timezone_offset}}--store secrets in .env file next to pipe.md (never in the prompt itself).+## secrets-after creating the file, install it:-curl -X POST http://localhost:3030/pipes/install -H "Content-Type: application/json" -d '{"source": "~/.screenpipe/pipes/my-pipe"}'+store API keys in a .env file next to pipe.md (never in the prompt itself):+echo "API_KEY=your_key" > ~/.screenpipe/pipes/my-pipe/.env+reference in prompt: source .env && curl -H "Authorization: Bearer $API_KEY" ...-then enable it:-curl -X POST http://localhost:3030/pipes/my-pipe/enable -H "Content-Type: application/json" -d '{"enabled": true}'+## after creating the file-or test it once:-curl -X POST http://localhost:3030/pipes/my-pipe/run+install: bunx screenpipe pipe install ~/.screenpipe/pipes/my-pipe+enable: bunx screenpipe pipe enable my-pipe+test: bunx screenpipe pipe run my-pipe+logs: bunx screenpipe pipe logs my-pipe```</CodeGroup>@@ -47,7 +106,7 @@ replace `[DESCRIBE WHAT YOU WANT]` with your use case — e.g. "tracks my time i## what are pipes?-pipes are automated workflows that run on your screenpipe data at regular intervals. each pipe is a markdown file with a prompt and a schedule. under the hood, screenpipe runs a coding agent (like [pi](https://github.com/mariozechner/pi-coding-agent)) that can query your screen data, call APIs, write files, and take actions.+pipes are automated workflows that run on your screenpipe data at regular intervals. each pipe is a markdown file with a prompt and a schedule. under the hood, screenpipe runs a coding agent (like [pi](https://github.com/badlogic/pi-mono)) that can query your screen data, call APIs, write files, and take actions.**a pipe is just one file: `pipe.md`**@@ -80,6 +139,13 @@ Summarize my screen activity for the last 30 minutes.Query screenpipe at http://localhost:3030/search.Write the summary to ./output/{{date}}.mdEOF++# install and enable+bunx screenpipe pipe install ~/.screenpipe/pipes/my-pipe+bunx screenpipe pipe enable my-pipe++# test it+bunx screenpipe pipe run my-pipe```## pipe.md format@@ -128,24 +194,25 @@ these get replaced in the prompt body before execution:```bash# list all pipes-screenpipe pipe list+bunx screenpipe pipe list# install a pipe from file, folder, or URL-screenpipe pipe install ./my-pipe.md-screenpipe pipe install https://raw.githubusercontent.com/user/repo/main/pipe.md+bunx screenpipe pipe install ./my-pipe.md+bunx screenpipe pipe install https://raw.githubusercontent.com/user/repo/main/pipe.md# enable/disable-screenpipe pipe enable my-pipe-screenpipe pipe disable my-pipe+bunx screenpipe pipe enable my-pipe+bunx screenpipe pipe disable my-pipe# run once manually-screenpipe pipe run my-pipe+bunx screenpipe pipe run my-pipe# view run history-screenpipe pipe logs my-pipe+bunx screenpipe pipe logs my-pipe+bunx screenpipe pipe logs my-pipe -f # follow# delete-screenpipe pipe delete my-pipe+bunx screenpipe pipe delete my-pipe```## http api@@ -240,7 +307,7 @@ Write to ./output/{{date}}.mdby default, pipes use **screenpipe cloud** — no setup needed if you have a screenpipe account.-to use your own AI subscription (Claude Pro, ChatGPT Plus, Gemini, or API keys), pipes reuse [pi's native auth system](https://github.com/mariozechner/pi-coding-agent):+to use your own AI subscription (Claude Pro, ChatGPT Plus, Gemini, or API keys), pipes reuse [pi's native auth system](https://github.com/badlogic/pi-mono):### option 1: subscription (free with existing plan)