PostHog / PostHog/posthog

Feature request: Prompt management - Prevent agent from mentioning unreleased features

Open
#54,352 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

enhancement feature/prompt-management team/llm-analytics
Dominant language
Python
Stars
39.9k
Forks
3.4k
Avg merge
6h 51m
Merged PRs (30d)
232

Description

Feature request

Is your feature request related to a problem?

"I would love to be able to build dynamic prompts based on feature flags. We have some features behind flags that I don't want my agent to know about. It would be cool if I could build a dynamic prompt with those."

Describe the solution you'd like

Dynamically 'hide' sections of a prompt from the agent when related feature flags are off / not serving the feature to end-users, so the agent doesn't talk about unreleased features.

Alternatively, serve different prompt content to different users based on their flag matches/variant assignments.

Describe alternatives you've considered

Additional context

From: https://posthoghelp.zendesk.com/agent/tickets/55072 (moved to PostHog: https://us.posthog.com/project/2/support/tickets/56390)

Debug info

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

No files, tests, or entry points are named. Start by locating the prompt-management flow and feature-flag evaluation used by agents; done means prompt content can vary by flag state or user assignment so unreleased features are not exposed.

Written by the indexing model from the issue text.

Assessment

Domain
ai
Issue type
Feature
Difficulty
5/5
Estimated time
Over a week
Activity status
Quiet
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.