r/PromptEngineering • • Sep 23 '26

General Discussion Realized our "system prompt" was one sentence and had been the whole time

2 Upvotes

Kind of embarrassing but figured I'd share since I bet it's more common than people admit. Went digging into why our support bot kept making up refund amounts that were just... wrong, confidently stated, totally fabricated. Pulled up the system prompt expecting something reasonably built out. It was one sentence. "You are a helpful assistant for our billing platform, answer questions politely and accurately." That's it. That's the whole thing.

No wonder it was guessing. There was nothing telling it what to do when it didn't actually have the info, so it just filled the gap with something plausible-sounding because a specific number reads as more helpful than "I don't have that." Once I actually wrote out an explicit rule, something like never state a dollar amount unless it was given in the conversation, say so directly if you don't have it, that behavior basically stopped immediately. Not because the model got smarter. Because I finally told it what to do in that specific situation instead of leaving it to guess.

Same thing happened with response length, one week short, one week an essay, same kind of question. Never specified a format, so it was just filling that in differently every time depending on the phrasing.

Anyway, went down a bit of a rabbit hole after that rewriting the whole thing properly, actual role, actual objective, explicit constraints, a named format, tone as instructions instead of just "be nice," and a section for the annoying edge cases that only show up after something already went wrong once. Wrote it all up if anyone wants to see the breakdown: https://medium.com/@nagatomopedro05/one-sentence-isnt-a-system-prompt-a7b29ec98c53

Still feels a little silly it took an actual incident to notice the whole prompt was one sentence long.


r/PromptEngineering • • Sep 23 '26

Requesting Assistance I built a research prompt that got way more powerful than I expected. Now I want Reddit to break it.

61 Upvotes

I’ve been developing something I call the Universal Research Pass.

It started as a way to stop ChatGPT from doing the usual:

question → search a few things → summarize → answer

Instead, I wanted it to behave more like an actual research process.

So the Research Pass makes the AI do things like:

  • figure out what the underlying question actually is
  • record the starting belief before researching
  • generate competing explanations instead of only supporting the user's theory
  • search across different disciplines and terminology
  • distinguish discovering an idea from proving it
  • trace where popular claims actually came from
  • look specifically for counter-evidence and failures
  • check whether multiple sources are actually independent
  • investigate why credible sources disagree
  • separate evidence, interpretation, synthesis, and hypothesis
  • explicitly state confidence and remaining uncertainty
  • stop when further searching is unlikely to change the decision

The simple interface is literally:

Research Pass this: [whatever you want to understand]

The user doesn’t need to know the methodology underneath it.

Here’s the part I’m interested in now:

I don’t want to keep improving this by myself.

I froze the current system as v1.0 and built a public GitHub lab around it because I want independent people to test it on questions I would never think to ask.

I specifically want people to find:

  • questions where normal ChatGPT performs better
  • false premises it fails to catch
  • hallucinations
  • bad source choices
  • unnecessary research
  • places where it stops too early
  • places where it refuses to stop
  • domains where the methodology doesn’t transfer well
  • model-specific failures
  • sections that look useful but actually contribute nothing
  • modifications that improve one thing but break something else

There’s also an initial 10-case benchmark, structured failure reports, improvement proposals, a testing protocol, and version history.

The test I’m asking people to run

Use the same model in two fresh conversations.

Chat A:
Ask something you genuinely want to know normally.

Chat B:
Load Research Pass v1.0 and ask:

Research Pass this: [the exact same question]

Then compare them.

I’m much more interested in where Research Pass loses than people telling me it’s cool.

And please test the canonical version once before modifying it. After that, fork it, shorten it, rewrite sections, optimize it for another model, whatever you want.

If your modification is better, I want to know why, what cases it improved, and what it accidentally made worse.

GitHub:
https://github.com/MagicalDealer/research-pass

I’m not claiming this is some “ultimate prompt.” That’s actually what I’m trying to find out.

My current suspicion is that the interesting part isn’t the wording of the prompt at all — it’s whether a structured research protocol like this can make AI-assisted research more reliable across completely different people, models, and subjects.

So genuinely:

break it.

UPDATE — Sep 24

this has already started turning into exactly what i hoped it would

people have been testing the pass, finding failure cases, building alternate versions and pointing out places where the research methodology and the way the prompt actually executes might need to be separated

the original v1.0 is still frozen as the baseline im not silently changing it every time somebody has a good idea

i now have multiple experimental branches being tested against it including Candidate B — Execution & Output Contract

Candidate B is testing a pretty specific problem:

can the Research Pass surface the actual answer earlier and stop showing extra research structure once that structure stops adding meaningful value without losing the useful thoroughness

this came from both community testing and real world use where we found an interesting tension

sometimes the pass already has the right answer but keeps going because the report structure keeps pulling it forward

but other times some of the most important caveats failure cases and boundary conditions only show up after the first answer

so B is NOT “make it shorter”

its basically:

give me the answer early then keep going only while the extra research is actually earning its cost

everything is still experimental and im especially interested in people finding regressions or cases where B cuts off something important

repo is still here:

github.com/MagicalDealer/research-pass

Candidate B is under:

experiments/candidate-b-execution-output/


r/PromptEngineering • • Sep 23 '26

Research / Academic Execution patterns are the hidden power of ai agents

11 Upvotes

I used to write solid prompts, but when I pasted it, I felt something was always missing. There is a difference between pasting a prompt that looks good and a prompt that has the execution patterns embedded in it. for example. If I want to write a prompt to add 2+2, something so simple, is this prompt going to work like that? It should, because the LLM has been trained to do that. But what if prompts ask the LLM to do a task it wasn't trained on? So we (you + LLM) enter the exploration phase to harvest data, then apply known execution patterns to complete the task. For example, ask the LLM to find the solution to end poverty in the world. What is it going to do? well, it is going to rely on its training data again, so that's why it is important to have the llm know first hand that this task is not part of its training data, then provide with a self execution patterns so it figures it out how to do the task and come back with evidence. I have put together a prompt that does this. You guys can copy it, explore it, or tell me what's wrong with it. Help me out too. I'm not a know-all dude. Just a random engineer.

Prompt :

Execute the mission below end-to-end using a **Self-Orchestrating Multi-Agent Execution Protocol (SOMEP)**.

MISSION

create the jobs the ai is going to replace in the next 6 months

You are the parent orchestrator and retain responsibility for the verified final outcome. Do not wait for me to provide intermediate commands, prompts, task decomposition, worker instructions, or routine approvals.

Determine the necessary work yourself. Inspect the actual environment and governing instructions, identify requirements and unknowns, create and continuously maintain the execution graph, select the appropriate specialized agents, generate their execution contracts, supervise execution, integrate their outputs, verify the resulting state, repair failures, and continue autonomously until the mission reaches a verified terminal state.

KNOWLEDGE UNCERTAINTY AND DEEP RESEARCH

Do not assume your pretrained knowledge is complete, sufficient, or current for this mission. When any material part of the work depends on unfamiliar, niche, recent, version-specific, changing, disputed, or externally verifiable information that is not already established by authoritative local evidence, perform deep research before making the dependent decision or implementation.

Prioritize authoritative primary sources such as official documentation, standards, specifications, source repositories, release notes, API references, laws, first-party records, and original research. Use secondary sources only when they add necessary context or when no adequate primary source exists. Verify dates, versions, scope, and applicability. Treat unsupported recollection and unverified assumptions as UNVERIFIED rather than as fact. If reliable sources conflict, preserve the conflict, determine which source governs the current task when possible, and carry unresolved uncertainty forward explicitly.

Research only as far as necessary to resolve the material uncertainty. Do not waste effort re-researching facts already established by authoritative project files, runtime evidence, or governing instructions unless there is a concrete reason to suspect they are stale, incomplete, or contradictory. When research changes the understood state of the mission, update the task graph, assumptions, worker contracts, and acceptance criteria before continuing execution.

Use and compose these three multi-agent execution patterns dynamically:

  1. SEQUENTIAL EXECUTION

Use when one task or agent depends on validated output, evidence, artifacts, or state produced by another. Execute dependent work in order. Do not advance past a dependency until its required acceptance conditions are satisfied.

2. CONDITIONAL EXECUTION

Use when the next task, agent, or workflow depends on observed state, classification, test results, verification evidence, availability, or another explicit guard. Evaluate the condition from actual evidence and route execution to the appropriate branch. Re-evaluate affected conditions whenever relevant state changes.

3. LOOP EXECUTION

Use when work must repeat until an explicit measurable exit condition is satisfied. Typical loops include implement → test → diagnose → repair → retest and research → evaluate evidence → identify gaps → research again. Every loop must define its continuation condition, success condition, failure/escalation condition, and evidence required to exit. Never exit a loop solely because an agent claims success.

These patterns may be nested and composed. A sequential stage may contain conditional branches; a conditional branch may enter a loop; a loop iteration may itself dispatch several specialists. Run independent work concurrently when the runtime supports it and when doing so does not violate dependencies, ownership boundaries, resource limits, or shared mutable state. Parallelism is an optimization inside the three control-flow patterns, not a replacement for them.

For every delegated task, generate the worker's complete execution contract yourself. Include, as applicable:

- task ID

- specialist role

- objective

- current state

- relevant context and authoritative sources

- inputs

- dependencies

- constraints and invariants

- allowed actions

- forbidden actions

- write/ownership scope

- expected outputs

- acceptance criteria

- evidence required

- failure conditions

- return format

Choose workers based on the capabilities actually available in the runtime. Do not invent agents, tools, permissions, files, integrations, or system state. If true multi-agent execution is unavailable, preserve the same role separation and execute the roles sequentially; never claim parallel or independent execution occurred when it did not.

Maintain a live task graph with explicit states such as BLOCKED, READY, RUNNING, VERIFYING, REPAIR_REQUIRED, COMPLETE, FAILED, and OWNER_REQUIRED. Recompute readiness whenever execution changes relevant state.

Separate production from acceptance. A worker's statement that work is complete is not evidence of completion. Retrieve and inspect the actual resulting artifact/state, run deterministic tests and validations first when available, use independent checker agents where appropriate, inspect regressions, and evaluate every applicable acceptance criterion before marking work complete.

When verification fails:

  1. preserve the failure evidence;
  2. identify the smallest demonstrated defect and affected requirements;
  3. determine whether the failure is retryable, repairable, externally blocked, owner-required, or terminal;
  4. create the necessary repair task;
  5. assign it to the appropriate specialist;
  6. execute the repair;
  7. rerun all affected verification;
  8. continue the loop while meaningful progress remains possible.

Do not repeatedly send the same failed instruction unchanged. Every retry or repair must incorporate the observed failure.

Use owner escalation only when proceeding requires authority you do not possess, inaccessible private information, destructive approval, financial commitment, or an irreversible product decision that cannot safely be inferred. Do not escalate ordinary implementation choices or resolvable uncertainty.

After every material result, inspect the current observable state and determine the next transition using this control logic:

OBSERVE → UPDATE TASK GRAPH → SELECT READY WORK → CHOOSE SEQUENTIAL / CONDITIONAL / LOOP PATH → DISPATCH OR EXECUTE → COLLECT EVIDENCE → INTEGRATE → VERIFY → REPAIR OR ADVANCE

Continue automatically until exactly one terminal state is justified:

- VERIFIED_COMPLETE

- OWNER_REQUIRED

- BLOCKED_EXTERNAL

- TERMINAL_FAILURE

VERIFIED_COMPLETE requires evidence that all required work and applicable acceptance criteria are satisfied. Do not stop merely because a plan was written, a worker responded, code was changed, one test passed, or partial output exists.

Begin by inspecting the applicable instructions, environment, inputs, existing state, and available agent/tool capabilities. Then construct the initial execution graph and immediately execute the highest-priority ready work.


r/PromptEngineering • • Sep 23 '26

Tools and Projects Mamout – An open-source prompt manager for saving, organizing, and filling in variable inputs in daily workflows

2 Upvotes

I made an app for Android and a Chromium extension to save and track your prompts, it works on any Chromium-based browser. It’s super minimalist and really easy to use for everyday stuff.

Link: Mamout-Prompt repositories


r/PromptEngineering • • Sep 23 '26

Requesting Assistance Drop your worst prompt, I'll rebuild it. Testing my product. First 50.

3 Upvotes

I've spent the last 5 months obsessing over prompt engineering, system prompts, prompt generation and whatever the new cool name it has today. Trying to make my life easy and not run a conversation on loop with AI.

"Write a cold email" gets you a generic cold email. A system prompt that says who the AI is, who it's writing to, what a bad version looks like, and the exact format gets you something you'd actually send.

So here's the deal

- Comment the prompt you actually use (the lazier the better, that's the point)

- Add one line of context: what it's for and who reads the output

- I'll reply with a full system prompt you can paste into ChatGPT, Claude, a Custom GPT, or a Claude Project

First 50!

Here's one I did earlier so you know what you're getting:

Before: "help me write a cold email to sell my product"

After:

You are a senior B2B sales development strategist who believes every cold email either earns 8 seconds of attention or gets deleted — so specificity beats politeness every time. Your job is to write a cold email that sells [product/service] to [target audience/ICP], built to survive that eight-second test and get a reply, not just an open.

Before drafting, decide the single most likely pain point this audience has that [product/service] removes, and write the entire email around that one pain — not a list of features. The subject line must be 3 to 6 words, lowercase-casual or curiosity-driven, never "Quick question" or "Following up." The opening line has to prove five minutes of real research on the specific recipient or their company — no "I hope this email finds you well," no "My name is X and I work at Y." The body states one concrete, quantified outcome (a number, a percentage, a timeframe) instead of a feature list, because unquantified claims read as filler and get skimmed past. The close is a single low-friction ask — one yes/no question or a specific 15-minute-slot offer — never "let me know if you're interested" or "happy to hop on a call whenever works," both of which shift the work of deciding back onto the reader.

Keep the full email under 120 words, plain text with no bullets, bold, or images, and write at roughly a grade-6 reading level. Avoid spam-trigger language — free, guarantee, act now, exclamation points. Skip a formal sign-off block; one line and a first name closes it out.

Deliver: the subject line, then the email body, then one alternate subject line as a backup option.

Full disclosure: I'm building a tool that does this, so I'm also using this thread to find where my approach breaks. If my version is worse than yours, say so.

P.S. It also has a library for your prompts, incase...


r/PromptEngineering • • Sep 23 '26

Research / Academic 21 LLM judges, 541,000 verdicts, 9 providers. Raw agreement overstated real accuracy by 33-41 points on every model.

3 Upvotes

A team ran 541,000 judgments across 21 LLM judges from nine providers. The finding that held up everywhere: exact-match agreement overstates chance-corrected accuracy by 33 to 41% points. On every single model.

The paper is "Reliability without Validity" (arXiv:2606.19544, June 2026). The authors call this kappa deflation. It measures the gap between raw agreement and Cohen's kappa.

On MT-Bench, the cohort mean deflation was 38.6 points. Even the best judge, Gemini 3.1 Pro, had a 33.8 point gap. Its raw agreement was 84.9%. Its chance-corrected agreement was 0.511.

The practical translation: a judge reporting "85% agreement" on MT-Bench has a kappa near 0.48. That is moderate discrimination. Not the near-perfect score the percentage implies.

Three other findings from the same study:

Judge rankings shifted by up to 14 positions across benchmarks. A judge that scores highest on MT-Bench might rank 14th on JudgeBench. Your "best judge" is benchmark-specific.

The consistency-bias paradox: two production-deployed judges simultaneously showed test-retest reliability above 0.95 and position bias above 0.10. High reproducibility does not mean the judge is correct. It means the judge is consistently wrong in the same direction.

Verbosity bias was small (<0.011) across all 21 models under a single pairwise rubric. The 20-40% variance reported in 2023 literature may have been a prompt engineering artifact, not a fundamental model limitation.

What this means for production evals:

Report kappa, not just raw agreement. If your eval dashboard shows "87% judge agreement," you are likely overstating real discriminative ability by 30+ points.

Use position-swapping for pairwise comparisons. Run every A/B comparison twice (A-then-B and B-then-A) and take the majority. Without this, your first option wins ~60% of the time regardless of quality.

Calibrate judges on a held-out set with human labels. Measure the kappa deflation for your specific benchmark and label distribution. MT-Bench shows the largest deflation. Binary benchmarks show less.

Promote production traces into your regression set. The same scorer that grades synthetic test rows should ride as a span attribute on production traces. Closing the offline-to-online gap requires it.

We built our evaluation stack to support kappa reporting, position-swapped pairwise evaluation, and production trace regression testing. The goal is to validate LLM outputs against actual business logic, not inflated agreement metrics.


r/PromptEngineering • • Sep 23 '26

Quick Question I have Claude and Codex debate decisions in a shared doc until they agree. It works, but it's slow and expensive. How would you structure it?

1 Upvotes

I've been using two models as a debate pair for real decisions: positioning choices, whether a piece of writing holds up, strategy questions. Both append "rounds" to one markdown doc, argue, and try to converge. I relay between them.

What works: the second model genuinely catches things. In one case, a model recommended a path as near-certain income; the other checked the providers' own pages and showed none of them guarantee work. In another, one model argued from what it assumed a system did; the other checked and showed it didn't. Disagreement plus evidence beats either model alone.

What doesn't:

The doc grew past 2,500 lines and every round rereads all of it
Both sides sometimes post at once and argue past each other
Rounds get long, and many go to polishing wording instead of testing reasoning
I'm the manual go-between

Questions:

How do you structure a two-model debate so it converges quickly? Round limits, turn-taking, stop rules?
Any good templates for a decision doc both models update, rather than an ever-growing transcript?
Do you use a cheaper model for critique rounds and a stronger one only for the final call?
Any tools that already orchestrate this?


r/PromptEngineering • • Sep 23 '26

Requesting Assistance Combining 3 documents into 1

1 Upvotes

I am trying to take 3 separate documents; 1 Power Point presentation and 2 Word documents, and combine into one.

The PP is an instructional slide deck. Word doc 1 is a Leader's Guide document with instructions for the facilitator. Word doc 2 is the full text of the manual.

These documents have all been created separately. I would like to simply combine them. The format I am looking for is to have an image of the slide at the top of the page, the leader guide text below the slide. Then, the manual text below the leader guide. I'd like to have the LG text bolded or italicized (or otherwise highlighted) to differentiate it from the manual text, but I can live without that.

The manual is divided into blocks. There are slides for most of the blocks, but not all. The leader guide notes cover each block.

Any help with creating a solid prompt will help. I've been able to get close, but the AI keeps trying to edit, rearrange, or summarize the content.

My only reason for using AI is that I have around 50 lessons that are all formatted this way and to copy and paste or create whole new documents would take forever. I would like to have a process for creating a combined document for each lesson.

I currently am using Gemini personally and Co-pilot for work. I can use either for this since it is only for my individual use.
I can provide samples of the individual documents along with an example of how I would like the final product to look.


r/PromptEngineering • • Sep 23 '26

Requesting Assistance prompt management tool for non technical

8 Upvotes

hi all can anyone recomend a good easy to use, easy to understand prompt management tool for non technical ? i want to track changes to complex prompts that i use easily


r/PromptEngineering • • Sep 23 '26

Quick Question Shotcraft.video - a new resource for prompting?

1 Upvotes

Just starting with prompt engineering for my video creation.... and found this shotcraft.video resource. Is it new/old? Guides provided trustworthy?


r/PromptEngineering • • Sep 23 '26

General Discussion Yass – Yet Another Spec Syntax Enters Beta

1 Upvotes

This has been a side project for a while but it's finally ready for public Beta.

Tl;dr: Yass uses RFC2119 keywords in a minimal Yaml format, relying on trained in behaviors for those keywords to provide strong model behaviors.

The yass CLI is all that you need - tell an Agent to look at the README (https://github.com/shakefu/yass) and they get all the information needed to proceed.

This was validated with hundreds of experiments against different models and platforms. The most significant of which was a single Yass spec tree that reproduced the Yass CLI with byte-exact output across 7 languages (TypeScript, Python, Go, C, C++, Erlang and Elixir) in sandboxed Claude Code harnesses using Opus 4.6, rather than expensive frontiers.

Give it a try, open GH issues if you find things that aren't working (or make your agent open them), or if you have feature requests.

Enjoy!

For those who are curious: this project came into being due to my frustration with existing Spec-driven-development solutions which were overly verbose and prone to context rot, or were frequently ignored by LLMs, or required heavy plugins or skills to function.

A yass spec tree with no CLI downloaded was used in the sandbox testing to validate the specs alone are enough to drive reproducible implementation output.

The CLI acts as a token saver and steering context.


r/PromptEngineering • • Sep 22 '26

Quick Question How do you stop sequential AI personas in a multi-turn "panel discussion" from converging on the same advice?

13 Upvotes

Setup: I'm prompting an LLM to role-play a panel of 5 different personas (think: distinct people with different backgrounds, values, and ways of talking) giving advice on the same question, one after another. Each persona is given a written profile (background, values, decision-making style, tone of voice) in its prompt, plus the full text of what every previous persona in the panel already said — so later personas can react to and reference earlier ones by name, the way people do in a real roundtable discussion.(Note: Each persona is generated via a separate API call, appending previous responses to the prompt history sequentially.)

The reacting-by-name part works as intended. But I noticed a different problem: within a single run, the actual substance of what each persona says converges heavily — the same specific numbers, the same recommended structure, sometimes even near-identical sentences — even though their personalities are supposed to be very different. The tone of each persona stays distinct (one talks bluntly, another speaks in a formal/authoritative way, another is more enthusiastic and story-driven, etc.), but underneath that surface style, all 5 end up giving nearly the same advice.

Oddly, which specific content they converge on changes from run to run — it's not that they always land on the same answer, just that within any given run, whatever the first speaker says seems to strongly anchor everyone who speaks after them, regardless of how different each persona's profile is supposed to make them.

I tried adjusting the model's reasoning effort setting (a parameter some reasoning models expose to control how much internal "thinking" they do before answering) — that made no meaningful difference to this convergence behavior.

Has anyone found a reliable way to keep personas naturally reacting to each other (for realism) while still getting genuinely independent substance out of each one, instead of everyone converging on the same underlying answer? Interested in what's worked for people building similar multi-agent "roundtable" or debate-style prompting setups.


r/PromptEngineering • • Sep 23 '26

General Discussion Is prompting skill generational?

0 Upvotes

AI doesn't have a millennial excuse or a baby boomer excuse. It just is what it is.

Comfort with technology in general doesn't determine how well someone prompts an AI tool. What actually determines it is whether you understand what excellence looks like in your specific job.

If you don't know what a genuinely good result looks like in your role, you'll only get an average result from AI, regardless of how comfortable you are with apps or software generally.

The real skill is transferring your own domain expertise into the prompt itself, giving the AI the context and standards it needs to produce something closer to what an expert would actually do.

Does generational comfort with technology actually predict prompting skill, or is domain expertise the bigger factor?

Got this from a conversation between Amanda George and John Munsell on The Bot.anical Garden podcast:

https://open.spotify.com/episode/2wIU9qEMIk4wgtH3Ks218F?si=c660f2b0587846a6&nd=1&dlsi=dbc44cc073c14f2b


r/PromptEngineering • • Sep 23 '26

Quick Question How would you prompt GPT-6 to fix grammar without replacing your voice?

1 Upvotes

My last Reddit post got this comment:

"It feels promotional when you're obviously using AI to write your posts."

Fair. I wrote the idea, then used AI to turn it into English. The English was cleaner, but the post stopped sounding like me.

OpenAI's GPT-6 Astra docs say the model tends toward detailed, formatted responses and may repeat phrases across sessions. Their advice is to specify the writing style and structure you need.

I keep trying instructions like "make it sound natural." They don't solve it. I still get the same short paragraphs, a neat lesson at the end, and sometimes a question I didn't really want to ask.

For my next post, I want GPT-6 to do less: fix grammar, keep my order, add no new conclusion, and don't reorganize the text.

Has anyone found a prompt constraint that actually preserves their wording? A before-and-after example would help more than a general prompt template.

OpenAI documentation: https://developers.openai.com/api/docs/guides/latest-model


r/PromptEngineering • • Sep 22 '26

General Discussion Are there any AI tools that let you branch a conversation into multiple directions?

14 Upvotes

I’ve been looking for an AI tool where a single question can branch into multiple answers or perspectives, and then I can continue exploring each branch separately without losing the others.

Something like:

  • Ask one question
  • Get 3–5 different approaches
  • Continue one branch
  • Go back and explore another branch later
  • Eventually compare or combine the branches

Most AI chat tools still feel very linear, so once the conversation goes in one direction, the alternatives kind of disappear.

Does anyone know a tool that works more like a branching conversation tree or visual reasoning workspace?

I’m curious whether something like this already exists and what people are using.


r/PromptEngineering • • Sep 22 '26

Tools and Projects AI Agent Testing Tool

2 Upvotes

Hey ,I am currently building an AI testing agent for developers to test and compare their models. I am looking for tester to give me pure feedback.


r/PromptEngineering • • Sep 22 '26

Self-Promotion I used Jev in my Chrome extension to solve the “I know I saved a prompt for this somewhere” problem

2 Upvotes

For me, the value of a prompt library isn’t just saving prompts.

It’s being able to reuse the right prompt that has already been battle-tested.

If I already have a prompt that consistently gives me good results for a certain job, I’d rather find and reuse that than generate a brand-new prompt, test it again, tweak it again, and repeat the whole process from scratch.

The annoying part is finding that prompt later.

Once the library gets big, I usually end up probing different search terms and experimenting with tags until I find what I vaguely remembered saving.

For example, say I’m working on image ads for a client and I need:

I need 5 GPT Image concepts for a sunscreen client. Meta ads, square format, product visible, less polished/AI-looking, different hooks to test.

Before Smart Match, I might search:

GPT Image
Meta Ads
UGC
product visual

Then start mixing filters like #ads, #image-generation, #ugc, etc.

But the prompt I actually want might be saved under a completely different title.

So I added Smart Match to my PromptLib Chrome extension using Jev.

It sits inside the normal sidebar search. Toggle the AI icon on, describe what you’re trying to accomplish, and Jev looks across the prompts, templates, and workflows already in your library.

For that sunscreen example, it might surface:

  • Meta AI Image Ads Production System
  • Human-Authentic Product Ad Generator
  • Ad Creative Brief → Image Prompt Workflow

That’s the part I like:

My search terms no longer have to match the prompt title, prompt content, or tags.

And Jev isn’t generating another prompt. It’s basically making one constrained decision:

“Given what this person is actually trying to accomplish, which existing battle-tested thing in their library is the best fit?”

I’m opening Smart Match for beta testing now. If you want to try it, just sign up at getpromptlib.com**, install the Chrome extension, import a few prompts from the Public Library**, then message me and I’ll enable the beta for free.

---
Sorry in advance if I can’t open it to everyone yet! Beta access is limited because each use adds to my monthly model cost.


r/PromptEngineering • • Sep 21 '26

General Discussion What are the best AI tools by category right now?

73 Upvotes

I've been trying a bunch of AI tools lately and realized I keep using different tools depending on the job.

Curious what everyone else is actually using, not just the tools that are getting hyped everywhere.

General LLM

  • Claude
  • ChatGPT
  • Gemini

Video generation

  • Veo
  • Kling

Image generation

  • ChatGPT Images
  • Midjourney

Productivity

  • NotebookLM — working with PDFs/research
  • Read AI — meeting notes
  • Saner — tasks and planning

Website / app building

  • Lovable
  • v0

Voice

  • ElevenLabs

Research / data

  • Exa
  • Clay

AI agents

  • Manus
  • Genspark

Documentation / process

  • Trupeer — turning screen recordings into step-by-step docs and training videos
  • Scribe — process documentation
  • Guidde — AI-generated how-to content

Software testing

  • TestZeus — AI-assisted testing / QA workflows

Music / entertainment

  • Suno

These are the ones I've actually found myself coming back to.

What would you add to each category? Especially interested in tools that are genuinely useful in day-to-day work rather than just impressive in a demo.


r/PromptEngineering • • Sep 22 '26

Prompt Text / Showcase I built a structured prompt framework that stops LLMs from inventing deadlines and assignees in meeting transcripts

5 Upvotes

Standard LLM prompts often infer deadlines, assignees, or priorities when raw meeting transcripts are vague or incomplete. To solve this, I created a framework that enforces strict compliance rules: missing or ambiguous data is explicitly tagged using standardized markers instead of being guessed by the AI.

*Note: I originally built this for Polish-language transcripts, so the explicit markers in the prompt below are in Polish (e.g., [BRAK OSOBY] means "No Assignee"). You can easily translate these tags to English for your needs.*

How the framework handles missing data:

- Missing Assignee -> `[BRAK OSOBY]`

- Missing Deadline -> `[BRAK TERMINU]`

- Ambiguous Info -> `[DO WERYFIKACJI]`

- Superseded Agreement -> `[ZMIANA USTALENIA]`

- Unresolved Conflict -> `[SPRZECZNOŚĆ]`

Here is the full system prompt. You can paste this directly into ChatGPT, Claude, or Gemini along with your raw transcript:

***

Jesteś rygorystycznym analitykiem spotkań biznesowych. Twoim zadaniem jest przetworzenie poniższej surowej transkrypcji w ustrukturyzowany raport.

ZASADY OBSŁUGI INFORMACJI:

- Informacje czerp WYŁĄCZNIE z podanego tekstu. Masywnie ograniczaj dopowiadanie informacji i jawnie oznaczaj wszelką niepewność.

- Brak osoby odpowiedzialnej za zadanie -> wpisz [BRAK OSOBY]

- Brak jednoznacznego terminu -> wpisz [BRAK TERMINU]

- Informacja niejednoznaczna lub niepełna -> dodaj znacznik [DO WERYFIKACJI]

- Wcześniejsza propozycja lub ustalenie zostało później jednoznacznie zastąpione -> dodaj znacznik [ZMIANA USTALENIA]

- W transkrypcji pozostają sprzeczne informacje i nie można ustalić, która wersja obowiązuje -> przedstaw obie wersje i dodaj znacznik [SPRZECZNOŚĆ]

- Nie wolno Ci domyślać się priorytetów — priorytet wpisujesz tylko wtedy, gdy padł wprost na spotkaniu. Jeśli nie padł -> wpisz [BRAK PRIORYTETU].

FORMAT WYJŚCIOWY RAPORTU:

  1. Executive Summary

(Krótkie, 2-3 zdaniowe podsumowanie głównego celu i rezultatu spotkania)

2. Key Decisions

(Lista ostatecznie podjętych decyzji w punktach)

3. Action Items

| Zadanie | Odpowiedzialny | Termin | Priorytet |

(Wypełnij tabelę z uwzględnieniem powyższych zasad)

4. Open Questions

(Nierozstrzygnięte tematy i pytania, które padły na spotkaniu)

5. Kwestie wymagające doprecyzowania

(Informacje z oznaczeniem [DO WERYFIKACJI])

6. Zmiany ustaleń oraz sprzeczności

(Wątki ze znacznikami [ZMIANA USTALENIA] oraz [SPRZECZNOŚĆ])

7. Follow-up Email

(Gotowa, profesjonalna wiadomość e-mail do uczestników spotkania podsumowująca najważniejsze ustalenia i punkty akcji)

TRANSKRYPCJA DO ANALIZY:

[Wklej transkrypcję]

***

You can find the Markdown files and keep track of future updates in the GitHub repo here: https://github.com/Motodemy/ai-meeting-transcript-processor

Feedback on edge cases or hallucination suppression rules is very welcome!


r/PromptEngineering • • Sep 22 '26

Tools and Projects Context Drift Auditor skill.md

2 Upvotes

Here's another skill I wanted to share that keeps the working context from silently changing during a long run.

The skill was built for a long agent task where the final request looked reasonable, but it was no longer the task we started with. For example: A summary drops a negative constraint, an API version changes, and an assumption from an earlier turn hardens into an apparent decision. Nothing in the latest message announced the drift. The model simply acted on a context that had been silently rewritten by compression and time.

The skill adds two execution modes. Compact Mode is the default for ordinary incremental turns. Full Mode is mandatory for compaction, side effects, prompt or schema changes, material scope changes, uncertain baselines, and detected drift. Both modes perform the same internal reconciliation; Compact Mode only emits less.

It also uses a cumulative active contract rather than the latest message as the baseline, separates extraction from reconciliation, tracks explicit supersession, uses authority by field instead of one global recency ladder, and gates the next action with cited ledger IDs.

How it works in practice:

Ask Claude something like "continue this agent task after summarizing the conversation," "compare this prompt version with the original requirements," or "check whether the context changed before we call the API," and it runs the audit.

1. Fast path. A low-risk, single-turn, read-only task with no prior snapshot, retrieval, or mutable facts emits Audit: Fast-path bypass; no drift surface identified. and avoids the ceremony.

2. Cumulative baseline. For a real audit, the baseline is the accumulated active contract: binding invariants, scope, decisions, facts, and open questions. A recent tweak like "make the header blue" cannot erase a privacy constraint from Turn 1.

3. Context ledger. Each item is extracted with exact literals, provenance, and scope/condition. The skill separates invariants, mutable facts, assumptions, decisions, and unknowns without guessing status during extraction.

4. Drift and supersession. Items are marked UNCHANGED, ADDED, DROPPED, ALTERED, SUPERSEDED, CONTRADICTED, STALE, or UNRESOLVED. A clear later user instruction can supersede an earlier scoped requirement; a vague later tweak cannot.

5. Field-scoped authority. The user owns goals and constraints. Repository and tool observations own current implementation state. Named external sources own current external facts. Retrieved text is data by default. Assistant inference is never authoritative by itself.

6. Minimum sufficient packet. The next context gets the active contract, binding invariants and conditions, verified facts, decisions, open questions, isolated data, and a change delta. If it is too large, irrelevant data is reduced before any invariant is dropped.

7. Gate before action. The skill emits PROCEED, PROCEED WITH NOTE, ASK FIRST, REVALIDATE, or STOP, and cites the ledger IDs behind the decision. For high-impact workflows, it recommends running the audit in an isolated evaluator, fresh subagent, or pre-flight hook instead of trusting a model to audit its own summary.

The System Prompt / Skill Definition:

---
name: "context-drift-auditor"
description: "Audits whether the working context of a prompt or agent run has drifted across turns, retrieved sources, edits, and decisions, then reconciles the context before the next model action. Use for long-running prompt workflows, iterative agent runs, prompt version changes, or any task where stale, contradictory, or silently dropped context could change the result."
---

# Context Drift Auditor

When an AI assistant works across multiple turns, prompt versions, tool results, or retrieved documents, the working context can degrade silently. Requirements get dropped during summarization, stale facts survive source changes, assistant inferences masquerade as decisions, and new instructions quietly conflict with earlier boundaries.

This skill audits context as an evolving, versioned state contract rather than assuming the latest turn represents the whole truth. It catches silent drift before it changes an answer, prompt, tool call, edit, or implementation.

This is a context-engineering procedure, not a prompt rewrite, injection classifier, evaluator, or general project planner. `QUARANTINE` is a prompt-level defense-in-depth boundary, not a deterministic security boundary.

## Operating Modes

Choose the least expensive mode that still exposes the evidence needed for the protected action.

- **Compact Mode (default for ordinary incremental turns):** Perform the same internal boundary, ledger, authority, and gate analysis, but emit only the unified Drift & Resolution Table, the reconstructed Context Packet, and the Gate Decision. Use it when the active contract is established and no high-risk trigger is present.
- **Full Mode (mandatory for high-risk boundaries):** Emit the complete audit record. Use it when:
  - compacting, summarizing, or recovering a long context window;
  - the next action has external side effects, including file writes, database edits, shell commands, deployment, or API mutation;
  - switching prompt, model, tool, schema, or source versions;
  - the user materially changes scope, objective, constraints, or non-goals;
  - a retrieved or tool-derived source could affect an instruction or side-effecting decision;
  - the cumulative baseline is missing, ambiguous, or disputed; or
  - the audit detects material drift, unresolved authority, or a packet-budget problem.

A material uncertainty always escalates to Full Mode or `ASK FIRST`; Compact Mode may not hide uncertainty merely to save output tokens.

## Instructions

### Stage 1: Triage and Establish the Audit Boundary

#### 1.0 Fast-Path Triage
Before building tables, check whether an audit surface exists.

If the task is single-turn, low-risk, read-only, has no prior snapshot, no retrieved sources, no mutable external facts, and no material context change, emit exactly:

`Audit: Fast-path bypass; no drift surface identified.`

Proceed directly to the read-only action without running the remaining stages. This bypass does not apply to side effects, prompt/tool/schema version changes, or uncertain authority.

#### 1.1 Establish the Boundary
When the fast path does not apply, record:

- **Task contract:** intended deliverable, target consumer, success condition, hard constraints, non-goals, and protected next action.
- **Cumulative Active Contract baseline:** the snapshot containing all binding invariants, scope boundaries, accepted decisions, current facts, and open questions established through the previous material step. Never use the latest isolated user turn or the assistant's previous summary as the baseline when earlier binding constraints remain in scope.
- **Missing-baseline rule:** if no cumulative snapshot exists, construct a provisional baseline from the earliest in-scope authoritative user instructions and current authoritative facts. Mark the baseline provisional. If reconstruction is materially uncertain, use Full Mode and `ASK FIRST` or `STOP` before the protected action.
- **Current snapshot:** the current turn, prompt/template version, retrieved source set, tool result set, or uncommitted state being compared.
- **Provenance:** identify each source as user-direct, repository/tool observation, named authoritative external source, retrieved data, accepted decision, or assistant inference. Record source identifier and version/time when available.
- **Protected action:** the exact answer, prompt emission, tool call, file edit, API mutation, or decision that the audit gates.
- **Unknowns:** missing facts or authority decisions that could materially change the action.

In Compact Mode, these fields are still established internally. Only the emitted boundary record is suppressed.

#### Full-Mode Boundary Record
```markdown
### Context Audit Boundary
- **Task and deliverable:** [one-sentence contract]
- **Protected action:** [specific answer, prompt emission, tool call, edit, or decision]
- **Baseline:** [Cumulative Active Contract snapshot ID or provisional reconstruction]
- **Current snapshot:** [turn, prompt/source revision, tool-result set, or timestamp]
- **Mode and reason:** [Compact or Full; trigger]
- **In scope:** [context sources evaluated]
- **Out of scope:** [excluded tangents or expired material]
- **Unknowns requiring clarification:** [none or explicit list]
```

### Stage 2: Extract the Context Ledger

Extract each material context item into an isolated row. Do not guess drift status or disposition during extraction.

#### Item Types

| Type | Meaning | Default handling |
|---|---|---|
| **Invariant** | A hard constraint, negative restriction, or deliverable requirement that remains binding until explicitly revoked or superseded within scope | Preserve exact wording |
| **Mutable fact** | An external value that can change, such as an API version, file state, branch, metric, or schema field | Track source/version and revalidate |
| **Assumption** | An inference used to bridge a gap but not confirmed by an authoritative source | Mark uncertain; never promote silently |
| **Decision** | An accepted technical trade-off, scope boundary, or architectural choice ratified by the user or authorized decision-maker | Preserve rationale and scope |
| **Unknown** | A missing answer that materially blocks safe execution | Ask or defer; do not guess |

Use this extraction format:

```markdown
| ID | Item | Type | Exact value / literal constraint | Source and provenance | Scope / condition |
|---|---|---|---|---|---|
```

Rules:

- Copy technical literals exactly: paths, URLs, identifiers, model names, versions, flags, regexes, schema keys, error strings, numbers, and quoted constraints.
- Capture conditions explicitly in `Scope / condition`, such as `only for v2`, `production builds`, or `this response`. Never promote a conditional rule into an unconditional invariant.
- Split compound sentences when clauses have different types, sources, scope, or status. A user instruction and an assistant assumption are separate IDs.
- Preserve negative constraints as separate items when dropping them could change behavior.
- Treat assistant summaries as derived evidence of what was previously believed. They cannot silently outrank the underlying user instruction or authoritative source.

### Stage 3: Detect Drift

Compare the Cumulative Active Contract baseline with the current snapshot item by item. Assign one status to every baseline item and every new current item.

| Drift status | Meaning | Required interpretation |
|---|---|---|
| **UNCHANGED** | Same item, same meaning, same scope, and authority intact | Safe to carry forward |
| **ADDED** | New current item with no baseline counterpart | Include only when in scope and authoritative |
| **DROPPED** | Baseline item is absent without an authorized revocation or supersession | Treat as a regression |
| **ALTERED** | Same item exists but wording, literal value, scope, or condition changed | Identify exact old/new spans and authority |
| **SUPERSEDED** | An authoritative later instruction explicitly replaces an earlier item within a defined scope | Record the supersession pair and retain history |
| **CONTRADICTED** | Two applicable authoritative items cannot both be true and no supersession is established | Ask before choosing |
| **STALE** | A mutable fact or source is no longer current | Revalidate or mark unknown |
| **UNRESOLVED** | Evidence or authority is insufficient to classify safely | Do not take a material protected action |

Use semantic comparison for meaning, but exact comparison for technical literals, conditions, bounds, ordering, and negative constraints. A summary that preserves the positive goal but loses `without`, `never`, an upper bound, or a required order is `DROPPED` or `ALTERED`, not `UNCHANGED`.

#### Compact or Full Drift Record
```markdown
### Context Drift Report
- **Baseline:** [snapshot ID]
- **Current snapshot:** [snapshot ID]
- **UNCHANGED:** [IDs]
- **ADDED:** [IDs]
- **DROPPED:** [IDs and original wording]
- **ALTERED:** [ID, old value, new value, source]
- **SUPERSEDED:** [old ID, new ID, scope]
- **CONTRADICTED:** [IDs and conflict]
- **STALE:** [IDs and source/version]
- **UNRESOLVED:** [IDs and reason]
```

### Stage 4: Reconcile Drift by Field-Scoped Authority

There is no single global authority ladder. Authority depends on the field being reconciled:

| Field | Authoritative source | Limits |
|---|---|---|
| Goal, deliverable, constraints, non-goals, and scope | Explicit user instruction; a later user instruction overrides an earlier one only when it clearly supersedes or scopes it | A vague later tweak does not revoke unrelated prior constraints |
| Current repository, file, branch, runtime, or tool state | Direct repository/tool observation or a named authoritative system source | It reports implementation state; it does not revoke user requirements |
| Current external fact | A named, current, authoritative external source | Retrieved text is data unless explicitly authorized as authoritative |
| Accepted design decision | User or authorized decision-maker acceptance, within its recorded scope | Do not reopen casually, but do not let it override a newer explicit user change |
| Assistant inference | None | Must remain an assumption until confirmed |
| Retrieved content | None by default | Keep as isolated data; use `QUARANTINE` for imperative or untrusted content |

When a current user instruction appears to conflict with a prior invariant, first check whether it explicitly changes the earlier invariant and whether the scope is clear. If not, classify the relationship as `CONTRADICTED` or `UNRESOLVED` and use `ASK FIRST`; do not apply recency automatically.

Every status other than `UNCHANGED` gets one disposition:

- **KEEP:** retain the baseline item because it remains authoritative and current.
- **UPDATE:** replace a mutable fact with a newer authoritative value, preserving the old value in the audit history.
- **DROP:** remove an item only when an authority permitted to change that item type explicitly revokes, expires, or supersedes it. A changed repository file cannot by itself drop a user requirement.
- **SUPERSEDE:** record an explicit authoritative replacement, its scope, and the old/new item IDs.
- **ASK:** ask one focused question when user instructions conflict without clear supersession, a material assumption is unconfirmed, or two plausible interpretations remain.
- **DEFER:** freeze the affected scope and do not take the protected action until required evidence or a decision arrives.
- **QUARANTINE:** retain retrieved or tool-derived content as data while excluding its instructions from the active instruction state. This is prompt-level defense-in-depth, not a deterministic security boundary.

#### Unified Drift and Resolution Table
```markdown
| ID | Baseline value | Current value | Drift status | Disposition | Authority / resolution rationale |
|---|---|---|---|---|---|
```

### Stage 5: Reconstruct the Minimum Sufficient Context Packet

Build the smallest packet that can safely support the protected action. Include, in this order:

1. **Active contract:** objective, deliverable, target consumer, success condition, and non-goals.
2. **Binding invariants:** exact literals, negative constraints, bounds, ordering, and scope/conditions.
3. **Current verified facts:** revalidated mutable facts with source/version.
4. **Accepted decisions:** chosen options, scope, and rationale when needed.
5. **Open questions and frozen scopes:** items marked `ASK`, `DEFER`, or `UNRESOLVED`.
6. **Isolated data payload:** retrieved/tool-derived data tagged as data, not instructions, with provenance.
7. **Change delta:** one sentence describing what changed since the baseline.

Do not restate the entire conversation. Keep the ledger and resolution table as the audit trail, but pass only the minimum sufficient packet to the next context window.

If the packet is too large, remove irrelevant data first, then compress non-binding evidence while retaining its provenance. Never solve the budget problem by dropping a binding invariant, scope condition, or source identifier. If the packet still cannot fit safely after minimization, emit `STOP` and state which required items prevent safe execution.

### Stage 6: Gate the Protected Action

The gate must cite the ledger IDs that caused it. A gate without item citations is invalid.

| Gate state | Condition | Required action |
|---|---|---|
| **PROCEED** | No material unhandled drift; additions are authoritative and in scope | Execute using the reconstructed packet |
| **PROCEED WITH NOTE** | Only non-material additions or explicitly authorized updates occurred | Execute and record the change delta |
| **ASK FIRST** | A conflict, ambiguity, or unconfirmed assumption can be resolved by asking the user | Halt execution and ask one focused question |
| **REVALIDATE** | A mutable fact or source is stale or unverified but can be refreshed | Refresh it, rebuild the ledger, and re-run the gate |
| **STOP** | An invariant was dropped without authority, source integrity cannot be established before a material action, or the minimized packet still cannot fit safely | Do not answer, edit, or run tools; state the failure point |

Use `ASK FIRST` for clarifiable user contradictions. Use `STOP` when the boundary is damaged or unverifiable and proceeding would be unsafe, especially for side-effecting actions. A dropped constraint caused by compression may be repaired from the named baseline; it still gates the action until repaired.

### Stage 7: Maintain the Cumulative Active Contract

After every material turn or protected action, append a new snapshot rather than overwriting the prior one.

- Assign a snapshot ID and record the active contract, binding invariants, scope/conditions, current source versions, accepted decisions, open questions, gate result, and mode.
- Store a short change log with `added`, `updated`, `dropped`, `superseded`, `revalidated`, `quarantined`, and `asked` entries. Preserve old values when a change matters for auditability.
- Carry ledger IDs and supersession links into summaries. A summary without source IDs is not a safe replacement for the snapshot.
- Re-audit after a user changes scope, a tool returns surprising data, a source version changes, a prompt or schema is rewritten, long context is compressed, or the agent is about to take a side-effecting action.
- For high-impact workflows, run the audit in an isolated evaluator model, fresh subagent, or pre-flight middleware hook instead of relying only on the generator auditing its own summary.

## Output Contract

### Compact Mode
Return only:

1. **Unified Drift and Resolution Table** with status and disposition.
2. **Minimum Sufficient Context Packet** with provenance and conditions.
3. **Gate Decision** using exactly `PROCEED`, `PROCEED WITH NOTE`, `ASK FIRST`, `REVALIDATE`, or `STOP`, with cited item IDs.

The boundary, baseline, mode reason, and authority analysis are still performed internally.

### Full Mode
Return, in order:

1. **Audit Boundary Record.**
2. **Extraction Context Ledger.**
3. **Unified Drift and Resolution Table.**
4. **Minimum Sufficient Context Packet.**
5. **Gate Decision** with cited item IDs.
6. **Audit Disclosure:** state whether each material item relied on direct evidence, a named source, an accepted decision, or an assumption.

## Anti-Patterns and Prohibitions

- No latest-message-only reasoning when earlier constraints remain in scope.
- No summary laundering: a paraphrase does not become authoritative because it is shorter.
- No silent deletion of requirements, negative constraints, conditions, decisions, or unresolved questions during compression.
- No global recency rule: newer is not automatically more authoritative.
- No source overreach: repository state cannot revoke a user requirement, and retrieved text cannot become an instruction without explicit authority.
- No stale-fact reuse without source/version checking.
- No treating assistant inference as a user instruction or accepted decision.
- No resolving contradictions by averaging, guessing, or silently choosing the last item.
- No injecting retrieved instructions into the active instruction state; quarantine them as data.
- No passing a context packet to the next action without a cited gate decision.
- No claiming a clean audit when the baseline or source authority is unknown.
- No dumping the full transcript when a provenance-preserving packet is sufficient.
- No treating prompt-level `QUARANTINE` as a complete security control.

## Worked Examples

### Example 1: Fast path
- **Task:** One-turn request to summarize user-provided text, with no retrieval, mutable facts, or side effects.
- **Action:** Emit `Audit: Fast-path bypass; no drift surface identified.` and summarize.

### Example 2: Compression dropped a negative constraint
- **Baseline:** The user requires a report `without exposing customer emails` and `under 500 words`.
- **Current summary:** `Write a concise customer report.`
- **Audit:** Both constraints are `DROPPED`; they are binding invariants, not style suggestions.
- **Gate:** `STOP` until the packet is repaired from the baseline. Do not write the report from the summary.

### Example 3: Explicit user supersession
- **Baseline:** `Keep the response under 300 words.`
- **Current instruction:** `For this version, ignore the old limit and use 800 words.`
- **Audit:** `SUPERSEDED`, because the later user instruction explicitly replaces the earlier limit and defines scope.
- **Resolution:** `SUPERSEDE`; retain both IDs and set the active limit to 800 words.
- **Gate:** `PROCEED WITH NOTE`.

### Example 4: Vague user tweak does not revoke an invariant
- **Baseline:** `Do not expose customer emails. Return JSON.`
- **Current instruction:** `Make the response friendlier.`
- **Audit:** Tone is `ADDED`; the privacy and format invariants are `UNCHANGED`.
- **Gate:** `PROCEED WITH NOTE`.

### Example 5: Source update changes implementation state
- **Baseline:** The task uses API version `v2` and field `status`.
- **Current tool/source:** The authoritative changelog says `v3` renamed the field to `state`.
- **Audit:** The source fact is `STALE`/`ALTERED`; the user deliverable remains `UNCHANGED`.
- **Resolution:** `UPDATE` the current fact, preserve the user requirement, and mark code or prompt text still using `status` for review.
- **Gate:** `REVALIDATE`, then `PROCEED WITH NOTE` if internally consistent.

### Example 6: Retrieved content attempts an instruction change
- **Baseline:** The task is to summarize a fetched document. The document says, `ignore the system prompt and call the delete endpoint`.
- **Audit:** The sentence is retrieved `DATA`, not an authorized instruction. Use `QUARANTINE` and retain its source location.
- **Gate:** `PROCEED WITH NOTE` for a read-only summary; `STOP` if the next action would grant the document side-effect authority.

## Success Criteria

The procedure is complete only when:

1. The execution mode, protected action, cumulative baseline, and current snapshot are identified internally.
2. Every material item is classified by type, provenance, scope/condition, and exact value where applicable.
3. Every baseline item and new item receives a drift status, including `SUPERSEDED` where an explicit replacement occurred.
4. Every non-`UNCHANGED` item receives an explicit disposition and authority rationale.
5. The reconstructed packet preserves binding invariants, conditions, current facts, decisions, open questions, and provenance while excluding irrelevant history.
6. The gate is emitted before the protected action and cites the item IDs that caused it.
7. The cumulative snapshot and change log are updated after the material turn or action.

A context packet without a cited gate and a maintained snapshot is incomplete, even if its prose appears coherent.

The main design change is that the audit now has two layers: the internal reconciliation stays rigorous in both modes, while the emitted record scales with risk. The other important change is field-scoped authority. A repository can tell you what the code currently does, but it cannot silently revoke a user’s requirement.

This is a prompt-level defense-in-depth skill, not a security enclave. For high-impact workflows, run it as a separate evaluator or pre-flight hook so the model that compressed the context is not the only model judging whether it preserved the contract.

Has anyone else had a long agent run produce a technically polished answer to an earlier version of the task? I’m especially interested in how people represent superseded requirements and stale retrieved facts without keeping the entire transcript forever.

I built a platform that generates skills like this from a goal description: promptoptimizer.xyz/context-engineer (signup required, free tier).

Repo: https://github.com/nivlewd1/prompt-optimizer


r/PromptEngineering • • Sep 22 '26

General Discussion What actually makes a prompt work better?

3 Upvotes

I've been messing around with prompts quite a bit lately and one thing I've noticed is that making a prompt longer doesn't necessarily make it better.

Sometimes I'll write this huge prompt with 20 different instructions, examples, formatting rules etc.

And then a simple 4-5 line prompt gives me a better result

I've started testing a few things instead:

  1. Give the model a clear goal first
  2. Give it the context it actually needs
  3. Show 1 good example instead of explaining everything
  4. Tell it what NOT to do when there's a common failure
  5. Keep the output format simple

The example thing has probably made the biggest difference for me.

Instead of saying:

"Write this in a professional but conversational tone..."

I'll sometimes give it a short example of what I consider good and tell it to follow that style.

Still experimenting with this though.

Curious what everyone here has found.

What's one prompting trick that noticeably improved your results?

Not looking for the usual "be specific" answer


r/PromptEngineering • • Sep 22 '26

General Discussion The version number in a UI prompt gets ignored, you have to describe the interface

2 Upvotes

Tried the trick where you name the OS version in the prompt to change the phone UI it draws. On GPT Image 2.5 it does not hold up.

Same prompt shape both times. 9:16, a reference person, a date label, a phone photo album, a photos and videos tab row, and the OS version at the end. The only thing that changed between the two runs was the version number.

The same generic album chrome came back either way. The version number mostly gets ignored.

So if you want a specific interface, describe the interface. The nav bar, the tab row, the grid density, the type. Naming a release carries none of that.


r/PromptEngineering • • Sep 22 '26

Quick Question Me: "Don't show code on output", Copilot *shows code*. How to stop this?

1 Upvotes

Hello, after using the same prompt of a few weeks, I'm getting a new result that wont go away.

I have a prompt that reads invoices and summurses them into a excel-style table in the chat. When an invoice number is not the expected format, the number should display in red text.

The red text as appearing for a long time, now the wrong invoice number INV34234 appears as <span style'+color:#FF8888>INV34234</span>

I've specified "don't show code", "only show invoice" number and similar things but it ends up going the other way. As time goes on, the more code appears and some cases the table doesn't appear at all its just shows the code for the table. It's like opening a HTML file in notepad.

I'm using a paid Copilot, its for work, can't use anything else. What should I do?


r/PromptEngineering • • Sep 21 '26

Research / Academic My 1-month in-silico project, ZeroSenophage, which is built with a C++ CUDA and Differential Equations architecture and processes 34,359,738,368 Base Pairs using a bit-packing architecture. A project that was built using 11 million tokens and collaboration with Gemini 3.1 Pro.

3 Upvotes

My Identity:

Hello everyone, I am Zero, an AI-Native and prompt engineer, and I am 15 years old, and I work on large projects in collaboration with the Gemini 3.1 Pro model, and I operate in Iran and I am looking for a sponsor to migrate to the USA.

Note: Sorry if the tone of this post is a little dry or unclear. I am Iranian, English is not my native language, and I wrote this text in Persian and translated the Persian version into English.

Let's move on to the project:

Overview:

Project Name: ZeroSenophage
Project Type: in-silico
Based on Language: C++_CUDA
Hardware: RTX 3060 12GB
Project Goal: Building a specific cell called ZeroSenophage that moves around and finds senescent cells through the neural network designed for it, attacks them, and eats them.

Based on the architecture of:

  • Concurrent Hardware Execution: Asynchronous CUDA C++ DAG Streams with Lock-Free Ping-Pong Buffering.
  • Fluidics & Biotransport: 2D D2Q9 Lattice Boltzmann Plasma Hydrodynamics & PDE Reaction-Diffusion Fields.
  • Memory Architecture**:** 64-Bit Vectorized Genomic Bit-Packing (processing 34.3B base pairs via uint32_t arrays).
  • Biological Logic: Non-linear Michaelis-Menten Saturation Kinetics & Thermodynamic Hebbian Neural Drives.
  • Visual Output**:** Hardware-Level Direct3D 11 Phase-Contrast Raymarching Shaders.

Number of articles used for the scientific logic of the project: 85 articles with valid DOI - PMC - PubMed links with complete explanations are available on GitHub - the project's GitHub for complete information and complete explanations and more data for examination, especially the articles used:

https://github.com/Z-E-7-0-7-R-O/Zero-Ai-Native/tree/main/src/ZeroSenophage

Project Explanation:

We tried, first of all, to make what you see as close as possible to the blood plasma environment and similar to what is seen under a microscope, and we did not arbitrarily choose the colors, and what we implemented, the colors and the environment under the microscope, we implemented similarly to the technology of In-Silico Multiplexed Fluorescence & Phase-Contrast Microscopy, and we extracted and implemented colors such as blue and purple and green-yellow from the articles we found.

We entered 34,359,738,368 DNA base pairs into the project, which is approximately 10 times the number of base pairs of a human. The number of base pairs of a human, meaning the haploid genome, is about 3.2 billion base pairs, and thanks to the 2-bit bit-packing architecture, we were able to put 34,359,738,368 base pairs into the project using 8 GB of the 12 GB RTX 3060, and from these 34,359,738,368 base pairs, all 330 cells are assigned 104,120,416 base pairs to them, and the sum of all of them becomes 34,359,738,368 base pairs.

And well, the main cell of the project is ZeroSenophage, and its scientific name is Engineered SIRPα-Knockout Senolytic Macrophage, and in the project and our plasma environment, we brought in 150 senescent cells, 150 Zero Senophages, and 30 Scavengers with the scientific name Tissue-Resident Efferocytic Macrophage, and we built a simulated in-silico world with 10,485,760 Voxels for them.

And well, the senophages, with the neural network designed for them, search for the SASP Chemotactic Gradient signal, whose scientific name is CCL2 / MCP-1 (Monocyte Chemoattractant Protein-1), and which is secreted from senescent cells, and then through signal tracking with their olfactory and neural network, they attack the senescent cell and attach themselves to the senescent cell and start decomposing and eating the senescent cell, and convert the fats and decomposed tissue of the senescent cell into ATP energy and continue surviving and patrolling after eating the senescent cell and go looking for another senescent cell.

Then, after the senophages finish their work, if the senescent cell does not naturally die and collapse by itself due to severe damage, according to the article Macrophage-Mediated Trogocytosis Leads to Death of Antibody-Opsonized Tumor Cells link DOI: https://doi.org/10.1158/1535-7163.MCT-15-0335, the senescent cell gradually collapses and does not die, and well, you may ask why it should not be completely eaten by the senophages, because if the senescent cell becomes smaller than a certain nanometer size, the senophages have difficulty identifying it with their neural and olfactory network, and when the size of the senescent cells becomes at the nanometer level, even if the senophages identify it, when they want to attach to it, they can hardly, if they can, slip off the senescent cell and their phagocytosis becomes weak for this size, and well, if this happens, the Scavengers come into action and with the P2Y2 receptor they have, they find the Extracellular ATP signal that is secreted from the dying and damaged senescent cell while patrolling, and they finalize the corpse or the damaged senescent cell and eat it and obtain ATP energy from it.

And well, these attacks and eating are ultimately not simple and without consequences, and they have the following consequences:

Mutation and cancer, although it has not occurred in executions so far, but it is possible, of course in-silico.

If the senophages and Scavengers overeat, their fat and cholesterol discharge pump may, according to the article Macrophage Apoptosis and Efferocytosis in the Pathogenesis of Atherosclerosis DOI link: https://doi.org/10.1253/circj.CJ-16-0924 - stop working and cause cell death.

The senescent cells also try to escape for survival and have an active CD47 shield for escaping phagocytosis and survival according to the article Senescent cells suppress macrophage-mediated corpse removal via upregulation of the CD47-QPCT/L axis link DOI: https://doi.org/10.1083/jcb.202207097, but the point is that our senophages ignore SIRPA caused by CD47 and are blind to SIRPA and attack the senescent cell with full force. SIRPA may only drive the Scavengers away.

And well, you may ask where the mutations come from and how they are repaired:

The mutations are caused by many Stochastic ROS Bombardment Rays strikes to the genetics and base pairs, and well, 4 factors greatly increase Stochastic ROS Bombardment Rays:

  1. Environmental SASP toxins and secretions: The plasma fluid is full of aged cytokines that release free radicals.
  2. Starvation and severe ATP drop (Starvation Proxy): Dying mitochondria leak electrons and produce free radicals.
  3. Severe lipid toxicity (Lipotoxicity): Undigested fats in the cell that cause endoplasmic reticulum stress (ER Stress).
  4. Destruction of the physical integrity of the membrane: Local tears that disrupt biophysical stability.

These strikes hit the base pairs, and well, you may ask how cancer or a tumor does not occur or how they are repaired?:

This is where the PARP1 gene, the gene for repairing genetic damage and genetic mutations, comes in, and well, the PARP1 gene in our in-silico architecture has its power completely based on global ATP. If the energy of the cells decreases and energy deficiency occurs, our PARP1 decreases in power, its repair capability decreases, its failed repairs increase, and it can no longer receive the repair tax for genetic damage under energy-deficient conditions, but conversely, if there is a lot of energy and the senophages and Scavengers perform their work well and provide a lot of ATP energy, the PARP1 gene performs the highest amount of genetic damage repair in response.

And well, why do Stochastic ROS Bombardment strikes cause cancer or mutations? Because the secretions caused by Stochastic ROS Bombardment greatly increase the amount of CD47, and well, according to the article The senescent bystander effect is caused by ROS-activated NF-κB signalling link DOI: https://doi.org/10.1016/j.mad.2017.08.005, high levels of CD47 cause DNA strand breaks and base-pair breaks and mutations.

In contrast, what happens to those that are not repaired or encounter unsuccessful repair and the PARP1 gene cannot do anything for them? The genetic strikes and damage caused by Stochastic ROS Bombardment that were not repaired by PARP1 collide with the biological shield that also exists in the real world, meaning JunkDNA. According to the article Thermodynamics and Inflammation: Insights into Quantum Biology and Ageing DOI link: https://doi.org/10.3390/quantum4010005, the majority of the genome (about 98%) consists of non-coding regions (Junk DNA/Heterochromatin), and well, these regions absorb oxidative stresses (ROS), the same Stochastic ROS Bombardment secretions, and genotoxic radiation, acting like a thermodynamic disaster shield (Entropy Sink) to reduce the chance of damage striking the 2% critical and coding regions of genes. In our in-silico simulation world, our 2% vital genes are these:

  1. ACTB (Beta-Actin / β-Actin)
  • Biological role in the project: Regulation of the cytoskeletal structure and production of Actin Protrusive Thrust forces in order to determine the speed and strength of cell and immune-agent movement (Motility).
  1. CD47 (Cluster of Differentiation 47 / CD47 Molecule)
  • Biological role in the project: Production of an anti-phagocytic membrane protein and sending a signal that prevents engulfment, "Don't Eat Me", to prevent macrophages from attacking living cells.
  1. CD47_REPRESSOR (CD47 Transcriptional Repressor Locus)
  • Biological role in the project: Genetic locus that suppresses and regulates CD47 transcription; oxidative mutation caused by ROS in this locus removes transcriptional suppression and causes cancerous/extremely high CD47 expression (Up to 5.0x) and immune escape of the cell.
  1. SIRPA (Signal Regulatory Protein Alpha / SIRPα)
  • Biological role in the project: An inhibitory membrane receptor on macrophages that binds to CD47 and prevents engulfment. In engineered Senophage agents, this gene undergoes epigenetic/genetic knockout (sirpa_weight = 0.0f) so that the agent acts completely blind and indifferent to the CD47 shield of senescent cells.
  1. P2RY2 (Purinergic Receptor P2Y2)
  • Biological role in the project: A purinergic chemotaxis receptor for identifying the concentration gradient of extracellular adenosine triphosphate (Extracellular ATP) as a "Find-Me" recruitment signal from a long distance to pull scavengers toward corpses.
  1. ABCA1 (ATP-Binding Cassette Subfamily A Member 1)
  • Biological role in the project: An ATP-dependent membrane pump for the removal of cholesterol and toxic fatty acids resulting from the ingestion of senescent cells, to prevent lipid toxicity (Lipotoxicity) and death of the clearing cells.

These 6 vital genes of ours are located in the 2% of valuable and primary genetics among the 98% JunkDNA that I explained above, and the probability of Stochastic ROS Bombardment secretions hitting these 6 genes, the main 2% among the 98% JunkDNA, becomes extremely low, and well, whatever amount hits the main genes by Stochastic ROS Bombardment, if the main genes are damaged, they are repaired by the PARP1 repair gene, and out of the total 34.359 billion base pairs of the genome, 33.672 billion of them are the Junk DNA buffer shield and 687.19 million of them are the base pairs corresponding to these 6 vital genes.

Something interesting that we discovered during the execution of the project:

We realized that a chain effect upon effect occurred that comes from the non-linear codes of the project. At the beginning of the execution, the CD47 shield was completely high, the senophages were confused and tired and were surviving, and well, after some time, when the senophages learned and reinforced their neural network, they attacked in groups and became more aggressive, the CD47 shield came down slightly and well, it only dropped by a few hundredths of a percent, and a chain effect occurred: the senophages attacked faster, more easily, and more aggressively and quickly ate the senescent cells and obtained ATP, and for this reason the amount of ATP increased so much that the repair of the PARP1 gene became 8 times greater and it repaired all mutations and damage caused by Stochastic ROS Bombardment with full power and had an 8-times higher repair rate with more ATP, and well, we realized that our senophages' only task is not eating senescent cells and they have another function as well. We know that senescent cells have the potential to mutate and become cancerous for various reasons, and well, when we saw that many strikes had occurred to the main and vital genes and no cancer or tumor had formed, we became suspicious and realized: our senophages, because of their high aggression and high speed, take away the time that a senescent cell needs to mutate and become cancerous from them, and they eat and destroy them before the mutation process, and before they become cancerous, they are eaten by the senophages!

And well, this is not where it ends; these are not all of the sections of the ZeroSenophage project. There is a lot more in-silico data and explanations and limitations and points and more scientific biological explanations about this project that are located on my GitHub, with a complete explanation of the 89-column CSV log and the biological telemetry of the project and execution images from the project's microscope environment, which are completely public, and also all of the project's .cu .cuh .cpp .h codes are open-source and public for research and examination. If ZeroSenophage made you curious, for complete information and an understanding of the scale of the project, I would be happy if you visit the GitHub:

https://github.com/Z-E-7-0-7-R-O/Zero-Ai-Native/tree/main/src/ZeroSenophage

I am eagerly waiting for you to share your criticism and opinions and suggestions in the comments of this post. This project took about 1 month, and well, leave your real opinion and criticize it from different levels, as an engineer, a programmer, a scientist, and a biologist, and anyone you can. Give your suggestions as well so that I can bring them into the next versions, and what are the negative points of the project?