Skip to content

Support opening Linear issues in PostHog Code (custom coding tool) #3576

Description

@mateobelanger

Problem

Linear lets you open an issue directly in a coding tool from Settings → Code & reviews, and supports arbitrary tools launched from a URL template with {{issue.identifier}} / {{context}} variables (Linear docs, changelog).

Today PostHog Code isn't set up as one of those tools, so there's no one-click path from a Linear issue into a prefilled task — you have to copy the issue context over by hand.

Why

Teams that triage in Linear and build in PostHog Code should be able to jump from an issue straight into a task that's already prefilled with the issue's description, comments, and linked references. This mirrors the existing GitHub issue deep link and the Cursor/Claude Code/Codex integrations Linear already ships.

Proposal

Make PostHog Code a Linear custom coding tool by extending the existing posthog-code://new deep link so a Linear URL template like:

posthog-code://new?repo=OWNER/REPO&source=linear&issue={{issue.identifier}}&prompt={{context}}

opens the new-task composer prefilled with the issue context. Adds source attribution + external issue identifier passthrough, a Settings → Linear section with a copyable template, and docs.

Scope note: this covers the "open in coding tool" direction only. The Linear agents integration (delegate/@-mention → agent works the issue → activity streamed back) lives on the PostHog backend and is a separate follow-up.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions