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: add pipe name to context header for scheduled execution
AI Agent6d9f3a3f425e
diff --git a/crates/screenpipe-core/src/pipes/mod.rs b/crates/screenpipe-core/src/pipes/mod.rsindex c93951eaf..7f41e4432 100644--- a/crates/screenpipe-core/src/pipes/mod.rs+++ b/crates/screenpipe-core/src/pipes/mod.rs@@ -3422,7 +3422,9 @@ fn render_prompt_with_port(r#"Time range: {start_time} to {end_time}Date: {date}Timezone: {timezone} (UTC{tz_offset})-"#+Pipe name: {}+"#,+ config.name);prompt.push_str(&header);diff --git a/docs/mintlify/docs-mintlify-mig-tmp/pipes.mdx b/docs/mintlify/docs-mintlify-mig-tmp/pipes.mdxindex cafc6882d..d0adc67d4 100644--- a/docs/mintlify/docs-mintlify-mig-tmp/pipes.mdx+++ b/docs/mintlify/docs-mintlify-mig-tmp/pipes.mdx@@ -184,11 +184,12 @@ before execution, screenpipe prepends a context header to the prompt:Time range: 2026-02-12T13:00:00Z to 2026-02-12T14:00:00ZDate: 2026-02-12Timezone: PST (UTC-08:00)+Pipe name: my-pipeOutput directory: ./output/Screenpipe API: http://localhost:3030```-the AI agent uses these values to query the right time range and format output correctly. no template variables needed — just write plain instructions.+the AI agent uses these values to query the right time range, identify which pipe is running, and format output correctly. no template variables needed — just write plain instructions.### schedule formats@@ -365,6 +366,35 @@ pipe.md (prompt + config)- **lookback = schedule interval** (capped at 8h to prevent context overflow)- **logs saved** to `~/.screenpipe/pipes/{name}/logs/` as JSON+## troubleshooting++### pipe scheduled but doesn't run++**problem**: windows task scheduler or cron shows the task running, but the pipe produces no output.++**solution**: the pipe agent needs to know which pipe it's executing. the context header includes `Pipe name: <name>` so the agent can identify itself. make sure:++1. the pipe folder name matches the expected pipe name (e.g., `~/.screenpipe/pipes/my-pipe/`)+2. the pipe is listed in `screenpipe pipe list`+3. check logs: `screenpipe pipe logs my-pipe`++### pipe runs but produces empty output++**problem**: pipe executes successfully but generates no files or notifications.++**solution**: ensure your pipe prompt includes concrete instructions to:+- query screenpipe API (e.g., `curl http://localhost:3030/search?...`)+- write output files (e.g., to `./output/<date>.md`)+- or send notifications (e.g., `POST http://localhost:11435/notify`)++test locally first: `screenpipe pipe run my-pipe` to see logs before relying on scheduled execution.++### windows task scheduler permission denied++**problem**: windows task scheduler fails with permission errors when running pipes.++**solution**: ensure screenpipe engine is running before the task executes. pipes require the local API at `http://localhost:3030`. schedule the pipe *after* the app starts, or use the desktop UI instead.+## security & permissionsby default, pipes have **full API access** — they can call any screenpipe endpoint. this is fine for pipes you write yourself, but if a pipe doesn't need write access, you can restrict it.