Hydration Mismatch Guard
Find and fix the places where the server markup and the first client render disagree.
What it adds
A detection and prevention pass over every value that can differ between the server render and the browser's first render.
What your agent is told to do
5
What your agent is told to do
5-
1
Walk the known sources of divergence and fix them at the source: timestamps formatted in the server's zone, generated identifiers, locale and currency chosen from a header on one side and a browser setting on the other, and a theme read from storage after the markup was already sent.
-
2
Format dates, numbers, and currency from an explicit locale and zone resolved once and passed through the render, rather than letting each side pick up its own environment default.
-
3
Give anything genuinely browser-only — a chart sized to the viewport, a value read from storage, a random promotion slot — a reserved space in the server output that matches the final dimensions, so the swap changes content and not layout.
-
4
Make a mismatch loud in development and reportable in production: capture which component and which value diverged, so the report names a cause rather than saying the markup did not match.
-
5
Do not silence the warning globally or paper over a component by forcing it to render only on the client. A blanket suppression hides the next mismatch, which will be a wrong price or a stale permission rather than a stray timestamp.
Edge cases it handles
7
Edge cases it handles
7- Dates, generated identifiers, locale, and theme are the four that cause most mismatches, and each needs a stable answer decided once per request rather than independently on each side of the boundary.
- Client-only content must occupy the space it will eventually fill. Rendering nothing on the server and something afterwards shifts everything below it, which is both a visible jump and a layout-stability penalty.
- A mismatch report that says only that the markup differed is not actionable. Capture the component, the offending attribute or text, and both values, or nobody will find it in a large page.
- Suppression must stay narrow and deliberate, attached to the specific element whose difference is expected — a relative timestamp, for instance — and never applied at the root.
- Browser extensions inject attributes and elements into the markup and will trigger mismatches nobody wrote, so reporting needs to tolerate them without drowning real findings.
- Content that depends on the signed-in user must not be cached from a render made for someone else; a mismatch here is a data leak, not a cosmetic bug.
- Feature flags and experiment assignments must be resolved once per request and passed to the client, or the two sides will render different variants of the same page.
Definition of done
8
Definition of done
8- Dates, identifiers, locale, currency, and theme resolve identically on both sides of the render boundary.
- Client-only regions reserve their final dimensions in the server output and cause no layout shift.
- A mismatch in development names the component and both differing values.
- Mismatches in production are reported with enough context to locate the source.
- Suppression appears only on specific elements with a documented reason, never at the root.
- The app renders through its main flows with no hydration warnings from its own code.
- The feature matches the existing design system.
- No existing functionality is broken.
Related features
AI Cost Budgets
AI Cost Budgets
Cap what AI features are allowed to spend before the bill arrives.
What it does
Monetary spending limits on AI work, scoped by workspace, feature, and time period, enforced before a run starts.
How it works
- 1 Find every place the app calls a model and route all of them through one accounting point that records estimated and actual spend against a scope. A budget that only covers the chat feature is not a budget.
- 2 Estimate the cost of a run from the size of its input before dispatching it, and refuse anything that would exceed the remaining budget on its own.
- 3 Reserve the estimate against the budget when the run starts, then reconcile to the real usage figures when it finishes, releasing whatever was over-reserved.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/ai-cost-budgets
Prompt Versioning
Prompt Versioning
Tie every AI output to the exact prompt version that produced it.
What it does
Immutable, numbered versions of each prompt, with the run configuration recorded and every output stamped with the version used.
How it works
- 1 Make every publish create a new immutable version rather than overwriting the previous text. Editing history in place destroys the only record of what produced last month's outputs.
- 2 Capture the whole run configuration with each version, not just the wording: which model tier and parameters were used, which tools were available, and the expected output shape. A prompt that behaves differently under different settings is not one prompt.
- 3 Stamp every generated output with the version identifier that produced it, and keep that stamp with the record so an output found later can be traced back to its exact instructions.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/prompt-versioning
Retrieval Debugger
Retrieval Debugger
Show exactly which sources, chunks, and scores produced a given AI answer.
What it does
A per-answer inspector showing the query as issued, the filters applied, the candidate chunks with their scores, and what reached the model.
How it works
- 1 Capture for each answer the query as it was issued, the filters applied, the candidates returned with their scores, and which of those actually made it into the request after the context ceiling was applied.
- 2 Show results after permission filtering, with a count of how many candidates were excluded and why. Displaying the pre-filter set turns the debugger into a way to read content the viewer cannot open.
- 3 Present each scoring stage separately — keyword, semantic, and any reranking — because a chunk that ends up first overall may have been rescued by one stage after being buried by another, and a single blended number hides that.
Copy the prompt
No account needed
Add this feature to my app:
https://addthisfeature.com/x/retrieval-debugger
How it works
-
1
Copy the link
Grab the Markdown instruction URL for this feature.
-
2
Give it to your AI
Paste it into Claude Code, Cursor, v0, Lovable — whatever you build with.
-
3
It inspects, then implements
Your agent reads your existing app first, then adds the feature to fit it.
Works with your stack
These instructions are written to adapt. They tell the agent to detect your framework, match your existing design system, and reuse what you already have — rather than assuming a particular stack.
Need it tighter than that? Customize the feature and tell it exactly what you're running.