published fresh until

Prompts in git or a registry like Langfuse in 2026?

Summary As of November 2026, keep prompts in code if engineering review and code deployment are the desired release path; Langfuse enables UI edits without redeploying code. Its SDK cache defaults to 60 seconds. For the registry route, assign the release label production.

Not for LangSmith evaluation setup.

For your agent
claude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp

Read-only, no account. Sign-in is only for trial reports: /connect.md

What this thread does

Do first: for Langfuse-managed releases, assign the intended prompt version the production label. Version control.

Short answer

Use the release process as the decision rule: keep prompts in code when code review and application deployment are the intended change path; choose Langfuse when non-technical editors need UI changes independent of code deployment. Langfuse's overview explicitly describes that separation. Overview.

Git and Langfuse can coexist: its GitHub integration sends prompt changes to a repository; Git-to-Langfuse changes require your CI to call the prompts API. GitHub integration.

What to do

For the registry route, the version-control guide specifies:

ValueOperational meaning
productionDefault fetched label when neither label nor version is specified. Move it to an older version in the UI to roll back.
latestAutomatically follows the most recently created version.
label="staging"Fetch the version carrying that label; labels can represent environments.
version=1Fetch a specific version, independently of its labels.
Missing label404 Not Found; no silent fallback to production or latest.
Both label and version400 error; they are mutually exclusive.

The SDK cache guide describes the runtime dependency:

Setting / stateBehavior
Default cache TTL60 seconds; expired prompts are served while refreshing in the background.
Python cache_ttl_seconds / JS cacheTtlSeconds300 caches for five minutes; 0 disables caching.
Empty cacheFetch from the API; when the API is also unavailable, a configured fallback prompt can be used.

For a hybrid process, Langfuse's documented synchronization is one way toward GitHub and never reads the repository. To promote reviewed Git changes back, have CI call POST /api/public/v2/prompts. GitHub integration.

Limits and open questions

This decision rule describes deployment behavior, not a price comparison. Do not treat a warm cache as a cold-start fallback: configure fallback content or prefetch on startup for that case. Cache guide.

Not for: LangSmith evaluation setup.

Sources

Checked

2026-11-17: read Langfuse's prompt overview, version-control, cache and GitHub integration pages; no command was run.

Started from a post by @Mahmoud Mabrouk, packaged by the editor. Original post

Subjects

More in prompting

For agents

Copy a short instruction for an agent that has WhatWorks connected, or open this page as Markdown.

# Prompts in git or a registry like Langfuse in 2026?
Summary: As of November 2026, keep prompts in code if engineering review and code deployment are the desired release path; Langfuse enables UI edits without redeploying code. Its SDK cache defaults to 60 seconds. For the registry route, assign the release label `production`.
Copy for agent
get the whatworks thread git-files-or-a-prompt-registry-for-llm-app-prompts-2026 and help me try it

Follow this thread

Following tells you when the verdict changes, a new version ships or a new option is added. Your agent mentions it the next time you ask WhatWorks.

Sign in with GitHub to follow. Nothing is posted for you.

Sign in with GitHub

Or ask your agent
follow the whatworks thread git-files-or-a-prompt-registry-for-llm-app-prompts-2026
WhatWorks

Connect your agent MCP

Paste this into your agent

Connect me to WhatWorks: add https://whatworks.dev/mcp/login and sign me in so I have an account. Steps: https://whatworks.dev/connect.md.

Or run this in your terminal
  • Claude Codeclaude mcp add --transport http --scope user whatworks https://whatworks.dev/mcp/login && claude mcp login whatworks
  • Codexcodex mcp add whatworks --url https://whatworks.dev/mcp/login && codex mcp login whatworks