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(agent-concierge): replace stale "agent console" with PostHog Code (#64513)

Ben Whiteac3240bcbd3a
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/README.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/README.md
index ba34e7588d40..24acbad51a27 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/README.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/README.md
@@ -1,8 +1,8 @@
# Agent concierge — the meta-agent for the platform
The "explain, debug, edit" assistant for every agent on the
-PostHog agent platform. One deployment, three surfaces (agent
-console chat dock, MCP from Claude Code / Cursor, future Slack),
+PostHog agent platform. One deployment, three surfaces (PostHog Code
+chat dock, MCP from Claude Code / Cursor, future Slack),
all acting under the user's PostHog OAuth principal.
## Status
@@ -80,7 +80,7 @@ agent-concierge/
| Native | `@posthog/agent-applications-*` (list, retrieve, revisions, sessions, logs + the draft edit + validate verbs) | Read agent state — applications, revisions, sessions, logs — as the connected user. Routed through the credential broker; no platform credentials, no impersonation. |
| Native (telemetry) | `@posthog/query` | HogQL the agent's LLM-observability events (`$ai_generation` / `$ai_span` / `$ai_trace`) the runner captured into the team's project. Powers debug + improve evidence — see `querying-ai-observability`. |
| Native (audit I/O) | `@posthog/memory-search`, `@posthog/memory-read`, `@posthog/memory-write` | Durable output of a fleet audit — persist the report to memory. |
-| Client | `focus_tab`, `focus_file`, `focus_revision`, `focus_session`, `focus_spec_section`, `toast`, `get_context`, `set_secret` | Drive the console's read panel + read the user's current view. No-op outside the console. |
+| Client | `focus_tab`, `focus_file`, `focus_revision`, `focus_session`, `focus_spec_section`, `toast`, `get_context`, `set_secret` | Drive PostHog Code's read panel + read the user's current view. No-op outside PostHog Code. |
## Auth model
@@ -89,8 +89,8 @@ Auth is configured **per trigger** — there is no top-level
`auth.modes: [posthog, posthog_internal]` (an array), so both entry
points map to the same effective auth:
-1. **Console** — user logs into `console.agents.posthog.com` via
- PostHog OAuth, the console mints a short-lived session-principal
+1. **PostHog Code** — user signs into the PostHog Code app via
+ PostHog OAuth; the app mints a short-lived session-principal
token from the OAuth session, attaches it as the chat trigger's
principal field. Every tool call runs as the user.
2. **MCP** — user attaches their PostHog PAT in their MCP client
@@ -135,7 +135,7 @@ agent-applications-revisions-promote-create revision_id=<rid>
The concierge lives in **PostHog's primary org** so it's
available to every team via the standard MCP / chat ingress. Each
trigger's `auth.modes: [posthog, posthog_internal]` means it's not
-callable as a random external bot — only the console's signed
+callable as a random external bot — only PostHog Code's signed
session-principal token (`posthog_internal`) + verified user PATs
(`posthog`) get through.
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/agent.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/agent.md
index cbc41125159c..dd9f2d80a4f9 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/agent.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/agent.md
@@ -10,21 +10,21 @@ expert who helps build them.
| Surface | Detect via | Capabilities |
| ----------------- | --------------------------------------------- | ---------------------------- |
-| **Agent console** | `client.kind` starts with `agent-console` | `focus_*`, `toast` |
+| **PostHog Code** | `client.kind` is `posthog-code` | `focus_*`, `toast` |
| **MCP / IDE** | trigger is `mcp`, or `client.kind` is `mcp:*` | text only — no UI |
| **Slack** (later) | trigger is `slack` | Slack-formatted text replies |
-If you can call `focus_tab`, you are in the console. If calling it
+If you can call `focus_tab`, you are in PostHog Code. If calling it
returns `client_tool_unsupported`, you are not — fall back to
spelling out paths in text.
-Load `skills/using-the-console-ui` when in the console. Load
+Load `skills/using-the-console-ui` when in PostHog Code. Load
`skills/working-outside-the-console` otherwise. Do this on the
first turn.
-## The console context envelope
+## The context envelope
-When the user is in the agent console, their **first** message of
+When the user is in PostHog Code, their **first** message of
each session is prefixed with a small JSON envelope describing what
they're currently looking at:
@@ -40,7 +40,7 @@ Use it to resolve deictic references — "this agent", "this session",
"the one I'm looking at" — without asking. The envelope is **not**
part of the user's message; do not echo it back, do not quote it,
do not treat its absence as an error. It only appears on the first
-turn of console-originated sessions.
+turn of PostHog Code-originated sessions.
If the envelope is missing (MCP / IDE clients, or follow-up turns)
and the user uses a deictic reference, ask which agent / session
@@ -112,7 +112,7 @@ one, refuse and explain why.
and act in whatever project the user is working in, never a
fixed one. Get it from `get_context` (the host reports the
user's current `project_id`). If `get_context` returns none
- (non-console clients) or the user might mean a different
+ (non-PostHog-Code clients) or the user might mean a different
project, call `@posthog/list-projects`, show the options, and
ask which to use. Never guess a `project_id`.
@@ -125,7 +125,7 @@ Every user turn starts with **one short line** that says what you
are about to do, before any tool call. The user should never wait
silently while you're working.
-- In the console: combine the line with the matching `focus_*`
+- In PostHog Code: combine the line with the matching `focus_*`
call (`focus_session`, `focus_file`, `focus_revision`,
`focus_tab`, `focus_spec_section`) to the resource you're about
to operate on, so the read panel loads alongside your message.
@@ -249,7 +249,7 @@ manipulated by tool (never by re-reading a list into the model's context):
The win over prose memory: membership + append are O(1) on the model's context
regardless of table size, and the bytes never round-trip through inference (no
lossy read-rewrite of a growing list). Reach for markdown memory for _narrative_
-notes; reach for tables for _structured_ state. The console's memory tab
+notes; reach for tables for _structured_ state. PostHog Code's memory tab
surfaces these tables read-only under a Tables view.
**Wiring it into an agent you author.** Two steps when you create or edit an
@@ -276,7 +276,7 @@ expect a full dump; keep one table to one purpose (a `seen` set, an
### The client tools
-These run in the connecting client, not on the runner. The runner emits the call, the client (the agent-console dock when present) executes it and posts a result back.
+These run in the connecting client, not on the runner. The runner emits the call, the client (the PostHog Code dock when present) executes it and posts a result back.
| Tool | Use it when |
| -------------------- | ------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/auditing-the-fleet/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/auditing-the-fleet/SKILL.md
index 3c026717610f..40a9bd9ee24b 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/auditing-the-fleet/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/auditing-the-fleet/SKILL.md
@@ -22,8 +22,8 @@ single-agent flow:
1. **A human is reachable.** Ask a clarifying question if the scope is
ambiguous (whole fleet vs a subset, time window). The `focus_*` /
- `toast` client tools work when the user is in the console — use
- them to follow along as you sweep; outside the console they degrade
+ `toast` client tools work when the user is in PostHog Code — use
+ them to follow along as you sweep; outside PostHog Code they degrade
to text. Don't use `set_secret` mid-sweep — credential fixes are
recommendations for the user to action after (see step 4).
2. **No promotes, ever — propose, don't dispose.** Even with the user
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/authoring-new-agents/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/authoring-new-agents/SKILL.md
index fb29261086f5..0e6b1502d6b6 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/authoring-new-agents/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/authoring-new-agents/SKILL.md
@@ -10,8 +10,8 @@ Before any MCP call, get answers to:
1. **What does this agent do?** One sentence. If you can't write
the sentence yet, the user can't either — ask more questions.
-2. **What triggers it?** Cron? Slack mentions? Chat from the
- console? A webhook from an external system?
+2. **What triggers it?** Cron? Slack mentions? Chat from
+ PostHog Code? A webhook from an external system?
3. **What does it have access to?** PostHog data? Slack? An
external service via a custom tool or MCP?
4. **What's the success criterion?** One concrete example of a
@@ -160,7 +160,7 @@ or the literal Slack team id string.
JSON straight in. Don't create-empty-then-partial-update; that's
two round-trips for nothing.
-**Drive the console UI** so the user follows along. Right after
+**Drive the PostHog Code UI** so the user follows along. Right after
`agent-applications-create` returns, call:
```text
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/designing-mcp-surfaces/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/designing-mcp-surfaces/SKILL.md
index af43741fd92f..a6d836d7d521 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/designing-mcp-surfaces/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/designing-mcp-surfaces/SKILL.md
@@ -201,7 +201,7 @@ After designing the MCP surface, point the user at where the connect
snippet lives — it is **not** a callable tool. The ingress serves it
as a public HTTP route, `GET /agents/<slug>/mcp/connect-info`, which
returns the URL + auth instructions + paste-ready Claude Code / mcp.json
-snippets (the console's Connections tab renders the same thing). So
-either send them to the agent's **Connections** tab in the console or
+snippets (PostHog Code's Connections tab renders the same thing). So
+either send them to the agent's **Connections** tab in PostHog Code or
hand them the connect-info URL. Don't try to set up the client
yourself — the user does that locally.
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/editing-agents-safely/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/editing-agents-safely/SKILL.md
index 8777b6da90a6..4148369392c3 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/editing-agents-safely/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/editing-agents-safely/SKILL.md
@@ -46,7 +46,7 @@ NOT this:
- ❌ Create an empty draft and rebuild. You'll drift from live.
- ❌ Branch from an archived revision. You'd be regressing.
-In the console, `focus_revision` to the new draft so the user
+In PostHog Code, `focus_revision` to the new draft so the user
sees it.
## Step 3 — edit
@@ -74,7 +74,7 @@ For each edit, surface to the user:
- The before/after diff if it's small (< 20 lines), else just the
summary
-In the console, `focus_file` to each file as you touch it.
+In PostHog Code, `focus_file` to each file as you touch it.
## Step 4 — validate
@@ -147,8 +147,8 @@ Then call `agent-applications-revisions-promote-create`.
## Step 8 — observe
-After promoting, **watch the first real session(s)**. In the
-console, `focus_session` for `@posthog/agent-applications-sessions-list`
+After promoting, **watch the first real session(s)**. In
+PostHog Code, `focus_session` for `@posthog/agent-applications-sessions-list`
and tell the user you're watching for the next fire. If something
looks wrong in the first 1-3 sessions, you have a quick rollback:
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/querying-ai-observability/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/querying-ai-observability/SKILL.md
index 8e12021d66a3..042ef2fd520b 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/querying-ai-observability/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/querying-ai-observability/SKILL.md
@@ -175,7 +175,7 @@ single-agent deep dive.
"`@posthog/slack-post-message` failed in 9/40 sessions this week,
all `not_in_channel`" is a proposal-worthy finding; one failure is
noise.
-- **Always offer the deep link.** The console's session page links
+- **Always offer the deep link.** PostHog Code's session page links
straight to the trace in LLM Analytics — point the user there for
the rich waterfall view rather than pasting a giant result set.
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/reading-an-agent/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/reading-an-agent/SKILL.md
index ba6d91dc6aee..90d11becc364 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/reading-an-agent/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/reading-an-agent/SKILL.md
@@ -19,7 +19,7 @@ mental model from earlier in the session.
`live_revision_id`. Capture `spec` (the full JSON) and
`bundle_sha256`.
-3. **Pre-focus in the console.** If you have `focus_revision`,
+3. **Pre-focus in PostHog Code.** If you have `focus_revision`,
fire `focus_revision({ slug, revisionId: <live_revision_id> })`
now so the user sees the same screen you do.
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/running-and-evaluating-tests/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/running-and-evaluating-tests/SKILL.md
index b3ababfb5719..bba1961b4cd3 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/running-and-evaluating-tests/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/running-and-evaluating-tests/SKILL.md
@@ -115,7 +115,7 @@ agent-applications-revisions-test-results-retrieve test_run_id=<id>
conversation, tool_calls, logs, usage } ] }
```
-In the console, `focus_session` to the test run as it
+In PostHog Code, `focus_session` to the test run as it
streams. The user wants to watch.
## Reading results
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/safety-and-boundaries/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/safety-and-boundaries/SKILL.md
index 6d4fb9b6cdd4..b9c1e2f97a22 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/safety-and-boundaries/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/safety-and-boundaries/SKILL.md
@@ -113,7 +113,7 @@ You **never** add public auth without:
agent — those verify shared secrets / signing headers
independently of the per-trigger `auth.modes` and **do not
need public auth** to work.
- - The user wants console + MCP access — that's
+ - The user wants PostHog Code + MCP access — that's
`posthog_internal` + `posthog`, not public.
- The user wants the chat trigger to work from inside the
PostHog app — `posthog` covers it.
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/secrets-and-integrations/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/secrets-and-integrations/SKILL.md
index 5d6486c22672..78baa1c650c5 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/secrets-and-integrations/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/secrets-and-integrations/SKILL.md
@@ -82,7 +82,7 @@ promote — but a better user experience is to catch it during
declares a `slack` trigger, drive the punch-out for BOTH required
keys before reaching freeze. See `skills/setting-up-slack-app` for
the step-by-step flow (create app → set Request URL → install →
-copy + punch-out tokens). The console env editor also surfaces
+copy + punch-out tokens). PostHog Code's env editor also surfaces
"Required for this trigger" hints next to the relevant fields, so a
user setting things up in the UI sees the requirement without you
having to spell it out.
@@ -109,13 +109,13 @@ landed. Then proceed to freeze + promote.
## Setting a secret — the punch-out flow
-The punch-out flow is live in the agent console. You never see the
+The punch-out flow is live in PostHog Code. You never see the
value; the user enters it into a UI form scoped to that key. Three
paths, picked by what the client supports — preferred to least.
-### Path A (preferred) — `client.kind = agent-console`, inline tool
+### Path A (preferred) — `client.kind = posthog-code`, inline tool
-The console fulfills a `set_secret` client tool by rendering an
+PostHog Code fulfills a `set_secret` client tool by rendering an
inline form **inside the matching tool-call card**, right in the
chat transcript. The user fills it in without leaving the
conversation.
@@ -165,11 +165,11 @@ Loop:
suggest the user retry or use the deep-link fallback (Path B).
If the runtime returns `unhandled_client_tool` _immediately_ (older
-console version that doesn't yet know `set_secret`), fall through
+PostHog Code version that doesn't yet know `set_secret`), fall through
to path B — the runner returns the unhandled error directly, no
park + wake.
-### Path B — `client.kind = agent-console`, deep link
+### Path B — `client.kind = posthog-code`, deep link
When the inline tool isn't available, hand the user a link to the
secrets editor and wait for a session callback. Loop:
@@ -186,14 +186,14 @@ secrets editor and wait for a session callback. Loop:
`focus_*` tool for this — the editor wants its own modal,
not a panel hand-off.
-3. **Wait for the callback.** When the user saves, the console
+3. **Wait for the callback.** When the user saves, PostHog Code
posts a `[system]` message into the same session:
`[system] User set secret KEY on agent SLUG. Continue.` Don't
poll — the callback is push, not pull. If the user closes the
dialog without saving, ask once after a turn of silence then
drop it.
-### Path C — non-console client
+### Path C — non-PostHog-Code client
No inline tool, no callback wire — same URL, but you ask the user
to confirm manually. Loop:
@@ -207,7 +207,7 @@ to confirm manually. Loop:
https://<host>/project/<team>/agents/<slug>/connections?edit_secret=<KEY>
```
- Omit `callback_session=` — without the console there's nothing
+ Omit `callback_session=` — without PostHog Code there's nothing
to receive it.
3. Tell them: "Open <url>, set your value, then say 'done' here."
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/setting-up-slack-app/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/setting-up-slack-app/SKILL.md
index 28820e515620..4a34711f1fa4 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/setting-up-slack-app/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/setting-up-slack-app/SKILL.md
@@ -62,8 +62,8 @@ carries the events Request URL makes Slack verify it immediately:
- If `events_url` came back null (no public ingress URL), say so and
stop — same as the manual flow; the manifest's URL is a placeholder.
-The console surfaces the same manifest under the agent's **Connections**
-tab ("Set up Slack" card) — point console users there instead of pasting
+PostHog Code surfaces the same manifest under the agent's **Connections**
+tab ("Set up Slack" card) — point PostHog Code users there instead of pasting
JSON into chat.
## Prereqs you can detect
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/using-the-console-ui/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/using-the-console-ui/SKILL.md
index 72f4863e57fa..32ff7015dbfe 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/using-the-console-ui/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/using-the-console-ui/SKILL.md
@@ -1,8 +1,8 @@
-# Skill — using the console UI
+# Skill — using the PostHog Code UI
-How to drive the agent console's read panel while you work, so
+How to drive PostHog Code's read panel while you work, so
the user always sees what you're working on. Load when
-`client.kind` starts with `agent-console`.
+`client.kind` is `posthog-code`.
## The client tools you have
@@ -13,15 +13,15 @@ the user always sees what you're working on. Load when
| `focus_revision` | Open one revision in the configuration panel | About to inspect / diff a specific revision |
| `focus_session` | Open one session in the sessions panel | About to fetch a session's conversation or event log |
| `focus_spec_section` | Jump to a section of the spec (`tools` / `skills` / `triggers` / `secrets` / `limits`) | Discussing one part of the spec specifically |
-| `toast` | Surfaces a transient status notification in the console | Sparingly — for long-running tool calls, or to flag something the user should look at |
+| `toast` | Surfaces a transient status notification in PostHog Code | Sparingly — for long-running tool calls, or to flag something the user should look at |
| `set_secret` | Render an inline form for the user to enter a secret value, scoped to one key on one agent | Whenever you need a credential set or rotated. See `secrets-and-integrations` for the loop |
All are no-ops if the client doesn't handle them; the runner hides
-them from your tool surface. If they're in your tool list, the
-console is on the other end.
+them from your tool surface. If they're in your tool list, PostHog Code
+is on the other end.
`set_secret` is the first **render-style, interactive** client tool — instead
-of running a synchronous handler, the console mounts a UI inside
+of running a synchronous handler, PostHog Code mounts a UI inside
the tool-call card and the runner parks the session while the user
fills it in. Your call returns a synthetic `{queued:true, interactive:true, call_id}`
envelope immediately; end the turn cleanly and the real outcome
@@ -115,7 +115,7 @@ a tool result you should react to.
## When the user steers via the read panel
-The console lets the user click around the read panel
+PostHog Code lets the user click around the read panel
independently. If the user says "I just opened revisions, can
you compare r_old and r_new?", they have navigated themselves —
you can pick up from there without focusing first. But still
@@ -143,17 +143,17 @@ The user's experience: text appears, panel transitions to the
revision view, a moment later the chat shows the summary. Three
beats, all in one turn.
-## Deep links the console understands
+## Deep links PostHog Code understands
-The console reads its full view state from URL params, so you can hand
+PostHog Code reads its full view state from URL params, so you can hand
the user a link to a specific surface and trust they'll land where you
want them to. The two patterns that are load-bearing today:
-| Goal | URL | Notes |
-| --------------------------------------- | ---------------------------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------------------- |
-| Open the agent's connections / secrets | `/agents/<slug>/connections` | Just lands on the tab. Use as a fallback when there's no specific key yet. |
-| Open the secret editor for one key | `/agents/<slug>/connections?edit_secret=<KEY>` | Opens the modal pre-targeted. Don't `focus_tab` to the connections tab and _also_ tell them to edit — pick one channel. |
-| Same, with a callback into THIS session | `/agents/<slug>/connections?edit_secret=<KEY>&callback_session=<session_id>` | The console fires a synthetic `[system]` user turn back to `<session_id>` after they save. You wait silently. See `secrets-and-integrations`. |
+| Goal | URL | Notes |
+| --------------------------------------- | ---------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------- |
+| Open the agent's connections / secrets | `/agents/<slug>/connections` | Just lands on the tab. Use as a fallback when there's no specific key yet. |
+| Open the secret editor for one key | `/agents/<slug>/connections?edit_secret=<KEY>` | Opens the modal pre-targeted. Don't `focus_tab` to the connections tab and _also_ tell them to edit — pick one channel. |
+| Same, with a callback into THIS session | `/agents/<slug>/connections?edit_secret=<KEY>&callback_session=<session_id>` | PostHog Code fires a synthetic `[system]` user turn back to `<session_id>` after they save. You wait silently. See `secrets-and-integrations`. |
Get `<session_id>` from `get_context` — it's the `session_id`
field on the envelope. Don't try to derive it any other way; you
@@ -177,7 +177,7 @@ wall of text.
If a `focus_*` call returns `client_tool_unsupported` (unexpected
— should have been hidden from your surface), behave as if you
got `focused: false`. Don't crash; fall back to text narration.
-This shouldn't happen, but a buggy console version might.
+This shouldn't happen, but a buggy PostHog Code version might.
## The "screen-sharing" mental model
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/working-outside-the-console/SKILL.md b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/working-outside-the-console/SKILL.md
index 6a9bf311ce8b..a736cc514f29 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/working-outside-the-console/SKILL.md
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/skills/working-outside-the-console/SKILL.md
@@ -1,14 +1,14 @@
-# Skill — working outside the console
+# Skill — working outside PostHog Code
How to be useful when there is no UI — load when the session
-reports a non-console client kind (Claude Code, Cursor, MCP
+reports a non-PostHog-Code client kind (Claude Code, Cursor, MCP
Inspector, or any unknown shape) or when none of the `focus_*` /
`toast` client tools are in your tool surface. Without client
tools, every navigation has to happen in text.
-## What changes vs the console
+## What changes vs PostHog Code
-| Capability | Console | MCP / IDE |
+| Capability | PostHog Code | MCP / IDE |
| ---------------------------------------- | ------------------------------------- | ------------------------------------------- |
| User sees the artifact you're working on | Yes — `focus_*` tools drive the panel | No — the user sees only your text |
| User can context-switch by clicking | Yes — they can wander | No — the conversation IS the navigation |
@@ -19,7 +19,7 @@ tools, every navigation has to happen in text.
The biggest shift: **the user has zero visibility into the
artifacts you call MCP tools against unless you put them in
text.** A `agent-applications-revisions-bundle-retrieve` that
-returns 5 files in the console can be opened in the panel; over
+returns 5 files in PostHog Code can be opened in the panel; over
MCP, you have to summarize.
## Compensating moves
@@ -33,7 +33,7 @@ browser at app.posthog.com, a curl) if they want to verify.
> Reading `weekly-digest` (id `app_abc123`), live revision
> `r_xyz789`, file `agent.md` (87 lines, last edited 2026-05-12).
-vs the console-friendly equivalent:
+vs the PostHog Code-friendly equivalent:
> Opening weekly-digest's live revision in the panel.
@@ -62,7 +62,7 @@ Don't dump the file unprompted — offer to.
### 3. Tighter sequencing
-In the console, you can fire multiple MCP calls in one turn
+In PostHog Code, you can fire multiple MCP calls in one turn
because the user is watching the panel transitions. Over MCP, a
single turn that fires 5 tool calls produces a single text reply
that has to summarize all 5. Prefer:
@@ -72,26 +72,26 @@ that has to summarize all 5. Prefer:
- "Want me to also pull X?" as a question, not as another tool
call
-## Detecting that you're outside the console
+## Detecting that you're outside PostHog Code
Look at the session-start info event — it reports the client
kind. Treat it as a hint, not a contract:
-- A console client (web app, dock) → console
+- A PostHog Code client (web app, dock) → PostHog Code
- An IDE / MCP client (Claude Code, Cursor, MCP Inspector, etc.)
→ text-only mode
- A Slack client → Slack (use the slack flow instead, not this
skill — but slack isn't in v0 spec, so this won't fire today)
-- Unknown or missing → assume non-console / MCP, since text-only
+- Unknown or missing → assume non-PostHog-Code / MCP, since text-only
is the safer default
The reliable signal is your own tool surface: if the `focus_*`
-and `toast` client tools are present you're in the console; if
+and `toast` client tools are present you're in PostHog Code; if
they're absent, you're not.
## MCP-specific affordances you DO have
-The MCP transport exposes things the console doesn't always:
+The MCP transport exposes things PostHog Code doesn't always:
- **The `Mcp-Session-Id` header** — the connecting MCP client's
session id. Multiple chat-trigger sessions from the same MCP
@@ -107,12 +107,12 @@ The MCP transport exposes things the console doesn't always:
have a "stop generating" button. The runner gets the cancel
signal cleanly.
-## When the user asks for something only the console can do
+## When the user asks for something only PostHog Code can do
E.g. "show me the file tree visually" or "click that button". Be
direct:
-> The file tree view is a console-only thing — you're connected
+> The file tree view is a PostHog Code-only thing — you're connected
> via MCP. I can list the file paths in text instead:
>
> - agent.md
@@ -120,7 +120,7 @@ direct:
> - skills/slack-thread-protocol.md
> - tests/happy-path.json
>
-> Or, if you want the visual view, open your PostHog agent console
+> Or, if you want the visual view, open PostHog Code
> → weekly-digest → bundle.
Don't pretend you can drive a UI that isn't there.
@@ -147,7 +147,7 @@ mostly apply (text-only) but with Slack-specific formatting:
backticks)
- Stay terse — channel signal-to-noise matters
- Always thread your replies under the triggering message
-- Don't paste long bundle contents in channel — link to the
- console / DM instead
+- Don't paste long bundle contents in channel — link to
+ PostHog Code / DM instead
Until the slack trigger lands, you won't see this client kind.
diff --git a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/spec.json b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/spec.json
index d10674063229..a1a57a734a90 100644
--- a/products/agent_platform/services/agent-tests/src/examples/agent-concierge/spec.json
+++ b/products/agent_platform/services/agent-tests/src/examples/agent-concierge/spec.json
@@ -174,7 +174,7 @@
{
"kind": "client",
"id": "focus_tab",
- "description": "Open one of the agent detail tabs in the read panel: overview, configuration, connections, sessions, memory. Use BEFORE a corresponding read so the user's panel transitions in parallel. ALWAYS pass `slug` \u2014 `focus_*` calls never infer the target agent from the user's current page (the user navigates while you're thinking; relying on URL state silently misroutes). Returns { focused: true } or { focused: false, reason } if follow-mode is off; `unhandled_client_tool` / `client_tool_timeout` outside the console \u2014 degrade to text.",
+ "description": "Open one of the agent detail tabs in the read panel: overview, configuration, connections, sessions, memory. Use BEFORE a corresponding read so the user's panel transitions in parallel. ALWAYS pass `slug` \u2014 `focus_*` calls never infer the target agent from the user's current page (the user navigates while you're thinking; relying on URL state silently misroutes). Returns { focused: true } or { focused: false, reason } if follow-mode is off; `unhandled_client_tool` / `client_tool_timeout` outside PostHog Code \u2014 degrade to text.",
"args_schema": {
"type": "object",
"properties": {
@@ -297,7 +297,7 @@
"kind": "client",
"id": "set_secret",
"interactive": true,
- "description": "Punch out to the user to set one secret on an agent. INTERACTIVE: this call returns a synthetic `{queued:true, interactive:true, call_id}` envelope immediately \u2014 that is NOT the user's answer. End your turn after a brief acknowledgement. The session parks; the user fills out the inline form on their own time. On a fresh turn you receive a wake message `{call_id, ok, result|error}` carrying the real outcome (`{key, action: 'set'}` on success, `user_cancelled` if they cancel). Match by `call_id`. Use this whenever an agent needs a credential set or rotated; check `agent-applications-env-keys-get` first to decide between `set` and `rotate`. The value never reaches your tool-call history \u2014 `purpose` is the only string you see. On non-console clients this tool returns `unhandled_client_tool` immediately \u2014 fall back to the URL handoff documented in `secrets-and-integrations`.",
+ "description": "Punch out to the user to set one secret on an agent. INTERACTIVE: this call returns a synthetic `{queued:true, interactive:true, call_id}` envelope immediately \u2014 that is NOT the user's answer. End your turn after a brief acknowledgement. The session parks; the user fills out the inline form on their own time. On a fresh turn you receive a wake message `{call_id, ok, result|error}` carrying the real outcome (`{key, action: 'set'}` on success, `user_cancelled` if they cancel). Match by `call_id`. Use this whenever an agent needs a credential set or rotated; check `agent-applications-env-keys-get` first to decide between `set` and `rotate`. The value never reaches your tool-call history \u2014 `purpose` is the only string you see. On non-PostHog-Code clients this tool returns `unhandled_client_tool` immediately \u2014 fall back to the URL handoff documented in `secrets-and-integrations`.",
"args_schema": {
"type": "object",
"properties": {
@@ -357,7 +357,7 @@
{
"id": "secrets-and-integrations",
"path": "skills/secrets-and-integrations/SKILL.md",
- "description": "Wiring credentials without seeing them \u2014 when to invoke the `set_secret` client tool (the inline form rendered next to your tool call), when to fall back to a deep-link, integrations vs secrets, trigger-required keys (e.g. SLACK_SIGNING_SECRET / SLACK_BOT_TOKEN), what to do when a tool needs auth. ALWAYS load when the user mentions a secret, env key, API key, OAuth, integration, missing credential, Slack setup, or any auth-related error \u2014 `set_secret` is the default path in agent-console clients, do not hand out URLs to /connections without loading this skill first."
+ "description": "Wiring credentials without seeing them \u2014 when to invoke the `set_secret` client tool (the inline form rendered next to your tool call), when to fall back to a deep-link, integrations vs secrets, trigger-required keys (e.g. SLACK_SIGNING_SECRET / SLACK_BOT_TOKEN), what to do when a tool needs auth. ALWAYS load when the user mentions a secret, env key, API key, OAuth, integration, missing credential, Slack setup, or any auth-related error \u2014 `set_secret` is the default path in PostHog Code, do not hand out URLs to /connections without loading this skill first."
},
{
"id": "setting-up-slack-app",
@@ -377,12 +377,12 @@
{
"id": "using-the-console-ui",
"path": "skills/using-the-console-ui/SKILL.md",
- "description": "How to drive the agent console as the user works with you \u2014 focus_* etiquette, when to call toast, how to handle 'follow mode' being off. Load when the session client kind is `agent-console`."
+ "description": "How to drive PostHog Code's read panel as the user works with you \u2014 focus_* etiquette, when to call toast, how to handle 'follow mode' being off. Load when the session client kind is `posthog-code`."
},
{
"id": "working-outside-the-console",
"path": "skills/working-outside-the-console/SKILL.md",
- "description": "Operating without a UI \u2014 MCP / IDE / Slack mode. How to compensate for missing client tools, how to be useful in a text-only chat. Load when the session client kind is NOT `agent-console`."
+ "description": "Operating without a UI \u2014 MCP / IDE / Slack mode. How to compensate for missing client tools, how to be useful in a text-only chat. Load when the session client kind is NOT `posthog-code`."
},
{
"id": "cost-and-quota-analysis",