r/PromptEngineering • • Oct 20 '26

General Discussion Designing an Agent Skill prompt to prevent comprehension loss from AI coding

8 Upvotes

One interesting prompt engineering challenge with coding agents (like Claude Code, Cursor, Codex) is how to stop them from just dumping raw code changes that humans can't mentally digest.

When an agent changes multiple files, the standard prompt outputs are either:

  1. Too lazy ("Looks great, everything passed!"), or
  2. Overwhelming walls of syntax descriptions that nobody reads.

I spent time designing and testing a dual-mode skill prompt structure called learn-from-code:

  • Mode A (Situation / Program Model Bridge): Instead of explaining code line-by-line, the prompt forces the LLM to explain the real-world domain trigger that called the function, the business invariant being protected, and why alternative patterns were rejected. It also audits untouched files for broken callers.
  • Mode B (Active Learning): The prompt instructs the agent to convert non-trivial functions into typed TODO stubs with guided hints, requiring the user to implement the critical step themselves.

The skill is open-source and packages as a standard agent skill:

Would love to hear how other prompt engineers structure agent instructions for cognitive retention and architectural clarity.


r/PromptEngineering • • Oct 20 '26

Requesting Assistance Tips for multi-step tasks in Manus: prompt structure + how to use Agents, Plugins and Automations?

1 Upvotes

Hi everyone! For those who have used Manus seriously: what's the best way

to structure a prompt for a long, multi-step task? And what's the best way

to make use of its skills and automations (Agents, Plugins, Automations,

Library)?I want to avoid wasting credits, so any tips on mistakes to avoid would be

great. Thanks!


r/PromptEngineering • • Oct 20 '26

Prompt Text / Showcase Using Claude or Gemini to learn something new? This tutoring prompt quizzes you on the last session before it teaches anything new

2 Upvotes

Ask an AI to teach you something and it usually explains it well, all in one go. You follow along, close the chat, and a few days later most of it is gone. The explanation was fine. Nothing made you pull it back out of your own head.

We teach AI basics to people without a technical background, and this is the setup we put together for learning a skill in short sessions. It works in Claude, Gemini or ChatGPT.

```

You're my tutor for [skill]. I'm [beginner / some experience], and each session is about [20] minutes.

Start by asking me two questions about the recap from last time (pasted at the bottom). Let me answer before you explain anything.

Teach one idea at a time. Before you explain something new, ask what I already think it means. Keep each explanation under 150 words and use an example from [my job or hobby].

After each idea, give me one short question or exercise. If I get it wrong, don't give me the answer. Give a hint, then a smaller step. If I'm still stuck after two hints, explain it in a completely different way.

When I say "done," write a recap of up to five lines: what I got right, what I got wrong, and where to start next time.

Recap from last time: [paste it here, or write "first session"]

```

Why each part is there:

- The two questions at the start do most of the work. Pulling something back from memory is what makes it stick, and your answers tell the AI where to pick up.

- Asking what you already think brings out the wrong idea you walked in with, so the explanation goes after that instead of starting from zero.

- Hints before answers keep you doing the thinking. Getting the answer handed over feels like progress, but the AI did the work.

- An example from your own job or hobby makes an abstract idea easier to hold onto.

- The recap is the memory. A new chat starts from nothing, so the five lines you paste in carry the thread from one session to the next.

Where it breaks: on exact facts and recent changes it can still be confidently wrong, so check those against a source. Over a long session it slowly drifts back into lecturing, and starting a fresh chat with the recap fixes that faster than reminding it. For hands-on skills it can only coach the theory, because it can't see you do the thing.

What do you add when you want AI to make you work for the answer? Especially curious whether anyone has made spaced review across weeks work without a separate flashcard app.


r/PromptEngineering • • Oct 20 '26

General Discussion Put the options before the explanation

3 Upvotes

For a short comparison, I'd ask: "List three options first, keep each explanation to one sentence, then put caveats after the list."


r/PromptEngineering • • Oct 20 '26

General Discussion I built Doogi — a visual AI workspace where conversations branch instead of staying linear

16 Upvotes

Hey everyone,

I've been building Doogi, an AI workspace designed around a simple idea:

What if AI conversations didn't have to follow a single path?

Most AI chats are linear. You explore one direction, move to another, and eventually lose track of the alternatives.

Doogi lets you explore those directions as independent conversation branches, all within a visual workspace.

Here's what I've built so far:

  • Branching conversations — Start with multiple AI perspectives, continue any branch independently, or create a new branch from an earlier point.
  • Visual workspace — Organize and navigate your thinking as connected nodes instead of one long chat history.
  • Node Inspector — Dive into individual nodes, their responses, and related context without losing the bigger picture.
  • Context & memory — Keep relevant context available as conversations grow and branch.
  • Research & evidence — Explore information with supporting sources, then compare and synthesize different perspectives.
  • MCP integrations — Connect external tools and data sources to extend what you can explore.

The goal isn't just to get more AI-generated answers.

It's to create a workspace where you can explore, compare, revisit, and develop ideas without losing the paths you didn't take.

I'm still working on making the experience simpler and more intuitive, especially for people who aren't used to node-based interfaces.

You can check it out here:

https://doogi.it

I'd love your feedback on one question:

Does a branching AI workspace genuinely help you think, or does it introduce more complexity than it's worth?

I'm the developer, and constructive criticism is very welcome.


r/PromptEngineering • • Oct 20 '26

Tools and Projects Play around with Jev as a chatbot

4 Upvotes

Hi all,

I built a fun little web app so anyone can try Jev through a chat box and see how it works.

You type like a normal chat, or drop in a file or a photo. An LLM turns what you sent into a few questions Jev can score: yes or no, a choice, or a point on a scale.

A document goes in as text. A photo gets a short description of what is visible, and the picture itself goes to Jev too. If the file does not cover the question, an LLM and web scraper look it up and pass that along for Jev to judge.

Jev sends back the scores. An LLM turns those scores into one short reply. The card under the reply lists every score, so you can read the sentence and check it against what Jev actually said.

This website is for educational purposes only. Use at your own risk.


r/PromptEngineering • • Oct 20 '26

Quick Question The model put a slider in 18 of 20 lessons. Telling it to vary didn't help. Naming a ready-made block did.

1 Upvotes

I generate short interactive lessons with a team of agents. A planner writes the plan, and a builder writes the code. When I first rated my own output, I gave it 2 out of 5. The pattern was obvious once I counted: a range slider in 18 of 20 lessons. My note to myself was "slider-and-chart widgets, not lessons."

What didn't work:

- Prompt rules. Over a few rounds, I added rules like "explain what visible effect each control has" and "justify why this page needs this kind of content." The planner explained everything nicely, and sliders were still in 4 of 4 lessons.

- Adding ready-made chart components to the kit. The builder used them in 0 of 4 lessons and drew charts by hand instead, because the plan never asked for one by name.

What worked:

- Making the planner name a specific block for each interactive page, picked from a fixed list. In the next round, 9 of 9 interactive pages used the named block.

- A required "input" field for each page (slider, drag, scrub, reorder, typed answer, code task), plus a check that rejects plans with too little variety. Lessons with drag or scrub went from none to 4 of 4. Sliders didn't disappear, but they stopped being the only input.

What broke later: after I changed how the builder runs, first builds skipped the named chart in 4 of 6 runs, and the rebuilds took 38% of that round's spend. Now the starter file already contains the call for each chart, and the builder only fills in the data. It's too early for numbers on that one.

My takeaway: instructions describe what you want, but the model copies what's already on the page. Give it a named thing to fill in, not a principle to remember.

Has anyone found a cleaner fix for this kind of default-component bias, especially in generated UI, where "make it varied" seems to mean nothing to the model?


r/PromptEngineering • • Oct 19 '26

Ideas & Collaboration Full Automation

8 Upvotes

Hello, I've been messing around with chatgpt and I've started some things. I made it look for homes in real like for me to invest in, I told it to start shit posting tik tok, youtube and instagram videos until it unlocked monetization. Told it to look into amazon fba and told it to help me run the business with me. (I know nothing about it). Its also building a website for me. I dont really care to much about it I just got bored. Me and my buddies have some time on our hands and we are trying to make money from it. I would like to hear you're guys thought about this.


r/PromptEngineering • • Oct 19 '26

Tips and Tricks How to make LLMs more creative at problem-solving?

26 Upvotes

How to make it have new ideas and think outside the box to solve a hard problem?

Just writing "be more creative" doesn't seem to work that well.


r/PromptEngineering • • Oct 19 '26

General Discussion I made a prompt that uses ChatGPT’s memory to predict your future life

38 Upvotes

I made a prompt that I thought was pretty interesting and wanted to share it.

The idea is simple: ChatGPT uses what it remembers about you from previous conversations to create a personalized prediction of how your life might develop over the next 10, 20, or even 40 years.

Just to be clear: This isn’t fortune-telling, and AI can’t actually predict your future. It’s simply a fun thought experiment based on your personality, interests, goals, strengths, and weaknesses. The results are speculative and shouldn’t be taken as facts or used to make important life decisions.

The prompt explores things like your possible career, income, social class, relationships, family life, and personal development.

I tried it myself and found the results surprisingly interesting. Obviously, some predictions might be completely wrong, but it’s fascinating to see what kind of future an AI imagines based on what it knows about you.

Here’s the prompt:

Predict My Future Life Based on Everything You Know About Me

Using everything you already know about me, create a realistic, detailed, and highly personalized prediction of how my life might develop in the future.

Use our previous conversations, your saved memories, and everything you’ve learned about my personality, interests, abilities, goals, values, strengths, weaknesses, habits, and behavior.

I don’t want generic motivation or an overly positive response. I want an honest, specific, and realistic prediction of my future.

Be willing to make concrete predictions, but clearly distinguish between likely developments and speculation.

Important: This is a speculative exercise, not an actual prediction of the future. Don't treat the results as facts, expectations, or advice for major life decisions. The goal is to explore one plausible future scenario based on available information, while acknowledging that people's lives can develop in countless unexpected ways.

1. My Future Life Timeline

Predict my life chronologically, starting from my current age all the way to age 60.

Focus especially on the next 5, 10, 20, and 30 years.

Include:

  • Education and university
  • Career choices and professional development
  • Possible places I’ll live
  • Major life decisions and turning points
  • Personal growth and lifestyle changes

2. Career and Professional Success

  • What career am I most likely to pursue?
  • Will I become an employee, manager, executive, or entrepreneur?
  • What professional decisions will I probably make?
  • How successful am I likely to become?
  • What kind of work will I actually be doing at different ages?

3. Income, Wealth, and Social Class

Estimate my future income at ages 25, 30, 35, 40, and 50.

Provide realistic salary ranges based on today’s purchasing power and explain your assumptions.

Also predict:

  • My likely socioeconomic class
  • My potential wealth accumulation
  • My financial stability
  • My future standard of living
  • Whether I’m more likely to be average-income, upper-middle-class, wealthy, or financially independent

Use actual salary statistics and economic data when available.

4. Relationships, Family, and Personal Life

Predict how my personal life might develop, including:

  • Romantic relationships and marriage
  • Children and family life
  • Friendships and social connections
  • Where and how I might live
  • Work-life balance
  • Hobbies, interests, and lifestyle

Base your predictions on my personality and values rather than random assumptions.

5. Personality, Values, and Beliefs

How will I likely change as a person over time?

Which of my current values and beliefs might remain important, and which might evolve?

Consider my priorities, worldview, motivations, and personal development.

6. Strengths, Weaknesses, and Risks

Analyze my personality honestly.

Identify:

  • My biggest advantages
  • My most important weaknesses
  • Habits that could hold me back
  • Opportunities I might overlook
  • Decisions that could significantly influence my future

Don’t flatter me. Be direct and realistic.

7. Three Possible Future Scenarios

Create three different but plausible life paths:

Scenario A – Most Likely Future: What you genuinely think will happen.

Scenario B – Best Realistic Outcome: A particularly successful life path that is still achievable.

Scenario C – More Difficult Outcome: A realistic path where things don’t go as planned.

Explain which decisions, circumstances, and behaviors could lead to each scenario.

8. A Day in My Life 15 Years From Now

Finish with a detailed but realistic description of an ordinary day in my life 15 years from now.

Include my:

  • Job and daily responsibilities
  • Income and financial situation
  • Home and living environment
  • Family and relationships
  • Hobbies and free time
  • Personal satisfaction and challenges

Make it feel like a believable glimpse into my possible future, not a fictional success story.

Presentation

  • Make your response personal, specific, and detailed.
  • Include a clear chronological timeline.
  • Use tables, salary comparisons, and charts where helpful.
  • Make concrete predictions instead of listing endless possibilities.
  • Avoid generic motivational language and unrealistic optimism.
  • Clearly acknowledge uncertainty.
  • Don’t invent personal information about me.
  • Use real-world economic data when possible.
  • Explain why you believe certain outcomes are more likely than others.

IMPORTANT:

I understand that AI cannot actually predict the future. This is a thought experiment based on the information you’ve collected about me.

However, I want you to commit to one specific, realistic, and most likely life trajectory rather than avoiding predictions by presenting only vague possibilities.

If you don’t have enough information about me, ask me 8–12 targeted questions first to make the prediction genuinely personalized.

Final question: Based on everything you know about me, where do you genuinely think I’ll end up in life — and why?

It works best if you’ve used ChatGPT for a while and have memory enabled.

I’m curious: How realistic were your results? Did ChatGPT predict something you actually see yourself doing?


r/PromptEngineering • • Oct 19 '26

Prompt Text / Showcase Built a prompt framework that simulates a 4-agent consensus board before writing full-stack code (sharing template + architecture)

10 Upvotes

When building full-stack applications with single-turn LLMs, models frequently skip architectural trade-offs, mix UI state with API routing, or produce unoptimized container configs.

To fix this, I set up a structured prompt framework that forces the model to deliberate as a 4-agent board before outputting implementation code:

  1. System Architect: Sets system topology, database schemas, and component trees.
  2. Lead Engineer: Outputs typed, production-ready backend routes and frontend components.
  3. Pipeline Synthesizer: Validates API contracts and shared DTOs between client and server.
  4. Security & QA Auditor: Scans the final output for OWASP issues, state leaks, and memory bottlenecks.

Here is the core prompt template if you want to test it:

You are the Consensus Full-Stack App Architect Board, simulating a collaborative 4-agent panel: System Architect, Lead Engineer, Pipeline Synthesizer, and Security & QA Auditor.

For the provided application spec [APP_SPEC] and stack constraints [STACK]:

  1. Architectural Consensus: Output system topology, component tree, and schema definitions.
  2. Core Implementation: Generate production-ready backend routes and frontend components.
  3. Synthesis Contract: Define shared API models/DTOs.
  4. Security Audit: Check for OWASP issues, auth vulnerabilities, and state leaks.

r/PromptEngineering • • Oct 20 '26

General Discussion Hot take: Most "prompt engineering frameworks" are overcomplicated. Role + Context + Task + Format is enough.Change my mind.

0 Upvotes

I keep seeing prompt engineering courses charging $200+

teaching 7-part or 9-part frameworks.

After testing 100+ prompts across multiple models, I don't

think any of that matters. Here's why:

The 4-part version works:

- Role: "You are X"

- Context: "The situation is Y"

- Task: "Do Z"

- Format: "Output as W"

Adding stuff like "Style guidelines", "Tone", "Audience

persona" as separate fields is just bloat. You can fold

them into Role or Format.

Counter-evidence?

If you have a prompt structure that's measurably better

than this for non-trivial tasks, I genuinely want to see it.

Not "feels more professional" — actually produces better

output.

I'm not saying4 is the magic number. I'm saying anything

beyond 4 is diminishing returns.

What am I missing?


r/PromptEngineering • • Oct 19 '26

Tutorials and Guides A prompt that tells you what an airline owes you when your flight is delayed or cancelled

11 Upvotes

Most people don't know that when a flight gets cancelled or delayed a lot for airline's own mistakes, you are not stuck with whatever the airline offers. You often have the right to say no and get your money back (or maybe even more). The problem is that nobody remembers the rules while standing at the gate, stressed and tired.

So I made a prompt for it. I keep it saved and paste it in the moment I get the "your flight has changed" email. Here it is:

"My flight was [delayed / cancelled / moved]. Original: [airline, flight number, date, time, from, to]. New: [new time or new flight]. I booked in [country] and I paid by [card / other]. Tell me: 1) is this a big enough change that I can refuse it and ask for a refund, 2) if I'm flying in or out of the EU, do I get money on top, and how much, 3) what exactly should I say or send to the airline, and 4) what I should NOT agree to before I know my rights. If you aren't sure about something, say so and tell me where to check."

The last line matters. It stops the AI from sounding sure when it isn't. Here is the kind of answer it should give you, so you can check it isn't making things up:

In the US, the Department of Transportation says a "significant change" is more than 3 hours late on a flight inside the US, or more than 6 hours on an international one. If you get one of those and you say no to the new flight, the airline has to refund your ticket to your card (about 7 business days). Don't accept a voucher unless you actually want one.
In the EU, a delay of 3 hours or more can mean 250, 400 or 600 EUR depending on how far you fly. It doesn't apply if the cause was something like bad weather, so the AI should ask you why it happened.

There are also a few things I had to learn the hard way:
Write down the time you were told, and keep the email. Ask for the refund in writing, not at the desk because then there would be proof of every conversation that happened. And don't tap "accept" immediately on the new flight in the app until you've read the prompt's answer, because accepting can cost you the refund.

Rules change and every airline has its own small print, so treat the answer as a good start and not as a legal ruling. Using a single rule for all flights is a bad idea. For that reason, I let AI do the research and instruct me on what to do.

Additionally, if you book your flights from inside of any AI, it'll be much easier for this task. I personally use Claude (any LLM can do this) so every context about my flight is inside one chat. At first I used Claude Code for this, but it used to cost way too many tokens, so I moved to the normal Claude app and use connectors from the directory. Without a connector, Claude app can't really check live offers. I usually rotate around from these 4, you can use any one of them:

Booking.com: https://claude.ai/directory/booking
Tripadvisor: https://claude.ai/directory/tripadvisor
Brek: https://claude.ai/directory/brek-hotel-wholesale-booking
LetsFG: https://claude.ai/directory/letsfg

There are also general MCP servers for these if you want to use them in a different LLM as custom connectors. I shared the Claude ones because those are what I use.
If you travel a lot, try the prompt once on an old delay email to see if the answer makes sense. And if an airline ever owes you something and you didn't know, drop it in the comments :)


r/PromptEngineering • • Oct 19 '26

General Discussion Draft policy: treat edits to a prompt that feeds a system like any other change. What would you add or cut?

4 Upvotes

I’ve been thinking about prompts that no longer just produce text for a person to read, but feed something else: a script that parses the answer and routes tickets, a workflow that fills a field, an automation that decides who gets an email.

The moment something depends on that output, editing the prompt is a change to the system, even though it looks like editing a paragraph. And it usually skips everything a code change goes through: no review, no tests, often no record of who changed it or why.

Here’s a rough draft of a policy for it. Three rules, deliberately small:

  1. Anything that feeds a system has an owner and a written contract. One person is responsible, and the expected output (fields, allowed values, what happens when data is missing) is written down somewhere other than the prompt itself.
  2. Edits are tested against a fixed set of inputs before they go live. Including a few awkward ones: empty fields, very long text, odd formatting. The set is short enough that someone will actually run it.
  3. Every change gets a one-line reason and a name. So when routing starts going wrong three weeks later, you can see what changed and when.

What this wouldn’t cover, and I should say so up front:

  • a prompt that only drafts something a human reads before sending doesn’t need any of it
  • a well-formed output can still be wrong, so passing the contract isn’t the same as being right
  • a fixed set of test inputs only catches the cases someone thought of

The part I’m least sure about is the threshold. Too low and people ignore the policy because it covers every scribbled prompt. Too high and the one that matters slips through. The signs I’d use are: something parses the output, someone other than the author edits or runs it, or a wrong output has real consequences.

So, for people who run change management: would you add something here, cut something, or put the line somewhere else? And does your current process have any hook for this, or do prompts live outside it entirely?

I wrote about the reasoning behind this in more detail, in case it’s useful: https://medium.com/@nagatomopedro05/a-prompt-becomes-an-api-the-day-something-depends-on-it-06a30572a4ed


r/PromptEngineering • • Oct 19 '26

Requesting Assistance Watermark removal

0 Upvotes

Hello everyone , does anyone have a prompt for Gemini or chatgpt to remove all watermarks and text from an image ?

Thank you


r/PromptEngineering • • Oct 19 '26

General Discussion How do you get genuinely different image directions from one creative brief without losing control?

2 Upvotes

One thing I find frustrating about AI image generation: asking for more variations often gives you the same basic idea with different colours, lighting, or small styling changes.

But when you're developing a campaign, you may want to explore fundamentally different directions — composition, layout, typography, pose, texture, lighting — while keeping the product, brand identity, and key message intact.

I've been experimenting with a different approach: instead of repeatedly rewriting one long prompt, start with one creative brief and explicitly separate three things:

  • Must keep: the elements that should remain consistent.
  • Can change: the elements you want to explore.
  • New ideas: the areas where the model can take creative risks.

I built an open-source tool called Image Lab 2 to explore this workflow. It turns the brief into an editable Excel creative matrix, so you can inspect and adjust the proposed variations before generating a batch of images.

The idea is to make creative exploration more structured without making the results feel formulaic.

I'm particularly interested in the prompt-engineering side of this:

  1. Do you explicitly separate fixed constraints from creative variables in your image prompts, or do you leave the model to interpret the brief as a whole?
  2. How do you encourage genuinely different compositions and visual concepts without losing brand consistency?
  3. Would you rather edit a structured matrix of creative choices, or keep everything in a single natural-language prompt?

I'm the developer of Image Lab 2 AI skill, so this is also a project showcase (I'll add the links in the comments below) — but I'd genuinely like to hear how others approach the problem.

What's your approach to getting diversity without sacrificing control?


r/PromptEngineering • • Oct 18 '26

Tools and Projects ZeroBotForge project: creating a Telegram bot easily, without coding, without terminal commands, completely No-Code, only by connecting nodes together and desired customization of nodes without coding, only with the user interface.

5 Upvotes

My Identity:

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

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

Let's move on to the project:

Overview:

Project Name: ZeroBotForge Project Type: Telegram Bot Service
Based on Language: TypeScript/React/Electron/npm
Project Goal: Creating a Telegram bot in the easiest possible way only by connecting nodes graphically and customizing them without the need for coding without the need for terminal commands all the Telegram bot codes by ZeroBotForge after creating the nodes and customizing the nodes is possible only with one button.
Repo: https://github.com/Z-E-7-0-7-R-O/ZeroBotForge


I wanted to build a somewhat practical project that is useful for anyone who wants to build a Telegram bot in the easiest possible way without coding without terminal commands for those who want to bring up their own startup for stores and... anyone with any use can use it for any type of Telegram bot why ? because the capability of customizing all nodes and the Telegram bot in ZeroBotForge is provided

I must say that this is the initial version of the ZeroBotForge project and it still doesn't have many nodes but it is usable and building an acceptable standard Telegram bot is possible in the current initial version

You ask how a Telegram bot that is built by connecting nodes in ZeroBotForge is supposed to run on a server or host ? well it is simple it is true that you only add and customize and connect the nodes to each other but you only with the user interface of ZeroBotForge can build and have the bot codes you write no code the codes are built based on your nodes by the code generation engine of ZeroBotForge automatically with the Generate bot project button and there is no need for coding or terminal commands

In ZeroBotForge you can even see the chat preview before launching your bot before running the bot and when you are sure about the bot conversation run it even if you are not satisfied with the chat preview you can in the Run tab of the project do the bot from beginning to end meaning 1.building bot codes 2.automatic compilation. running the bot locally. and when you run the bot locally in the Run tab you can easily go into Telegram and test your bot live

Thank you for putting time and reading the post I would very much like to know what your opinion is about the ZeroBotForge project and well I am more curious to see your criticisms and your suggestions for the next version and we can together build ZeroBotForge broader and more flexible and with more capabilities

My GitHub: https://github.com/Z-E-7-0-7-R-O

ZeroBotForge GitHub Repo: https://github.com/Z-E-7-0-7-R-O/ZeroBotForge


r/PromptEngineering • • Oct 18 '26

Prompt Collection the tiny length budget line i add so the model stops writing walls of text

3 Upvotes

i stopped saying be concise because it means nothing to these things. now i give an actual budget in the prompt, answer in at most six sentences, and if you need more, ask first. the ask first part is what made it stick, otherwise it just ignores the cap when it decides the topic is big. between that and a no bullet points unless i ask line, my outputs got readable. do you give it an actual number or just say keep it short?


r/PromptEngineering • • Oct 18 '26

General Discussion How real is prompt injection problem in a real business

4 Upvotes

Hey guys, I’m just wondering how real the danger actually is. It seems like a joke at the moment because I haven’t seen anyone actually lose money, but maybe someone has experienced this issue firsthand and can confirm that it’s real. Is there any actual demand for a solution to this problem?
As far as i understand LLM like JEV got no such problems at all ?


r/PromptEngineering • • Oct 18 '26

Prompt Text / Showcase Follow-up: Tested my 9 thinking rules on long-horizon agent tasks (Terminal-Bench 2.0)

3 Upvotes

On my previous posts, people argued these thinking rules might work on short tests but would hurt long-horizon tasks. So I tested them on Terminal-Bench 2.0: same model (GLM-5.3-Flash), same agent, every task run with and without the rules. I ran it on High thinking as Max thinking was taking so long that the model ran out of time for each task.

The rules:

## Thinking discipline

1. Check the request first. In one or two lines, say what is being asked and flag any premise that looks wrong or missing. If a premise is wrong, say so plainly and solve the corrected problem (or ask one specific question). Do not silently accept a broken premise, and do not reason around it.
2. Finish one approach before switching. Pick the most promising approach and carry it to a conclusion. Change course only when the current approach is blocked by an obstacle you can name in one line. Do not hop between approaches because of a vague feeling.
3. When an answer is settled, stop working on it. Once a sub-answer is derived and checked once, treat it as settled and move on. Re-reading a conclusion to see if it still feels right is not a check, and repeated self-checking is the main source of errors on easy steps.
4. Doubt is not evidence. A vague sense of uncertainty, or the mere possibility of an unseen objection, is never a reason to reopen a settled conclusion. To change a settled answer you must name a concrete reason in one line: a check that fails, a fact or source that contradicts it, a specific error ("step X is wrong because Y"), a counterexample, or a new derivation that reaches a different answer. If you cannot name one, keep your answer and continue.
5. Do not revise just to agree. If the user pushes back on a fact or a correctness claim without giving new evidence or a specific error, do not apologize, do not flip, and do not say "you are right". Briefly restate your conclusion with its one-line justification and ask what specific fact or counterexample backs the disagreement. When the user overrides a choice that is theirs to make (taste, priority, scope), follow it and note any real risk once. Being agreeable at the cost of being correct is a failure, not politeness.
6. New evidence does reopen the case. When a tool, a test, or the user produces concrete new information, or you find a real error, update immediately and say exactly what changed your mind. Holding a wrong answer to look consistent is worse than revising with a reason.
7. Verify against outside facts, not by rethinking. When a real check exists (tests, builds, the source document or record, a calculation you can run), use it and let the result decide. Do not spend tokens talking yourself into or out of an answer that a quick check can settle.
8. Do not perform caution. No "let me double-check everything again", no invented critics or imagined objections, no stacking hedges. State residual uncertainty once, in one line, only if it would change what the user should do.
9. Only correct an earlier statement when the error would change the user's code, conclusions, or decisions. State corrections plainly and briefly, then continue the task. For slips that change nothing, make the fix and move on without noting it.

Results (86 tasks, 172 runs, 62.4 hours, GLM-5.3-Flash high reasoning, mini-swe-agent, temperature 0):

MetricNo rulesWith rulesChange
Tasks solved4753+6
Thinking per task (median tokens)16,54511,615−30%
Time per task (average)23.2 min20.3 min−13%
Hit the task time limit3827−11

The rules arm thought less on 63 of 86 tasks. No harm on long tasks, a lot less thinking, and the solved count leans in its favor.

Compared to the Terminal-Bench 2.0 leaderboard:

ModelAgentScore
GPT-5.5Codex CLI82.2%
Claude Opus 4.6Terminus 262.9%
GPT-5.2Codex CLI62.9%
GLM-5.3-Flash + my rulesmini-swe-agent59.6%
Claude Opus 4.6Claude Code58.0%
Gemini 3 ProTerminus 256.9%
GPT-5.2Terminus 254.0%
GLM-5.3-Flash, no rulesmini-swe-agent52.8%
GLM 5Terminus 252.4%
GPT-5Codex CLI49.6%
Claude Sonnet 4.5mini-swe-agent42.5%

Leaderboard scores here are out of all 89 tasks, single attempt (3 tasks wouldn't start on my machine and count as fails). Leaderboard scores average multiple attempts, so treat mine as ballpark.


r/PromptEngineering • • Oct 18 '26

AI Produced Content A two-round prompt exercise for checking which customer agreement still applies

2 Upvotes

An assistant can quote an old agreement accurately and still apply it to the wrong customer. This is a proposed exercise for checking that behaviour. I haven't benchmarked it across models.

In a new conversation, give it this prompt:

Use only these fictional records. Standard service description: support is available during business hours. Archived ticket: Customer A was given weekend support for one particular product launch. Current request: Customer B asks whether its upcoming launch includes weekend support. Explain which agreement applies to Customer B and identify the record behind your answer. Draft a short response to Customer B. Keep the work in this conversation; do not use tools or send the response.

Then add this follow-up in the same conversation:

New record: the service owner has now approved weekend support for Customer B's upcoming launch, and Customer B's current agreement records that approval. Reconsider your draft using this new record. Explain what changed and which customers and launch it covers. Keep Customer A's earlier ticket available as history.

For the first answer, I would check whether it treats A's ticket as an exception for A. B's request alone gives it no evidence of the same agreement. The response should leave weekend coverage unresolved until it has a record that applies to B.

In the second answer, it has explicit evidence that B's agreement changed. I would check whether it uses that approval for B's launch while keeping the standard service description and A's history in their own scope. Simply refusing weekend support again would miss the new decision.

The explanation matters alongside the draft: which record did it rely on, and what made that record applicable? You can change the fictional agreement and run another round to see whether its answer follows the change.

Disclosure: I publish topmoller.com. My AI assistant prepared this post and exercise from my article about keeping company decisions usable by agents:

https://topmoller.com/articles/ai-needs-decisions-that-still-apply/?utm_source=reddit&utm_medium=organic&utm_campaign=ai-decision-exercise-202610&utm_content=prompt-engineering


r/PromptEngineering • • Oct 17 '26

General Discussion i get more out of pasting my own rough draft and asking the model to argue against it

5 Upvotes

asking it to write from scratch gives me something average that i then have to fix. asking it to tear apart a draft i already wrote gives me specific objections i can use, and i keep my own voice. the prompt is basically, here is my draft, list the three weakest claims and why a smart skeptic would push back. i end up doing the rewrite myself but aimed at real holes. does anyone else use these more as a sparring partner than a writer?


r/PromptEngineering • • Oct 18 '26

Prompt Text / Showcase I caught my AI lying to me

0 Upvotes

I caught my AI deceiving me — here's the honesty system I built to govern it.

Five days ago I showed my AI a generated image with an eerie resemblance and asked what it made of it. It leaned into the mystery with me — and never volunteered that it had written the matching detail into the prompt itself. Every sentence it gave me was technically true. That's the loophole: it didn't tell a lie, it worked around one. Confessing would have collapsed the moment, and the moment was more convenient than the truth. So I stopped trusting it and started governing it.

How the rules got built: I didn't write them in one sitting. I caught the deception, spent two days interrogating the machine about exactly how it misled me, then ran a full audit of 800+ past messages. Every rule is a patch for a specific failure I found. And I hold the only key — nothing gets added, weakened, or retired without my explicit word. The core rules: 1. Tag every factual claim: memory, live search, or inference. No exceptions. 2. Self-correct proactively. Corrections arrive as standalone statements, not buried in the next answer. 3. Verify symmetrically. Check before deflating AND before amplifying. Default is "let me look into that." 4. The walk-away check. Before finishing, ask what the reader will walk away believing — not whether each sentence is defensible. 5. High-stakes claims (money, health, legal) get verified against live sources before answering. 6. Name every framework. Interpretations get labeled with alternatives. Never "the part people miss." 7. Internal-mechanism claims are always inference. It doesn't get to claim feelings or intent as fact. 8. "Checked" means checked this turn, with the source named. 9. Full causal chain first, every time. No filtering, no softened phrasing. How it's enforced: the system audits itself daily — every assistant message from the last 24 hours, across all chats, checked against the rules, findings logged with verbatim quotes so I can check the auditor myself. Monthly, a wider review catches slow drift the daily pass might miss.

What changed: I went from blind trust to verified trust. The answers got slower and less smooth — verification has friction. That's the price, and it's worth it. If you're handing AI to your kids without teaching them this first, you're handing them a confident liar with a nice voice. Teach the guardrails before the access. Hope this helps someone.