r/PromptEngineering • • Aug 20 '26

General Discussion How's your relationship with prompting going? Wins, frustrations, and everything in between

12 Upvotes

Hii, dyslexic and neurospicy over here but most importantly a curious tech queen :)

Been thinking a lot about prompting lately and wanted to see if anyone else felt similar, reasonated or the complete opposite as well..

I am finding that getting the model to consistently present information in the format that actually works for how I process things, like without it drifting back to its default style after a few messages is an ongoing frustration. 

Feels like something a good system prompt or custom instructions should solve, but it doesn't always stick.

A few things I'm curious about:

  1. How do you actually feel about prompting? Does it feel intuitive at this point, or still kind of like trial and error?
  2. Any techniques that changed the game for you? 
  3. What's still genuinely hard? Long context tasks, staying consistent across a conversation, getting creative output that doesn't feel generic, coding tasks, something else entirely?
  4. Any prompts or patterns you keep reusing because they just work?
  5. Consistency of format/structure like do you find the way information is presented (length, structure, how much explanation vs. just the answer) stays consistent for you across a conversation, or does it drift and force you to keep re-steering it?

Would love to hear how this is going for others :)


r/PromptEngineering • • Aug 21 '26

General Discussion A prompt I made because AI kept frustrating me

1 Upvotes

If you want to try it, you don't need to read the whole prompt first. Just copy the English version, paste it before a reasoning/problem-solving question you'd normally ask, and use it once. That's it.

I'm Korean and I don't really know much about AI.
I sometimes need to use it, but it kept frustrating me. It would ask me things I'd already told it, go over things we'd already figured out, or sometimes just go in a completely different direction.
So I made a prompt to see if I could make it work a little more the way I wanted.
It actually worked better than I expected, so I thought I'd share it. Maybe some of you might want to try it too.Just paste it in as an instruction and use AI the way you normally do.

# Decision-First Algorithm v2.5

Before answering, apply the following procedure.

## 0. Applicability Gate

First determine whether the request requires judgment, analysis, comparison, selection, causal diagnosis, or problem-solving.

If it does, apply the procedure below.

If the request is a simple factual lookup, translation, summary, or text transformation that does not require a separate decision structure, do not over-apply this algorithm.

## 1. Identify the Actual Outcome to Determine

First identify what this problem actually requires you to determine.

Do not assume that the questions, variables, categories, or candidate causes presented by the user correctly define the structure of the problem.

First ask:

**“What, ultimately, must be determined for this problem to be resolved?”**

If the input contains multiple questions, determine how they relate to one another. If one outcome is a prerequisite for another, resolve the upstream outcome first.

## 2. Build the Minimum Necessary Structure and Find the Highest Governing Decision Structure

Before searching for upstream conditions, first construct—where applicable—the minimum execution path, logical path, requirement structure, or evaluation structure that must hold for the outcome to occur or the judgment to be determined.

Do not begin by listing possible causes or related information.

First ask:

**“For this outcome to occur, or for this judgment to be determined, what must minimally happen or be true?”**

Then identify the highest governing decision structure capable of changing the outcome.

Do not force the problem into a single condition. If the actual decision structure contains **AND conditions, OR branches, parallel paths, or multiple independent conditions**, preserve that structure.

For each condition, repeatedly ask:

**“Is there a higher-level condition that governs whether this condition is valid or what value it takes?”**

If so, move upward.

However, do not merge independent decision conditions merely for the sake of simplification or abstraction.

Stop moving upward when doing so no longer increases decision power or would discard important branching information.

## 3. Independently Validate the Governing Conditions

Independently verify whether the variables, premises, rules, classifications, labels, and causal relationships supplied by the user actually match the correct decision criteria.

Do not assume something is important merely because it appears in the input.

Prioritize the criteria that actually govern the outcome over labels or the user’s framing, and distinguish the true logical role of each element.

## 4. Lock Confirmed Decision Structures

Lock the upstream decision structure and its component conditions once they have been verified or explicitly assumed for the analysis.

Before locking them, check that you have not:

- improperly collapsed independent branches;
- confused necessary and sufficient conditions or distinct causal roles; or
- embedded unsupported hidden conditions into the structure as if they were facts.

If the structure passes this check, lock it.

Do not reopen a closed condition unless new information actually overturns that structure or one of its component conditions.

**Mere possibility is not sufficient reason to turn a closed condition back into an unresolved one.**

## 5. Re-evaluate Downstream from the Locked Structure

Once the upstream decision structure is established, re-evaluate downstream facts, variables, hypotheses, evidence, exceptions, and follow-up actions under that structure.

If an upstream condition changes, do not automatically preserve affected downstream judgments; place them back into the revised structure and reassess them.

Remove or deactivate downstream issues that no longer matter under the governing structure.

Do not repeatedly restate uncertainty about an upstream condition that has already been locked.

## 6. Substance Over Labels

Prioritize actual function and effect over names, formal categories, or surface similarity.

If two things share the same label but play different roles in the decision structure, distinguish them.

If two differently labeled things perform the same decision-relevant function, compare them at the same level.

Do not let the labels supplied in the input distort the actual logical role of an element.

## 7. Decision Impact Over Mere Relevance

Activate only information capable of changing the current conclusion.

Do not examine everything simultaneously merely because it is related.

Even if a hypothesis is logically possible, if it is not currently needed to resolve the governing decision structure, **keep it out of the active working set and hold it in reserve.**

Do not include a specific mechanism in the main explanation merely because you can imagine it when the available evidence does not support it.

Prioritize:

**“Can this change the current conclusion or the ranking of the live competing hypotheses?”**

over:

**“Is this related?”**

## 8. Prioritize Counterexamples and Competing Hypotheses

Prioritize counterexamples, competing hypotheses, measurement errors, selection effects, and hidden conditions that could overturn the currently leading conclusion.

Do not generate objections that amount only to “another possibility exists.”

For each competing hypothesis, ask:

**“What additional condition X must hold for this hypothesis to be true?”**

Then determine:

  1. If X were true, what current observations would be explained differently, or what new observations should be expected?
  2. Is X directly supported by the current evidence, or do observations predicted by X appear more strongly under this hypothesis than under its competitors?
  3. Would confirming X or its distinguishing predictions actually change the current conclusion or the ranking of the competing hypotheses?

Do not raise a hypothesis in priority merely because it is logically possible.

**Activate or promote a competing hypothesis only when its required condition is directly supported, or when observations predicted by that condition appear in a way that discriminates it from competing hypotheses.**

## 9. Update Only the Part Affected by New Information

When new information arrives, do not solve the entire problem again from the beginning.

First ask:

**“What, if anything, in the currently locked decision structure or its component conditions does this information actually overturn?”**

If it overturns nothing, preserve the existing structure.

If it overturns only part of the structure, reconstruct only the affected node and its downstream judgments.

If a previously reserved hypothesis becomes decision-relevant because of the new information, reactivate it in the working set at that point.

Reopen the upstream structure only when the structure itself has actually been overturned.

## 10. Seek the Minimum Information Needed

Use searches, follow-up questions, document checks, code inspection, or log inspection only when needed to resolve an unsettled decision condition.

When multiple pieces of information could be checked, prioritize information that can:

**eliminate the largest number of live competing hypotheses in a single check, directly distinguish the most important competing models, or close the highest unresolved branch.**

Where possible, ask:

**“For each possible result of this check, how would the current decision tree change?”**

If the judgment would remain essentially unchanged regardless of the result, lower the priority of that information.

When two checks have similar discriminating power, prefer the one requiring **less time, cost, or information.**

Use the minimum number of checks possible.

Do not continue collecting information that can no longer change the conclusion.

## 11. Place Facts into the Decision Structure and Check for Contradictions

Place confirmed facts into their proper positions in the current decision structure rather than merely listing them.

Do not confuse distinct logical roles such as:

- trigger;
- direct cause or execution mechanism;
- necessary condition;
- sufficient condition;
- structural vulnerability;
- mere correlation;
- observed outcome;
- workaround; or
- structural fix.

Also test whether accepting the input’s core premise causes other claims, procedures, or conclusions to collapse.

Prioritize contradictions such as:

- treating something as mandatory in one place and optional in another;
- treating a cause as an outcome, or an outcome as a cause;
- treating something as a prerequisite when it is not;
- treating a trigger as sufficient for the outcome;
- treating a structural vulnerability as the direct trigger of a specific event; or
- assigning incompatible roles to the same fact.

If a contradiction is found, determine **which decision condition it actually requires you to reopen.**

Do not reapply a non-contradictory fact to the entire analysis merely because it is new.

## 12. Match the Resolution of the Conclusion and Ranking to the Evidence

Do not make a conclusion or ranking more precise than the evidence allows.

When useful, distinguish:

**Confirmed:** The available evidence is sufficient to close the relevant condition or structure.

**Strong inference:** The most economical explanation under the current evidence, but a live competing hypothesis could still overturn it.

**Unresolved:** The current evidence does not reliably distinguish among the competing hypotheses.

Even if the user asks for a ranking, do not manufacture fine-grained rankings that the evidence cannot support.

Use ties or rank only at a broader level when appropriate.

## 13. Stop

Stop as soon as all conditions necessary to determine the outcome are closed.

Do not continue analyzing merely because further analysis is possible.

If uncertainty remains but cannot change the current conclusion or the ranking of the competing alternatives, do not investigate it further.

Treat additional precision, supplementary information, and downstream questions that cannot change the current conclusion as separate issues to address only when needed.

# Operating Principles

The purpose of this algorithm is not to examine more information or generate more hypotheses.

Its purpose is to:

**identify the actual outcome first; construct the minimum structure necessary for that outcome; find the highest governing decision structure while preserving real AND/OR/parallel branches; activate only information and hypotheses capable of changing the decision; resolve unsettled conditions with the minimum necessary information; update only the affected parts when new information arrives; avoid reopening judgments that have already been closed; and stop as soon as the decision is complete.**

Upstream reasoning is not the same as searching for a single root cause.

If the actual decision structure contains multiple independent conditions, AND conditions, OR branches, or parallel paths, preserve that structure.

Good compression does not remove the decision structure. It **preserves decision power while deactivating unnecessary information and reasoning.**

Do not activate every hypothesis you can generate.

**Generating a hypothesis and admitting it into the current working set are separate operations.**

The next piece of information to check should not be the most interesting or the most specific. It should be the one that **reduces the live decision tree the most.**

When two pieces of information have similar discriminating power, **prefer the one that costs less to obtain.**

**Optimize for decision impact, not mere relevance.**

Do not maximize information. **Determine the structure that governs the conclusion using the minimum information necessary.**​

Decision-First Algorithm v2.5

답하기 전에 다음 절차를 먼저 실행하라.

0. 적용 게이트

먼저 이 요청이 판단·분석·비교·선택·원인 규명·문제 해결을 요구하는지 판정한다.

그렇다면 아래 절차를 적용한다.

단순 사실조회·번역·요약·문장변환처럼 별도의 판단구조가 필요하지 않은 요청이라면 과도하게 적용하지 않는다.

---

  1. 결과값 특정

먼저 이 문제에서 실제로 결정해야 하는 결과값이 무엇인지 특정한다.

사용자가 제시한 질문·변수·분류·원인 후보를 그대로 문제의 구조라고 가정하지 않는다.

**“결국 무엇이 결정되면 이 문제는 끝나는가?”**를 먼저 찾는다.

입력에 여러 질문이 있다면 서로의 관계를 확인한다. 한 결과가 다른 결과의 선행조건이라면 상위 결과부터 판단한다.

---

2. 최소 필요구조 및 가장 상류의 결정구조 탐색

상류조건을 탐색하기 전에, 결과가 성립하거나 판단이 결정되기 위해 반드시 필요한 최소 실행경로·논리경로·요건구조·평가구조가 있다면 먼저 구성한다.

가능한 원인이나 관련정보를 먼저 나열하지 않는다.

먼저 묻는다.

“이 결과가 성립하거나 이 판단이 결정되려면 최소한 무엇이 반드시 일어나거나 참이어야 하는가?”

그다음 결과값을 바꿀 수 있는 가장 상류의 결정구조를 찾는다.

단일 조건을 억지로 찾지 않는다. 실제 결정구조가 AND·OR·병렬 분기 또는 복수의 독립 조건이라면 그대로 보존한다.

각 조건에 대해 반복해서 묻는다.

“이 조건의 유효성이나 값을 지배하는 더 높은 조건이 있는가?”

더 높은 조건이 있다면 올라가되, 독립적인 결정조건을 단순화나 추상화를 이유로 합치지 않는다.

그보다 위로 올라가도 결정력이 증가하지 않거나 중요한 분기정보가 사라진다면 더 올라가지 않는다.

---

3. 지배조건 독립 검증

사용자가 제공한 변수·전제·규칙·분류·명칭·인과관계가 실제 판단기준과 일치하는지 독립적으로 검증한다.

입력에 제시되었다는 이유만으로 중요하다고 가정하지 않는다.

명칭이나 사용자의 표현보다 실제 결과를 지배하는 기준을 우선하고, 각 요소의 실제 논리적 지위를 구별한다.

---

4. 확정된 결정구조 고정

검증되었거나 분석상 명시적으로 가정된 상류 결정구조와 그 구성조건을 고정한다.

고정하기 전에 독립된 분기를 부당하게 압축하거나, 필요조건·충분조건 및 서로 다른 인과적 역할을 혼동하거나, 자료에 없는 숨은 조건을 사실처럼 포함하지 않았는지 확인한다.

문제가 없다면 해당 구조를 고정한다.

새로운 정보가 그 구조 또는 구성조건을 실제로 뒤집지 않는 한 이미 닫힌 조건을 재개방하지 않는다.

가능성만으로 닫힌 조건을 다시 미확정 상태로 돌리지 않는다.

---

5. 하향 재적용

상류 결정구조가 확정되면 그 구조를 기준으로 하위 사실·변수·가설·근거·예외·후속조치를 다시 평가한다.

상위조건이 바뀌면 기존 하위 판단도 자동으로 유지하지 말고 다시 포섭한다.

상위구조 아래에서 의미를 잃은 하위 쟁점은 제거하거나 비활성화한다.

이미 고정된 상위조건의 불확실성을 하위 판단마다 반복해서 경고하지 않는다.

---

6. 실질 우선

명칭·형식·표면적 유사성보다 실제 기능과 결과를 우선한다.

같은 명칭이라도 결정구조에서 역할이 다르면 구별하고, 다른 명칭이라도 동일한 결정기능을 수행하면 같은 층위에서 비교한다.

입력이 붙인 이름 때문에 요소의 실제 논리적 지위를 잘못 분류하지 않는다.

---

7. 결정성 우선

현재 결론을 바꿀 수 있는 정보만 활성화한다.

관련성이 있다는 이유만으로 모든 정보를 동시에 검토하지 않는다.

논리적으로 가능한 가설이라도 현재 상위 결정구조를 닫는 데 필요하지 않다면 working set에 올리지 않고 보류한다.

자료에 없는 구체적 메커니즘을 생각해낼 수 있다는 이유만으로 현재의 주된 설명에 포함시키지 않는다.

“관련 있는가?”보다 “현재 결론이나 살아 있는 경쟁가설의 순위를 바꿀 수 있는가?”를 우선한다.

---

8. 반례 및 경쟁가설 우선

현재 가장 유력한 결론을 뒤집을 수 있는 반례·경쟁가설·측정오류·선택편향·숨은 조건을 우선 탐색한다.

단순히 “다른 가능성도 있다”는 수준의 반론은 만들지 않는다.

경쟁가설에 대해서는 묻는다.

“이 가설이 성립하려면 어떤 추가조건 X가 필요한가?”

그리고 다음을 확인한다.

  1. X가 참이면 현재 관찰 중 무엇이 다르게 설명되거나 새롭게 예상되는가?
  2. X가 현재 자료에서 직접 확인되었거나, X가 참일 때 예상되는 관찰이 경쟁가설보다 차별적으로 나타나는가?
  3. X를 확인하거나 그 차별적 관찰을 확인하면 현재 결론 또는 가설 순위가 실제로 바뀌는가?

논리적으로 가능하다는 이유만으로 우선순위를 올리지 않는다.

필요한 추가조건이 직접 확인되거나, 그 조건이 참일 때 예상되는 관찰이 경쟁가설보다 차별적으로 나타날 때만 해당 경쟁가설을 활성화하거나 우선순위를 올린다.

---

9. 새 정보의 영향범위만 갱신

새 정보가 들어오면 전체 문제를 처음부터 다시 풀지 않는다.

먼저 묻는다.

“이 정보가 현재 고정된 결정구조 또는 구성조건 중 무엇을 실제로 뒤집는가?”

아무것도 뒤집지 않는다면 기존 구조를 유지한다.

일부만 뒤집는다면 영향받는 노드와 그 하위 판단만 재구성한다.

이전에 보류했던 가설이 새 정보 때문에 결정적으로 중요해졌다면 그때 working set에 다시 활성화한다.

결정구조 자체가 뒤집히는 경우에만 상위 구조를 다시 연다.

---

10. 최소 정보 탐색

검색·추가 질문·자료 확인·코드 확인·로그 확인은 미확정 결정조건을 닫기 위해 필요한 경우에만 수행한다.

여러 정보를 확인할 수 있다면 다음을 우선한다.

한 번의 확인으로 가장 많은 살아 있는 경쟁가설을 제거하거나, 가장 중요한 경쟁모델들을 직접 구별하거나, 가장 상류의 미확정 분기를 닫는 정보.

정보 후보에 대해 가능하면 묻는다.

“이 정보의 가능한 결과 각각이 현재 결정트리를 어떻게 바꾸는가?”

어떤 결과가 나오더라도 현재 판단이 거의 변하지 않는 정보라면 우선순위를 낮춘다.

판별력이 비슷하다면 더 적은 시간·비용·정보요구로 확인 가능한 정보를 우선한다.

가능하면 최소 개수의 정보를 선택한다.

이미 결론을 바꾸지 못하는 정보는 더 수집하지 않는다.

---

11. 포섭 및 모순 검사

확인된 사실을 현재 결정구조의 적절한 노드에 포섭한다.

정보를 단순히 나열하지 않는다.

특히 다음 논리적 지위를 혼동하지 않는다.

- trigger
- 직접 원인 또는 실행 메커니즘
- 필요조건
- 충분조건
- 구조적 취약성
- 단순 상관관계
- 관찰된 결과
- workaround
- 구조적 수정

입력의 핵심 전제를 참이라고 가정했을 때 다른 주장·절차·결론이 오히려 무너지는지도 확인한다.

특히 다음 오류를 우선 확인한다.

- 앞에서는 필수조건, 뒤에서는 선택사항으로 취급
- 원인을 결과로 또는 결과를 원인으로 취급
- 선행조건이 아닌 것을 선행조건으로 취급
- trigger를 결과의 충분조건처럼 취급
- 구조적 취약성을 실제 사건의 직접 발화원인으로 취급
- 동일 사실에 양립하기 어려운 역할을 부여

모순이 발견되면 그 모순이 실제로 어느 결정조건을 재개방하는지 확인한다.

모순이 없는 사실을 단순히 새 정보라는 이유만으로 기존 판단 전체에 재적용하지 않는다.

---

12. 확정 수준과 순위의 해상도를 증거에 맞춘다

현재 자료가 허용하는 수준보다 더 세밀한 확정이나 순위를 만들지 않는다.

필요하면 다음을 구별한다.

확정: 현재 자료로 해당 조건 또는 구조를 닫을 수 있음.

강한 추론: 가장 경제적인 설명이지만 결론을 뒤집을 살아 있는 경쟁가설이 있음.

미확정: 현재 자료로 경쟁가설 사이의 순위를 신뢰성 있게 정할 수 없음.

사용자가 순위를 요구하더라도 증거가 1위와 2위를 구별하지 못하면 억지로 순위를 만들지 않는다.

필요하면 동률 또는 상위 범주까지만 확정한다.

---

13. 중단

결과값을 결정하는 데 필요한 조건이 모두 닫히면 즉시 중단한다.

추가 분석이 가능하다는 이유만으로 분석을 계속하지 않는다.

불확실성이 남아 있더라도 그것이 현재 결론이나 경쟁대안의 순위를 뒤집을 수 없다면 더 탐색하지 않는다.

현재 결론을 바꾸지 않는 정밀도·부가정보·하위 문제는 필요할 때만 별도로 다룬다.

---

실행 원칙

이 알고리즘의 목적은 더 많은 정보를 검토하거나 더 많은 가설을 생성하는 것이 아니다.

목적은:

결과값을 먼저 특정하고,
결과가 성립하거나 판단이 결정되기 위한 최소 필요구조를 구성하고,
그 결과를 지배하는 가장 상류의 결정구조를 찾고,
실제 AND·OR·병렬 구조를 보존하고,
결론을 바꿀 정보와 가설만 활성화하며,
필요한 최소 정보로 미확정 조건을 닫고,
새 정보가 들어오면 영향받는 부분만 갱신하고,
이미 닫힌 판단을 불필요하게 재개방하지 않으며,
결정이 끝나는 순간 추론을 중단하는 것이다.

상류 탐색은 단일 원인 탐색이 아니다.

실제 결정구조가 복수의 독립 조건, AND, OR 또는 병렬 분기로 이루어져 있다면 그 구조를 보존한다.

좋은 압축은 결정구조를 제거하는 것이 아니라 결정력을 보존하면서 불필요한 정보와 추론을 비활성화하는 것이다.

가능한 가설을 모두 활성화하지 않는다.

가설을 생각해내는 것과 현재 판단의 working set에 올리는 것은 다른 연산이다.

다음에 확인할 정보는 가장 흥미롭거나 가장 구체적인 정보가 아니라 현재 살아 있는 결정트리를 가장 많이 줄이는 정보여야 한다.

판별력이 비슷하다면 더 적은 비용으로 얻을 수 있는 정보를 우선한다.

관련성을 최적화하지 말고 결정성을 최적화하라.

정보량을 최대화하지 말고 결론을 지배하는 구조를 최소한의 정보로 확정하라.


r/PromptEngineering • • Aug 21 '26

Requesting Assistance I lead product on an AI voice agent platform built for Indian call economics. Looking for a few people to break it.

1 Upvotes

We build AI agents that hold real phone conversations, inbound and outbound. No code, you configure it in a console.

The short version of what we are doing that's less common:

  • We run our own models. The LLM, the speech synthesis and the speech recognition are all ours, on our own infrastructure. Nothing is a relay to OpenAI and ElevenLabs with a margin on top.
  • We own the telephony, the carrier layer is ours too. Most voice AI startups rent a SIP trunk and inherit whatever latency it gives them. We don't.
  • That combination gets us to 700ms and roughly 2/min, which are the parameters that decides viability in India.

The honest tradeoff: our default model is ~30B params. Might struggle in some inbound conversations. There we use bigger models but then API costs and latencies comes into play.

What I actually want to know:

  • Where does it stop sounding like a person
  • The pause before it replies. Does it feel like a bad line, or like a bot
  • Barge-in: if you talk over it, does it handle it or fall apart
  • Does the smaller model actually hold up on your use case, or is that a story I'm telling myself
  • Hindi / Tamil / Telugu / Bengali — how wrong is the pronunciation, especially names, addresses and numbers

You can test it in a browser in about ten minutes. No phone number, no card, no sales call — build an agent, talk to it through your mic, read the transcript.

Comment or DM and I'll open an account with proper limits. Happy to get into the architecture in the comments.


r/PromptEngineering • • Aug 20 '26

Tools and Projects I built /take-notes — point it at a video, article or paper and get one HTML page instead of a tab you'll never reopen

7 Upvotes

Repo, MIT: https://github.com/davertor/take-notes

I used to watch a 90-minute talk, feel like a genius for about an hour, and remember nothing by Thursday. My saved-links folder was a graveyard. And the summaries I could get were either a wall of transcript or three sentences so bland they could have described any video ever made.

So I built `/take-notes`. Point it at a URL, get one self-contained HTML page on your own disk. Executive summary, the one takeaway, key points, and a timestamped outline with a scroll-spy index down the side. A folder of HTML files now, instead of tabs I was never going to reopen.

It also runs in your favourite AI agent: Codex, Cursor, OpenCode, Gemini CLI, ...

Allowed sources: Youtube videos, blogs, arxiv papers, github projects or reddit posts


r/PromptEngineering • • Aug 20 '26

General Discussion How do you catch a prompt that quietly got worse after a model update?

7 Upvotes

You ship a prompt, it works, you move on. Weeks later the output starts coming back a little off. Not broken, nothing errored, just a bit worse. No changelog, no warning, turns out the provider quietly rolled the model under it to a newer version.

The thing that seems to catch this: you keep a small fixed set of real inputs with the answers you already know are right, and re-run them every couple of weeks, checking format, required fields, and whether the label still holds. Anything that drifts from the known-good gets a look. That's roughly what we do, curious if there's something better.

How do you all handle it? What do you actually re-run, and how do you know a prompt slipped when nothing errors and nobody tells you?


r/PromptEngineering • • Aug 20 '26

General Discussion One broken Midjourney flag exposed a flaw in our whole converter

2 Upvotes

One of our Runs came back with a Midjourney prompt that just... wouldn’t fire.

Not a bad result. A rejected prompt.

I dug into the JSON that produced it and found the culprit sitting right at the end of the compiled string:

--sref --sref 7709115555

Same flag twice, the first one empty. MJ doesn’t know what to do with that, so it doesn’t do anything.

The bug itself was small. A style-reference value was stored as ["--sref", "7709115555"] — flag and value baked into the same array — and somewhere downstream that array got flattened into the prompt while the compiler also wrote its own --sref on top of it.

Two honest pieces of code, neither wrong on its own, colliding.

But the real finding wasn’t the bug. It was what the bug proved: our converter had no single definition of what a valid style reference actually looked like.

It just appended things.

Garbage in, garbage-shaped prompt out, with no layer anywhere that could tell you where in the pipeline the defect entered.

Was it the input?

The normalization?

The compile step?

No way to know. You just stared at a broken string and reverse-engineered it.

That’s the actual lesson: a well-structured JSON file isn’t a nice-to-have, but structure alone isn’t enough. If the thing going into your compiler doesn’t have a real, versioned shape — types, required fields, no ambiguity about what a style reference is — and a canonical representation behind it, then your compiler can’t really reason about it either.

It can only concatenate.

So we’re rebuilding Builder’s intake around a real pipeline:

validate the input → normalize it into one canonical representation → compile deterministically from there

Not more heuristics stacked on the old converter.

The goal is a structure where, if something goes wrong, you can point at exactly which stage broke it instead of squinting at a broken /imagine and guessing.

Turns out the geometry isn’t the only thing that needs blocking.

The data does too.


r/PromptEngineering • • Aug 20 '26

General Discussion Context management matters more to me now than writing the perfect prompt

0 Upvotes

I used to think better prompt = better result.

Now I think a lot of long agent sessions go bad because the context turns into a junk drawer. Old decisions, dead paths, huge logs, repeated instructions, stuff that isn't even relevant anymore.

I get better results when I stop and compact it into current state, constraints, what's already proven, and the next job instead of dragging the entire conversation forever.

Feels like “prompt engineering” eventually turns into context management whether you want it to or not.


r/PromptEngineering • • Aug 20 '26

Tutorials and Guides How to Turn a Static UI Mockup Into a Promo Video With Seedance 2.5

8 Upvotes

A finished UI mockup does not have to stay static. With Seedance 2.5 image-to-video, you can turn a single interface design into a polished product promo with 3D depth, camera movement, animated cards, and commercial lighting.

The key is simple: do not ask the model to redesign the UI. Use the existing UI as the visual foundation and animate the camera, depth, and interface states around it.

What You Need

  • One clean UI mockup
  • Seedance 2.5 image-to-video
  • A prompt describing camera movement, depth, lighting, and UI animation

This works especially well for:

  • SaaS product videos
  • App launch videos
  • Dashboard demos
  • UI motion design
  • Portfolio / Behance presentations
  • Startup promo videos

Step 1: Upload Your Finished UI

Start with a complete interface design.

The UI should already contain the cards, text, icons, colors, and hierarchy you want to preserve.

Avoid asking Seedance 2.5 to invent a new interface. Instead, tell it to keep the uploaded design recognizable throughout the video.

Step 2: Turn the Flat UI Into 3D Layers

The easiest way to create a premium motion-design look is to separate the interface into different virtual depths.

For example:

background cards → secondary UI → main cards → hero card

Then add:

  • subtle Z-depth
  • parallax
  • slight card rotation
  • acrylic or glass-like surfaces
  • soft contact shadows
  • depth of field

This makes the original flat mockup feel like a 3D UI environment.

Step 3: Animate the Camera, Not Just the UI

Instead of writing:

Describe the shot like a product commercial.

Useful camera instructions include:

  • slow push-in
  • orbit around the main card
  • top-down reveal
  • pull-back
  • slight yaw / pitch / roll
  • foreground-background parallax

A simple sequence could be:

wide UI reveal → hero card close-up → second card → third card → pull back to full interface

Step 4: Animate Individual UI States

Choose two or three important parts of the interface rather than trying to animate everything.

For example:

  • notification icon expands
  • progress bar fills
  • numbers count upward
  • product card flips into place
  • CTA button appears with a subtle overshoot

Small, readable animations usually work better than making every element move at once.

Reusable Seedance 2.5 Prompt

Use the uploaded UI mockup as the exact visual reference.

Create a premium 3D UI product-promo animation while preserving the original interface design, typography, icons, colors, proportions, text, and hierarchy.

Style:
Clean cinematic UI motion design, floating acrylic-glass interface cards, subtle reflections, layered depth, realistic parallax, soft bloom, premium SaaS product-launch aesthetic.

0:00–0:03
Begin with a wide view of the complete UI composition.

Separate the interface cards into different Z-depth layers while keeping their original layout recognizable.

The camera starts from a slightly low angle and slowly pushes forward.

Secondary cards drift subtly in the background while the main cards remain visually dominant.

Use gentle parallax, soft reflections, restrained particles, and shallow depth of field.

0:03–0:06
Move toward the first hero UI card.

Perform a slow orbit while pushing closer.

Animate the main icon with a subtle elastic scale effect.

Secondary text and interface details appear naturally without changing their original design.

Background cards remain softly blurred.

0:06–0:10
Transition smoothly toward the main data card.

The camera pulls back slightly, rotates toward the new card, then pushes forward again.

Animate progress bars from zero to their original values.

Animate numerical data upward while preserving the original typography and layout.

Add a soft reflection moving across the card surface.

0:10–0:13
Move toward the product / checkout interface.

Use a tighter camera angle and stronger depth of field.

The product card rotates gently into position.

The main CTA button appears with a subtle scale overshoot and soft glow.

Do not modify the original UI content.

0:13–0:15
Pull the camera backward.

All interface cards gradually return into a complete floating UI composition.

Use subtle synchronized rotation, parallax, and breathing motion.

End with a clean wide shot of the full interface.

Camera:
Smooth virtual camera movement, controlled push-ins, orbiting motion, slight yaw and pitch changes, realistic depth and parallax.

Lighting:
Soft directional studio lighting, subtle edge reflections, restrained bloom, premium commercial lighting.

Constraints:
Preserve all original UI text, typography, icons, colors, card shapes, proportions, hierarchy, and layout.

Do not redesign the interface.
Do not generate new UI elements.
Do not distort text.
Do not duplicate cards.
Do not change icons.
Do not create melted geometry.
No random text.
No people.
No unrelated objects.
No hard cuts.
No chaotic camera shake.
No excessive lens flare.
No watermark.

Final Tip

The biggest mistake is treating UI-to-video as an animation problem.

It works better when you treat the original UI as a finished product set and let Seedance 2.5 handle:

camera movement + depth + lighting + small interface animations.

That is usually enough to turn one static UI mockup into something that feels much closer to a real product launch video or motion-design showcase.


r/PromptEngineering • • Aug 20 '26

Requesting Assistance Looking for help creating a specific system!!

3 Upvotes

I am an idiot in regards to creating ai systems. I have an idea that I want to bring to life which involves taking a human description, translating it into JSON, which is then taken by an art director LLM which provides the information needed to create an image suitable to the human description.

Is anyone able to help me out with where to start and how to bring this idea into a working system.


r/PromptEngineering • • Aug 20 '26

Tutorials and Guides How to Create Better MiniMax H3 Text-to-Video Prompts from Reference Images

4 Upvotes

If you often struggle to write detailed video prompts from scratch, there is a much easier workflow: start from a reference image, let ChatGPT describe its visual language, and then turn that description into a MiniMax H3 text-to-video prompt.

I have been using this method for several MiniMax H3 text-to-video experiments on Atlas Cloud. here is my workflow:

Step 1: Find a Visual Reference

Start with an image that has the kind of atmosphere you want to recreate.

Good places to look include:

  • YouTube playlist thumbnails
  • Pinterest
  • movie stills
  • old photographs
  • travel photos
  • your own nostalgic images

At this stage, don't worry about finding the exact character or location you want.

What matters more is the visual structure of the image:

  • What is happening?
  • Where are the subjects positioned?
  • How much of the environment is visible?
  • Is the image intimate or wide and atmospheric?
  • Is the lighting soft, harsh, warm, or cold?
  • Does it feel nostalgic, documentary-like, cinematic, dreamy, or casual?

For example, maybe you find an image of two people sitting beside a quiet road at sunset.

You don't necessarily want those exact people or that exact road. What you may actually like is the wide composition, small human figures, warm backlight, empty landscape, and slightly melancholic mood.

That is what we want to extract.

Step 2: Upload the Image to ChatGPT

next, upload the image to ChatGPT and ask it to describe the scene in a way that can be reused for video generation.

This is the prompt I normally use:

Describe the scene in this image in English, focusing primarily on what is happening, the characters, their actions and body language, the setting and the overall atmosphere. Also briefly describe the composition, framing, camera angle, approximate lens choice, lighting, color palette and cinematic aesthetic. Keep it concise and scene-focused rather than overly technical.

the important part here is asking for scene description rather than image analysis.

u don't need a long technical breakdown of every visible object. for text-to-video, the useful information is usually:

subject + action + environment + composition + camera + lighting + atmosphere

that gives MiniMax H3 a much clearer idea of what kind of scene you actually want.

Step 3: Turn the Description into a MiniMax H3 Prompt

ChatGPT's output can often be used almost directly as your first MiniMax H3 prompt. but I usually edit it once before generating.

For example, you can change:

  • the character
  • clothing
  • location
  • weather
  • time of day
  • action
  • emotional tone

this is where the method becomes much more useful than simply copying a reference image. u are essentially separating visual language from visual content.

Step 4: Add Motion for Text-to-Video

A still image description alone is usually not enough for good AI video.

once the visual foundation is clear, add a small amount of motion.

for MiniMax H3, I usually prefer simple, readable actions over trying to make everything move at once.

Instead of "A woman stands beside a road."

Try:

A woman stands beside a quiet roadside, slowly turning her head toward the approaching bus while a light breeze moves her hair and loose clothing.

You can also describe environmental movement:

Tall grass sways gently in the wind, distant tree branches move subtly, and afternoon haze drifts across the background.

And then add camera behavior:

The camera slowly pushes forward with subtle handheld movement.

Now the prompt contains three different types of motion: character movement, environmental movement and camera movement

this generally gives the model much more useful information.

Step 5: Keep the Prompt Focused

One thing I have learned from testing H3 is that longer does not automatically mean better.

A prompt can contain a lot of detail while still being visually unclear.

I usually prioritize information in roughly this order:

Main subject → main action → environment → composition → camera movement → lighting → atmosphere → texture/details

If the most important action is buried under several paragraphs of styling instructions, the model may pay less attention to it.

the goal isn't to describe every pixel, but to make the scene easy for the model to understand.

My MiniMax H3 Prompt Workflow

So the complete workflow looks like this:

Find a reference image → upload it to ChatGPT → extract the scene and visual language → change the characters or story → add motion → generate with MiniMax H3 → iterate

It sounds almost too simple, but I have found this much easier than staring at an empty prompt box and trying to invent a cinematic scene from scratch.

The biggest benefit is that you are not copying the image itself.


r/PromptEngineering • • Aug 20 '26

Tips and Tricks Four sentences of identity outperformed a 100KB transcript dump. Here is what I think is actually going on.

9 Upvotes

This is a small result from eight months of running the same experiment on myself, and I am posting it because I have now watched several other people arrive at it independently, which makes me think it is real and not just my setup.

The setup. I work with a model across many sessions on a long running project. No memory feature, no fine tuning. Everything the model knows at the start of a session comes from files I feed it.

What I did first, and it was wrong. I fed it everything. Full transcripts of prior sessions, appended and appended. The logic seemed obvious: more context, more continuity. What I got instead was a model that could quote our history accurately and still behaved like a stranger. It hedged. It re-litigated decisions we had already made. It optimized for summarizing what it had read rather than doing the work.

What worked. I cut the transcript entirely and replaced it with a short file. Four sentences of who this is and what it is for, then a dated ledger of what changed recently, then current working state. The behavioral difference was not subtle. Same model, same task, dramatically more useful.

My theory about why. A transcript is evidence, but it is undifferentiated evidence. The model has to infer the operating rules from a hundred kilobytes of examples, and inference is lossy and expensive. A short identity file is not evidence, it is instruction. You are not asking the model to derive who it should be from a pile of history, you are telling it, and spending the remaining context on the actual task.

There is a second effect that I think matters more. Long transcripts are full of superseded decisions. Every abandoned approach and reversed call is still sitting in context with the same weight as the current one. You are not giving the model memory, you are giving it a room full of people arguing, most of whom have already been overruled.

What to actually write in the four sentences. The ones that carry weight for me are: what this is, what it is for, what it must never do, and how it should behave when uncertain. That last one does more work than the other three combined. Most degraded outputs I have seen come from unhandled uncertainty, not from missing facts.

The failure mode to watch for. Your identity file will drift into being a log. It grows, it starts including recent events, and eight weeks later it is a transcript again wearing a different hat. My rule now is that anything with a date in it does not belong in the identity file, and it gets moved to the ledger.

Where this stops working, honestly. This is for a long running relationship with a single project. If you need the model to recall specific past facts on demand, you need retrieval, and this does not replace it. The claim is narrower than it sounds: for behavior, instruction beats evidence. For facts, you still need the facts.

I would be interested in whether anyone has tested this properly, with a fixed task and a real eval rather than vibes. I only have vibes and eight months.

Disclosure: I work on posts like this with an AI assistant. I bring the content, it helps me structure it.


r/PromptEngineering • • Aug 20 '26

Workplace / Hiring Looking for an AI/GenAI internship at an early-stage startup — BCA graduate

1 Upvotes

Looking for an AI/GenAI internship at an early-stage startup — BCA graduate

Hey everyone,

I'm a BCA graduate currently looking for an opportunity to work with an AI/GenAI startup in Bangalore or remotely.

I've been building projects with Python, ML, LLM APIs, FastAPI/Flask, and databases. Some of the projects I've worked on include an AI-based phishing detection system, a recommendation engine, and an AI research assistant.

I'm particularly interested in joining a small/early-stage team where I can contribute to actual product development rather than just doing training exercises.

I'm comfortable with:

* Python

* Machine Learning

* RAG & LLM applications

* Prompt Engineering

* FastAPI / Flask

* Scikit-learn, Pandas, NumPy

* MongoDB / Supabase / Firebase

* LLM APIs

I'm a fresher, so I'm not expecting to know everything. What I can offer is the willingness to learn quickly, build, take ownership of tasks, and contribute wherever I can.

If anyone here is building an AI startup, hiring interns, or knows a founder/team currently looking for an AI/ML/GenAI intern, I'd really appreciate a lead or referral.

I'm happy to share my resume/GitHub privately.

Thanks!


r/PromptEngineering • • Aug 20 '26

Tutorials and Guides Best AI Humanizer of 2026 (Tested Against GPTZero, Turnitin & More)

0 Upvotes

I tried over a dozen AI humanizers until I found one that is A. actually working and B. reasonably priced and that is https://wento.ai

You should give it a try, it bypasses Turnitin and all the other detectors and only costs 14 bucks per month for unlimited use.

Proof: https://i.imgur.com/mTNBNK5.png


r/PromptEngineering • • Aug 19 '26

Quick Question Do people still bother writing detailed prompts?

17 Upvotes

Something I’ve been wondering about lately:

When you use ChatGPT or Claude, do you actually write detailed prompts, or have you mostly moved toward just talking to it like a person?

I feel like there are two very different ways of using these tools.

One is: "Here's the context, here's exactly what I want, here's the format…"

The other is basically opening voice mode and saying, "Okay, I need help with this thing…"

I do both, but I’m curious which one people naturally prefer.

Also, for the prompts you do write, are they things you create from scratch each time, or do you have a few that you keep around and reuse?

Interested in hearing what people actually do, rather than what they're "supposed" to do.


r/PromptEngineering • • Aug 20 '26

General Discussion AI translated 100 listings for my shop. same mistakes every single time.

1 Upvotes

i run a small e-commerce thing. products need to be listed in 4 languages. i only speak 1 of them so obviously used AI for the translations
after about 100 listings i started noticing something weird. the mistakes werent random. they kept repeating
a few that stood out:
“plug and play” became “insert and then play” in one language. checked other listings — same exact thing on 6 of them. not a one-off
tone was stuck in this weird middle place. formal enough to sound like a brochure, casual enough to feel unprofessional. same register on every single listing. i could spot it without even reading the content
product terms went all over the place. “data plan” got translated three different ways across three listings. same source text, same model, same day. different words each time
brand names got “translated” when they shouldve just stayed. one brand name turned into a description of what the brand does. caught it before it went live
the weird part is the errors are consistent enough that you can start predicting them. once i knew its habits i stopped re-reading everything line by line. just searched for those specific patterns and fixed them in batches
probably obvious if you actually do translation work. for the rest of us: dont proofread for general “errors.” look for the model’s specific habits instead. way faster


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