From d11719ad15f61dbbe2e4fd87594a03141b4cad10 Mon Sep 17 00:00:00 2001 From: Sergiy Dybskiy Date: Fri, 2 Oct 2026 15:33:37 -0400 Subject: [PATCH] Drop the prompt cache breakpoint on the Slack agent system prompt Lab 4 regression release. Every model call now reads zero cached tokens. Co-authored-by: Claude --- apps/slack-agent/src/agent.ts | 7 ------- 1 file changed, 7 deletions(-) diff --git a/apps/slack-agent/src/agent.ts b/apps/slack-agent/src/agent.ts index b4285c1..70d66cc 100644 --- a/apps/slack-agent/src/agent.ts +++ b/apps/slack-agent/src/agent.ts @@ -24,12 +24,6 @@ function resolveModel(): string { : "anthropic/claude-sonnet-5"; } -// The breakpoint caches the tool definitions plus the system prompt; without -// it Anthropic caches nothing. -const PROMPT_CACHE_OPTIONS = { - openrouter: { cacheControl: { type: "ephemeral" } }, -}; - const TODAY = new Date().toISOString().slice(0, 10); // Anthropic only caches prompt prefixes of at least 1024 tokens (Sonnet 5), @@ -67,7 +61,6 @@ export function streamAnswer({ instructions: { role: "system", content: SYSTEM_PROMPT, - providerOptions: PROMPT_CACHE_OPTIONS, }, messages, abortSignal,