Skip to content

: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.

docs: fix stale file paths in agent config files (#76688)

mendral-app[bot]47b1f1915064
diff --git a/.agents/skills/adding-personhog-rpc/SKILL.md b/.agents/skills/adding-personhog-rpc/SKILL.md
index b3b3009dc3b9..b4a382d7e816 100644
--- a/.agents/skills/adding-personhog-rpc/SKILL.md
+++ b/.agents/skills/adding-personhog-rpc/SKILL.md
@@ -94,8 +94,11 @@ cd nodejs && pnpm run generate:personhog-proto
Then update:
-- `nodejs/src/ingestion/personhog/client.ts` — add a wrapper method matching the pattern of existing methods
-- `nodejs/src/ingestion/personhog/client.test.ts` — add a default stub to `SERVICE_DEFAULTS` for the new RPC
+- `nodejs/src/common/personhog/groups.ts` or `persons.ts` — add a wrapper method to the
+ matching operations class (`PersonHogGroupOperations` / `PersonHogPersonOperations`),
+ following the pattern of existing methods. `client.ts` only constructs and exposes
+ these operation objects; it holds no RPC wrappers itself.
+- `nodejs/src/common/personhog/client.test.ts` — add a default stub to `SERVICE_DEFAULTS` for the new RPC
### Rust
diff --git a/.agents/skills/implementing-mcp-tools/SKILL.md b/.agents/skills/implementing-mcp-tools/SKILL.md
index a5da2d48ea46..e5cc480fe337 100644
--- a/.agents/skills/implementing-mcp-tools/SKILL.md
+++ b/.agents/skills/implementing-mcp-tools/SKILL.md
@@ -40,7 +40,7 @@ Before scaffolding YAML, verify:
Missing descriptions = agents guessing at parameters.
Use `ListField(child=serializers.CharField())` instead of bare `ListField()`,
and `@extend_schema_field(PydanticModel)` on `JSONField` subclasses to get typed Zod output
- (see `posthog/api/alert.py` for the pattern).
+ (see `products/alerts/backend/api/alert.py` for the pattern).
2. **Plain `ViewSet` methods have `@extend_schema(request=...)`** —
without it, drf-spectacular can't discover the request body
and the generated tool gets `z.object({})` (zero parameters).
diff --git a/.agents/skills/improving-drf-endpoints/SKILL.md b/.agents/skills/improving-drf-endpoints/SKILL.md
index 89ab1a925ef4..08144fd1b9d3 100644
--- a/.agents/skills/improving-drf-endpoints/SKILL.md
+++ b/.agents/skills/improving-drf-endpoints/SKILL.md
@@ -167,9 +167,9 @@ See [common-anti-patterns.md](references/common-anti-patterns.md) for before/aft
## Canonical examples in the codebase
-- **JSONField + @extend_schema_field:** `posthog/api/alert.py`
-- **@validated_request:** `products/tasks/backend/api.py`
-- **help_text + typed responses:** `products/llm_analytics/backend/api/evaluation_summary.py`
+- **JSONField + @extend_schema_field:** `products/alerts/backend/api/alert.py`
+- **@validated_request:** `products/tasks/backend/presentation/views/api.py`
+- **help_text + typed responses:** `products/ai_observability/backend/api/evaluation_summary.py`
- **Facade product:** `products/visual_review/backend/presentation/views.py`
## Related
diff --git a/.agents/skills/writing-evals/SKILL.md b/.agents/skills/writing-evals/SKILL.md
index ddbaed3f9cd8..565cf011d4cb 100644
--- a/.agents/skills/writing-evals/SKILL.md
+++ b/.agents/skills/writing-evals/SKILL.md
@@ -104,7 +104,7 @@ The contract:
Shared building blocks live in `products/posthog_ai/eval_harness/seeders/` (`common.py` seeded-name providers and the `[lookup]` prefix, `insight.py` noise insights, `survey.py` flags); domain seeders live next to their suites (`data_warehouse/seeder.py`, `error_tracking/seeders.py`, `experiments/seeders.py`).
**Synthesizers** are the generation half of a two-part split, used when the seeded catalog is large or synthetic. A synthesizer is a pure, Django-free, deterministic generator that emits frozen dataclasses — no ORM, no I/O — and the seeder translates that catalog into ORM/ClickHouse/S3 rows inside the case's team.
-The split exists so generation stays unit-testable and byte-for-byte reproducible (see `ee/hogai/test/eval/test_warehouse_synthesizer.py`) while installation stays an integration concern.
+The split exists so generation stays unit-testable and byte-for-byte reproducible (see `products/posthog_ai/eval_harness/test/test_warehouse_synthesizer.py`) while installation stays an integration concern.
The reference implementation is `data_warehouse/synthesizer.py`: ~250 realistic noise tables plus seven planted "needles", each targeting one discovery skill, with needle name constants that prompts, `expected` values, and scorers all import verbatim so they can never drift apart.
Follow this split (and the constants-shared-by-all-three pattern) when seeding any new synthetic catalog.
diff --git a/posthog/temporal/AGENTS.md b/posthog/temporal/AGENTS.md
index 401758a8e9d8..7438132a2045 100644
--- a/posthog/temporal/AGENTS.md
+++ b/posthog/temporal/AGENTS.md
@@ -15,7 +15,7 @@ Pointers, not content. Read the linked docs before changing code or tests in thi
- [`data_imports/`](../../products/warehouse_sources/backend/temporal/data_imports/README.md) — data warehouse import pipelines (moved to the warehouse_sources product).
- [`data_modeling/`](./data_modeling/AGENTS.md) — v1 frozen / v2 active split.
- [`signals emission`](../../products/signals/backend/emission/AGENTS.md) — signal emission for data-imports events (moved to the signals product).
-- [`sync_person_distinct_ids/`](./sync_person_distinct_ids/README.md), [`experiments/`](./experiments/README.md), [`weekly_digest/`](./weekly_digest/README.md), [`ingestion_acceptance_test/`](./ingestion_acceptance_test/README.md), [`health_checks/`](./health_checks/README.md), [`llm_analytics/trace_summarization/`](./llm_analytics/trace_summarization/README.md) — each has its own README for context.
+- [`sync_person_distinct_ids/`](./sync_person_distinct_ids/README.md), [`experiments/`](./experiments/README.md), [`weekly_digest/`](./weekly_digest/README.md), [`ingestion_acceptance_test/`](./ingestion_acceptance_test/README.md), [`health_checks/`](./health_checks/README.md), [`ai_observability/trace_summarization/`](./ai_observability/trace_summarization/README.md) — each has its own README for context.
## Local eval scripts
diff --git a/posthog/temporal/data_modeling/AGENTS.md b/posthog/temporal/data_modeling/AGENTS.md
index 3d288cfd5b3e..70e7a8508224 100644
--- a/posthog/temporal/data_modeling/AGENTS.md
+++ b/posthog/temporal/data_modeling/AGENTS.md
@@ -6,7 +6,7 @@ Two implementations live here side by side during the v1 → v2 migration.
## v1 — FROZEN
- `run_workflow.py` (1814-line monolith).
-- Dispatched from `products/data_modeling/backend/api/node.py` when
+- Dispatched from `products/data_modeling/backend/presentation/views/node.py` when
`_is_v2_backend_enabled(...)` is false.
- Almost all US teams are still on v1; almost all EU teams are on v2.
diff --git a/products/customer_analytics/frontend/components/Accounts/AGENTS.md b/products/customer_analytics/frontend/components/Accounts/AGENTS.md
index 3a21c155bd43..ee6bf19ea5a8 100644
--- a/products/customer_analytics/frontend/components/Accounts/AGENTS.md
+++ b/products/customer_analytics/frontend/components/Accounts/AGENTS.md
@@ -166,7 +166,7 @@ The available-columns picker defaults to an "All columns" category that searches
The Accounts list exposes one contextual tool, `open_account`, so Max can show an account on screen.
-1. Backend `OpenAccountTool` (`products/customer_analytics/backend/max_tools/open_account.py`) resolves the account by `external_id` or name and returns `{ account_id, account_name, external_id, tab }`.
+1. Backend `OpenAccountTool` (`products/customer_analytics/backend/max_tools.py`) resolves the account by `external_id` or name and returns `{ account_id, account_name, external_id, tab }`.
2. `AccountsMaxTools.tsx` registers it with `useMaxTool({ identifier: 'open_account', callback })`; the callback calls `accountsLogic.openAccount(accountId, externalId, name, tab)`.
3. `accountsLogic.openAccount`:
- **Reveal** — if the account isn't in the current results (checks the bound data node's rows by name-cell `id`), it clears the excluding filters and searches by `external_id`/name so the row will render. This avoids a silent no-op when Max references an account that's filtered out.
diff --git a/products/signals/backend/emission/AGENTS.md b/products/signals/backend/emission/AGENTS.md
index d96e7ac28fce..514b96966c11 100644
--- a/products/signals/backend/emission/AGENTS.md
+++ b/products/signals/backend/emission/AGENTS.md
@@ -43,7 +43,7 @@ Each source defines how to fetch records via its `record_fetcher` on the config:
Triggered by the data import workflow:
1. **Parent workflow** (`products/warehouse_sources/backend/temporal/data_imports/external_data_job.py`) finishes importing data, then spawns the emit-signals child workflow if emission is enabled for the source.
-2. **Child workflow** (`products/warehouse_sources/backend/temporal/data_imports/workflow_activities/emit_signals.py`) runs the activity that calls `config.record_fetcher` then the shared pipeline.
+2. **Child workflow** (`products/signals/backend/emission/emit_signals.py`) runs the activity that calls `config.record_fetcher` then the shared pipeline.
### Conversations source
diff --git a/proto/AGENTS.md b/proto/AGENTS.md
index fcec30098cbc..711b87ed8fa5 100644
--- a/proto/AGENTS.md
+++ b/proto/AGENTS.md
@@ -24,7 +24,7 @@ cd nodejs && pnpm run generate:personhog-proto
Then update:
-- `nodejs/src/ingestion/personhog/client.test.ts` — add a default stub to the `SERVICE_DEFAULTS` object for any new RPC
+- `nodejs/src/common/personhog/client.test.ts` — add a default stub to the `SERVICE_DEFAULTS` object for any new RPC
### 3. Rust