Pipes are scheduled AI agents defined as simple markdown files. Each pipe is aDocumentation Index
Fetch the complete documentation index at: https://mintlify.com/screenpipe/screenpipe/llms.txt
Use this file to discover all available pages before exploring further.
pipe.md with a prompt and schedule — screenpipe runs an AI coding agent (like pi or claude-code) that queries your screen data, calls APIs, writes files, and takes actions.
What are pipes?
Think of pipes as autonomous AI workflows that run on a schedule. Instead of writing code, you write a markdown file with:- YAML frontmatter: Schedule, AI model, and data permissions
- Prompt body: Instructions for what the AI should do
- Running the AI agent at the scheduled time
- Passing your screen/audio data context
- Managing execution (logs, timeouts, retries)
- Enforcing data permissions
How pipes work
Use cases
Productivity automation
- Daily logs: Automatically sync activity to Obsidian or Notion
- Time tracking: Categorize work by project and export to CSV
- Meeting summaries: Transcribe meetings and create action items
- Task extraction: Find todos from conversations and create reminders
Personal insights
- Focus analysis: Track deep work sessions vs context switching
- Habit tracking: Monitor which apps you use and when
- Learning journal: Capture articles read, videos watched, code written
- Mood tracking: Correlate screen activity with subjective well-being
Developer workflows
- Standup automation: Generate standup updates from yesterday’s commits and PRs
- Documentation sync: Update docs when you change code
- Bug tracker: Surface error messages from terminals and create tickets
- Code review prep: Summarize recent changes for PR descriptions
Research & discovery
- Idea tracker: Surface startup ideas from browsing + market trends
- Reading digest: Summarize articles and papers you’ve read
- Competitive intel: Track competitors’ product updates and blog posts
- Learning paths: Recommend resources based on what you’re researching
Team & enterprise
- Shared standups: Auto-generate team updates from aggregated activity
- Compliance audits: Log what data was accessed and by whom
- Onboarding playbooks: Capture how experienced employees work
- Security monitoring: Alert on sensitive window titles or unusual patterns
Built-in pipes
screenpipe includes several example pipes in~/.screenpipe/pipes/:
Obsidian Sync
Automatically sync screen activity to Obsidian vault as daily logs with timeline, action items, and deep links
Reminders
Scan activity for todos and create Apple Reminders (macOS)
Idea Tracker
Surface startup ideas from your browsing combined with market trends
Meeting Summary
Transcribe meetings and generate summaries with action items
Time Breakdown
Categorize work by project and app usage
Morning Brief
Daily summary of yesterday’s activity and today’s agenda
Pipe lifecycle
Queued
Pipe is scheduled and waiting for execution. A global semaphore (default: 1 concurrent pipe) prevents resource contention.Running
AI agent process is spawned. PID tracked, stdout/stderr captured, timeout enforced (default: 5 minutes).Completed
Agent finished successfully. Output written to./output/, logs saved.
Failed
Agent returned non-zero exit code, crashed, or timed out. Error captured in logs.Cancelled
User manually stopped execution via UI or API.Data access
Pipes access screenpipe data via the localhost REST API:ocr— Text extracted from screen (accessibility tree + OCR fallback)audio— Speech transcriptions from system audio and microphoneinput— Typing, clicks, clipboard, app switchesaccessibility— UI elements (buttons, labels, menus)all— Combined results from all sources
Data permissions
Pipes support fine-grained data access control via YAML frontmatter. Admins can restrict:- Apps & windows: Only allow data from specific apps or window titles
- Content types: Restrict to OCR only, audio only, etc.
- Time & day ranges: Only access data from work hours
- Endpoints: Block raw SQL queries or frame/screenshot access
Performance
Pipes are designed to be resource-efficient:- Event-driven execution: Only run when scheduled, not continuously
- Serialized by default: One pipe at a time (semaphore=1) prevents CPU spikes
- Automatic timeout: 5-minute default prevents hung processes
- Log rotation: Old execution logs pruned automatically
- Incremental queries: Query API in time chunks to avoid loading entire DB
- Idle: 0% CPU (scheduler checks every 30s)
- Running: 10-30% CPU depending on AI model and API calls
- Storage: ~1-5 MB per execution (logs + output)
Privacy & security
Local by default
All pipes run locally on your device. No data sent to external servers unless the pipe explicitly makes external API calls (e.g., web search).Data permissions
YAML frontmatter controls what data each pipe can access. Three-layer enforcement (skill gating, agent interception, server middleware) prevents unauthorized access.Audit logs
Every pipe execution is logged with:- Timestamp (queued, started, finished)
- AI model and provider used
- Stdout/stderr output
- Exit code and error messages
- Which API endpoints were called
Sandboxing
Pipes run in a process-isolated environment:- Working directory:
~/.screenpipe/pipes/{pipe_name}/ - Output directory:
./output/(write-only) - No access to other pipes’ data
- Environment variables controlled
Next steps
Creating Pipes
Step-by-step guide to creating your first pipe
Data Permissions
Configure what data your pipes can access
Examples
Real pipe examples you can copy and customize
API Reference
Complete screenpipe API documentation