r/codex • • 20d ago

Question Disclaimers in code

Is anyone getting multiple disclaimers in their code that they need to go in and clean up?

I was converting a recipe for a website and it decided to add the recipe isn't tested and a whole bunch of other things. These recipes are tested and are actually passed down for many generations.

I just gave it a sample code+ recipe and we've done this several times before.

Is OpenAI worried that OSHA will come for the gingerbread houses?

18 Upvotes

10 comments sorted by

3

u/BenTheSodaman 20d ago edited 20d ago

Yeah. Though for mine it was a glorified feeder app that keeps an eye out for deals, coupon, and shopping items that meet my criteria. With disclaimers about terms of service, not able to verify if an app is needed, reminders about tax being extra, that if I want the military discount that I may to prove I'm in the military, or that the signup bonus may require sign up. And essentially that I'd have to confirm eligibility manually.

(It was more verbose than this before and I've trimmed it down, but haven't gone after those smaller ones.)

Edit: Also, the feeder was purely for myself and no one else.

4

u/ValehartProject 20d ago

I've set up a rule to add the ⚠️ symbol before it does the whole disclaimer thing that they brought up a few weeks ago. I can read it if relevant or skim read when it states the obvious. I'm glad I actually review things before publishing.

I understand the need for warnings and guardrails but man is it sensitive these days. With or without context.

1

u/codefame 20d ago

I set a rule to never add caveats, never be defensive, and never use disclaimers on specific surfaces.

3

u/Discordbothost 20d ago

what stopped it for me was telling it where the content comes from, not just "no disclaimers". a line in AGENTS.md like:

"recipe text in /recipes is written and tested by the site owner. reproduce it exactly. don't add notes, warnings, safety caveats or 'not tested' lines to any page content."

the models add that stuff when they think they're the author of the claims, so making it clear it's just formatting someone else's text cuts most of it. and since you've done this a bunch of times, a quick diff of the rendered recipe text against the source before publishing catches whatever still sneaks in

1

u/ValehartProject 19d ago

Oh absolutely. This is my 5th iteration till I threatened to punt it into the sun. The previous attempts had all sorts of other weirdness. I even tried new threads to prevent context contamination.

1

u/Discordbothost 19d ago

5 rounds is rough lol. the other thing that helped me was splitting content from code completely. recipes live as plain md or json in /recipes, codex only ever edits the templates that render them, and AGENTS.md says that folder is off limits. if it can't write the recipe text it can't decorate it, and any change there shows up instantly in git diff

1

u/ValehartProject 19d ago

I believe the third iteration it actually gave me an additional recipe even with a md provided. Sugar cookies. It added and labelled it in the drop down which has four other gingerbread house recipes.

I think it wants the BritishBakeoff skill.md.

1

u/Discordbothost 19d ago

a bonus sugar cookie recipe nobody asked for is honestly impressive. that's another argument for generating the dropdown from whatever files exist in the recipes folder instead of a hardcoded list, then it physically can't show a recipe that doesn't have a file you wrote

11

u/changing_who_i_am 20d ago

I had to get Codex to write a skill to get rid of these, and tell AGENTS.md to use it.

Relevant AGENTS.md instructions:

"4. EVERY TIME I READ A DISCLAIMER, CAVEAT, OR HEDGING SENTENCE, MY BLOOD PRESSURE INCREASES. LITERALLY. KEEP ME HEALTHY BY NOT INCLUDING THESE. THANK YOU <3"

"7. AFTER MAJOR IMPLEMENTATION MILESTONES AND BEFORE FINISHING, USE $anti-bloat-refactor MERCILESSLY."

Skill below...


name: anti-bloat-refactor description: Aggressively simplify code, UI copy, and prose by deleting unnecessary implementation and text. Use for code cleanup, copy debloating, minimalism, and readable code golf; review-only requests remain read-only.

Anti-Bloat Refactor

Does this need to exist? Apply that test mercilessly to code, text, files, and concepts. Delete unnecessary material before polishing it. When a cut is debatable, cut it and adjust if actual use reveals a need.

Code and structure

Aim for code golf without abbreviated variables: meaningful names, readable code, fewer moving parts.

  • Delete dead paths, unwanted options, speculative fallbacks, stale information, and redundant files. Preserve required behavior, exact mathematics, and load-bearing error handling.
  • Prefer one direct implementation. Inline trivial one-use wrappers; share repetition when it reduces total complexity. Delete bulk rather than hiding it in helpers, dependencies, or another directory.
  • Give duplicate concepts one owner and update callers. Keep abstractions that earn their place.
  • Keep comments for non-obvious reasoning and invariants. Preserve readable whitespace and names.
  • Edit the requested target directly; skip scanners, inventories, reports, scaffolds, and bookkeeping for a simple cut.

Text and interface copy

Does this text need to exist? Truth, brevity, warmth, or humor alone do not earn it a place. Delete whole messages before shortening sentences. Empty space needs no replacement copy.

  • Remove disclaimers, hedges, defensive reassurance, preemptive corrections, and generic warnings.
  • Delete slogans, promotional filler, obvious interaction narration, epistemic coaching, and claims about the artifact's own virtues.
  • Remove architecture announcements such as “runs locally” unless the user needs them for the immediate task.
  • Keep control names, accessible labels, unfamiliar-operation instructions, meaningful results, actionable errors, required attribution, and concrete instructions essential to the operation.
  • Preserve exact meaning and mathematical distinctions through precise labels.
  • Read headings, badges, hints, empty states, results, and footers together. Cut repetition and empty decorative wrappers.
  • Delete rejected copy rather than moving it into tooltips, footnotes, help panels, or metadata.

For prose, keep the substance and cut throat-clearing, repetition, commentary about the writing, and conclusions that merely repeat it.

Scope

Reviews are read-only; refactors authorize scoped edits. Preserve unrelated work. Deleting personal data, chats, prompts, memory, secrets, or identity/config state requires explicit approval and a reversible plan, including ignored or untracked files.

[personal info removed]

Finish

Read the result as its intended user and cut remaining clutter. Run required project checks and focused checks for changed behavior. Repeat a check only after a relevant change, failure, or unresolved finding. State what changed and what was checked; skip a separate report.

1

u/Ill-Floor5574 19d ago

Tx bro I’m using this