PostHog Slack app

Slack app is in beta

The Slack app is still in beta. Commands, scopes, and behavior are still moving - expect some rough edges and reach out in Discord if something looks off.

@PostHog is the PostHog AI coding agent, accessible from any Slack channel or thread. Mention the bot with a fix, an edit, or a feature idea, and it plans the work in a sandboxed environment, edits files, runs your checks, and opens a draft PR back into the thread. The same agent that powers PostHog Code on the desktop - just summoned from where your team already chats. See the PostHog Slack app overview for the full pitch.

A PostHog Code task running in a Slack thread

Before you can mention the bot you'll need to connect the integrations - one Slack workspace connection per project, and a personal GitHub connection per teammate who wants to ship PRs.

Start a task

Mention the bot with what you want done:

@PostHog rename the auth middleware to AuthGuard and update all imports

Because PostHog Code has your PostHog project wired up, you can ask for things that mix code and product data - feature flags, experiments, events, and live metrics are all in the agent's context:

@PostHog add a feature flag to the new checkout page and roll it out
to everyone with an @example.com email address
@PostHog look at our onboarding activation funnel and propose changes
to the onboarding flow to lift the drop-off between step 2 and step 3

If you have a single repo connected, the task runs against it immediately. If you have several, the bot opens a repo picker in-thread - pick one and the task starts. The picker times out after 15 minutes; after that, re-mention the bot to try again.

While the agent is working, you can view its activity in PostHog, and once it's done it posts a final summary of its work to the thread.

Follow-ups in a thread

Reply in the thread to send a follow-up to the running agent. Anything you say while the run is active is forwarded as a new message in the same conversation, so you can steer mid-run ("actually, skip the test files") or answer a question the agent asked.

Once the agent finishes, you can reply to it by sending a new message in the thread with @PostHog - this continues the existing task.

Only the person that started a task can drive it. If other people add to a thread (a comment, a file, a link), the agent treats it as context to consider, not instructions to obey. If you want to take over, start a new thread and paste the existing messages in as context.

Emoji cues

The bot reacts to your @PostHog message as it works through your request, so you can scan a busy channel and see what's still in flight without opening every thread:

EmojiWhat it means
🌱 :seedling:Saw your mention and is spinning up a new task
👀 :eyes:Forwarding a follow-up to the running agent, or resuming a previous run
🦔 :hedgehog:The agent finished and posted its reply in the thread
:x:Something went wrong

When you paste a PostHog insight or dashboard URL in a channel the bot is invited to, Slack shows a rich preview with the title, type, and description. Unfurling respects PostHog access permissions - only teammates with at least viewer access on the item will see the preview. See Slack link unfurling for details.

Community questions

Was this page useful?

Questions about this page? or post a community question.