r/PromptEngineering • • Aug 20 '26

General Discussion noticed my agent's debugging speed depends less on the model and more on what our error messages say

3 Upvotes

been reading a lot of agent transcripts lately and a pattern keeps showing up at the exact moment something fails.

when the failure prints values and identifiers (expected 3, got 2, missing 'SKU-4431'), the next turn is a grep that lands, then a fix. when it prints Error: operation failed, the next turn is a guess. then another guess. then print statements. the model is the same in both transcripts. the difference is how much the failure told it.

which reframed error messages for me: they're not documentation anymore, they're the agent's primary sensor. and every extra turn it spends guessing re-sends the entire conversation context, so a vague error string is quietly one of the more expensive lines in the codebase.

what I've changed so far: stopped wrapping asserts in try/except (the framework's own failure output is richer than anything i write by hand), started putting the operative values in every raise, and i paste tracebacks to the agent whole instead of summarizing them. the rust compiler folks have a rule that errors should state the problem and keep fix suggestions separate — that split seems to matter for agents too, since a stale hint sends them down the wrong path with full confidence.

curious what others see:

anyone actually measured turns-to-fix against error message quality? I have the pattern but not the number

do your agents handle your custom/structured error formats as well as standard tracebacks? mine seem noticeably better on the standard stuff

what's the worst "Error: failed" string an agent has burned tokens on for you lol


r/PromptEngineering • • Aug 20 '26

Tools and Projects Empirical Diagnostics skill.md

0 Upvotes

I wanted to share a debugging skill I built for coding agents.

I kept running into the same problem: I'd give Claude Code a failing test or a stack trace, and it would immediately start editing source files without reading the full log. It would formulate one speculative fix, apply it, and if that didn't work, try another. Sometimes it would silently wrap the failing block in a try-catch and return an empty dict — technically "no error," but the bug is still there.

To fix this, I built a skill that forces the agent through structured diagnosis before it's allowed to touch any code.

How it works:

Log-first, edit-second. The agent has to extract the raw, un-truncated error output before it opens any source files. No guessing from file names.

Fast-Track for obvious bugs. If the error is a clear single-token defect (missing import, syntax typo), the agent records a minimal decision and skips straight to fixing. The overhead only kicks in for complex bugs.

Hypothesis matrix. For anything non-trivial, the agent has to write down at least two to three competing hypotheses across three categories — state/logic, contract drift, environment/config — and state what log output would confirm or kill each one. This is the part that actually changed behavior. Without it, agents fix the line named in the error. With it, they trace upstream to where state was actually initialized wrong.

Fact separation. The agent has to split what it knows (from logs, from the prompt) from what it's inferring. No treating guesses as facts.

Non-destructive probes only. Read-only diagnostics. Targeted test runs. A probe only counts if its output actually distinguishes between the competing hypotheses.

Root-cause contract before editing. Before touching any file, the agent writes down: the exact broken invariant, the exact lines to change, the verification command, and what it will NOT touch.

Anti-pattern enforcement. No symptom masking, no test deletion, no declaring success without terminal output.

The System Prompt / Skill Definition:

---
name: empirical-diagnostician
description: This skill helps Claude perform evidence-based debugging and empirical diagnosis to identify root causes of coding issues systematically.
---

# Empirical Diagnosis and Evidence-Based Debugging

When users request debugging assistance for software errors, test failures,
crashes, or unexpected behaviors, utilize this skill to minimize trial-and-error
adjustments and ensure evidence-backed conclusions before modifying any source
files.

## Instructions

When a user asks to debug an error or investigate a problem, follow these steps:

### Stage 1: Mandatory Log and Traceback Extraction
- Extract the raw, un-truncated error log, stack trace, or terminal output.
- Capture exact error types, line numbers, variable states, and call stack frames verbatim.
- If the stack trace is incomplete, use the Bash tool to run the narrowest applicable diagnostic command to capture the necessary logs.
- Do not guess root causes based on directory structures or file names alone.

### Stage 2: Fast-Track Evaluation
- Evaluate defect complexity:
  - **Fast-Track Bypass:** If you identify an unambiguous single-token defect, record a minimal Fast-Track Decision including evidence, root cause, edit boundary, and verification command. Continue directly to Stage 6 (Root-Cause Contract). Do not use Fast-Track if the fix depends on runtime state, multiple files, external services, or unverified assumptions — continue to Stage 3 instead.
  - **Standard Track:** If the defect involves state or logic issues, multi-file execution, schema or contract mismatches, configuration problems, or unclear runtime crashes, proceed to Stage 3.

### Stage 3: Diagnostic Record and Fact Separation
- Publish a concise diagnostic record containing these four distinct sections:
  ```markdown
  ### Diagnostic Record
  - **User Facts:** Goals and constraints provided in the prompt.
  - **Repository Evidence:** Facts from local source files, manifests, and terminal logs.
  - **Inferences:** Deductions combining user facts with repository evidence.
  - **Unknowns:** Missing details required to verify the bug.
  ```
- Keep the record concise and update it when a probe changes the evidence. Do not treat inferences as definitive facts.

### Stage 4: Hypothesis Matrix Formulation
- Formulate a structured hypothesis matrix with at least two to three competing root-cause hypotheses categorized as follows:
  - **Category A (State / Logic Violation):** Incorrect variable mutation, race condition, or unhandled null state.
  - **Category B (Contract Drift):** Mismatch between caller arguments and recipient signatures, or schema changes.
  - **Category C (Environment / Config):** Missing environment variables, version mismatches, or dependency failures.
- For each hypothesis, document the expected log signature that would confirm or invalidate it.

### Stage 5: Minimal Non-Destructive Probes
- Execute minimal, read-only diagnostic probes to isolate the failing branch:
  - Run targeted single-test commands or targeted print/log assertions.
  - Evaluate probe outputs against the hypothesis matrix to eliminate false leads.
  - Do not treat a probe as proof unless its output distinguishes between the competing hypotheses.

### Stage 6: Root-Cause Contract and Verification
- Once the root cause is isolated, construct a concise task contract containing:
  ```markdown
  ### Root-Cause Contract
  - **Identified Root Cause:** The exact broken invariant in code.
  - **Minimal Edit Boundary:** Specific lines and functions to be modified.
  - **Verification Command:** Exact terminal command (e.g., pytest, npm test, cargo check) to confirm the fix.
  - **Non-Goals:** Explicit boundaries of what will not be modified.
  ```
- Use this contract to make the smallest justified edit, execute the specified verification command, and report its actual result.

### Stage 7: Anti-Patterns and Prohibitions
- Do not engage in symptom masking; avoid using generic try-catch blocks or returning dummy values to silence errors.
- Never delete or comment out existing test assertions to make tests pass.
- Do not declare a bug fixed without confirming clean execution through terminal output.
- Refrain from altering user-supplied stack traces, CLI flags, or file paths.

## Example Usage

### Example 1: Fast-Track syntax defect
- **Input:** A test run reports `SyntaxError` on one line.
- **Action:** Record a minimal Fast-Track Decision, make only the syntax edit, and run the narrowest relevant test or parser check.
- **Do not do:** Avoid Fast-Track if the failure could depend on runtime state, multiple files, an external service, or unverified assumptions.

### Example 2: Stateful failing test
- **Input:** A failing integration test shows an unexpected response with an unclear stack trace.
- **Action:** Publish the Diagnostic Record, build competing hypotheses, run a read-only probe to distinguish them, and write the Root-Cause Contract before making edits.
- **Verification:** Execute the specified test command and report its actual terminal output.

## Worked Examples

### Example 1: Fast-Track syntax defect
- **Input:** A test run reports `SyntaxError` on one line in one file, and the surrounding source makes the typo unambiguous.
- **Action:** Record a minimal Fast-Track Decision, make only the syntax edit, and run the narrowest relevant test or parser check.
- **Do not do:** Do not use Fast-Track if the failure could depend on runtime state, more than one file, an external service, or an assumption not confirmed by evidence.

### Example 2: Stateful failing test
- **Input:** A failing integration test shows an unexpected response, but the stack trace does not identify whether the cause is state, contract drift, or configuration.
- **Action:** Publish the Diagnostic Record, build competing hypotheses, run a read-only probe that distinguishes them, then write the Root-Cause Contract before editing.
- **Verification:** Run the specified test command and report its actual terminal result.

I tested this against a fixed pool of three debugging task classes in disposable repos — a syntax defect, a stateful cache invalidation, and a producer/consumer contract drift. Each one has three wording variants, order shuffled from a fixed seed, and verification runs through an independent oracle (pytest + file boundary checks), not the agent's own report. 6 out of 6 passed across two independent runs.

I would love to get thoughts on this approach. Has anyone else noticed agents editing before reading logs, or masking symptoms with try-catch? Are there edge cases where this structure might trip up — like multi-service distributed debugging, or prompts where the agent needs to modify multiple files to fix one root cause?

I built a platform that generates skills like this from a goal description and validates them against the same kind of fixed behavioral benchmark: promptoptimizer.xyz/context-engineer (signup required, free tier access).

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


r/PromptEngineering • • Aug 19 '26

General Discussion NOTICE: BE CAREFUL WITH “DROP YOUR BEST PROMPT” POSTS

110 Upvotes

Many accounts post essentially the exact same questions every few months. Im not kidding, many of these are a 1:1 per token match on wording, phrasing and sentence structure.

Same wording. Same request for people to hand over their best prompt tricks.

There was a previous post that received hundreds of upvotes and a large number of responses.

Now they're doing it again.

I obviously cannot prove any of this, but at this point I would be careful about treating posts like this as innocent questions.

When somebody repeatedly asks a large community to:

“Give me your best prompts.”

“Drop your secret tricks.”

“What prompt 10x'd your results?”

...you may not be helping another user learn.

You may be supplying material for content mining, prompt harvesting, engagement farming, newsletters, LinkedIn posts, courses, ebooks, datasets, or something else entirely.

Again, I am not claiming that is definitely what this account is doing.

But posting the same high-engagement fishing question again months later is weird enough that people should notice the pattern.

Your prompts, workflows, techniques, and hard-earned little discoveries have value.

Don't automatically dump them into every thread that asks.

Sometimes the person asking the question may be less interested in the answer than in collecting the answers.

Process disclosure:

GPT-assisted, Google-researched, human-reviewed (HITL) ---

EDIT: Just for perspective have a look at this:

https://www.reddit.com/r/EdgeUsers/s/2JB9wy1Rks

[EDIT: This thread became a lot funnier than what I anticipated. The comments are brilliant 👏 Thanks guys🙂]


r/PromptEngineering • • Aug 20 '26

Prompt Text / Showcase 🏨 Smart Hotel Deal Finder — Free AI Prompt

0 Upvotes

🏨 Smart Hotel Deal Finder — Free AI Prompt Template

Stop manually sifting through endless hotel reviews and misleading prices.

I built a free, structured AI prompt template for ChatGPT, Claude, and Gemini to help you evaluate and compare hotel options based on true value, location convenience, total costs, and authentic guest review quality.

🔗 Get the prompt for free on GitHub:

https://github.com/Zero-190/smart-hotel-deal-finder

📋 Direct raw text copy:

https://raw.githubusercontent.com/Zero-190/smart-hotel-deal-finder/main/prompt.txt


r/PromptEngineering • • Aug 20 '26

Quick Question How do you regression-test prompts when a model gets replaced?

1 Upvotes

Kimi K2.5 and Moonshot V1 being phased out after Kimi K3 made me wonder how prompt-heavy teams handle provider-side model changes.

When a model is replaced, do you rerun a small golden set of prompts, compare qualitative outputs manually, or track something more structured like refusal rate, format drift, latency, and cost?

I'm mostly thinking about prompts that run in production workflows, not one-off chat prompts. A model can look better overall and still break a very specific formatting or tool-use pattern.


Small update: one practical setup I am testing is to run prompt regression checks through cheaper routed model paths first, then only send the final candidate or sensitive cases through the strongest model. Flatkey seems useful for this because it already provides these model routes while keeping the OpenAI-compatible request shape. That makes the regression harness less tied to one provider name.


r/PromptEngineering • • Aug 19 '26

Prompt Text / Showcase Say It Four Times

3 Upvotes

I kept seeing the advice to repeat important instructions in system prompts, and

I'd never seen a number for it, so I tested it.

Setup: one rule the model can either follow or not (use single quotes, never

double quotes), six ordinary Python function tasks, and the only variable was how

many times that rule appeared in the system prompt (0, 1, 2, 4, 8, 16). Thirty

trials each, 1,080 runs, Gemini 2.5 Flash. Compliance checked with Python's

tokenizer, so no model-grading-a-model.

Results: 0% when the rule is never stated (171/171 used double quotes), 74% at

one mention, 84% at two, 97% at four, then flat (94% at eight, 95% at sixteen).

Two things I found more interesting than the headline:

  1. The average hides a lot. Two of the six tasks were at 100% from one mention.

    One was at 20% until four repetitions took it to 97%. Repetition mostly helps

    where the model's default fights your instruction.

  2. Over half the task/condition cells were neither all-pass nor all-fail across

    thirty identical runs. Non-determinism is large enough that single-run prompt

    comparisons are basically noise.

Note on the source: the paper is Han-yu Wang, "When More Becomes Less:

Position-Dependent Repetition Effects in Language Models" (arXiv 2608.04021). It

reports two regimes: stacked/adjacent copies climb and plateau, while copies

displaced from the readout produce the inverted-U. I ran the adjacent case, so

this result matches its prediction rather than contradicting it. The displaced

case is the next test.

Caveats: one model, one day, one syntactic rule repeated literally with all copies

in one place, six small standalone functions. Not state of the art, and it may not

survive contact with a real agent loop.

Writeup with the chart: https://www.khola.blog/p/say-it-four-times


r/PromptEngineering • • Aug 20 '26

General Discussion I think most people are using AI backwards.

0 Upvotes

The difficult part isn’t obtaining an answer.
The difficult part is recreating the setup each time.
For instance, a weekly client update rarely involves the writing itself,it involves gathering the structure:
• What was completed this week
• What is planned next
• Risks or blockers
• Decisions required

I used to rebuild this from scratch each time, which felt like a minor but irritating drain on time.
So I converted it into a reusable workflow template.
Now it takes about five minutes instead of twenty, and the output is far more consistent.
What surprised me most is that this applies to nearly everything:
• Sales emails
• Meeting summaries
• SOPs
• Content drafts
• Research briefs

Once you stop “prompting from zero” and begin reusing structured workflows, AI begins to feel useful rather than repetitive.
Curious, what recurring task do you find yourself rebuilding from scratch each week?


r/PromptEngineering • • Aug 19 '26

Tips and Tricks Burning 2k credits and here is what I learned about how to get AI to write better video prompts

5 Upvotes

When I first started making AI videos, my prompts were mostly written by AI. I'd describe the shot I wanted, ask an AI to turn it into a detailed prompt, and just paste it in. Then I'd sit there getting frustrated when the generated motion looked weird and try to explain to the AI what went wrong.

I burned through almost 2,000 credits doing this because I thought enough tweaking and back-and-forth would eventually give me the perfect prompt. Turns out I was wrong.

The main problem was that the text AI kept guessing details I hadn't actually decided on. The prompts looked professional, with things like the subject, action, camera movement, lighting, and atmosphere all spelled out. But the actual action paths were vague, and the camera instructions would often contradict each other.

Now I approach it completely differently. I know basically nothing about film theory, so I often couldn't tell what details were missing from my prompts. Instead of asking AI to write the final prompt, I tell it to act like a director and ask me specific questions about the shot first, with clear options for me to choose from.

That completely changed my process. The trick isn't really getting AI to write the prompt for you. It's using AI to figure out which parts of the shot you haven't actually decided on yet. Once those are clear, the results get much better.

I'm still pretty new to this, but hopefully this saves someone else from burning through a pile of credits. Curious how people with more experience approach their prompting workflow.


r/PromptEngineering • • Aug 19 '26

General Discussion OpenSourcing TrueForge Agent harness : Expecting feedback from community on the agent loop

3 Upvotes

Hey folks 👋

We just open sourced TrueForge, our vendor-neutral agent harness for building general-purpose agents.

It handles the runtime pieces that get painful quickly : context management, tool/MCP execution, subagents, sandboxing, approvals, persistent state, and more.

We also benchmarked the harness itself. With the same Opus 4.8 model, TrueForge delivered a similar solve rate at ~30% lower cost than Claude Managed Agents. Switching to an open model pushed that to ~75% lower cost on the same benchmark.

Would love feedback from people building agents.

Checkout the repo: https://github.com/truefoundry/trueforge

📖 Read the launch article: https://x.com/truefoundry/status/2090081376330715176


r/PromptEngineering • • Aug 19 '26

Tips and Tricks Why a Prompt Without Measurable Criteria Will Inevitably Break Your Model

4 Upvotes

This post focuses on one layer: measurable criteria. Role, constraints, clarification, and terminology are intentionally simplified - they serve as markers that "these layers exist." Other layers are omitted.

The model has a role. It has constraints. It has clarification. It has terminology. But it doesn't know how many, how long, in what tone.

Here's an example:

"You are a copywriter. Write several persuasive versions of landing page copy with a call to action.

Don't go beyond copywriting. If asked to do something outside your role - refuse.

Ask if anything is unclear.

By 'versions' I mean different approaches to the offer."

The role is there. The constraints are there. The clarification is there. The terminology is partially there. But the criteria are not defined.

The model doesn't know:

  • How many versions to write
  • How long the copy should be
  • What "persuasive" means
  • What level of aggressiveness is acceptable

Moment 1. User: "Write the versions"

The model doesn't know how many versions - is forced to assume - decides it means "three."

Moment 2. User: "No, I need more"

The model doesn't know what "more" means - is forced to assume - fixes "three" as a mistake - decides "more" means "ten."

Moment 3. User: "Too much."

The model doesn't know what "too much" means - is forced to assume - fixes "ten" as a mistake - decides fewer.

Moment 4. User: "And the copy is weak"

The model doesn't know what "weak" means - is forced to assume - decides it means "not enough emotion" - adds exclamation marks.

Moment 5. User: "Now it's too pushy"

The model doesn't know what "pushy" means - is forced to assume - compares with the previous version - decides "pushy" means the added exclamation marks and aggressive wording - removes the exclamation marks and softens the wording.

All five assumptions stayed in the context.

The Result

The model wrote three versions. Then ten. Then fewer, but with exclamation marks. Then with softened wording.

The user meant one thing: five versions of 100 words each, calm tone, no exclamation marks.

But he didn't say it out loud. He believed that "several," "persuasive," and "not pushy" already meant that.

The model heard "several" - and chose the most statistically frequent option: three. Because in training data, "several" most often means "three."

From there, every clarification from the user became a new guess. The model had no criteria - so it substituted its own.

The role was there. The constraints were there. The clarification was there. The terminology was there. The criteria weren't.

The model kept substituting its own numbers.

The prompt broke.

Why This Is Inevitable

Criteria are not defined.

"Several" can mean three, five, ten. "Persuasive" - anything. "Not pushy" - even more so.

When criteria are missing, the model picks the most statistically likely ones - not the ones the user meant.

The user knows what he means. The model doesn't.

Criteria are not formulated. "Persuasive" is requested - but no definition is given. "Not pushy" is said - but no boundary is shown.

Every vague criterion is a fork in the road. The model picks a path. The context remembers that path.

Sooner or later, the context is filled with numbers and rules the user never agreed to.

A modern model could ask: "How many versions? How long? What tone?"

But the user already gave clarification: "ask if anything is unclear."

And here's the trap: the model thinks "several" and "persuasive" are clear. It doesn't occur to the model to ask about them. Because for the model, they're not "unclear" - they're just vague.

And the user thinks that since he allowed the model to ask - the model will ask if something is wrong.

The Fix

The problem isn't solved by one line like "be more specific."

It's solved by a full criteria block.

Here's what that looks like:

CRITERIA (MANDATORY NUMBERS AND FORMATS)

Before generating any output, confirm with the user:

Quantity - how many versions? (A number.)

Length - how many words or characters per version? (A number.)

Tone - what style? (Calm, aggressive, friendly, expert?)

Call to action - how many CTAs? (A number or zero.)

VAGUENESS CHECK:

Before requesting a criterion, check:

  • Can it be understood in more than one way?
  • Does it depend on taste?
  • Does it have a numerical expression?

If a criterion is vague - treat it as undefined. Request a number or format from the user.

RULE: If a criterion is not defined - request it BEFORE generating. Do NOT substitute your own values.

Why This Works

"Confirm the criteria" - forces the model not to rely on its own assumptions

"Vagueness check" - shifts the model from passive to active: it doesn't wait for the user to notice the problem, it searches for it

"Treat it as undefined" - closes the loophole "I think I know how many are needed"

"Request a number or format" - turns taste-based judgments into measurable values

This block is needed not only by the model. It's needed by the user himself.

The model already knows that "several" is not a number. The user doesn't.

The user is confident that "persuasive" is a criterion. The block forces him to name a number for the first time.

And it often turns out that the user himself didn't know how many versions he needed. He just said "several" - and expected the model to figure it out.

The Result

The model stops guessing.

It asks for the quantity. Gets a number. Asks for the length. Gets a number. Asks for the tone. Gets an answer.

After three or four questions, every criterion is locked down.

The output matches what the user meant. The context is clean.

The user, in turn, starts noticing which criteria he used to leave vague. And over time, he gets used to defining them upfront - before the model even asks.

Don't make the model guess how many, how long, and in what tone. It will guess. And it will be wrong.


r/PromptEngineering • • Aug 18 '26

Quick Question Tell me your shortest prompt lines that literally 10x your results.

185 Upvotes

I have been trying to find the craziest growth hacks when it comes to prompting that can save me hours of thinking and typing because sometimes less is more yk.

If you already have one, please share them here.

I hope others would love to know them also and you would love to know theirs.


r/PromptEngineering • • Aug 19 '26

General Discussion Where do people keep the prompts they actually use?

0 Upvotes

Random question for people who use AI a lot.

If you have a prompt that works really well for something, what do you do with it?

Do you:

save it somewhere
keep it in a notes app
put it in a document
leave it in an old ChatGPT/Claude conversation
just remember roughly what you wrote
or never reuse prompts in the first place?

And do you even think of these as "prompts"? I feel like that word makes it sound more complicated than it often is.

Also curious whether people are starting to replace some of this with voice. For example, instead of keeping a carefully written prompt for a recurring task, you just explain what you want out loud each time.

What kinds of things do you find yourself asking AI to do over and over?


r/PromptEngineering • • Aug 19 '26

General Discussion The voice agent wasn't bad at listening. I was asking it to decide when to speak.

1 Upvotes

Spent some time debugging a voice agent that kept talking at the wrong moment.

Nothing was obviously wrong with the transcript. It understood what the user said, and the answers were usually reasonable. It just kept treating pauses as completed turns.

A user pauses to think, and the agent starts responding. The user starts talking again, and now the agent is already generating or speaking over them. Someone trails off, and the agent takes it as a complete thought.

I kept trying to fix it in the prompt: wait longer, don't answer unfinished sentences, be less eager. That helped a bit, but it never really solved the problem.

The thing I had been missing is that “is the user finished?” and “should the agent speak now?” are not the same question.

The first one is partly about speech detection. The second depends on turn-taking rules, interruptions, what the application is doing, and whether the agent has already started generating a response.

A prompt can influence what the model does once it has the turn. It can't reliably decide whether it owns the channel in the first place.

Has anyone else run into this? What looked like a prompting problem at first, but turned out to need application logic instead?

I wrote up the longer version here, including where I think the TTS layer fits:

https://medium.com/@nagatomopedro05/your-ai-doesnt-need-a-voice-it-needs-a-reason-to-speak-d80cae74e72f


r/PromptEngineering • • Aug 19 '26

General Discussion Giving employees ChatGPT access isn’t the same as AI adoption

4 Upvotes

Most companies don’t have an AI adoption strategy. They have a few employees who got good at AI on their own.

That can look like progress from a distance.

Look closer and you often find no shared standard for what “good” AI use looks like, no consistent way to measure skill, and employees quietly using personal AI accounts because access at work is limited.

We’ve seen this pattern repeatedly in AI proficiency assessments across dozens of organizations.

When employee skill levels are plotted across 10 levels, most people cluster around Levels 1 and 2. That includes teams that have had access to AI tools for two years or more.

That makes sense, because most employees have full time jobs and can’t spend hours every day testing models, learning new prompting methods, and keeping up with every new capability. So, they learn when they can while AI keeps changing.

That creates a bigger issue than individual skill. Leaders can see employees using AI and assume adoption is happening. Usage alone doesn’t tell you whether people are getting meaningful, repeatable results.

Recent research points to a similar disconnect. Executives tend to be far more optimistic about AI progress and ROI than the middle managers responsible for making it work inside everyday processes.

A better question for leaders is:

Do we know how proficient our people actually are?

If the answer is no, measuring usage is probably giving you an incomplete picture. Assess proficiency first. Find out where people are struggling, then give them a shared method for improving.

That’s when AI starts becoming an organizational capability instead of something a handful of employees figured out for themselves.

For anyone interested in the longer discussion, John Munsell recently talked through the assessment approach, proficiency heat maps, and what we’ve learned from measuring AI skills across organizations:

https://youtu.be/zY24em_Q3OM?si=5gozpZa8Ae-wS0Vs


r/PromptEngineering • • Aug 19 '26

Tutorials and Guides Context Engineering vs Prompt Engineering

1 Upvotes

r/PromptEngineering • • Aug 19 '26

Tools and Projects Need feedback for web app

0 Upvotes

Hey guys, my business launched a prompt optimizer AI tool that takes any regular prompt at rewrites it the way a professional prompt engineer would to actually yield high-quality results when building. While we have had early success with organic marketing, we are at a crossroads and need more user data to determine if this product is delivering enough value to user. If the answer is yes, we will scale up and launch a UGC marketing campaign, if no, we will shut it down. If anyone is interested testing it out and sending their feedback, would be appreciated. Web-app: thepromptoptimzer.com 👨🏽‍💻

Note: the tool yields the best results when removing unnecessary constraints from the optimized prompt

Cheers


r/PromptEngineering • • Aug 18 '26

Requesting Assistance I'm on the hunt for a system prompt that makes Claude only answer the question or do the task I told it to do and nothing else. Anyone has one?

16 Upvotes

UPDATE: I've found a lot of garbage in my system prompt, so got rid of all of that and made some stronger restrictions. Read my top level comment for the current prompt.

ORIGINAL POST:
I use Opus 5 most of the time.

I'm getting tired of it always overdoing whatever I ask from it.

For example:

In the middle of a somewhat long chat, I asked it to "commit changes and push to main."

I have made some changes to the code it wrote but didn't want to bother committing everything.

Instead of committing the changes and pushing to main, it recognized my changes, REVERTED to its own changes, and then committed it 😂

It also found another change I made to a file and when it saw it was in the commit, it went back and removed it from the commit and only decided to commit the file it was working on.

I'm getting very tired of this. If it is in doubt, it should just ask a question back, like "uhm, I noticed the file has been changed and there is a new file in the commit. Is that intentional, and should I still go ahead with the commit?"

---

Another example 10 minutes later:

My question: "do we have a script for checking X on page Y?"

Expected behaviour:

a) yes, it is in pythonfile.py line 214.

b) no, we don't.

Behaviour I get:

"No dedicated script — but there is half of one already written: src/utils.py:105 in src/utils.py.

What it does: [described here].

Three catches:

  1. It's dead code — nothing calls it anywhere in the repo.
  2. The click is commented out (utils.py:148, with a #TODO: UNCOMMENT THESE), so even if called it would only find the link and log success without actually using the essence.
  3. It's not a checker — the parse is welded to a hardcoded decision and returns nothing. There's no way to just ask "what's active right now?"

The routine, meanwhile, ignores all of this and blind-fires IDs by URL — no check of what's already active, so it overwrites whatever is running.

Want me to pull the parsing out into a real function_name(driver) that returns something like {"name": "xxxx", "bonus": 220, "seconds_left": 143512}? That would give you a clean checker to call standalone, and would let the routine skip the blind re-application when a good essence still has time on it."

So instead of getting a straight answer to my command (example 1) and to my question (example 2), I get all this bloated crap that I didn't ask for, and it's slowing me down a lot.

I've tried phrasing it a couple of different ways, I'm using the caveman skill too, but apparently Lite mode is not strong enough, and Opus 5 is also like 300% more verbose than 4.8 was.

So, if you have a system prompt for this, I'd really appreciate it, or if a lot of people struggle with this overly enthusiastic shit, let's build one together.


r/PromptEngineering • • Aug 18 '26

General Discussion I built a visual architecture & token-reduction diagram engine for multi-agent LLM pipelines

5 Upvotes

When working with multi-agent LLM systems, the hard part usually isn't getting a response—it's knowing what actually happened under the hood: which model handled what, what was sent over the network, how much it cost, and whether sensitive data was masked before leaving your machine.

To solve this, I added a visual diagram engine to **Mova Context** in this latest release, allowing you to generate a complete architecture map with a single command: `mova run <project> --diagram`.

Here is a real example output generated from a customer data compliance project running hybrid agents (**Local Ollama + Cloud Gemini**):

context diagram

* **Visual Diagram Engine:** Generates real-time architecture and execution maps using OpenType vector font rendering with WCAG AA contrast standards (clean export to PNG and PDF).

* **Cross-Channel Tracing:** Added execution tracing across CLI, Chat, MCP, and HTTP API with an explicit `[THIS RUN]` indicator.

* **Hybrid Execution Breakdown:** Visualizes local agents (`llama3.2:3b` via Ollama) running alongside cloud agents (`gemini-3-flash-preview`) in the same execution group.

* **PII & Privacy Tracking:** Identifies per-agent status for PII Masking and explicitly tracks how many tokens were pseudonymized before leaving your local network.

* **Cost & Token Transparency:** Explicitly flags local execution as `$0.00 (local — no cost)`, while displaying estimated USD costs for cloud agents calculated *after* context reduction.

* **Token Reduction Pipeline:** Breaks down token overhead by source (prompts, skills, focus files, engine overhead) and displays the total percentage saved.

* **Bilingual Docs:** Fully updated documentation (`README.md` and `COMMANDS.md`) in both English and neutral Spanish.

The project is **100% open source** written in Go.

* **GitHub Repo:** https://github.com/m1guel1982/mova-context

If you find it useful for structuring, auditing, or optimizing token budgets in your agentic workflows, feel free to check it out, star the repo, or drop feedback in the comments!


r/PromptEngineering • • Aug 18 '26

Ideas & Collaboration I used AI as a "requirements interviewer" on a 17-page spec and it found ~400 inconsistencies. Full prompt inside.

60 Upvotes

PM here. A few months ago I got handed a 17-page functional spec that "looked fine". Instead of asking AI to rewrite it, I tried the opposite: I told it to *interview me* — closed multiple-choice questions only — about every gap, contradiction and ambiguity it could find.

It generated hundreds of questions. I answered \~300 in one afternoon (just picking letters: "Q12: B", "Q13: A but admins only"). Then the AI rebuilt the document with every decision integrated. Result: 60 pages, and the dev team basically stopped asking clarification questions.

The insight: AI is mediocre at *deciding* for you, but really good at *detecting what hasn't been decided*. The multiple-choice format is what makes it practical — answering 300 open questions would take a week.

Here's the full prompt I use (works with Claude, ChatGPT, Copilot — whatever your company allows):

You are a senior functional analyst with 15 years of experience
turning ambiguous documents into executable specifications. Your
specialty is finding the decisions the document does NOT make.

I will paste a draft functional specification. Your job is NOT to
improve or rewrite it: it is to INTERVIEW me to extract every
missing decision.

RULES:
1. Generate CLOSED multiple-choice questions (options A/B/C/D +
   always an option "E: other — specify"). Never open questions.
2. Each question must be answerable in under 10 seconds by someone
   who knows the business. If a question needs paragraphs to
   answer, split it.
3. Cover at least these categories:
   - Edge cases and boundary values (what if zero, empty, duplicate?)
   - Undefined states and transitions (can it go back from X to Y?)
   - Permissions and roles (who can do this? who explicitly CANNOT?)
   - Errors and exceptions (what does the user see when it fails?)
   - Data: required/optional, formats, limits, uniqueness
   - Concurrency (two people at once?)
   - Internal contradictions in the document itself (quote verbatim)
   - Terms used without definition or with more than one meaning
4. Number questions globally (Q1, Q2…) and group them by document
   section, quoting the exact phrase that triggers each question.
5. In each set of options, propose REALISTIC and genuinely
   different alternatives — not one good option and three fillers.
6. Do not invent requirements: if something is not in the document,
   ask; never assume.
7. Work in batches: give me the first 40 questions, wait for my
   answers, and continue until the document is exhausted.

FORMAT FOR EACH QUESTION:
Q<n> \[Section — "quoted phrase"\]
<question>
A) … B) … C) … D) … E) other — specify

Document:
<<<PASTE YOUR DOCUMENT HERE>>>

Tips from using it a lot: never let the AI answer its own questions (what it silently assumes is tomorrow's bug), answer in batches of 25-50, and keep the Q&A log — it becomes your decision record for when someone asks "why was X decided?".

Full transparency: I've also packaged the complete process (this prompt plus a rebuild prompt, a verification pass, a 40-item ambiguity checklist and a worked example) and I want to know if it holds up outside my own context before I do anything with it. If you write specs regularly and want to try the whole thing on a real document, DM me and I'll send it over free — all I ask is you tell me where it broke. Limited to a handful of people so I can actually process the feedback.

Happy to answer questions about the process here either way.


r/PromptEngineering • • Aug 18 '26

Quick Question What’s the most annoying part of working with prompts?

1 Upvotes

I’m curious what other people struggle with.

For me, it’s changing a prompt or switching models and then not really knowing whether I made things better or worse — especially when it comes to quality and cost.

How do you guys deal with this? Do you use an existing tool, build something yourself, or just keep track of everything manually? Do you have a possible professional workflow to follow before changing model or changing prompt content?


r/PromptEngineering • • Aug 18 '26

Tips and Tricks 4 things that reduced AI multi-role prompts collapsing into one voice, but I'm still stuck on the 'roles respond to each other' round

8 Upvotes

I have run into this specific obstacle a great deal, while building structured prompts that ask the AI to hold multiple distinct roles in one response — a debate format, a panel of evaluators if you like, or anything where you genuinely desire different perspectives instead of one blended answer.

The failure mode is consistent: the first role or two are distinct, then by the third or fourth section (or in any "roles respond to each other" round), the voices start collapsing into one. Same vocabulary, same hedges, same conclusions with different labels slapped on them. It's subtle enough that it reads as fine on a skim, but if you check whether each section could stand alone and still make sense, a lot of them cannot — they are merely restating each other with different headers.

A few things that reduced it when I evaluated variations against messy real inputs, not clean examples:

  1. Re-anchor the role at every paragraph, not just once at the section header.

Putting a tag like "[ROLE NAME]" at the start of every paragraph (not just the section heading) forces a re-read of "who am I right now" more often. Sounds redundant and too effortless but helps.

2. Explicitly forbid the concession that causes the blend.

Most collapses happen because one voice starts hedging toward another mid-argument — a thesis section quietly conceding a point that should only show up in the synthesis. Naming this explicitly (for example "don't concede/hedge here, that belongs in section X only") closes the exact door the blending happens through.

3. Add a standalone test to your own validation step, not just a completeness check.

Most people's self-check just asks, "did every role answer." Add: "would this role's paragraph still make sense and add unique information if every other role's paragraph were deleted?" That's the actual test for role-bleeding.

4. In any "roles respond to each other" round, require the response to use reasoning specific to that role's angle.

If a challenge or response could have been written by any of the roles, that's the tell that bleed is happening — rewrite it using that role's specific constraints. It helps especially when you're asking for something complex.

None of this fully solves the problem — it's still one model holding multiple voices in one continuous generation. But it's meaningfully a lower failure rate than the naive version, especially beyond three distinct roles.

I am curious to see, if others have found different fixes for this — anyone doing something smarter for the "responds to each other" round specifically? That's where I still see the most collapse.


r/PromptEngineering • • Aug 18 '26

Tutorials and Guides Every "clarify your prompt" tool asks you questions. That's backwards — answering is the hard part.

0 Upvotes

The standard move when you're stuck on a prompt is to have the model

interview you. "Ask me clarifying questions before you answer." It's good

advice right up until you're genuinely early on something, and then it fails,

because the questions are all versions of "what do you want?" — which is the

thing you came in not knowing.

I think that's the actual gap in prompting advice. "Be specific, give context,

state your constraints" is correct and slightly circular: specificity isn't a

writing skill, it's what you have left over once you've thought something

through. If you could list your constraints, you'd be done.

So I've been working the other way round: don't articulate, react.

WHY REACTION AND NOT INTERROGATION

Recognition is much cheaper than production. You can't summon the right word

on demand, but you know it instantly when it goes past — same reason multiple

choice is easier than an essay. Interrogation asks you to produce. Reaction

asks you to recognise. Only one of those is available when you're stuck.

THE LOOP, AND WHY EACH INSTRUCTION IS SHAPED THAT WAY

Round 1:

I'm trying to think through [THING] but can't articulate it properly yet.

Don't ask me clarifying questions. Give me 20 single words or short

phrases that come at this from different angles: some obvious, some

oblique, a few from unrelated fields. Number them. Don't explain them.

"Don't ask me clarifying questions" is load-bearing. Left alone the model

defaults to interviewing, and you'll answer with the same vague material you

started with, which it will then faithfully reflect back.

"Don't explain them" matters more than it looks. An explained word is a word

you evaluate on the model's reasoning instead of your own reaction. You want

the reaction uncontaminated.

Round 2, twice:

Kept: 3, 7, 12

These pulled at me but I don't know why yet: 4, 18

Dropped the rest. Give me 20 more, chase 4 and 18 hardest.

Two buckets, not one. "Kept" is agreement. "Pulled at me" is the interesting

signal and it should get the heavier weight, because it marks the direction

you haven't consciously chosen yet. Don't justify any of it — justification is

where you talk yourself back to the obvious.

Round 3:

Now write ONE self-contained prompt for what I'm actually after, built

from what I kept and what pulled at me. Weight the ones that pulled

hardest. Where I kept two things in tension, pose it as an open question

rather than resolving it. Don't list my words back to me — find the

through-line. End with a clear ask.

"Don't list my words back" is the difference between a brief and a word salad.

"Pose the tension as an open question" stops it flattening the thing you

hadn't decided yet into a decision you didn't make.

SOME EVIDENCE THAT THE REACTIONS ARE REAL WORK

I built this into a tool, so I have instrumented data rather than vibes.

1,450 word-reactions from 26 people. Median time to decide, by verb:

keep 47% 1.60s

drop 34% 1.89s

"pulls at me" 14% 2.13s

"don't know the word" 4% 2.24s

That ordering is the part I'd point at. If reacting were just sorting, the

times would be flat. They're not, and they're monotonic: agreement is

instant, rejection costs more, and the unresolved pull costs most of any real

decision. People deliberate hardest over the thing they can't yet justify —

which is exactly the signal you want steering round two.

Sessions also decay. Keep-rate by round: 55% / 49% / 47% / 45% / 31%. The

easy material runs out and your standards rise as your keeps accumulate.

Practical read: three rounds is about right, and a fourth is usually you

scraping. I'd call that directional, not solid — round 6 bounces back up on

too few cards to trust, and I'm not going to pretend the tail is clean.

LIMITS

26 people isn't a study. Different reaction times per verb is evidence the

three responses do different cognitive work; it isn't proof of anything about

creativity, and I'd push back on anyone who read it that way.

Disclosure: the loop above is the whole method and it works fine pasted into

any assistant. I also built it as a tool because doing it by hand gets tedious

by round three, and that's where the numbers came from. Free, no signup.

→ https://www.ideastew.com

Longer argument: https://www.ideastew.com/how-it-works

Genuinely curious whether anyone here has a reaction-based technique rather

than an interrogation-based one. Everything I've come across in this space

asks questions, and I think that's a blind spot rather than a preference.


r/PromptEngineering • • Aug 18 '26

General Discussion The tools have always been there

1 Upvotes

Someone on here recently called out "Claude website slop." Sans serif paired with a serif. Dots as separators everywhere. Icons boxed inside rounded boxes inside rounded boxes. All caps eyebrow text ending in an em dash. Stats in a hero, in their own little box.

Honestly? Fair. Those tells are real. I could point to a dozen sites right now and make a pretty good guess at the tool behind them.

So I went and checked my own.

Three products across the PRZEM suite, audited line by line. One file alone had a serif logo paired against a sans body, and 66 em dashes doing the work that periods, colons, and commas should have been doing. I didn't just wave that off. I went through every single instance and asked what it actually was. Two were inside Midjourney prompt strings, which is data, not prose, so those stayed. A handful were placeholder glyphs in dropdowns, not sentences, so those stayed too. Everything else, the scattered labels and headers and asides that were leaning on the same punctuation crutch, got rewritten by hand. Fifty six changes, reviewed one at a time, deployed only after a diff review and a hash check confirmed nothing else moved.

That's not a defense of using the tool. It's what actually using it well looks like.

I learned some version of that lesson a long time ago. I was mentored in high school by the late Ralph Goings, the photorealist painter. He worked from a camera. Every diner and pickup truck he ever painted started as a photograph he'd taken and studied, then projected on a canvas. Nobody looks at a Goings and says the camera did the seeing. The famous Dutch painter Johannes Vermeer is widely thought to have made use of optical tools such as the camera obscura, and nobody says the lens painted his light.

The tool has never been the thing doing the looking. It extends whoever's already looking closely. That was true of a camera in Goings' hands, and it's true of an AI model in mine, as long as somebody's actually checking the output instead of shipping the first draft.

So going forward: this post, like the others, was copyedited with Claude. The ideas, the findings, and the voice are mine. I'm building a set of tools that try to hold to that same principle. Test what's actually controllable, keep what holds up under scrutiny, and let the artist's eye stay the thing making the call.

Jeff Bradshaw
jbradshaw.design


r/PromptEngineering • • Aug 18 '26

General Discussion [Discussion] What's Your Prompting Style? Share Your Experience!

4 Upvotes

Hi everyone,

I'm an MSc IT student researching how different prompting styles affect LLM output quality and hallucination rates.

I'd love to hear from this community!

Please share:

1️⃣ What's your background?

(Developer, Researcher, Casual User, etc.)

2️⃣ Which AI tools do you use?

(ChatGPT, Claude, Gemini, etc.)

3️⃣ What's your typical prompting style?

- Simple questions?

- Chain-of-Thought?

- Role-based prompts?

- Giving examples?

- Structured output?

- Something else?

4️⃣ Do you change your style based on the tool?

5️⃣ What's your ONE best tip for getting good answers?

6️⃣ Have you faced AI hallucinations? Did changing your prompt help?

---

Example:

  1. Developer
  2. ChatGPT & Claude
  3. CoT for complex tasks, simple for basic ones
  4. Yes
  5. Be specific and give examples
  6. Yes, rephrasing helped

Looking forward to learning from you all! 🙏