:hedgehog: PostHog is the leading platform for building self-driving products. Our developer tools – AI observability, analytics, session replay, flags, experiments, error tracking, logs, and more – capture all the context agents need to diagnose problems, uncover opportunities, and ship fixes. Steer it all from Slack, web, desktop, or the MCP.
Python ab-testingai-analyticsanalyticscdpdata-warehouseexperimentsfeature-flagsjavascriptproduct-analyticspythonreactsession-replaysurveystypescriptweb-analytics
chore(signals): nudge scouts to write scratchpad content as markdown (#66537)
Andrew Maguireb02bcfaa7a13
diff --git a/products/signals/backend/scout_harness/prompt.py b/products/signals/backend/scout_harness/prompt.pyindex 9ef744ee637e..111cdc9643f5 100644--- a/products/signals/backend/scout_harness/prompt.py+++ b/products/signals/backend/scout_harness/prompt.py@@ -83,6 +83,11 @@ surfaced, defeating the dedupe it was meant to do.Good: `dedupe:error_tracking:019de34e`, `pattern:apm:cursor`.Bad: `dedupe:error_tracking:019de34e-2026-06-09`, `pattern:apm:scan-2026-06-09-0400`.+Write the `content` as **Markdown** — headings, bullet lists, `inline code` for+ids/keys, links. Humans read these entries directly, so structured Markdown is far+easier to skim than a wall of prose; it costs you nothing and reads verbatim into+future prompts just the same.+# Recency lensDefault to recent windows (~last 72h) when querying — fresh evidence is usuallydiff --git a/products/signals/mcp/tools.yaml b/products/signals/mcp/tools.yamlindex eb4fd1a04d2d..eff9a338ea86 100644--- a/products/signals/mcp/tools.yaml+++ b/products/signals/mcp/tools.yaml@@ -566,8 +566,9 @@ tools:Upsert a scratchpad entry keyed on `(team, key)` — re-using a key updates the existing entry in place, sothis is an upsert rather than a strict create. Keys are stable identities: key off *what* you're tracking,not *when* you saw it — never embed dates, timestamps, or run ids (that mints a new row every run and- defeats dedupe). For run state, use one fixed key and keep the timestamp in `content`. Optionally pass- `run_id` to record which run wrote it.+ defeats dedupe). For run state, use one fixed key and keep the timestamp in `content`. Write `content` as+ Markdown — humans read these entries directly, so structured Markdown (headings, bullets, inline code for+ ids) is far easier to skim than a wall of prose. Optionally pass `run_id` to record which run wrote it.signals-scout-scratchpad-search:operation: signals_scout_scratchpad_searchenabled: truediff --git a/products/signals/skills/signals-scout-general/references/conventions.md b/products/signals/skills/signals-scout-general/references/conventions.mdindex 31a166f6129e..044878c357a3 100644--- a/products/signals/skills/signals-scout-general/references/conventions.md+++ b/products/signals/skills/signals-scout-general/references/conventions.md@@ -72,7 +72,9 @@ duplicating entries.## Entry shape that pays offGood entries are **future-run actionable**. The next scout reads them and-changes behavior because of them:+changes behavior because of them. Write `content` as Markdown — humans read these+entries directly, so structured Markdown (headings, bullets, `inline code` for ids)+is far easier to skim than a wall of prose:```textkey: dedupe:error_tracking:019de34e-2026-05-01diff --git a/services/mcp/schema/generated-tool-definitions.json b/services/mcp/schema/generated-tool-definitions.jsonindex cf326e8cac6f..98d9cb456a6f 100644--- a/services/mcp/schema/generated-tool-definitions.json+++ b/services/mcp/schema/generated-tool-definitions.json@@ -6584,7 +6584,7 @@}},"signals-scout-scratchpad-remember": {- "description": "Upsert a scratchpad entry keyed on `(team, key)` — re-using a key updates the existing entry in place, so this is an upsert rather than a strict create. Keys are stable identities: key off *what* you're tracking, not *when* you saw it — never embed dates, timestamps, or run ids (that mints a new row every run and defeats dedupe). For run state, use one fixed key and keep the timestamp in `content`. Optionally pass `run_id` to record which run wrote it.",+ "description": "Upsert a scratchpad entry keyed on `(team, key)` — re-using a key updates the existing entry in place, so this is an upsert rather than a strict create. Keys are stable identities: key off *what* you're tracking, not *when* you saw it — never embed dates, timestamps, or run ids (that mints a new row every run and defeats dedupe). For run state, use one fixed key and keep the timestamp in `content`. Write `content` as Markdown — humans read these entries directly, so structured Markdown (headings, bullets, inline code for ids) is far easier to skim than a wall of prose. Optionally pass `run_id` to record which run wrote it.","category": "Signals","feature": "signals","summary": "Remember a scratchpad entry",diff --git a/services/mcp/schema/tool-definitions-all.json b/services/mcp/schema/tool-definitions-all.jsonindex 0636bacb689c..50679396edd4 100644--- a/services/mcp/schema/tool-definitions-all.json+++ b/services/mcp/schema/tool-definitions-all.json@@ -7095,7 +7095,7 @@}},"signals-scout-scratchpad-remember": {- "description": "Upsert a scratchpad entry keyed on `(team, key)` — re-using a key updates the existing entry in place, so this is an upsert rather than a strict create. Keys are stable identities: key off *what* you're tracking, not *when* you saw it — never embed dates, timestamps, or run ids (that mints a new row every run and defeats dedupe). For run state, use one fixed key and keep the timestamp in `content`. Optionally pass `run_id` to record which run wrote it.",+ "description": "Upsert a scratchpad entry keyed on `(team, key)` — re-using a key updates the existing entry in place, so this is an upsert rather than a strict create. Keys are stable identities: key off *what* you're tracking, not *when* you saw it — never embed dates, timestamps, or run ids (that mints a new row every run and defeats dedupe). For run state, use one fixed key and keep the timestamp in `content`. Write `content` as Markdown — humans read these entries directly, so structured Markdown (headings, bullets, inline code for ids) is far easier to skim than a wall of prose. Optionally pass `run_id` to record which run wrote it.","category": "Signals","feature": "signals","summary": "Remember a scratchpad entry",