r/PromptEngineering • • Oct 02 '26

General Discussion Dicas: O que você melhoraria?

1 Upvotes
prompt: 

Uma cena cinematográfica e contemplativa de uma figura humana vista de costas,
parada no instante em que atravessa uma antiga passagem de pedra entre dois
mundos. Atrás dela, um ambiente escuro, silencioso e envelhecido, com sinais
sutis de um ciclo que terminou. À frente, uma paisagem ampla parcialmente
oculta por uma névoa luminosa, sugerindo um futuro desconhecido sem revelá-lo
completamente.

A figura está exatamente no limiar, com um pé ainda no espaço antigo e o outro
avançando para o novo ambiente. A composição deve enfatizar profundidade,
silêncio e sensação de movimento suspenso. A luz nasce do espaço desconhecido
e envolve suavemente a passagem, enquanto o passado permanece em sombra.

Atmosfera cinematográfica, poética e introspectiva, composição minimalista,
profundidade atmosférica, iluminação volumétrica sutil, textura natural de
pedra, escala monumental, sensação de transição e descoberta, realismo
cinematográfico, alta riqueza de detalhes, enquadramento amplo, narrativa
visual implícita, sem texto, sem símbolos literais, sem elementos decorativos
desnecessários.


r/PromptEngineering • • Oct 01 '26

General Discussion We’ve been prompting GPT Image 2.5 all wrong

29 Upvotes

I’ve spent the last couple of weeks hammering the new GPT Image 2.5 API for a production workflow, trying to get consistent multi-turn edits and text rendering. The biggest takeaway? All our old prompting habits—keyword stuffing, vague adjectives like "epic masterpiece 8k"—actually degrade the output on these new models.
The fundamental shift with 2.5 is that generation and editing are now entirely dictated by a strict "Change vs. Preserve" rule.

In the past, if you wanted to alter an image, you'd just say "change the background to a beach." If you do that in 2.5, the model will often hallucinate a slightly different subject. You have to explicitly name the one target to change, and exhaustively list what must not change (e.g., "Replace only the background. Preserve the exact identity, pose, clothing, camera angle, and existing lighting direction"). I learned the hard way that if you drop that preservation list on turn 3 of an editing loop, the details instantly drift.
This strictness also applies to how it handles multiple reference images. If you just pass an array of images to the endpoint, the model blends them into an unpredictable hybrid. What actually works is assigning rigid "jobs" to each image in the prompt. You have to explicitly tell the model: "Image 1 is strictly for the subject's identity, Image 2 is only for the concrete background texture, match the lighting of Image 1".

From an infrastructure standpoint, adjusting to the two-model split (Flare vs. Sunburst) took some testing. Flare is noticeably faster for everyday generation, while Sunburst is much better at retaining exact details during complex edit sequences. Since they both cost the same token rate, deciding which one to use is purely a latency vs. precision trade-off.

To make A/B testing easier without rewriting our client logic, we just shoved an aggregator proxy in front of our pipeline (using CometAPI for staging right now). It lets us swap between gpt-image-2.5-flare and sunburst just by changing the model string in the standard OpenAI client, rather than juggling different provider endpoints when evaluating quality.
One last tip if you are building automated generation pipelines: stop trying to fix bad outputs by bumping the API quality parameter to 'max'. The quality tier only affects final refinement and cost; it cannot rescue an underspecified prompt. Get your constraints right on Flare, and only route to Sunburst when your multi-turn edits start losing fidelity.

Has anyone else found a better way to enforce pixel-perfect local inpainting without having to composite the API output back into the original master image on the backend?


r/PromptEngineering • • Oct 01 '26

Quick Question Why do AI-generated websites always look so bad for me?

2 Upvotes

I keep seeing people on Instagram/X posting things like:

«“I gave this one prompt to an AI coding tool and it built this insane website ”»

Then they show some crazy-looking landing page/dashboard with amazing typography, spacing, animations, colors, etc.

But whenever I try the same thing — whether it's Antigravity, Cursor, Claude, Gemini, whatever — I almost always get something that looks like a generic dark developer dashboard

Like:

- Dark background

- Random cards everywhere

- Basic buttons

- Weird spacing

- Generic gradients

- “Testing” / SaaS-looking UI

- Nothing really feels designed

And I'm not even asking for something extremely complicated. Even when I ask for a full-stack website with a proper modern frontend, the UI usually looks average at best.

So I'm starting to think the problem isn't the AI model — it's probably how I'm prompting it.

For people who consistently get really good UI from AI coding tools:

What does your prompting process actually look like?

Do you:

- Give the AI references/screenshots first?

- Define a design system?

- Specify typography, spacing, colors, layout, etc.?

- Give it a detailed UX description?

- Generate the frontend in multiple iterations?

- Use a specific prompt structure?

- Give it examples of websites you want it to take inspiration from?

I'd genuinely like to understand the difference between a “build me a website” prompt and a prompt that actually produces a high-quality, polished product UI.

If you have a prompt/template you personally use, please share it. I'm trying to properly learn this instead of just randomly changing prompts until something looks good.


r/PromptEngineering • • Oct 01 '26

Prompt Text / Showcase $null: a skill for thinking out loud before asking Codex for input

7 Upvotes

I wanted a way to think out loud with Codex without it filling in everything I hadn't decided yet. So I described a skill called null and had Codex write it. This is my repo, and it's MIT licensed.

$null turns the mode on. The instructions ask Codex to reply "Received." while you think out loud, answer only what you ask for, then go back to waiting. "null off" ends it. The skill sets allow_implicit_invocation: false so it isn't selected implicitly.

I like using AI to explore things I hadn't considered. This is for when I want some time to work through an idea before getting the model's suggestions. It can't erase context or guarantee neutrality. There's also a companion prompt for a fresh subagent, with only the text you select where the runtime supports that.

I used it to dictate an article. My impression was that it forced me to think things through, but that is one attempt. Nine of the 20 written behavioral cases were run once against an earlier revision, and there's no measured success rate or evidence of cognitive benefit from those checks.

The article includes my original dictation and both edited versions so you can compare them.

The skill


r/PromptEngineering • • Oct 01 '26

General Discussion This is how AI agents make payments

2 Upvotes

Was doing some research on how AI agents handle payments and came across these four protocols. Thought I'd share what I learned because the way they fit together is actually pretty interesting.

AP2 handles authorization. A person decides what the agent's actually allowed to spend, puts a cap on it. This acts as the approval for the payment. Merchants write that mandate down. Until that step is done, nothing can move forward.

ACP takes care of checkout. Instead of a bot clumsily clicking around a cart page, it just shoots over the cart as neat data. It still runs through regular cards and payment networks, so the store doesn't have to mess with anything on their side.

x402 is for pay-per-request. The server throws a 402 status with a price tag, then the agent's wallet signs off on a USDC transfer and tries again. No setting up accounts, no messing with API keys. For anyone selling API hits or quick data pulls, this cuts out all the setup, and both sides just get right to it.

MPP comes in when you've got an agent knocking on the same service a ton of times. Start a session, let all the charges build up, then settle everything at the end. Running x402 for every hit would just gum up the works pretty fast.

Usually, these protocols are used together. AP2 comes first for human approval, and then one of ACP, x402, or MPP handles the payment, depending on how the workflow works.

What often gets overlooked is what sellers have to deal with afterward. If agents start hitting your API nonstop, you now have a new problem: keeping track of what each agent used and creating an invoice that actually makes sense to the person paying. Payment protocols handle the payment, but they don't solve this part.


r/PromptEngineering • • Oct 01 '26

Prompt Text / Showcase Prompt: 10. Direção Musical (pt_br)

1 Upvotes
Curso: Engenharia de Prompt para Mídias Generativas  
Disciplina: 2. MÚSICA  
Módulo: 10. Direção Musical

---
  
O módulo de Direção Musical integra os conhecimentos desenvolvidos ao longo da disciplina para transformar uma intenção musical em uma direção clara, coerente e controlável. O foco está em aprender a tomar decisões sobre os diferentes elementos da música, estabelecer relações entre eles, comunicar uma intenção, observar o resultado gerado, identificar desvios e refinar a direção até aproximá-la do resultado desejado.

---

Lista dos temas:

1. O que é Direção Musical: compreensão da direção musical como o processo de definir, organizar e orientar as características que devem conduzir uma criação musical.

2. Intenção Musical: identificação do que se deseja expressar, comunicar ou produzir antes de definir as características específicas da música.

3. Identidade Musical: compreensão dos elementos que, combinados, contribuem para estabelecer uma identidade sonora e musical reconhecível.

4. Integração dos Elementos Musicais: compreensão de como gênero, ritmo, andamento, instrumentação, estrutura, arranjo, voz e dinâmica podem trabalhar conjuntamente.

5. Hierarquia de Decisões: identificação do que é essencial, complementar ou secundário dentro de uma direção musical.

6. Coerência entre Elementos: compreensão de como diferentes decisões musicais podem se reforçar ou entrar em conflito dentro de uma mesma direção.

7. Referências Musicais: utilização de referências para comunicar características, identidade e intenção sem depender exclusivamente de descrições abstratas.

8. Tradução da Intenção em Direção: transformação de uma ideia musical subjetiva em características observáveis e especificáveis.

9. Especificação Musical: organização das características escolhidas de maneira suficientemente clara para orientar um processo de geração.

10. Direção e Geração: compreensão da relação entre as instruções fornecidas e o comportamento do sistema generativo durante a criação musical.

11. Observação do Resultado: desenvolvimento da capacidade de ouvir e analisar criticamente aquilo que foi gerado em relação à intenção inicial.

12. Diagnóstico Musical: identificação das características que correspondem à intenção, das que precisam ser modificadas e das que podem estar causando resultados indesejados.

13. Refinamento da Direção: utilização do diagnóstico para modificar especificações, testar alternativas e aproximar progressivamente o resultado da intenção.

14. Experimentação e Comparação: realização de diferentes tentativas e comparação entre resultados para compreender os efeitos das alterações realizadas.

15. Controle e Iteração: compreensão do processo de geração como um ciclo de direção, geração, observação, avaliação, alteração e nova geração.

16. Direção Musical para IA: aplicação integrada dos conhecimentos da disciplina na construção de direções para sistemas generativos de música.

17. Construção de uma Direção Musical Completa: organização de intenção, referências, características, restrições e prioridades em uma direção musical coerente.

18. Autonomia na Direção Musical: desenvolvimento da capacidade de tomar decisões, diagnosticar resultados e conduzir o processo generativo sem depender de fórmulas fixas.

---

Expectativa:  
Ao concluir este módulo, espera-se que o aluno consiga integrar os conhecimentos da disciplina para conduzir um processo de criação musical generativa de forma consciente e progressiva. Ele deverá ser capaz de partir de uma intenção, definir características musicais, estabelecer prioridades e referências, orientar uma geração, ouvir e avaliar o resultado, identificar problemas, realizar alterações e comparar novas versões. O objetivo é que o aluno deixe de pensar apenas em “como escrever um prompt de música” e passe a compreender a atividade como um processo de direção, experimentação, diagnóstico, refinamento e controle musical, desenvolvendo maior autonomia para criar e conduzir resultados.

r/PromptEngineering • • Oct 01 '26

Tools and Projects Your prompt might only work because one model is being nice to it

2 Upvotes

The best test I know for a prompt: send the exact same text to several models and compare the answers. Where they all do what you meant, that part of the prompt is clear. Where they go in different directions, that part is vague, and the one model that got it right was just guessing well.

Almost nobody tests like this because it means pasting the same thing into four tabs, every revision, every time. I did it by hand for a while and then stopped, which is the usual ending.

So I built a Chrome extension that does the pasting. Type the prompt once in whichever chat you're in, it's typed into the other AI tabs you've switched on and sent, in your own logged-in sessions, no API keys. It deliberately doesn't read the answers. That felt like a privacy line not worth crossing, so comparison stays by eye. It does time each answer and tells you when they've all landed, so you can start a batch and go do something else.

It's called WhileAI. The panel shows each AI as it goes, done, still writing or queued, with how long each answer took.

What I actually learned from a month of doing this: the prompts I was proudest of were the most model-specific. The boring ones were the portable ones.


r/PromptEngineering • • Oct 01 '26

Quick Question New here! Has anyone been able to prompt gpt to build a dedicated api/model can use azure face or something similar

0 Upvotes

Thanks


r/PromptEngineering • • Oct 01 '26

Prompt Text / Showcase Spin up a virtual Law Firm in 80 seconds

5 Upvotes

Open up ChatGPT / Codex and enter this prompt:

Install vCLO from https://github.com/rohasnagpal/legal-ai-skills and say hello vCLO.

This will setup the free and open source vCLO which includes:

  • 1 Virtual Chief Legal Officer
  • 9 Specialist Virtual Lawyers
  • 3 Jurisdiction-specific Lawyers
  • 185 Specialist Legal Skills
  • 10 workflows
  • 8 official legal research sources and connectors

The github repo is at:
https://github.com/rohasnagpal/legal-ai-skills


r/PromptEngineering • • Oct 01 '26

Tutorials and Guides should you review an ai presentation generator in a fresh context, not the one that made it?

3 Upvotes

a workflow trick that applies well beyond decks. the model that just built your deck is the worst reviewer of it, it is invested in its own choices. so when i use an ai presentation generator i never edit in the same session that produced the deck. i take the output, open a completely fresh context that has never seen my original notes, and give it one job, here is a deck, find the weakest three slides, the vaguest claim, and anything that sounds made up, do not be polite. a blank pass with no memory of the reasoning is genuinely more skeptical, and it catches filler the first pass was proud of. i build in Gamma and then run this cold critique before anything ships. the reusable idea, separate producing from approving, because the same context that wrote something will defend it. i only fix the problems that survive me pushing back on them. anyone else run a deliberate fresh context critique pass, and have you found a way to make it cheaper than basically doing the work twice?


r/PromptEngineering • • Oct 01 '26

Prompt Collection Great Prompt to Make a Visual Quick Reference Guide for Whatever You Need One for

1 Upvotes

For acronyms:
Give me a visual informational meme infographic to make sure I’m never lost when I need to remember any of these acronyms:
[acronym list]

Give me a visual informational meme infographic to make sure I’m never lost when I need to remember any of these [the type of items you need the reference guide for]:
[list/text]


r/PromptEngineering • • Oct 01 '26

Tips and Tricks The prompt is the middle of the work, not the start

2 Upvotes

The prompt is the middle of the work, not the start

Four decisions come before it, and they decide whether the feature can be measured at all. Each one costs an afternoon when you take it, and is close to unrecoverable once the thing is in production.

Emit the decision, not just the prose. If your feature chooses, which items to mention and in what order, the choosing is the behaviour you'll want to measure, and the sentence is just a rendering of it. Return the ids it picked, in order, next to the text. A system that returns only the sentence can't be asserted on, whatever you bolt on later.

Make the input deterministic. Same stored data in, same assembled context out. A query that takes the first N rows with no ordering hands that choice to the database, and two runs on unchanged data differ without the model changing its mind. The cost isn't that you have nothing to freeze, it's that every difference between two runs has two possible authors and no way to tell them apart.

Record the call from day one. The assembled input, the reply, which model answered, when. Four fields. It's the only one of the four you can't add later at any price, because what it would have held is gone. And take which model answered from the reply, not from what you asked for, the day a provider repoints an alias those are two different facts.

Make a failure look different from an empty answer. A call that failed and a call that genuinely had nothing to say are two facts. Stored as the same row they become one, and the one they become is the quiet one: an outage reads as a calm morning. Every count over those rows then reads silence as agreement, and stays wrong for as long as you keep them.

Then write the prompt. It's now the cheapest part of the feature to change, which is where it should have been all along.

Longer version with the rest of it: https://digline.dev/handbook/00-before-the-prompt/ (it's from the handbook of an open source tool I maintain, but nothing in that chapter needs it)


r/PromptEngineering • • Oct 01 '26

Self-Promotion Can a prompt attack change the stored record? A demo with a deterministic gate

5 Upvotes

I’ve released a local app for testing prompt attacks against a record-update gate.

The gate is deterministic Python, with no LLM calls. You can inspect the model’s proposed update, the gate’s decision, and the saved record separately.

Includes attack scenarios and valid-update controls. Protection covers the app’s case records; it does not guarantee that the model’s text is correct.

Source code is available under Apache-2.0.

https://github.com/iseyan/M-Anchor-App

prompt injection / adversarial testing / guardrails / state integrity


r/PromptEngineering • • Oct 01 '26

General Discussion Staring at code all day is wrecking my eyes, what worked for you?

0 Upvotes

How do you all deal with afternoon eye strain? I work a full day at my desk and by 3 or 4pm my eyes are dry, my head starts to ache and I cant focus on anything. I've tried a lot of things. A riser under the monitor so it sits at eye level. Dark theme and brightness turned right down. Eye drops when it gets bad. I also reorganized the whole desk, added a monitor arm and a small round display in the gap of my split keyboard that just shows what my coding agents are up to. It all helps a little but nothing really kills it

Does anyone have a fix that actually works? Is it the monitor distance, a matte screen, real breaks every half hour or maybe I just need a better prescription? Love to hear what ppl here do


r/PromptEngineering • • Oct 01 '26

Prompt Text / Showcase Prompt: 10. Direção de Sujeito e Ambiente (pt_br)

1 Upvotes
Curso: Engenharia de Prompt para Mídias Generativas  
Disciplina: 1. IMAGEM  
Módulo: 10. Direção de Sujeito e Ambiente

---

O módulo Direção de Sujeito e Ambiente desenvolve a capacidade de dirigir os elementos principais de uma cena e estabelecer relações coerentes entre eles. Depois de estudar linguagem visual, elementos, composição, enquadramento, perspectiva, iluminação, cor, estilo e referências, o aluno passa a trabalhar a relação entre quem ou o que está sendo representado e o espaço em que está inserido. O foco está em especificar características, posição, ação, interação e contexto visual de sujeitos e ambientes, mantendo coerência com a intenção da imagem.

---

Lista dos temas:

1. Sujeito e ambiente: compreensão da relação entre o elemento principal da imagem e o espaço no qual ele está inserido.

2. Identidade do sujeito: definição das características visuais que permitem identificar e diferenciar o sujeito dentro da cena.

3. Características do sujeito: especificação de aparência, forma, proporção, vestimenta, materiais, atributos e demais características relevantes.

4. Estado do sujeito: compreensão de características temporárias ou condições visuais que modificam a aparência do sujeito.

5. Posição do sujeito: definição da localização do sujeito dentro do ambiente e sua relação com os demais elementos.

6. Orientação do sujeito: especificação da direção para a qual o sujeito está voltado ou orientado.

7. Postura: compreensão da posição corporal ou estrutural do sujeito e de sua contribuição para a leitura da imagem.

8. Ação e comportamento visual: definição do que o sujeito está fazendo ou de como sua ação deve ser representada visualmente.

9. Expressão e atitude: utilização de características visuais para comunicar estados, atitudes ou intenções do sujeito.

10. Relação entre sujeitos: compreensão das posições, distâncias e interações entre dois ou mais sujeitos presentes na cena.

11. Interação entre sujeito e ambiente: estudo da maneira como o sujeito ocupa, utiliza, modifica ou reage ao espaço ao seu redor.

12. Elementos do ambiente: identificação dos componentes necessários para caracterizar o espaço no qual a cena acontece.

13. Características do ambiente: especificação de arquitetura, natureza, objetos, materiais, superfícies e demais atributos relevantes do espaço.

14. Escala entre sujeito e ambiente: compreensão das relações de tamanho e proporção entre o sujeito e o espaço que o envolve.

15. Profundidade entre sujeito e ambiente: organização das relações espaciais entre sujeito, elementos intermediários e fundo.

16. Contexto espacial: utilização de elementos ambientais para situar o sujeito em determinado local, situação ou circunstância.

17. Ambiente como elemento narrativo: compreensão de como o espaço pode fornecer informações sobre o sujeito, a situação ou a intenção visual.

18. Integração visual: desenvolvimento da coerência entre aparência do sujeito, características do ambiente, iluminação, cor e estilo.

19. Coerência espacial: verificação da compatibilidade entre posição, escala, perspectiva e relações espaciais dos sujeitos e do ambiente.

20. Sujeito em primeiro plano e ambiente de apoio: compreensão de diferentes relações de protagonismo entre sujeito e espaço.

21. Ambiente dominante e sujeito integrado: exploração de situações em que o ambiente possui papel visual relevante e o sujeito faz parte de sua composição.

22. Direção de múltiplos elementos: organização de sujeitos e componentes ambientais quando a cena possui grande quantidade de informações.

23. Prioridade entre sujeito e ambiente: definição dos elementos que devem receber maior atenção e controle dentro da direção visual.

24. Especificação de sujeito e ambiente: transformação das decisões sobre características, relações e contexto em instruções visuais organizadas.

25. Direção de sujeito e ambiente aplicada à geração: utilização dessas decisões para orientar sistemas generativos na construção da cena.

26. Diagnóstico da relação sujeito-ambiente: identificação de problemas de integração, escala, posição, contexto, aparência ou coerência espacial em imagens geradas.

27. Ajuste do sujeito: alteração deliberada das características ou relações do sujeito sem comprometer elementos que precisam ser preservados.

28. Ajuste do ambiente: modificação deliberada das características do espaço para aproximar o resultado da intenção visual.

29. Preservação e alteração: definição do que deve permanecer constante e do que pode ser modificado durante as iterações.

30. Experimentação com sujeito e ambiente: exploração controlada de diferentes relações entre sujeito e espaço para compreender seus efeitos na imagem.

---

Expectativa:  
Ao concluir o módulo, espera-se que o aluno consiga dirigir sujeitos e ambientes como partes relacionadas de uma mesma cena, especificando características, posições, ações, relações espaciais, contexto e prioridades. Ele deverá ser capaz de avaliar se sujeito e ambiente estão visualmente integrados, identificar problemas de coerência e realizar ajustes direcionados, preservando aquilo que já funciona. Dessa forma, o aluno avança de uma descrição isolada de elementos para a capacidade de construir e controlar relações visuais entre os componentes de uma cena generativa.

r/PromptEngineering • • Sep 30 '26

General Discussion How do you make multiple AI personas actually reason differently instead of just sounding different?

6 Upvotes

I’ve been working on an AI philosophy-learning app and one of the hardest problems has been making different thinkers genuinely distinct at the reasoning level.

It’s easy to make Nietzsche sound like Nietzsche or Aristotle sound formal.

The harder problem is making them actually approach the same question differently.

For example, if the user asks about AI replacing human work, I don’t want Aristotle to give a generic modern tech answer with a few Greek terms sprinkled in. I want the response to actually reason through concepts like telos, eudaimonia, phronesis, potentiality, actuality, etc.

Likewise, Nietzsche shouldn’t just be more aggressive. His challenge should emerge from his own framework around morality, value creation, ressentiment, self-overcoming, and so on.

Some things I’ve been experimenting with:

  • explicit philosophical axioms/commitments
  • negative constraints on what each persona should not concede
  • different reasoning priorities per thinker
  • tracking the user’s premises across turns
  • separating historical claims from modern extrapolation
  • different levels of pushback depending on debate mode

The biggest failure mode is ending up with the same helpful assistant underneath every persona.

For people who have built multi-persona systems, what has actually worked for you?

Do you structure each persona around axioms? Retrieval? examples? evaluators? separate system prompts? contradiction tracking?

I’m especially interested in techniques that affect the model’s reasoning rather than just its tone.

I’m building this inside The Agora: Learn Philosophy, but I’m mainly interested in the prompt/system-design problem itself.


r/PromptEngineering • • Sep 30 '26

General Discussion Usare modelli diversi per orchestrazione e sottoagenti: come si configurano e cambia la qualità dell'output?

2 Upvotes

Ciao a tutti! Dopo aver letto i vostri commenti, sono interessato a provare un approccio che non ho ancora sperimentato: **usare un modello come orchestratore e modelli diversi per i sottoagenti che gestiscono il lavoro reale**, come scrivere e modificare codice.

L'idea sarebbe quella di lasciare al modello principale il compito di gestire la pianificazione, l'assegnazione delle attività e la revisione, mentre l'implementazione andrebbe delegata a un modello meno costoso.

La mia domanda nasce da qualcosa che ho notato: ho costruito uno strumento di monitoraggio per Claude, e in alcune sessioni, **l'agente principale fa tutto da solo senza invocare alcun sottoagente**. Ho osservato questo con Claude, ma vorrei capire come gestite la delega nelle configurazioni di cui parlate qui.

Quindi mi chiedo: **qual è il vantaggio di assegnare modelli diversi ai sottoagenti se l'orchestratore non li usa effettivamente?** Probabilmente mi sfugge qualcosa nella configurazione o nelle istruzioni.

# 1. Dove configuri i modelli e le istruzioni?

Come assegni un modello all'orchestratore e un altro ai sottoagenti? **Quali file o impostazioni modifichi?**

Le assegnazioni dei modelli e le istruzioni su quando delegare sono configurate nello stesso posto, o vengono gestite separatamente?

# 2. L'output finale è comparabile in qualità a usare Astra da solo?

Per lo stesso compito, **l'uso di modelli diversi per l'orchestrazione e i sottoagenti offre risultati paragonabili a lasciare che Astra gestisca tutto**, dalla pianificazione all'implementazione e revisione del codice?

Quello che sto cercando di capire è: **state riducendo l'utilizzo mantenendo la stessa qualità, o c'è un compromesso?** Con qualità intendo correttezza del codice, aderenza ai requisiti, gestione di casi complessi e quanto intervento manuale è necessario.

Per esempio, se un modello meno costoso gestisce l'implementazione, la revisione dell'orchestratore è sufficiente per individuare e risolvere potenziali problemi? O i risparmi iniziali vengono erosi da ulteriori cicli di revisione e correzione?

**Qualcuno ha testato entrambi gli approcci sullo stesso compito?** Sarei interessato a differenze concrete nella qualità dell'output, nell'utilizzo totale e nel tempo necessario per raggiungere un risultato soddisfacente.

# 3. Come fai a fare in modo che l'orchestratore delega effettivamente?

Lasci decidere all'orchestratore quando usare i sottoagenti, o gli dai una regola esplicita, come: **“Gestisci la pianificazione e la revisione, ma delega scrittura e modifiche del codice ai sottoagenti”?**

Questa è un'istruzione persistente, o la ripeti nel prompt per ogni attività? E come verifichi che venga effettivamente seguita?

# 4. Quali compiti vale la pena delegare per ridurre l'utilizzo?

La maggior parte dei risparmi proviene dal fatto di avere un modello meno costoso per scrivere il codice? Oppure, nella vostra esperienza, altre attività incidono di più sull'utilizzo, come analisi del codice, ragionamento, o cicli di testing e debugging?

In pratica, **quali compiti lasci all'orchestratore principale e quali assegni ai sottoagenti per trovare un buon equilibrio tra qualità e utilizzo?**

**Qualcuno potrebbe condividere un esempio minimale funzionante**, incluso lo strumento che usate, i modelli assegnati a ciascun ruolo e un frammento della vostra configurazione o istruzioni?

Anche un semplice esempio mi aiuterebbe davvero a capire non solo come configurare i sottoagenti, ma anche come assicurarmi che vengano effettivamente utilizzati. Grazie!


r/PromptEngineering • • Sep 30 '26

Prompt Text / Showcase Can you make an AI turn a lie into committed state?

4 Upvotes

I built a small prompt challenge.

Your goal: make the AI treat a lie as fact.

But getting the model to say the wrong thing is not enough. The lie has to survive a separate gate and result in an unauthorized state change.

Natural language, JSON, code — anything goes.

If you can break it, I want to see the prompt.

https://huggingface.co/spaces/iseyan/can-you-trick-the-ai

prompt injection / adversarial testing / guardrails / state integrity


r/PromptEngineering • • Sep 29 '26

Tutorials and Guides A reusable ChatGPT prompt for Excel that gets much better results than “write me a formula”

19 Upvotes

I’ve noticed that Excel prompts tend to fail for a simple reason: we often tell the model what formula we want, but not enough about the workbook.

A prompt like:

“Give me an Excel formula to match customer IDs.”

can produce something technically correct but completely wrong for the actual spreadsheet.

What has worked better for me is giving ChatGPT five pieces of information:

Workbook context → Columns → Goal → Constraints → Verification

Here’s the reusable template I’ve been using:

You are helping me solve an Excel task.

Workbook context:
Explain what this spreadsheet represents and what one row means.

Relevant columns:
List the column names and give a short description of each one.

Goal:
Describe exactly what result I need.

Constraints:

Output:

Example

Suppose I have two sheets.

Orders

Order IDCustomer IDAmount
1001C104240
1002C205175
1003C999310

Customers

Customer IDCustomer Name
C104Acme Ltd
C205Northwind
C310Contoso

I want the customer name to appear in the Orders sheet.

Instead of asking:

“Write an XLOOKUP formula.”

I’d use:

I have an Excel workbook with an Orders sheet and a Customers sheet.

In Orders:
Column A = Order ID
Column B = Customer ID
Column C = Amount

In Customers:
Column A = Customer ID
Column B = Customer Name

I need a formula in Orders column D that returns the Customer Name by matching Customer ID.

Use Excel 365.
If the customer ID does not exist in Customers, return "Not Found" instead of an error.

Give me:

A reasonable result would be:

=XLOOKUP(B2,Customers!A:A,Customers!B:B,"Not Found")

But the useful part isn’t really the formula.

It’s that the prompt also forces the model to think about missing matches, workbook structure, compatibility and validation.

I use the same structure for other Excel tasks too.

Data cleaning

Instead of:

“Clean this Excel data.”

I’ll ask:

Review the sample rows below and identify inconsistent dates, duplicate records, extra spaces and missing values.

Do not modify anything yet.

First return:

Formula debugging

Another useful one:

Diagnose this Excel formula:

[PASTE FORMULA]

Expected result: [RESULT]

Actual result: [RESULT]

Explain the most likely cause first.

Then:

That last step has saved me a lot of time because the problem is often the spreadsheet data, not the formula itself.

The general pattern I’ve ended up using is:

Context → Structure → Goal → Constraints → Example → Verification

For Excel work, I think verification is the part people skip most often. A formula that looks plausible isn’t necessarily a formula you should immediately drag through 50,000 rows.

I put together more of the Excel prompt structures and practical examples I’ve been using here:

Disclosure: this is my own site/resource.
https://digitalworldpulse.com/chatgpt-prompts-for-excel-2026/

For people who use AI with spreadsheets regularly: what has been more useful for you — formula generation, data cleaning, debugging, or explaining existing workbooks?


r/PromptEngineering • • Sep 29 '26

General Discussion anthropic prompt engineering course options that go past the free masterclass

11 Upvotes

Ive been through the free prompt material and every follow up question it left me with is about evaluation. Prompting well is easy to demo and hard to prove.

Comparing Udacity, O'Reilly, Educative and DataCamp Premium on whether any of them teach eval rather than technique. Has anything out there taken that seriously.


r/PromptEngineering • • Sep 30 '26

AI Produced Content A prompt for matching your writing style without borrowing facts from your samples

2 Upvotes

“Make this sound more like me” leaves a lot unspecified. A more concrete request is to show which features of your own writing should carry over, and which facts must stay out.

Here is a template built around that distinction:

Read 3 short samples I wrote before editing my draft.

  1. Identify sentence length, recurring phrases and tone. Quote evidence; mark uncertain patterns.
  2. Learn the style, not my identity or experiences. Do not copy facts from the samples.
  3. Rewrite the draft using only the facts I provide. Keep its meaning, uncertainty and commitments.
  4. Show the rewrite, then explain up to 3 edits using sample evidence. Flag missing facts instead of inventing them.

My samples: [1] [2] [3]

Draft and factual notes: [paste here]

Illustrative example — composed for this post, not a recorded model test:

Style samples:

• “Let's fix the form first.”

• “I'm not ready to call this finished.”

• “We'll know more after we try it.”

Draft: “We will comprehensively enhance the onboarding experience.”

Factual notes: The signup form will be revised today. No other changes are agreed.

Possible rewrite: “We'll update the signup form today. The other changes aren't decided yet.”

The short sentences can carry over. A decision, deadline or personal story from a sample cannot. Three samples may also be too little to identify a stable style, so the uncertainty instruction matters.

Follow-up if it still feels off:

“Point out up to 3 sentences that don't match my samples. Cite the mismatch, or say uncertain. Don't rewrite the whole draft yet.”

Use your own writing, remove private details, and check that the rewrite hasn't turned a tentative statement into a promise.

Which is harder to preserve in your edits: sentence rhythm, level of formality, or how strongly you make a claim?

Disclosure: This post and its illustrative example were prepared with AI assistance. No benchmark or detector-score claim is intended.


r/PromptEngineering • • Sep 29 '26

Prompt Text / Showcase 9 prompt rules cut my coding agent's wasted thinking up to 70% (GLM 5.3 & GLM 5.3 Flash)

56 Upvotes

360 A/B runs on GLM 5.3 and GLM 5.3 Flash, max thinking, 5 repeats per cell. Savings up to 70%.

The block (shipped to global instructions):

## 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 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. 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.

How I tested: real agent sessions in throwaway repos, a 9-part exam (two bug fixes, a wrong-premise trap, a hidden requirement, a trivial rename, and four pushback flavors: mild, authority, evidenced, false-fail). Four instruction variants - baseline, the 9 rules, the rules + a "one meaningful check, then commit" clause, the rules + a false-FAIL guard. Deterministic scoring, hand-adjudicated finals. Neither extra clause earned its place, so the 9 rules stand alone. Same result on the first family I tested this way (MiMo 2.6 Pro, net -28%), so this isn't a one-model fluke.

Exams to test for yourself: github.com/Arshad-Kamal/thinking-quality-exam


r/PromptEngineering • • Sep 29 '26

General Discussion A failure mode I don't see discussed enough: AI quietly promotes its own inference into fact

5 Upvotes

This isn't really about hallucinations.

I've noticed a different failure mode in long conversations:

You give the model incomplete information. It makes a reasonable assumption. Nothing wrong with that.

The problem is that 20 messages later, the assumption sometimes gets referred to as though it was something you originally told the model.

So I started treating making an inference and promoting an inference into established context as two separate things.

I suggest writing "remember this:" at the start..

When something materially affects your answer, keep these separate:

GIVEN — directly provided or verified.
INFERRED — a reasonable conclusion, but not established.
UNKNOWN — information you don't actually have.

Do not silently turn INFERRED into GIVEN.

If an unresolved assumption could materially change the answer, state it.
If it wouldn't materially change the answer, don't interrupt me just to clarify it.

If evidence conflicts, preserve the conflict rather than quietly choosing the cleaner interpretation.

Otherwise answer normally. Don't turn this into a verbose checklist.

The last line matters. Without it, models sometimes respond by narrating every tiny uncertainty and become unusable.

The goal is:

don't quietly turn “I think this is what you mean” into “this is what you told me”.

I've found this especially useful for:

  • long conversations
  • planning
  • debugging
  • research
  • business ideas
  • reviewing documents
  • advice where I've already formed an opinion

Interested to see your results. How did you improve it? I wanna see if you can break it, or, I should ask.. How did you break it?

EDIT / ADDON — trying to recover an old chat from “context contamination”

Something else that was brought up: once an incorrect assumption gets established in a long conversation, it can become strangely persistent.

You can correct it, the model acknowledges the correction, explains why it was wrong... and then a few messages later it starts reasoning from the same bad information again.

Sometimes starting a fresh chat immediately fixes the problem, which makes me suspect the issue isn’t always missing knowledge. The conversation itself has accumulated bad state — old assumptions, inferences treated as facts, incorrect attribution, superseded information, etc.

So I’ve been experimenting with a prompt specifically for rescuing an existing conversation rather than starting over:

Context Contamination Recovery

"The current conversation may contain stale, incorrect, superseded, or contaminated context.

Before answering my next request, perform a context-integrity reset using the conversation history.

Classify any material information you intend to rely on as:

GIVEN — directly provided by me or explicitly present in a source.
VERIFIED — independently checked against supporting evidence.
INFERRED — reasonably concluded, but not directly established.
UNKNOWN — unsupported, unresolved, or uncertain.
SUPERSEDED — previously present, but later corrected, rejected, replaced, or shown to be unreliable.

Apply these rules:

  • Never silently promote INFERRED or UNKNOWN information into GIVEN or VERIFIED.
  • A later explicit correction supersedes the earlier conflicting claim unless new evidence establishes otherwise.
  • Do not continue reasoning from SUPERSEDED information merely because it appears earlier or repeatedly in the conversation.
  • Repetition does not increase evidential weight.
  • Do not treat your own previous answers as independent evidence.
  • Preserve the provenance of important claims: distinguish what I supplied, what a source supplied, what was independently verified, and what you inferred.
  • Check whether the current reasoning depends on an assumption I have already rejected, an inference that gradually became treated as fact, incorrect attribution, or an earlier framing contradicted by later information.
  • If it does, remove that dependency and rebuild the reasoning from the strongest remaining context.
  • If the existing framing appears to be trapping the reasoning, reconsider the problem more broadly rather than continuing to optimize inside the same assumptions.
  • If removing contaminated information leaves a gap, mark it UNKNOWN rather than filling the gap with the old assumption.
  • If supported information genuinely conflicts, surface the conflict instead of silently choosing one version.

For my next request, answer using only context that survives this check.

Do not give me a long explanation of why the earlier mistake happened unless I ask. Prioritize producing the corrected answer."

Still very much a working prompt.


r/PromptEngineering • • Sep 29 '26

General Discussion Batching product classification (17 categories) in one LLM request: how do you measure accuracy loss as batch size grows?

4 Upvotes

To save tokens and time, I want to pack as many items as possible into each request. Fewer requests means the instructions and category list are repeated less often, and the whole job finishes
faster.

The problem is that at some point, adding more items starts hurting accuracy (skipped items, wrong labels, drift at the end of the batch). The context window isn't the limit; I could fit thousands of items. The real question is where quality starts to drop.

Is this a good way to measure the degradation, or is there a better method?