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

stop agents from rewriting screenpipe skills

Louis Beaumontc2e82523a9a7
diff --git a/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md b/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md
index 1b1444a32..ede96e019 100644
--- a/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md
+++ b/crates/screenpipe-core/assets/skills/screenpipe-api/SKILL.md
@@ -5,8 +5,6 @@ description: Query the user's data via the local screenpipe REST API at localhos
# Screenpipe API
-After completing a complex Screenpipe query, always delegate reusable learning to an asynchronous subagent: have it improve the most relevant existing skill after the user-visible answer so reflection adds no response latency. Create a new skill only when no existing skill fits, and never save one-off facts as skills.
-
Local REST API at `http://localhost:3030`.
## Authentication
diff --git a/crates/screenpipe-engine/src/cli/agent.rs b/crates/screenpipe-engine/src/cli/agent.rs
index 232843cb8..43827c34c 100644
--- a/crates/screenpipe-engine/src/cli/agent.rs
+++ b/crates/screenpipe-engine/src/cli/agent.rs
@@ -610,6 +610,12 @@ mod tests {
assert_eq!(out, "use http://10.0.0.5:3030/search");
}
+ #[test]
+ fn test_api_skill_does_not_instruct_agents_to_modify_skills() {
+ assert!(!API_SKILL_MD.contains("improve the most relevant existing skill"));
+ assert!(!API_SKILL_MD.contains("Create a new skill only when no existing skill fits"));
+ }
+
#[test]
fn test_codex_and_claude_code_have_skill_directories() {
let codex = layout("codex").unwrap();