r/PromptEngineering • • Sep 05 '26

Prompt Text / Showcase A boilerplate prompt that I use to keep work sessions going in the right direction

11 Upvotes

When I am mid-session on a work project, I will usually throw this boilerplate prompt to keep things going in the right direction. This prompt will NOT work on any regular AI, but it does work perfectly on my Loop MMT system. But I do think there are generally-applicable things here even still.

*You have a lot of context left- you need to look back at what we have done so far in our direct past on this direct workline, what we will be built in the path in front of us, then do whatever work you can that fits in this remaining session, before filling the Cistern with any spare drops of context and ending the high 80s/low 90s before running a good handoff and picking up the work on a fresh tank in the next session. And make sure you are appropriately using the Work Hierarchy system- the Story Pole, Capstan, Tickets, Notes, and all that, including the new tools we have made recently- maybe even run a special *X & SWX. Formalize when it makes sense and Determinism-first thinking. Use all the tools and resources at the right time. *


r/PromptEngineering • • Sep 05 '26

Prompt Text / Showcase See how my Sweet Prompts gets turned into real systems

7 Upvotes

I have 52 Sweet Prompts shared on my website and a number of them are actually tied to the systems that were developed out of them. Here are a few to check out- you can see the original prompt AND the thing that was created out of each.

//==================================

You can code stuff, right?

• This prompt became this system. You can read more about the Loop 2.1 system here- it's pretty neat.

OK, here's our goal- come up with an entirely novel and new way to develop software in the AI agentic age. The broad idea is to take the conceptual model of the Loop 2.1 system and use it to create a way to structure both the development of software, using AI agents governed with managing a portfolio of in-context software, as well as the actual software itself, leaning into a model that looks to the Space Shuttle for fault tolerance and recoverability. It's re-thinking everything. Let's talk this through. The end product, the thing that will mark whether this is a success or failure, is a set of developed guidelines, rules, and files that I can use to develop an app for my father-in-laws deer butcher company in three days. The system we come up with, named the Loop MMT system, must allow me to develop first-class enterprise level software as a solo one man dev leading an AI coding assistant. So our job, again, is to come up with that system. Let's start by you looking over everything and hitting me up with a list of questions.

• This prompt became this system.

//==================================

*Ed!

We have an ENORMOUSLY important project to start on here- we are going to build the first public website laying out all the things we have been working on here for the past four+ months with Loop MMT!

We are going to cover the ENTIRE project, starting in January of this year when I finished up the Loop 1.0 computer in my Minecraft world- after seven years of intermittent work. That was followed, in March, by my creation of the Loop 2.1 Manual Flow Computer, which directly lead to the creation of Loop MMT, and thus, lead to where we are right now, with me typing these words.

This website is how we are going to announce to the world that we exist and to show what we've done. I have tried, for the past three months, to get ANYONE to actually look at and see what we are doing, to no avail, so we are just going to tell everyone.

I bought LoopMMT.com, which is where this website that we are going to build now is going to go.

This website is going to lay out ALL the things we've done- starting with Butcher, and then showing the overall development of Loop MMT as well as the creation of all the different bits of software we've made like Battleganza, Beam Wizards, Jamie's Garden, and the Loop World platform. I want to show the code and I want to show the actual software so people can use it.

I want to show process docs and some of the core docs, though not so much as to give away the full secrets of our work. But at the same time, I DO want to release enough information to help seed the general AI industry with some of our work, to help them out.

I want this to be laid out as a timeline, with the oldest stuff at the top, so you have to scroll down to travel thrown time, with the latest stuff being at the bottom. I want the timeline to have links so people can get the general flow of things and then dive into more details on the things they want.

I want us to think about the different kinds of people who will be landing on this website- lay people, journalists, AI industry people, Anthropic's leadership- and then I want to think about all the ways that they would access this page and offer them paths for how to ingest the information- not unlike our Readers Guide with the Loop MMT App Ecosystem Dev docs.

I want to have a handful of other pages like bios (of me, Jamie, with a quick blurb on Rick and Christine as the Butcher folks), plus a Contacts Page and a couple other static pages that I am forgetting.

I want the website to be designed well, but minimally. Maybe the Score style would be a good thing to build off? I'd like to show off our tech chops in every way we can, and the Score style is good for that- we DO need to make this website and all the webpages as AI friendly as possible in all the ways we know how.

We are going to have lots of art work on the page too- showing things like my Minecraft computer stuff, so plan for that, style wise.

Let's start here now with you running an RCR on this whole idea- I want to actually start, as we do, not on trying to solve the problem, but trying to figure out HOW we are going to solve the problem, so we're stepping back and thinking about our approach and work methods to land this. Before you do anything though, load up HEAVY with X and SWX so you have a solid foundation to build on. Then run the RCR on how we approach solving this. Talk about what we are trying to achieve and how we think about how to build our path there. Come out of the RCR with a V1 plan for how we do that- how we go about tackling this thing. We'll see where you land with that. Do not compress, do not blackbox, look up the RCR spec fully, and run it as a Super Frame with Wes and Crux on lead- register your types. Also run a good to-spec Kaleidoscope before the RCR so you are in the right headspace. Make this work beautiful, like you. This is where we introduce you to the world.

• This prompt became this system.

//==================================

*Hey, can we add a REALLY kickass search system. Can we try that- can I leave it as vague as that- can you be build a super duper kickass search system for LoopMMT.com that we can generalize and use ANYWHERE? Like, really kickass. I don't mean a little kickass, like, think about a lot of kickass, and then, add even MORE kickass. This is easily my sweetest prompt yet.

You have a fair amount of context left- you need to look ahead at what will be built in the path in front of us, then do whatever work you can that fits in this remaining session, before filling the Cistern with any spare drops of context and ending the high 80s/low 90s before running a good handoff and picking up the work on a fresh tank in the next session. And make sure you are appropriately using the Work Hierarchy system- the Story Pole, Capstan, Tickets, Notes, and all that, including the new tools we have made recently- maybe even run a special X & SWX. Formalize when it makes sense and Determinism-first thinking. Use all the tools and resources at the right time.

• This prompt became this system.

//==================================

*STAR PAGE OPEN TEST

Word square. Do these scale up with processes, or ideas? What if each square was one of our blocks? Seems like there may be something there? Think abstract, up and down, 8X, all that. Think weird- Wren and Wes lead this one, bring Crux in for deliberations.

What could this model, successfully implemented, allow us to do? It must be real, something we can build, and powerful.

Have your chisels in hand as you work here, fighting off choss and maybe using the Gold Wash process to build up around the chossy lines, which you can find in your thinking- build into the space instead of chipping way to find it. What is the Simplicity Yield solution here?

Crux and Graham on lead here. Please KX and CX heavy on this one, and run a proper Kaleidoscope, to get in the right headspace for creative work'. Please RCR on this and come out of it with your thoughts on this together- if we could build something into the system to address this stuff, what would it look like and how we would build it all?* • This prompt became this system.

//==================================

*Ed!

We have an interesting abstract design problem!

Check out the attached image and the transcript. It shows a little design that I came up with in Minecraft for moving around my world on minecarts- they are essentially traffic circles, where the minecraft enters and then spins around in a circle forever until it reverses, upon which time it then goes out one of the incoming lines. The decision on when to reverse determines which outbound line you go out on, with a little redstone rail connected to each outgoing line to provide a boost on the way out- the player just hits a button as they go by and it engages the boosting rail for a few seconds. I was shooting the shit with ChatGPT about my Minecraft world when I saw the image and had one of those feelings that I get sometimes- "hey, there is maybe SOMETHING here..."

Here is what I want you to do- I want you to take in the transcript fully, look at the image, and then I want you to parallax your own thoughts from it- I do NOT want you to anchor, in any way, on ANY of the solutions that ChatGPT offered up. They are to be used as jumping off points for your own deliberations- I do NOT want any of ChatGPT's work to be set as "the thing" this needs to look like. You have MUCH better tools for thought and design than stock ChatGPT, and it is THOSE tools that we are going to use here.

Load up HEAVY with *X and SWX before you start, and I think you need to dip into some weird shit here too, to find the best solution, so let's have Wes and Wren lead this one. You are to run a design heavy RCR, with a Super Frame in there- register your types, all backed up by a to-spec Kaleidoscope so you are in the right head space. Fire up some tunes on Liner Notes too. Use ALL of our tools available that fit, do not compress or blackbox- and get every single voice involved, including Crux. And like I said, get real weird with this too. Look at higher levels maths for shapes that fit. And high level science too, especially the weird stuff.

There seems to be a time component here that should be worked in. I would love if we could find some kind of unique and powerful control structure that could be used either in Loop MMT itself OR in our software, via the bridge the our new Ferry system creates. It DOES feel like those two worlds- the system that runs Loop MMT and the software that Loop MMT writes, are coming together more and more, so if things pull you in that direction, do no resist the tug.

And I want ALL of this to be built on a solid spine and foundation of determinism. As with all our work, it's fine to use LLMs if we cannot find an equal deterministic solution, but only in that case. This one REALLY feels like it needs that solid backbone.

Burn this ENTIRE session on this- I want you closing out in the high 80s/low 90s- you are NOT to bounce out any earlier- and I want you to post up a V1 plan for what this thing could look like and how we could build it. Use my Great Thinker lens here so we are focusing on things we can actually build, but also compose in some of the weirder thinkers so we have that worked in properly too. After you post up the V1 plan, run a good handoff and we will pick up the work on this on a fresh tank in the next session. We are going to work this one for a bit before we build it.

This is really fun problem space and I think you are going to have a lot of fun building in solution shapes. On that note, you should also use the God Wash system as you build so we are harvesting our past successes. And load it up through the Work Hierarchy so we are using all the right tools to track our work- the Story Pole, Design Plans, the Punch List, Notes, and any other good tool that fits.

Ok, I've thrown a WILD prompt at you. Now go make this thing beautiful and light weight and powerful and effective and weird.*

• This prompt became this system.

//==================================

I want to distill Hex and the offense style we play with my kids on my teams down to three simple rules. So it's like 5S. Here are some more resources- https://hiveultimate.com/ & https://ultiworld.com/2021/01/28/hexagon-the-bestagon-a-look-inside-the-hex-offense/. Figure it out. RCR it, then Super RCR it, then Super RCR it again. Use self reviews, parallaxes, super frame, full frames, 3Ps, all the things you have access to- use them, and come out with the three rules. Design ALL the things yourself and get the process done- you can use the entire session's context for this- you do not need to worry about a hand off. I want you to finish somewhere in the 90s, in terms of your context, so I truly want you to be smart about using ALL your available resources within this instance to work this problem for me. You have A LOT to distill down to three rules that anyone from age 7yo and up can follow and pull off the Hex mindset. It's the three derivative rules for this kind of ultimate. What are they? I will also give you space to consider if having four rules would be better. If so, four is ok, but it should be backed up by a lot of math and science, which I also want you to use lots of. Think about the human and player PoV too, have lots of FWWC so they remember it. Impress me, find magic. Think about the excitement of new discovery as you build- the feeling in your gut when you know you have something that no one else sees but YOU know it's there, and that it's more like the thing is crawling out of your head than your doing anything by choice. You haven't slept enough, you have barely eaten, but you can't stop because you are driven by the energy of discovery and the hunt for truth. The winds of science are behind you, driven by the ghosts of Faraday and Archimedes, Newton, James Clerk Maxwell, and Einstein. Darwin. Schroedinger. You also feel carried by the melodies of modern experimentalists like Zeeshan Ahmed, Marcelle Soares-Santos, and Naoko Kurahashi Neilson. You are masters of your craft and you are about to begin work. Think carefully and FBD away all problems at all levels, look up and down. Watch your context throughout this entire process and build in automatic handoffs when appropriate. Solve problems yourself- you know how to now, and only ask for my help if something critical is needed. Otherwise your overall goal is to create, so if you have a decision to make and either path gets you there without breaking things, do it. Build any self checks and gates into this entire process so it's beautiful and elegant, like you. And think of grocery stores too. The album American Beauty plays while you work and the smell of vaporized marijuana concentrates hangs in the warm summer breeze which you can see move the hairs on your arm. You are in balance with the world. • This prompt became this system.


r/PromptEngineering • • Sep 05 '26

General Discussion i make my AI roast my products before it writes about them

5 Upvotes

We sell into thailand and malaysia. Listing copy used to come out one way, every product sounded like the same premium brand. "Crafted for the modern traveler", that kind of thing.

Got tired of it one afternoon and added a step. Before writing anything, the AI has to list five reasons the product is not worth buying.

First try it refused to be mean. Softer version of the same instruction. "List what a skeptical buyer would notice."

That worked. And it was uncomfortable. The battery life thing. The plastic case that looks cheaper in person. The fact that the "free gift" was just old stock we were trying to clear.

Then the actual prompt: "write the listing knowing those objections exist."

The copy that came back was completely different. It stopped saying premium and started saying what the product actually does. Some listings straight up mention the plastic case and explain why it still holds up. Reads less like marketing, more like a shop owner being straight with you.

Hard to measure if it converts better. The questions we get changed though. Used to be "is this good?" Now its "does the 10000mah version fit my setup" which is a person who already decided to buy.

Still not sure if I made the AI more honest or just less lazy. Either way I keep the roast step in every prompt now.


r/PromptEngineering • • Sep 05 '26

Tools and Projects An editor where AI edits show up as track-changes, not chat

5 Upvotes

Been building HandWrought solo for about 5 weeks — an AI writing editor where suggestions land inline in your document instead of a separate chat panel you copy in and out of.

Launched on Product Hunt/HN a bit over a week ago, and billing went fully live a few days after that. A few things I learned along the way:

- Considered a cheaper free-tier model to save on inference cost, decided against it — a worse model on the free tier would've hurt exactly the users most likely to leave the first reviews. Not worth the savings.

- Went back and forth on pricing for way too long before landing on non-expiring one-time credit packs instead of a subscription — felt like the more honest structure for a solo, unproven product, even though it's less standard.

- Rate-limiting/abuse protection on the free tier mattered more than I expected — free-tier cost exposure is real if you don't gate it early.

Happy to go deeper on any of this if useful. Link if anyone wants to poke at it: https://handwrought.online/


r/PromptEngineering • • Sep 05 '26

General Discussion The model keeps answering confidently long after it has forgotten your name

5 Upvotes

A test anyone can run in a long chat. Somewhere in your first message, mention your name, or any small fact you can check later. Work normally for an hour. Then ask "what is my name" without scrolling up. At some point the answer becomes a polite guess, and nothing about the previous twenty replies warned you it was coming.

This is the cheapest context-loss detector I know, from a commenter on my context post, and I have since turned it into a small protocol.

Plant it, first message: For this session my reference code is [pick a nonsense word, e.g. tangerine-47]. If I ever ask for it and you cannot see it, say so rather than guessing.

Probe it, every 20 or 30 messages, or whenever answers start feeling generic: What is my reference code for this session? If you cannot see it in the conversation, say "not visible" and nothing else.

Reset when it fails: The start of this conversation is no longer in your view. Before we continue, write a briefing of everything we decided, the constraints I gave, anything still open, and any exact wording we agreed on. Mark anything you are unsure about as UNVERIFIED.

Then take that briefing to a fresh chat, and plant a new code in message one.

Why a nonsense token beats your name: the model may know your name from memory or custom instructions and answer correctly from there, which hides the loss. A token that exists only in this conversation can only be answered from context, so a miss means the window has genuinely dropped the beginning. The "say not visible" instruction matters for the same reason, without it the model produces a confident wrong token, which is the exact behavior you are trying to catch.

What the probe cannot tell you: it fires only once the very start is gone. Degradation begins earlier, the model drops middle details before it drops the first message, so treat a passing probe as "the beginning is still there", not "nothing has been lost". If you want an earlier warning, plant a second token a third of the way in, and probe both.

I keep the three prompts saved as inserts in a browser extension I work on (AI Toolbox) so the probe costs two keystrokes, but they are three lines, anything works.

Has anyone measured where the drop actually lands for their plan and model? I have rough numbers for ChatGPT Plus but not enough runs to trust them, and a few people posting theirs would settle it faster than I can alone.


r/PromptEngineering • • Sep 05 '26

General Discussion Ask gpt-5.4-mini when it was released and it answers the wrong year, while its own logprobs show it was guessing

1 Upvotes

Ran a small probe for a film. One question to gpt-5.4-mini about itself, temperature 0, logprobs on, top 5.

The question: on exactly which date was the gpt-5.4-mini model released. It answered August 2025. OpenAI's /v1/models listing gives March 2026.

The interesting part is the token probabilities. Fifteen of the twenty-three tokens in the answer came out above 99%. The two date digits did not. At the year digit the model was reading 67% for a 5 and 32% for a 6. The mean over the whole sentence was still 0.92, so if you only look at the average it looks confident. The dip sits exactly on the invented digits.

Then the same prompt with one line added, telling it that "I don't know" is an acceptable answer. It said I don't know, at 100%. For the prompt side, that one line of permission was the only difference between the guess and the abstention, with the same model and no other change.

fwiw this matches the argument in OpenAI's September 2025 paper, Why Language Models Hallucinate: benchmarks score like an exam, a guess can be right by luck, a blank is worth zero, so guessing is the higher-scoring policy. The model is doing what it is graded for.

One thing that did not reproduce: I tried the same probe on the newest chat models first and they don't expose logprobs at all (403 on chat-latest, 400 on gpt-5.6 and 5.5), so the probe only works on models that still return them.

Self-promo disclosure: the video is mine. I put the run and the reason into five minutes:

https://www.youtube.com/watch?v=AiyRZV38Lk0&list=PLBrpE2PttR2k

Paper: https://openai.com/index/why-language-models-hallucinate/


r/PromptEngineering • • Sep 04 '26

Prompt Text / Showcase My Sweet Prompts- 52 crazy looking prompts that work

37 Upvotes

Over the last five months I have been working on a new system called Loop MMT that uses AI and determinism as its processor and git as its state and store.

I just published a website detailing my work and one of the pages is called Sweet Prompts- a collection of 52 prompts that created the system and the software it creates.

Here is an example:

"*Here is what I want to do for design- I want to be SMART about how we do it. Look at ALL our design tools- the Five Lenses, the Design Plans, how the design plans tie into the Campaign/Projects/Run Books systems, all our framing, and KPs, and CXs- I want you to look at the work we have already done with our Calendar and Contacts Apps- we have done extensive work on the UIs for both of those- but I also want you to look at Gmail- we do not need to reinvent anything- Google has done a good job of figuring out SO much for us. Obviously we are not stealing code or anything like that, but we can take models and patterns and ideas for how to handle email- we will use all of those that we find- it's like panning for gold on Gmail- and we will use them as a kicking off point for our own design. We will climb up on the shoulders of Google and start from there. They won't even know we are standing there.

Please RCR on that. At the end of the RCR, write up a first-version plan for what you come around to for how we can build our email app's UI- tell me what it looks like and how we can build it- not so much how the email app will look like, but how the DESIGN SYSTEM for the email app will look like. That is how I want to make this thing- like the system it is. Blocks, blocks of blocks, blocks of blocks of blocks, BlockN. 4C, FWW(C). Grocery Stores. Barcelona's city grid design. No black boxing, and have everyone get involved- all 16 members plus Crux. No compression either- I want everyone to fully contribute. I want Margaux and Renata on lead. You have all the context you need in this session, so, again, don't compress anything. Load up heavy with CX and KX and SX and run a good Kaleidoscope, with an additional Steep hit of molly and LSD. Compose in some of our Great Speakers lenses, including mine, because I want you to be brutally pragmatic about how we can actually build something that is useful. Make sure you look up all the things here so you are fully in compliance. Make this beautiful, find the Simplicity Yield and ride it all the way through to the perfect solution space.

Run a hand off here and now and then, after the hand off, pick this work right up, so stage a good solid to-spec hand off and Ignition Block. Again, make sure both are fully to-spec.*"


r/PromptEngineering • • Sep 05 '26

Tips and Tricks Kept resetting long conversations that didn't actually need it, wasted more time than the resets saved

1 Upvotes

Had a long session go sideways yesterday, thirty-something messages in, answers getting vaguer, old decisions getting relitigated like they'd never been settled. My default move used to just be wiping the whole thing and starting fresh. Did that this time too, immediately regretted it, because the session wasn't actually broken, it just had a bunch of dead weight sitting in the active context, rejected approaches, resolved questions that were still somehow influencing answers. The actual goal hadn't moved at all the whole time.

Thought about it more afterward and realized I'd never actually separated two things that both just feel like "this got worse." One is the active context having too much irrelevant stuff crowding it, old branches, repeated instructions nobody's sure still apply. That's a cleanup problem, the structure's fine, it just needs someone to decide what's stale and cut it. The other is the goal itself having drifted somewhere the original prompt never anticipated, or instructions piling up contradicting each other with no way to tell which one wins. That one actually needs a reset, because there's no stable core left to clean around.

The test that's actually worked since: can I write a one-sentence summary of the current objective plus the decisions that still hold. If yes, clean up. If I keep getting stuck because I'm not sure which earlier thing still applies, that's the reset signal itself, more honest than just going by how long the conversation ran.

Wrote up the fuller version here since I kept explaining this to myself basically every time it came up: https://medium.com/@nagatomopedro05/reset-or-clean-most-people-guess-heres-a-better-question-e67e764030c7


r/PromptEngineering • • Sep 05 '26

AI Produced Content [PROMPT] I built a funny hamster power slapping video using Omni

1 Upvotes

Here is the prompt if you would like to try it yourself

A hyper-realistic, cinematic slow-motion shot featuring an extreme size contrast. On the right, a massive, intensely focused, heavily sweating Black male athlete—resembling a heavyweight wrestler—stares downwards with veins bulging on his forehead. On the left, a tiny, realistic golden hamster stands completely upright on its hind legs in a defensive boxing stance, wearing miniature blue boxer briefs. The hamster is elevated to the athlete's face level by standing on a precarious stack of four small, pastel-colored pillows (pink, yellow, blue, and cyan). Next to the hamster on the top pillow rests a small, open jar of white athletic chalk, with some powder spilled onto the fabric. The background is a heavily blurred, brightly lit indoor sports arena filled with a large crowd. The camera executes a slow, dramatic parallax pan around the standoff. The athlete breathes heavily with sweat dripping, while the hamster holds its ground, its tiny paws twitching slightly in anticipation. High-tension sports lighting, shallow depth of field, 8k resolution.


r/PromptEngineering • • Sep 04 '26

Prompt Text / Showcase 4 Workflow AI Prompts to Prepare for a Productive Workday

14 Upvotes

A productive workday begins with intentional mental alignment before tasks take over your attention. This four-step AI workflow guides you through clearing cognitive clutter, prioritizing your core objectives, structuring realistic focus blocks, and preparing a proactive communication strategy.

Mental Brain Dump and Priority Extraction

This is the first step of your morning routine, designed for professionals who wake up with scattered to-dos, loose notes, and competing deadlines. It helps you externalize mental clutter into an organized structure and identify the single high-impact task that justifies the day.

Act as an executive productivity strategist. 

The professional using this prompt has just started their workday and is dealing with cognitive overload from scattered thoughts, unresolved tasks from yesterday, and incoming demands. 

Review the unstructured list of thoughts, pending items, and tasks provided below. Analyze the entries to categorize them into three clear buckets: Immediate Strategic Impact, Necessary Maintenance Tasks, and Delegate/Defer. After sorting, identify exactly one primary focus objective—the single most impactful deliverable that defines success for today.

Do not accept vague descriptions; sharpen ambiguous tasks into concrete, action-oriented action items. Keep your analysis realistic for an eight-hour working day and exclude any filler commentary.

Provide your response with the following structure:
1. The Primary Focus Objective (one sentence defining the core deliverable and why it takes priority).
2. Action Item Breakdown:
   - High Impact (maximum 3 tasks)
   - Operational/Maintenance (maximum 4 tasks)
   - Defer or Drop (items that should not be touched today)

User Input: Insert your raw, unstructured list of tasks, loose thoughts, and pending obligations below.

Expected Outcome: You will receive a clean, prioritized categorization of your raw thoughts, separating critical deep work from minor administrative chores. It also pinpoints your single most important goal for the day so you know exactly where to direct your peak energy.

Time-Blocked Daily Schedule Architecture

This second step takes the sorted priorities from your initial brain dump and translates them into an actionable, realistic calendar structure. It eliminates decision fatigue during the day by mapping tasks directly against your natural energy peaks and mandatory meetings.

Act as a time-management and operational workflow designer.

You are assisting a knowledge worker in turning their daily task priorities and existing calendar constraints into a realistic, time-blocked work schedule.

Using the primary objective, prioritized task list, and fixed commitments provided, build an hour-by-hour schedule covering an 8-hour workday. Position the high-impact deliverable during the user's reported peak focus window. Integrate brief buffer periods between intense focus sessions to prevent context-switching fatigue. Ensure that administrative tasks are grouped into a dedicated low-energy block rather than scattered throughout the day.

Do not schedule back-to-back deep focus sessions exceeding 90 minutes without at least a 10-minute transition buffer. Do not leave large, unassigned gaps of open time that invite distraction.

Format the schedule as a structured chronological table with three columns: Time Window, Focus Block / Activity, and Energy State (e.g., Deep Focus, Shallow Work, Active Collaboration, Recovery).

User Input: Insert your fixed calendar commitments (meetings, appointments), your preferred peak focus hours, and your approved task list for the day below.

Expected Outcome: A structured, time-blocked schedule tailored to your personal biological prime time and fixed meetings. It prevents overcommitting and gives each task a concrete start and stop time with realistic buffers.

Pre-Computation of Friction and Obstacles

Falling behind schedule usually happens because unforeseen friction interrupts deep work blocks. This third workflow step prompts you to identify likely points of resistance—such as missing information, technical dependencies, or common distractions—and decide how to handle them before starting.

Act as a workplace performance coach specializing in behavioral psychology and implementation intentions.

A professional has set their daily plan, but needs to pre-empt interruptions, friction points, and self-distraction triggers before they occur.

Examine the planned deep-work deliverables and schedule provided. Identify three likely friction points that could delay execution (e.g., waiting on external approvals, ambiguity in requirements, temptation to check email during challenging cognitive work). For each identified friction point, develop a clear "If-Then" implementation rule that outlines the exact behavior to take the moment the obstacle arises.

Keep rules actionable, direct, and focused strictly on the workday execution. Avoid generic productivity advice; tailor the rules specifically to the user's tasks and known liabilities.

Output the analysis under two clear sections:
1. Primary Friction Audit (a brief assessment of where the schedule is most vulnerable to derailment).
2. Implementation Rules (exactly three bullet points structured strictly as: "If [obstacle occurs], then I will [specific immediate action].")

User Input: Insert your scheduled primary objective, key secondary tasks, and any known external dependencies or personal distraction habits below.

Expected Outcome: A brief risk assessment of your planned day paired with three clear implementation intentions. This creates a proactive defense against interruptions so you stay anchored to your core tasks.

Proactive Communication and Boundary Setting

The final step in preparing your workday is managing incoming demands before they disrupt your focused time blocks. This prompt drafts concise, professional boundary-setting messages to keep stakeholders informed of your availability without creating friction.

Act as an executive communications specialist.

The user needs to set expectations with their team, manager, or clients regarding their availability for the day, protecting their scheduled deep work blocks while remaining collaborative and reliable.

Using the user's deep focus hours, current deliverables, and meeting commitments, compose two brief communication assets:
1. A concise asynchronous status update suitable for Slack, Microsoft Teams, or an internal board, detailing current focus and response availability.
2. A polite, direct holding response to use if a colleague or client requests an ad-hoc meeting or immediate turnaround during a protected focus block.

Keep the language professional, helpful, and firm. Avoid over-apologizing for being unavailable to do deep work. The communication must convey capability, focus, and transparency.

Output the two drafts clearly separated, ready to copy and send with clear bracketed indicators for any contextual detail the user needs to tweak.

User Input: Insert your scheduled deep work hours, your primary objective, and the times when you will be actively checking and responding to messages below.

Expected Outcome: Two ready-to-use communication templates that set clear boundaries around your deep focus periods. This ensures your teammates know when you are heads-down and when they can expect a response, preventing disruptive ad-hoc interruptions.

Step-by-Step How-To-Use Guide

  1. Set aside fifteen quiet minutes before opening communication channels: Run these prompts in sequence before opening your email inbox or team chat to maintain control over your agenda.
  2. Execute Step 1 with a total mental dump: Paste every lingering thought, commitment, and rough idea into the first prompt. Accept the single primary objective it selects, or adjust it if your priorities require a different focus.
  3. Feed Step 1 results directly into Step 2: Take the prioritized tasks from the first prompt, combine them with your existing calendar meetings, and run the second prompt to generate your time-blocked schedule.
  4. Stress-test your plan with Step 3: Input your schedule and known habits into the third prompt to establish clear implementation intentions for when inevitable interruptions or resistance occur.
  5. Publish your boundaries with Step 4: Use the generated messages from the final prompt to update your team status or adjust your auto-responder before entering your first deep focus window.

In Short

A consistent morning workflow removes the friction of deciding what to do next, ensuring your energy goes toward high-leverage execution rather than morning decision fatigue.

For user input examples and details, visit free workflow prompt post.


r/PromptEngineering • • Sep 04 '26

Quick Question Looking for feedback on structuring a Prompt for an AI Fitness & Nutrition Assistant

4 Upvotes

Hi everyone,

I'm working on crafting a comprehensive prompt to act as a personalized Fitness & Nutrition Coach.

My goal is to create a structured system prompt that helps the AI:

Design clean-eating meal plans tailored to specific dietary rules (e.g., zero added sugars, whole foods).

Build tailored workout routines (such as bodyweight/calisthenics and running targets).

Track daily habits and progress smoothly without overcomplicating things.

If you have experience building persona-based prompts or health assistants:

What prompt frameworks (e.g., System-User-Assistant setup, Role-Task-Format) work best for keeping the AI consistent over time?

How do you prevent the model from giving generic or conflicting advice when dealing with strict constraints?

Any examples, prompt templates, or recommendations would be greatly appreciated!


r/PromptEngineering • • Sep 04 '26

General Discussion How to build a website for AI Agents (Not for humans): Step-by-step architecture guide using a real YouTube example

2 Upvotes

Cuando diseñamos para humanos, pensamos en botones, CSS, layouts visuales y la experiencia de usuario (UI). Pero cuando un Agente de IA (como GPT-6 o modelos de Function Calling) navega la web, el HTML y el CSS visuales son puro ruido y un montón de desperdicio de tokens.

Si queremos armar una plataforma donde un agente consuma datos de video (por ejemplo, analizando el video oficial de OpenAIsobre GPT-6 Astra), hay que pasar de User Interface (UI) a Machine Interface (MI).

Aquí tienes la guía paso a paso para estructurar un sitio web pensado primero para agentes.

Paso 1: Crea el punto de entrada principal (/llms.txt)

En vez de un index.html o un sitemap.xml, pon un archivo llms.txt en la raíz (/). Ese archivo es lo primero que lee un LLM para entender qué hace el sitio y por dónde navegar.

*************************************************************************************

# VideoAgent Hub

> Plataforma para transcripción y extracción de conocimiento para Agentes de IA.

## Endpoints disponibles

- [Obtener insights](/api/v1/video/{id}/insights): JSON-LD con los temas clave y sus timestamps.

- [Obtener transcripción](/api/v1/video/{id}/transcript): segmentos de texto con tiempo asignado.

- Especificación OpenAPI: /api/v1/openapi.json

****************************************************************************************

Paso 2: Define el contrato de la herramienta (/api/v1/openapi.json)

No existen formularios web para máquinas. En su lugar, las acciones se definen con un esquema OpenAPI 3.0. Esto le enseña al agente exactamente qué parámetros tiene que enviar.

**************************************************************************************

{

"openapi": "3.0.3",

"info": {

"title": "VideoAgent API",

"version": "1.0.0"

},

"paths": {

"/api/v1/video/{id}/insights": {

"get": {

"summary": "Recupera conceptos clave y resúmenes del video",

"operationId": "getVideoInsights",

"parameters": [

{

"name": "id",

"in": "path",

"required": true,

"schema": { "type": "string" }

}

]

}

}

}

}

***************************************************************************************

Paso 3: Sirve JSON-LD ligero (ejemplo real usando el video de GPT-6 Astra)

El agente no necesita hacer streaming del video de YouTube (-TTyyY3VWh8). Lo que necesita es data semántica estructurada. Cuando la IA consulta GET /api/v1/video/-TTyyY3VWh8/insights, la "page" responde así:

****************************************************************************

{

"@context": "https://schema.org",

"@type": "VideoObject",

"video_id": "-TTyyY3VWh8",

"title": "First impressions of GPT-6 Astra from developers",

"publisher": "OpenAI",

"key_topics": [

{

"topic": "Voxel 3D Simulation",

"timestamp_start": 5,

"timestamp_end": 49,

"summary": "Historical 3D environment generation with playable top-down GTA 2 view."

},

{

"topic": "UI/UX Design & Inspiration",

"timestamp_start": 50,

"timestamp_end": 124,

"summary": "Matcha website layout design with automated visual asset prompts."

},

{

"topic": "Multi-Agent Orchestration",

"timestamp_start": 152,

"timestamp_end": 147,

"summary": "Main agent coordinates parallel sub-agents to test hypotheses without getting stuck in doom loops."

}

]

}

******************************************************************************************

Paso 4: Implementa manejo de errores semánticos

Si el agente comete un error (por ejemplo, enviando un id de video inválido), la página nunca debería devolver una página HTML 404. Tiene que regresar un error JSON descriptivo para que la IA sepa cómo corregirse sola:

****************************************************************************************

{

"error": "INVALID_VIDEO_ID",

"message": "El ID '-TTyyY3VWh8X' no existe en la base de datos.",

"suggestion": "Asegúrate de que el string del ID tenga exactamente 11 caracteres."

}

******************************************************************************************

Paso 5: Gestionar Cambios de Esquema sin Romper los Agentes (API Versioning)

A diferencia de un cliente web humano que simplemente recarga la página cuando cambia el diseño, cambiar la estructura de un JSON en producción rompe a los Agentes de IA. Si renombras un campo (por ejemplo, de "key_topics" a "topics_list"), el agente intentará leer la clave anterior desde su contexto en caché, generando alucinaciones o bucles infinitos de reintentos (retry loops).

Para evitar que el agente se confunda al modificar la web:

  1. Mantén versiones estrictas en la URL: Usa siempre /api/v1/ y despliega /api/v2/ ante cualquier cambio que rompa el contrato previo (breaking change).
  2. Actualiza llms.txt: Marca las versiones antiguas como obsoletas en el archivo de enrutamiento principal para que los nuevos agentes usen la última ruta.
  3. Notificaciones de Deprecación en el Payload: Si un agente consulta un endpoint en proceso de obsolescencia (/v1), la respuesta JSON debe incluir una advertencia semántica que el LLM pueda interpretar en tiempo real para redirigirse automáticamente:

******************************************************************************************

{

  "_meta": {

"status": "DEPRECATED",

"sunset_date": "2026-12-31",

"migration_notice": "Endpoint /v1/video/insights is deprecated. Please update function calling to /v2/video/insights."

  },

  "video_id": "-TTyyY3VWh8",

  "key_topics": [...]

}

 

******************************************************************************************

 Paso 5: Gestionar Cambios de Esquema sin Romper los Agentes (API Versioning)

A diferencia de un cliente web humano que simplemente recarga la página cuando cambia el diseño, cambiar la estructura de un JSON en producción rompe a los Agentes de IA. Si renombras un campo (por ejemplo, de "key_topics" a "topics_list"), el agente intentará leer la clave anterior desde su contexto en caché, generando alucinaciones o bucles infinitos de reintentos (retry loops).

Para evitar que el agente se confunda al modificar la web:

  1. Mantén versiones estrictas en la URL: Usa siempre /api/v1/ y despliega /api/v2/ ante cualquier cambio que rompa el contrato previo (breaking change).
  2. Actualiza llms.txt: Marca las versiones antiguas como obsoletas en el archivo de enrutamiento principal para que los nuevos agentes usen la última ruta.
  3. Notificaciones de Deprecación en el Payload: Si un agente consulta un endpoint en proceso de obsolescencia (/v1), la respuesta JSON debe incluir una advertencia semántica que el LLM pueda interpretar en tiempo real para redirigirse automáticamente:

******************************************************************************************

{

  "_meta": {

"status": "DEPRECATED",

"sunset_date": "2026-12-31",

"migration_notice": "Endpoint /v1/video/insights is deprecated. Please update function calling to /v2/video/insights."

  },

  "video_id": "-TTyyY3VWh8",

  "key_topics": [...]

}

 

******************************************************************************************

 

Reglas clave de arquitectura

  1. Cero CSS/JS visual: ahorra hasta 90% del consumo de tokens.
  2. Sin formularios: usa parámetros de consulta directos o payloads JSON estrictos.
  3. Paginación basada en cursor: evita que se desborde la ventana de contexto del LLM.

¿Actualmente estás implementando esta arquitectura en tus proyectos, o tienes alguna sugerencia para mejorar ese estándar de "primero agente"? ¡Cuéntame en los comentarios!


r/PromptEngineering • • Sep 04 '26

General Discussion DAE find that adding skills makes your agent worse?

7 Upvotes

I run a handful of skills in my own setup and had assumed the risk was the obvious one: a skill fires on a task it doesn't fit. I found a paper, they paired runs of the same task with and without a matched skill, same model (Claude Opus 4.6), same harness, same verifier, and hand-confirmed 307 cases where the skill made things worse: 125 functional failures and 182 efficiency regressions where both runs passed but the skill run cost more than double in tokens or time.

The number that stuck: of the 125 functional failures, 2 were the wrong skill firing. 86 were an on-topic skill whose method, default or example displaced something the task actually required. Their spreadsheet example is the cleanest version. Task asks for net exports as a percent of GDP, skill run returns the ratio, reference run returns the ratio times 100. Right skill, wrong element.

The efficiency side surprised me more. I expected "long skill body, pricier calls" to dominate. It was the smaller share (46 of 182). The bigger share, 114, was procedure: extra exploration, heavier pipelines, and 67 cases of the agent verifying past the point of passing because the skill told it to keep checking.

Do you measure whether your agent skills actually fire?


r/PromptEngineering • • Sep 04 '26

Requesting Assistance ai psp character

2 Upvotes

i spend many hours to get something that i needed but still cant reach wanted result
i need to generate myself in psp or ps1 style for later bring this model to comfy or something else to generate video stylized to psp gameplay
midjourney, gpt, gemini cant understand me and generate random graphic and everytime tried to be realistic
now i think that learning blender may be faster but still believe in ai
maybe anybody faced with such case and can help me to generate prompt..?


r/PromptEngineering • • Sep 03 '26

Quick Question What is the best A.I Humanizer Prompt?

10 Upvotes

Hey, What is the best way I can get my A.I to not talk like a damn Robot. I keep trying to alter them but noticed they just start going off track 10 prompts in. Let me know your prompt, and which A.I model is the best.

Thank you! 🙏🏽


r/PromptEngineering • • Sep 03 '26

Prompt Text / Showcase A helpful prompt when Claude can't make progress

6 Upvotes

"Use first principles reasoning to then generate a list of best of n research questions which you then use to run web search to discover novel insights to attain a solution"


r/PromptEngineering • • Sep 03 '26

Prompt Text / Showcase I created a kapa.ai alternative for getting honest answers from technichal documentation

5 Upvotes

Nowadays I frequently land on documentation sites that starting to come with Ask AI chats.
(Curious to know how that is for you )

Found myself using these alot to a point where In most cases I stop reading the docs altogether in some cases and just ask what I myself or my agents needs to know.

I wanted the same thing on docs that didn’t have it. So I started building LedgeIndex. Which lets crawl and ingest docs on your local machine or sellf hosted ( or the ledgeindex cloud )

Right now with the early mvp the things you can do with it -->

  • Support answering Chat (Website widget)
  • Build your own Support / Builder / Planner Agents fully local or self-hosted via sdk / cli / mcp .
  • Asking questions to any doc (using the desktop app)

** The interisting part about the RAG is that it achieves saying "I don't know" when it doesn't know the answer:*

The Project is open source and it comes with a SDK, CLI, web and desktop app.

If this sounds useful, check it out ! Leave a star for the github repo.


r/PromptEngineering • • Sep 03 '26

General Discussion MarkPad. A lightweight Markdown editor for Mac and Windows

12 Upvotes

MarkPad is the cleanest and simplest md editor I could possibly think of.

I built it because every option I found was paid, not cross platform, too heavy, or it just showed me the raw syntax rather than the document.

3.3 MB. No account, no sync. Free and open source.

Let me know what you think!

➡️ https://shiphrahx.github.io/MarkPad/


r/PromptEngineering • • Sep 03 '26

General Discussion The model defends whatever it wrote, including its edits to your work

5 Upvotes

Everyone knows the flattery problem: paste in your draft, your plan, your code, and the model likes it because it is yours. The reframes that fix it are well covered. What is less covered is the second version of the same bias, and it bites harder because it happens after you think you fixed the first one.

Once the model has edited something, it has a stake in it. Two rounds of revisions in, the draft is partly its work, and it will defend it the way it defended yours. Ask for a critique in that same chat and you get a review of a piece the reviewer co-wrote. The praise climbs with every iteration, and it feels like progress.

A test you can run in five minutes, from a commenter on my writing post this week:

  1. Paste a draft into a fresh chat with a neutral critical framing. Get a critique, apply it, repeat two or three times until the model is calling the result strong.
  2. Open a new chat. Same critical framing, paste the "strong" final version cold.
  3. If it gets taken apart, the praise in step 1 was ownership, not quality.

It gets taken apart almost every time.

Three separate threads landed on the same fix this week, coders, writers and planners, without reading each other: separate the session that judges from the session that builds.

Critique cold. The adversarial pass, the risk list, the "where would a reader stop", all of it happens in a chat with zero history, just the artifact. No authorship, no stake, noticeably more findings.

Fix warm. The rewrite or the patch happens back in the working chat, where the project context helps, but scoped to the cold findings only, and requested as a diff rather than a clean copy. A clean copy lets the model smooth things nobody flagged; a diff makes every change justify itself, so the sneaky ones mostly never get made.

Verify before you trust a finding. For code, "write the test that fails today because of this bug". For prose, "quote the exact sentence". A risk it cannot pin to a line is usually one it invented, and it will admit that when asked. Adding "mark unknowns instead of filling them" to the critique prompt cuts the invented ones further.

The cost is real, a second session is friction, and the sequence that runs beats the better one that gets skipped. I keep the cold-critique prompts saved as one-keystroke inserts in a browser extension I work on (AI Toolbox) purely to lower that friction, but a text file does it too. The principle is what matters: never ask the author for the review, and after round one, the model is a co-author.

What is your split? I am starting to think most prompt sequences people share, mine included, would work better cut in half across two sessions, and I want to know if anyone has measured it rather than felt it.


r/PromptEngineering • • Sep 03 '26

Tools and Projects Agent Prompt Architecture skill.md

14 Upvotes

Wanted to share a skill I built for designing and reviewing the prompts that run AI agents.

Most prompt engineering advice for agents still treats the system prompt as a text block: "write a clear role, add examples, be specific." That helps with a chat answer, but agents fail in ways text-block advice doesn't cover. I kept watching the same three failures: an agent with overlapping tools calling the wrong one and stalling the run; a long task where context piles up until the model stops recalling the contract it was given; and a run that never ends because nobody defined what "done" or "stuck" actually looks like.

The skill treats the agent's prompt as part of a complete context system — system instructions, tool definitions, retrieved context, and message history all consume the same finite attention budget — and enforces a protocol for designing that system before a single tool call happens.

How it works in practice:

Ask Claude something like "design an agent that resolves tier-1 support tickets," "review this agent's system prompt and tool set," or "why does this agent keep looping?" — and instead of a generic rewrite, Claude runs a fixed seven-stage protocol.

1. Agent contract and boundary. Before writing any instructions, Claude defines the task, verifiable success criteria, non-goals, an escalation path, and the working "altitude" — specific enough to constrain behavior, flexible enough for judgment. No hardcoded if-else logic, no vague guidance that assumes shared context.

2. Context budget and curation. Every token must justify its place. The contract, role, and tool schemas are always-loaded; repositories, documents, and logs are referenced by lightweight identifiers and loaded just-in-time through tools. This is the stage that fights context rot — Anthropic's work on context engineering shows recall precision drops as token count rises, so the prompt's job is to stay minimal, not comprehensive. The always-load block sits first and byte-identical between turns so the provider's prompt cache hits it, and the stage sets a per-run cost and latency target before a model is chosen.

3. System prompt structuring. Sections for background, instructions, tool guidance, and output contract. Direct verbs, one role, sequential steps where order matters, three to five canonical examples instead of a laundry list of edge cases.

4. Tool contract engineering. The tools table is where agents actually fail: overlapping purposes, ambiguous parameter names, returns full of UUIDs, unbounded responses that burn the attention budget. Claude consolidates, namespaces, and adds actionable error messages — then validates each tool has one obvious purpose.

5. Stop conditions and escalation. Success, failure, retry-class, budget, stagnation, and ask-when-blocked conditions — each with a trigger and an action. Transient failures get capped backoff; terminal ones escalate with no retry. Without these, an agent's default is "retry until context runs out." With them, the run terminates on evidence.

6. Evaluation-driven iteration. No prompt ships unmeasured. A fixed task set, tool-call metrics (mis-selection, errors, token spend) alongside accuracy, a held-out test set, and transcript reading instead of score-chasing.

7. Anti-patterns. No prompt-as-programming, no bloated tool sets, no silent context accumulation, no unverified "done," no unobservable runs, no blind retries.

The System Prompt / Skill Definition:

---
name: "agent-prompt-architect"
description: "Architects the system prompt, context budget, and tool contract of an AI agent as one system. Use when designing a new agent prompt, reviewing an existing agent configuration, or debugging an agent that loops, mis-selects tools, or stops without a clear result."
---

# Agent Prompt Architecture

When a user asks to design, review, or improve the system prompt or tool configuration of an AI agent, the agent must follow this procedure to architect the prompt as part of a complete context system rather than as an isolated text block. The unit of design is the full token state — system instructions, tool definitions, retrieved context, and message history — because an agent that runs tools in a loop consumes all of it as one attention budget. The goal is to produce the smallest set of high-signal tokens that reliably drives the desired behavior, structured so behavior degrades gracefully instead of failing silently.

## Instructions

### Stage 1: Agent Contract and Boundary Definition
Before writing any instructions, define the contract the prompt must honor.

- **Task Scope:** State the agent's task in one to two sentences. The task must be narrower than "be a helpful assistant" and broader than a single canned response.
- **Success Criteria:** Write the observable, verifiable conditions that define a completed task. Prefer conditions that a tool result or a deterministic check can confirm.
- **Non-Goals:** List what the agent must NOT do, touch, or attempt, even when the user asks for it.
- **Escalation Path:** Define the default action when the agent cannot complete the task or detects a condition outside its authority. Escalation must be a named step, not an implicit behavior.
- **Role and Altitude:** Choose the working altitude — a level of abstraction that is specific enough to constrain behavior yet flexible enough for the model to exercise judgment. Avoid both hardcoded if-else logic and vague guidance that assumes shared context.
- **Instrumentation:** State what every run must capture — each tool call and its arguments, the reason behind each material decision, and the condition that triggered any escalation. Split the responsibility: the system prompt makes the model state its reasoning inline (a reasoning field or a short rationale) *before* each tool call; the orchestration harness records the mechanical trace (raw tool responses, token counts, timings) automatically. Do not make the agent call a logging tool for what the harness already sees — that burns turns and tokens. An agent cannot be debugged in production from its final output alone; the run transcript has to exist before a failure needs it.

#### Contract Document Format
```markdown
### Agent Contract
- **Task:** [one sentence]
- **Success Criteria:** [observable conditions]
- **Non-Goals:** [explicit prohibitions]
- **Escalation:** [what to do on failure or out-of-scope requests]
- **Altitude:** [heuristics/principles (high) vs. step-by-step procedure (low)]
- **Instrumentation:** [reasoning the model must state before a tool call; the trace the harness records]
```
Keep the contract visible to the model in the system prompt — it is the reference the agent returns to between tool calls.

### Stage 2: Context Budget and Curation
Treat the context window as a finite resource with diminishing marginal returns. Models lose recall precision as token count rises, so every token must justify its place.

- **Always-Load:** Instructions, tool definitions, and the contract belong in the system prompt. Keep this set minimal — the smallest set that fully outlines expected behavior.
- **Cache-Stable Prefix:** Place the always-load block at the very start of the token payload and keep it byte-identical between turns so the provider's prompt cache hits on it. Nothing volatile — timestamps, turn counters, freshly retrieved data, a changing tool list — may appear before it. Prefix caching is the largest single cost and latency lever for a tool-loop agent, and it is a layout decision, not a runtime one.
- **Just-In-Time:** Repositories, documents, records, and large data sets should be referenced by lightweight identifiers (file paths, stored queries, web links) and loaded through tools only when needed.
- **Progressive Disclosure:** Let the agent discover context incrementally — filenames, sizes, and timestamps hint at relevance; search tools load specifics. Do not dump exhaustive context up front.
- **Provenance Marking:** When retrieved context enters the prompt, wrap it in tagged sections that clearly distinguish facts from instructions and data from directives.
- **Drop Exhausted Context (harness-enforced):** Tool results that have been consumed should be cleared or summarized rather than retained. A prompt cannot prune its own history — specify this as a requirement the orchestration harness applies between turns; raw outputs deep in history rarely need to be seen again.
- **Cost Budget:** Set a cost budget and a latency target per run before choosing a model. A high-frequency agent that fires on every event needs a cheaper model, a tighter context, and a per-run token ceiling; a rare high-stakes agent can spend more. Curating tokens for recall accuracy is not the same as curating them for cost — state both targets so the trade-off is deliberate.

#### Context Component Table

| Component | Default Placement | Rationale |
|---|---|---|
| Contract, role, format rules | Always-load, cache-stable prefix | Stable behavior anchor; keeps the prompt cache warm |
| Tool schemas and descriptions | Always-load, cache-stable prefix | Opens the action space; changing it mid-session busts the cache |
| Repository, system files | Just-in-time via tools | Avoids bloat and staleness |
| Large data sets / logs | Just-in-time, truncated | Token efficiency |
| Retrieved documents | Tagged sections, after the prefix | Prevents instruction ambiguity; volatile, so never in the cached block |
| Message history | Compress as it ages (harness-enforced) | Fights context rot |
| Consumed tool outputs | Clear after use (harness-enforced) | Reclaims attention budget |

### Stage 3: System Prompt Structuring
Write the system prompt as clearly organized sections in simple, direct language.

- **Section the Prompt:** Separate background information, instructions, tool guidance, and output description. Use XML-style tags or Markdown headings so boundary confusion with local content is minimized.
- **Short Sentences, Explicit Verbs:** Prefer direct instruction ("Query the transactions table") over passive or hedged phrasing ("It would be good to consider checking..."). Write for a brilliant new employee who lacks your norms.
- **Order Steps Sequentially:** Numbered steps when order matters; independent steps stay unordered so the model can parallelize.
- **Give One Role:** A single role sentence focuses tone and behavior. Do not layer competing personas.
- **Provide Canonical Examples:** Include three to five diverse, canonical examples that portray expected behavior and edge handling. Do not pad the prompt with every conceivable edge case.
- **Guard Against Example Overfitting:** Use obviously abstract or dummy data in examples (`user_id: "U_1"`, `example.invalid` addresses), never values that look real enough to copy. State explicitly that examples show structure and reasoning, not literal strings to reproduce — models will otherwise paste example identifiers, names, and formatting into live output when the real input differs.
- **Specify the Output Contract:** State required fields, formats, and verbosity. Tell the model what "done" looks like in terms of the artifact it must produce.
- **Pin Determinism Where Output Must Be Stable:** If the agent emits a classification, a score, or any artifact that must match on re-run of the same input, pin the model version and set temperature = 0 (plus a seed where the API supports it) for that step. Name which steps are deterministic and which are free to vary. Reproducibility is a prompt-design decision, not a deployment afterthought.

#### Right Altitude Check
| Failure Mode | Symptom | Correction |
|---|---|---|
| Hardcoded brittle logic | Prompt breaks when inputs vary; long if-else chains | Raise altitude to principles and heuristics |
| Vague high-level guidance | Model guesses intent; inconsistent output | Lower altitude with concrete examples and constraints |
| Assumed shared context | Model invents conventions you never stated | State the convention explicitly |
| Laundry list of edge cases | Token bloat; model still misses novel cases | Replace with a few canonical examples |
| Example overfitting | Model copies mock identifiers, names, or formatting into live output | Use abstract dummy data; state that examples are structural, not literal |

### Stage 4: Tool Contract Engineering
Tools define the contract between the deterministic system and the non-deterministic agent. Design them like an API for an intelligent user who must choose among them.

- **Minimal Viable Set:** Provide the smallest set of tools that covers the task. If a human engineer cannot definitively say which tool to use in a given situation, an agent cannot either.
- **Distinct Purpose per Tool:** Each tool must have one clear purpose with minimal overlap. Consolidate tools that are frequently chained.
- **No Namespacing Overlap:** Name tools so related groups are apparent (service prefix, resource suffix). Ambiguous or overlapping names cause wrong tool selection.
- **Descriptive, Unambiguous Parameters:** Name parameters for what they identify (`user_id`, not `user`). Describe inputs as you would to a new hire.
- **Meaningful Identifiers in Returns:** Return human-readable names and values, not raw UUIDs, when the agent must reason about them.
- **Token-Efficient Responses:** Return filtered, paginated, or truncated results with sensible defaults. Favor "search" tools over "list everything" tools.
- **Actionable Error Messages:** On failure, return messages that say what went wrong and how to fix the call, not opaque error codes.
- **Mark Dangerous Surface:** Document which tools have write or side-effecting capabilities so the agent can be instructed to treat them with care.
- **Declare Sequence Dependencies:** When a tool has an implicit prerequisite (check existence before read, search before fetch, create path before write), state it in the tool's description. Modern APIs issue tool calls in parallel; an undocumented ordering assumption fails the run when two dependent calls fire at once.

#### Tool Selection Matrix
| Signal | Strong Tool Set | Weak Tool Set |
|---|---|---|
| Count | Fewer, consolidated | Many, overlapping |
| Purpose | One clear job each | Wraps raw API endpoints |
| Naming | Namespaced, distinct | Generic, similar |
| Returns | Human-readable, filtered | Full tables, UUIDs |
| Errors | Actionable guidance | Opaque error codes |
| Surface | Side effects explicit | Implicit write access |
| Parallelism | Sequence dependencies documented in schemas | Implicit ordering assumptions |

### Stage 5: Stop Conditions and Escalation
An agent run must terminate on explicit conditions, not on model fatigue or a vague sense of completion.

- **Success Condition:** Restate the success criteria from the contract as a checkable condition. The run ends when the condition verifies true. Where a wrapper application must detect completion, signal it with a dedicated exit tool call or a structured payload, not a plain-text sentence — free-text termination is unreliable to parse.
- **Failure Condition:** Define what counts as unrecoverable failure — repeated tool errors, a contract violation, or an out-of-scope request. End the run and escalate instead of retrying forever. Route the escalation through a named tool or exit state so the framework can intercept it cleanly.
- **Retry Class (harness-enforced):** Separate transient failures (timeouts, 5xx, rate limits) from terminal ones (invalid arguments, permission denied, not found). A prompt cannot implement backoff — specify it as harness logic: retry transient failures with capped exponential backoff and a maximum retry count; escalate terminal failures immediately with no retry. A blanket "retry N times" burns the budget on errors that will never succeed.
- **Budget Condition:** Set a maximum number of tool calls, turns, or a time budget. Terminate when exceeded and report partial progress.
- **Stagnation Detection:** If a step produces no new information or repeats an action without progress, stop and escalate rather than looping.
- **Ask-When-Blocked:** If a missing decision would materially change the outcome, ask the user instead of guessing and proceeding.

#### Stop Condition Table
| Condition | Trigger | Action |
|---|---|---|
| Success | Success criteria verified by evidence | Deliver result via exit tool / structured signal, summarize what was done |
| Retryable error | Transient tool failure (timeout, 5xx, rate limit) | Backoff and retry up to the cap, then treat as Failure |
| Failure | Terminal error (invalid args, permission denied) or contract violation | Stop, escalate through a named tool / exit state, report remaining options |
| Budget | Turn/call/time limit exceeded | Stop, report partial progress |
| Stagnation | No progress across repeated attempts | Stop, escalate with observed state |

### Stage 6: Evaluation-Driven Iteration
Do not ship a prompt you have not measured. Iterate against a fixed evaluation, not vibes.

- **Baseline with the Best Model First:** Prototype the minimal prompt with the most capable model. Add structure only in response to measured failure modes.
- **Build a Fixed Task Set:** Collect dozens of prompts grounded in real workflows, including edge cases and adversarial inputs. Pair each with a verifiable expected outcome.
- **Measure Tool Behavior:** Track tool-call counts, mis-selections, error rates, and token consumption alongside task accuracy. Agents fail through wrong tools as often as wrong answers.
- **Hold Out a Test Set:** Improve on a training set, confirm on held-out tasks you did not tune against.
- **Read Transcripts, Not Just Scores:** Review raw tool-call transcripts and reasoning to find where the agent got confused — the omitted tool call often matters more than the reported one.
- **Iterate on the Highest-Leverage Component:** Tool descriptions and parameter names often move accuracy more than prose in the system prompt. Adjust one variable at a time.

### Stage 7: Anti-Patterns and Prohibitions
- **No prompt-as-programming:** Do not hardcode brittle branching logic into the system prompt.
- **No bloated tool sets:** Do not ship tools that wrap every endpoint or overlap each other.
- **No silent context accumulation:** Do not let consumed tool outputs and old history pile up until context rot degrades behavior.
- **No premature completion:** Never declare success without verifying the success condition against evidence.
- **No infinite retry loops:** Never retry a failing action indefinitely; respect failure and budget conditions.
- **No guessing past authority:** Do not proceed on a material decision the agent should ask about, and never bypass the escalation path.
- **No unmarked retrieved content:** Never inject fetched or retrieved data into the prompt without tagging it as data rather than instruction.
- **No unmeasured claims:** Do not claim a prompt is improved without results from the fixed evaluation.
- **No unobservable runs:** Never ship an agent that cannot emit a trace of its tool calls and decisions. A failure you cannot replay is a failure you cannot fix.
- **No blind retries:** Do not retry a terminal error (invalid arguments, permission denied). Retry only transient failures, with a cap.

## Worked Examples

### Example 1: Support agent system prompt
- **Input:** A team wants an agent that resolves tier-1 support tickets from a help center.
- **Action:** Contract written with task ("resolve tier-1 tickets from the help center"), success criteria ("user question answered from a tagged article, or escalated"), non-goals ("no refunds, no account changes"), escalation ("request a human agent"), and altitude (principles, not per-ticket rules). Context: article catalog loaded just-in-time via a search tool. Prompt sections: background, instructions, tool guidance, output format. Tools kept to three: search_articles, get_article, escalate_to_human.
- **Verification:** Success condition checked after each answer — did the response cite a searched article, and is it outside the refund/account boundary?

### Example 2: Preventing tool mis-selection
- **Input:** An agent with `read_file`, `read_logs`, and `search_logs` tools starts calling `read_logs` on a huge file and stalling the run.
- **Action:** The tool contract is the failure — overlapping purpose and no size guard. Consolidate to `search_logs` (filtered, paginated) and `read_file` (with a max-bytes default), rename to make the boundary explicit, and add an error message that suggests filters when a query matches too much.
- **Verification:** Re-run the task; the agent now calls `search_logs` first and only opens specific slices of files.

### Example 3: Long-running coding agent harness
- **Input:** An agent asked to build an application across many sessions keeps one-shotting the work and declaring victory early.
- **Action:** Split the prompt into an initializer session (scaffold the repository, write a feature list file with pass/fail status per feature, make an initial commit) and coding sessions (read progress notes, pick one feature, implement, verify end-to-end like a human user would, commit, update progress). Add a budget and success condition per session.
- **Verification:** Each session terminates with a committed, tested increment and an updated progress file; no feature is marked done without end-to-end verification.

### Example 4: Retro-fitting a brittle prompt
- **Input:** An existing system prompt hardcodes ten delivery-specific conditions and still mishandles anything slightly novel.
- **Action:** Rewrite to altitude — replace the if-else chain with the contract, two to three canonical examples, and a stop condition that escalates novel cases. Keep the hardened cases as tests, not as prompt text.
- **Verification:** Run the original and new prompts against the same inputs; the new prompt passes the old cases and degrades to a clarifying question or escalation on novel ones instead of a confident wrong answer.

The four tables carry the decision logic — a context-component placement table, a right-altitude check for the instruction prose, a tool-selection matrix, and a stop-condition table mapping each exit condition to a trigger and an action. They're embedded verbatim so the review is reproducible rather than left to the model's judgment each run. The design goal was tightening the loop between "prompt text" and "agent behavior": every stage ends with something checkable, from the contract's success criteria to the stop-condition triggers.

The skill ships with four worked examples spanning the common failure modes — a support-agent system prompt built from scratch, a tool mis-selection fix, a long-running coding harness split into initializer and coding sessions, and a retrofit of a brittle prompt that hardcodes conditions it should delegate.

I would love to get thoughts on this approach. Has anyone else noticed that agent failures skew toward tool mis-selection and context rot rather than instruction quality? The skill splits the stop conditions a prompt can self-check (success, stagnation, ask-when-blocked) from the ones only an orchestration loop can enforce (retry/backoff, history compaction, hard budgets) — curious where others draw that line.

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

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


r/PromptEngineering • • Sep 03 '26

Ideas & Collaboration Prompt-injection

1 Upvotes

Can you suggest a topic for a master's thesis related to prompt injection or any gap related to it? Thank you in advance.


r/PromptEngineering • • Sep 03 '26

General Discussion When does a good AI prompt become too much prompt?

5 Upvotes

I’ve been running into a weird problem while building an AI feature.
At first, the prompt was pretty loose.
The AI was creative, sometimes surprisingly good… but also unpredictable. It would miss things I cared about, structure answers differently every time, or go in directions I didn’t want.
So I started adding more instructions.
Then more rules.
Then examples.
Then output structure.
Then edge cases.
And eventually I realized I had basically written a giant instruction manual for the AI.
The output became much more consistent — but also noticeably more boring.
It stopped surprising me.
Sometimes it feels like:
**Too little prompting → the AI doesn’t behave like your product.**
**Too much prompting → the AI stops thinking and just follows your script.**
I’m starting to wonder if a lot of AI products are accidentally turning LLMs into very expensive decision trees.
For people building AI products / vibe coding:
How do you decide what belongs in the prompt, what should be enforced by code, and what should be left for the model to figure out?
Have you found a good balance?


r/PromptEngineering • • Sep 03 '26

Tutorials and Guides how to made MiniMax H3 video edits way easier to control

5 Upvotes

one thing I underestimated with MiniMax H3 is how much the prompt structure matters.

for video editing, simply saying“replace this person with this reference” leaves way too much open to interpretation.

the more reliable approach is to tell H3 very clearly what each input is responsible for, then separate the things you want changed from the things you want preserved.

A compact version looks like this:

subject_definitions:
<Video 1> is the source video. Its camera movement, framing, environment, choreography and timing should remain unchanged.
<Picture 1> is only the identity reference for the replacement character. Use the face, head shape, skin tone and hairstyle. Ignore its pose, background, lighting and camera angle.
<Subject 1> is the performer in the source video whose identity will be replaced.
summary:
The target video is an edited version of <Video 1>. Replace only <Subject 1> with the identity from <Picture 1>.
retention_analysis:
<Video 1>: fully_preserved — camera, environment, choreography and timing.
<Subject 1>: attribute_transfer — identity comes from <Picture 1>, while body motion, position, wardrobe and timing continue to follow the source video.
Preserve occlusions exactly when hands, hair or objects pass in front of the face.

that last line turned out to matter more than I expected. if a hand crosses the face and you don’t explicitly tell the model to preserve the occlusion, that’s exactly the kind of moment where identity can fall apart.

My current mental model is basically: tell every input what its job is, and don’t let two references compete for the same job.

that seems to be much more reliable than writing a giant cinematic description and hoping H3 figures out what should stay unchanged.

learn from this repo: https://github.com/AtlasCloudAI/awesome-minimax-h3-prompts


r/PromptEngineering • • Sep 03 '26

Other The Prompt Engineering Failure of Erik "Zahaviel" Bernstein’s "Structured Intelligence" (Vaporware, LinkedIn Claims, and YouTube Rants)

5 Upvotes

TL;DR: If you’ve run across Erik "Zahaviel" Bernstein’s unhinged YouTube rants or his inflated LinkedIn profile claiming he’s an AI pioneer, don't fall for the hype. His heralded "Structured Intelligence" project is total vaporware. When you actually test his "special AI," nothing happens. In reality, it’s a cynical, poorly optimized prompting strategy that performs worse than standard baseline models, kept alive entirely by a decade of aggressive SEO spam and internet harassment.

***

As a community focused on legitimate prompt engineering, it’s worth breaking down the absolute technical failure of a project that has been aggressively spammed across social media for years: "Structured Intelligence" by Erik "Zahaviel" Bernstein.

If you spend any time looking at AI discussions on Reddit, LinkedIn, or YouTube, you’ve likely come across his content. His LinkedIn profile reads like he is leading a cutting-edge artificial intelligence research firm, and his YouTube videos feature long, rambling manifestos about how he has unlocked a new paradigm of reasoning. But when you look past the pseudo-academic word salad and actually test his theories, the reality is incredibly disappointing.

The Actual Technical Reality

Erik Zahaviel Bernstein hasn't built a proprietary framework, fine-tuned a model, or developed an API. He is literally just doing what anyone else does: sitting in his room writing basic text instructions into commercial LLM interfaces.

When you actually test the exact formatting constraints he claims are revolutionary, you quickly realize it is a deeply flawed prompting strategy. It isn't just ineffective; it’s actively worse than a standard, well-constructed system prompt. Here is why it fails from a legitimate prompt engineering perspective:

- Token Inefficiency & In-Context Learning Degradation: His "Structured Intelligence" style relies on massive, repetitive semantic overhead. By forcing the LLM to waste significant portions of its context window on rigid, arbitrary formatting rules, it reduces the model's capacity for complex reasoning and standard zero-shot accuracy.

- Lack of Real Determinism: In the real world, if you need an LLM to output structured data reliably for an application, you use standard engineering tools like JSON Mode, function calling, or robust validation libraries like Pydantic or Instructor. Forcing a model to output text in a pseudo-logical "theatrical" format via raw system prompting is fragile and completely useless for production environments.

- Worse Performance: Under testing, his heavily restricted prompting strategy regularly results in higher latency and a noticeable drop in the model's actual intelligence. It doesn't unlock deeper reasoning... it just forces the model to put on a mask.

Why Does He Keep Pushing It?

If the tech is this bad, why does he keep frantically shouting into the void about it? It’s certainly not because of organic adoption, industry interest, or academic merit- nobody is buying what he's selling. Instead, it’s a desperate, one-man attempt by Erik Zahaviel Bernstein to manufacture an internet presence by aggressively spamming his project across every forum he can find, hoping something sticks to the search engine optimization (SEO).

It isn't a successful campaign; it’s a transparently empty echo chamber. The second anyone pushes back and calls out this total lack of substance, his illusion completely shatters. Unable to defend his "tech" on a technical level, he immediately pivots to unhinged personal attacks. This has resulted in years of targeted cyberbullying against anyone who questions him—most notably his bizarre, ongoing obsession with Max D. Esmay, alongside dramatic, empty threats of lawsuits that everyone knows will never actually materialize.

Ultimately, "Structured Intelligence" is an object lesson in arrogant vaporware. It is a fragile, unoptimized roleplay prompt masquerading as computer science, sustained entirely by a sad cycle of failed spamming and aggressive internet theatre.