Skip to content

Feature request(prompt management) reusable prompt partials #100897

Closed

Description

@christiaan-ph

Is your feature request related to a problem?

When using prompt management, there is no way to share common content across multiple prompts. Common content, such as guardrails, currently has to be declared in every single prompt. It would be good to define that content once and reuse it, instead of repeating it in each prompt.

Describe the solution you'd like

A way to define common content once and reuse it across multiple prompts, so it does not have to be repeated in each one. Some prompt tools call this "prompt partials".

Describe alternatives you've considered

Repeating the shared content in each prompt by hand, which is what has to be done today.

Additional context

- [ ] PostHog Cloud, region and project ID: [please provide, you can find both at https://app.posthog.com/settings/project-details#variables]
- [ ] PostHog Hobby self-hosted with `docker compose`, version/commit: [please provide]
- [ ] PostHog self-hosted with Kubernetes (deprecated, see [`Sunsetting Kubernetes support`](https://posthog.com/blog/sunsetting-helm-support-posthog)), version/commit: [please provide]

Activity

  1. changed the title [-]Feature request: prompt management - reusable prompt partials[/-] [+]Feature request(prompt management) reusable prompt partials[/+] on Sep 15, 2026
  2. jurajmajerik commented on Oct 6, 2026

    @jurajmajerik
    Contributor

    Shipped and available to everyone. Any prompt can reference another with @@@prompt:name=X|label=Y@@@ (or |version=N) tags, resolved server-side at fetch time, so SDKs get the assembled prompt without changes.

    Docs: https://posthog.com/docs/prompt-management#prompt-references-partials

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions