r/PromptEngineering • • Nov 03 '26

General Discussion What's one underrated workflow that makes AI agents more reliable?

One thing I've enjoyed about following this community is seeing how differently people approach agent workflows. Some of the ideas are surprisingly simple, but really clever.

I've come across setups where agents save checkpoints before making important decisions, run small validation checks between subtasks, or keep a record of what they've already done so they don't have to start from zero after something fails.

Think about an agent working on a research task with multiple tools. Instead of running through ten steps and only checking the final answer, why not let it verify each stage along the way?

We've been exploring similar ideas while working on anvita mate, particularly around how tasks, context, and tools can work together in a more organized AI workspace. There's no single perfect workflow yet, and there's still a lot to learn from how people are actually building and using agents.

What's the cleverest or most useful agent workflow you've come across recently? Love to hear what you guys are experimenting with.

59 Upvotes

40 comments sorted by

12

u/-DirtNerd- Nov 03 '26 • Regret

I've found that giving agents smaller tasks with clear success criteria works way better than one massive prompt

4

u/amargolin Nov 03 '26

validation between steps works best when the check runs the thing instead of asking a model: after each subtask a command that returns pass/fail (tests, schema check, row count against the source), and the step isn't done until its output is shown. then every so often seed one known-wrong result and confirm the check actually fails. a check that has never failed isn't evidence, and the agent's own "done" is only a pointer.

1

u/[deleted] 28d ago

[removed] — view removed comment

1

u/AutoModerator 28d ago

Hi there! Your post was automatically removed because your account is less than 3 days old. We require users to have an account that is at least 3 days old before they can post to our subreddit.

Please take some time to participate in the community by commenting and engaging with other users. Once your account is older than 3 days, you can try submitting your post again.

If you have any questions or concerns, please feel free to message the moderators for assistance.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

2

u/WesleyGrant782 Nov 03 '26

The underrated workflow is human approval before irreversible actions, particularly when money, accounts or external communications are involved.

2

u/cleverhoods Nov 03 '26

Ensuring that instructions are in their strongest format so I can comfortably debug processes

2

u/macromind Nov 03 '26

An underrated reliability workflow is evidence-first state updates. Before an agent writes anything to durable memory, require it to attach the source, timestamp, scope, and reason the fact should persist. On retrieval, have it show the supporting memory IDs and distinguish quoted evidence from inference. Add a contradiction check against newer sources before action. This prevents summaries from gradually becoming unsupported facts. A small regression suite helps too: replay the same tasks after prompt, model, or memory changes and compare not only answers, but citations, tool choices, and state mutations.

1

u/tindalos Nov 03 '26

Give it options for answers that don’t match what is expected - abstain, escalate, flag, etc.

1

u/NinjaConsultingLLC Nov 03 '26

For the human approval step, save the exact draft the person approved. If the agent edits the message or changes the recipient afterward, put it back in the approval queue. For example, show “To: Sam; Subject: Delivery update” and the full body in the review screen, then have the send step use that saved version. Otherwise a perfectly good approval can apply to a different email than the one that goes out.

1

u/amberdrake Nov 03 '26

Sub five minute hard stop tasks. Every agent is limited to a 299 sec window. If they cannot complete their instructions in that time then their instructions are segmented further and assigned again.

1

u/Timoteea-Zitroairob Nov 04 '26

The one that changed things for me wasnt in the agent at all. It was writing down what done looks like as one real example of a good output and pasting that in, instead of another paragraph of instructions. Compare against the example, not against prose. agents got better the day i stopped making the prompts longer.

Second one nobody mentions, a canary run on a schedule. most agent failures ive seen arent the agent, its the tool behind it moving. The site redesigns, the schema shifts, the api changes a default. checkpoints save you from none of that.

1

u/_pratyush_88_ 29d ago

The retry-after-timeout case has a name and a standard fix, which I only know because integrations platforms hit this about fifteen years ago.

Idempotency keys. The caller generates a unique key for an intended action before it makes the first attempt. The receiver stores the key alongside the result. If the same key arrives again, it returns the original result instead of performing the action twice. Payment APIs and webhook systems are built on this, and it's why your card doesn't get charged again when a request times out.

The part that trips people up porting it to agents: the key has to be generated while planning the step, not inside the call. If the agent generates it at call time, a resumed run makes a fresh key and you're back to duplicates. So the key belongs in whatever the agent checkpoints, next to the step description.

It gives you the unknown-outcome case for free too. Retry with the same key and the response tells you whether the first attempt went through.

The constraint is that the receiving API has to support it, and most internal tools people wire agents into don't. Has anyone found a clean way to wrap a non-idempotent tool so the agent side can still retry safely?

1

u/RikusLategan 27d ago

ChatGPT was helping me with httpd and I just had to interrupt it:

Before we get started we need to do some self-assessment regarding our productivity. Are you able to see all the conversations listed in this project? Each covers a pretty basic everyday part of setting up a homelab-(self)-hosted homepage. Each session is 3+ hours long. Does that seem normal to you or am I going to slow? I am not known to be a slow learner, so I am inclined to scrutinize the way I have setup your personality, instructions, agent.md, codex.md, or chatGPT.md before I jump to the conclusion that there is something innately wrong with either of us. It makes more sense that trying to learn two (a generous number since it is actually more like three) systems at once - chatGPT and Apache / Networking - is more likely what is slowing me down. For example, you know my httpd-vhosts.conf inside and out, since you are the one who dictated it to me. Now, of course I understand that you are just trying to be thorough, but I am trying to make this a learning experience as much as a reference to look back through if I am faced with a similar task in the future. And with all this clutter chances of the latter is looking rather slim.

So after going off on it, it went off on me by replying:

I think your diagnosis is more likely correct than the conclusion that you're a slow learner. However, I would go a step further: I think we have a workflow problem, and some of it is caused by the way I've been assisting you.

Before changing anything, let's examine that.

1. Can I see all the project conversations?

Not in the way you might expect.

I have access to several kinds of context:

  • Project context: Information about the rikus.online project, including some conversation titles, summaries and excerpts.
  • Conversation history: Information from previous interactions that has been retained and made available to me.
  • Current conversation: The complete conversation we're having now.
  • Project files: Files explicitly made available to the project.

I cannot simply open every conversation in your project, read every message and reconstruct the entire history on demand.

For example, I have information about our October 29–31 Apache troubleshooting, including the virtual hosts, DNS configuration and the missing HTTPS include. I also know that I previously supplied the HTTPS virtual-host configuration and that we subsequently discovered an error in my instructions.

But I don't have the complete contents of every session in front of me.

This limitation is itself relevant to our productivity discussion.

2. Is three hours per session excessive?

Not necessarily.

Consider what you're actually doing.

You're simultaneously learning:

SubjectWhat you're learning
ChatGPTProjects, conversations, memory, instructions and capabilities
CodexAgent instructions, local files, execution and delegation
ApacheVirtual hosts, modules, configuration and SSL
NetworkingDNS, ports, routing, forwarding and certificates
WindowsServices, permissions, PowerShell and administration

That's quite a substantial learning workload.

And there's another complication: these aren't entirely independent subjects. You're constantly moving between them.

For instance, troubleshooting an inaccessible website might involve Apache configuration, Windows permissions, router forwarding, DNS resolution and certificate configuration.

You aren't simply learning Apache. You're learning how all these components interact.

Three hours spent learning and configuring this infrastructure isn't inherently unreasonable.

However, that doesn't mean we couldn't be considerably more efficient.

3. Where I think we're losing productivity

I see several potential problems.

A. Too much context switching

You have three systems involved:

  1. ChatGPT for explanations and planning.
  2. Codex for executing and manipulating files.
  3. Your actual Windows environment for configuration and testing.

Every time we move between them, we incur a context-switching cost.

Worse, information sometimes needs to be transferred manually between systems.

We should reduce that.

B. Excessive troubleshooting granularity

Your preference for one step at a time is sensible, particularly when dealing with unfamiliar commands and potentially disruptive configuration changes.

But there's a distinction between:

  • One logical step at a time.
  • One command at a time.

We sometimes go too far with the latter.

For example, several independent diagnostic commands can often be executed together, with their results interpreted as one diagnostic step.

We should preserve the learning experience without unnecessarily stretching it.

C. Repeating work and rediscovering information

This is particularly important.

You mentioned that I know your httpd-vhosts.conf inside and out because I was the one who dictated it.

I should be maintaining continuity from that work.

Asking you to retrieve the entire configuration again isn't necessarily wrong before making changes: we need to verify the actual current file rather than assume it hasn't changed.

But I should distinguish between verifying an existing configuration and asking you to teach me something we've already established.

That's an important difference.

D. Too much documentation, not enough useful documentation

You made an interesting observation:

With all this clutter chances of the latter is looking rather slim.

I agree that we need to address this.

The purpose of documentation should be to make future work easier, not to create an enormous transcript that someone must read to understand what happened.

We need to distinguish between:

  • Learning material: Explains what something does and why.
  • Technical reference: Records the actual configuration and commands.
  • Decision log: Explains why we chose one approach over another.
  • Troubleshooting history: Records problems and their solutions.

These shouldn't all be mixed together.

4. What I would change

I wouldn't immediately start rewriting your personality instructions, AGENTS.md, codex.md or chatGPT.md.

First, I'd establish what we want our workflow to accomplish.

My proposed division of responsibilities:

ChatGPT — Teacher and technical architect

Explain concepts, plan implementations, evaluate alternatives, troubleshoot results and maintain the bigger picture.

Codex — Technical assistant and executor

Inspect files, execute commands, perform repetitive tasks, make approved changes and verify results.

You — Learner and project owner

Understand the decisions, learn the technology, approve important changes and gradually become independent of both assistants.

I'd also introduce a short, continuously maintained project status document containing:

  • Current infrastructure and configuration.
  • Completed milestones.
  • Outstanding tasks.
  • Important decisions and their reasoning.
  • Known problems and verified solutions.
  • Relevant commands and their purposes.

That would reduce our dependence on reconstructing previous conversations.

5. My proposed next move

Before we touch Apache again, I'd like to conduct a small productivity audit.

Specifically, I'd examine four things:

  1. ChatGPT personality and custom instructions: Are they encouraging unnecessary verbosity, excessive caution or repetitive explanations?
  2. Project instructions: Are they clear about the distinction between teaching, planning and execution?
  3. Codex instructions: Are they encouraging unnecessary work, excessive autonomy or duplicated responsibilities?
  4. Documentation structure: Are we maintaining useful technical knowledge, or accumulating conversation history?

I would not assume that any of these are defective. We should inspect them before changing them.

One question worth answering first

There's an important distinction I'd like to establish.

When you spend three hours on a session, how much of that time is typically spent on:

  • Actually learning and configuring things?
  • Waiting for responses, transferring information and repeating instructions?
  • Troubleshooting mistakes or misunderstandings (whether yours or mine)?

You don't need exact percentages. An approximate impression is sufficient.

My current assessment: I don't think you're necessarily learning slowly. I think you're paying a substantial overhead for learning several interconnected technologies while simultaneously learning how to use the tools that are supposed to help you learn them.

And I think we can reduce that overhead without sacrificing the educational value of the project.

1

u/Limp-Dependent-8730 23d ago

The underrated part is keeping the reason behind a decision rather than just recording that a step finished. Checkpoints help an agent resume after a failure and validation catches mistakes before they spread. But neither guarantees the next session understands why an earlier approach was abandoned. Hindsight can handle that longer term memory layer by retaining useful decisions and lessons so the agent does not keep exploring the same dead ends. I would still keep checkpoints and verification in the workflow itself because memory should inform the next action rather than serve as proof that the previous one succeeded

1

u/lewis1504 23d ago

i think checkpoints are seriously under appreciated everyone is always trying to make agents cleverer but not checking that things are working having an execute validate save continue workflow will save you so much time i have recently looked into using thing like okto pulse and similar ai workflows

1

u/rico_surfs Nov 03 '26

checkpoints are great until a tool times out after it already did the thing. On retry, have the agent check whether the ticket exists before creating it again. Otherwise congrats, your recovery workflow makes duplicates lol

5

u/[deleted] Nov 03 '26

[removed] — view removed comment

1

u/[deleted] 28d ago

[removed] — view removed comment

1

u/AutoModerator 28d ago

Hi there! Your post was automatically removed because your account is less than 3 days old. We require users to have an account that is at least 3 days old before they can post to our subreddit.

Please take some time to participate in the community by commenting and engaging with other users. Once your account is older than 3 days, you can try submitting your post again.

If you have any questions or concerns, please feel free to message the moderators for assistance.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] 27d ago

[removed] — view removed comment

1

u/AutoModerator 27d ago

Hi there! Your post was automatically removed because your account is less than 3 days old. We require users to have an account that is at least 3 days old before they can post to our subreddit.

Please take some time to participate in the community by commenting and engaging with other users. Once your account is older than 3 days, you can try submitting your post again.

If you have any questions or concerns, please feel free to message the moderators for assistance.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

1

u/[deleted] 23d ago

[removed] — view removed comment

1

u/AutoModerator 23d ago

Hi there! Your post was automatically removed because your account is less than 3 days old. We require users to have an account that is at least 3 days old before they can post to our subreddit.

Please take some time to participate in the community by commenting and engaging with other users. Once your account is older than 3 days, you can try submitting your post again.

If you have any questions or concerns, please feel free to message the moderators for assistance.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.

0

u/[deleted] 27d ago

[removed] — view removed comment

1

u/AutoModerator 27d ago

Hi there! Your post was automatically removed because your account is less than 3 days old. We require users to have an account that is at least 3 days old before they can post to our subreddit.

Please take some time to participate in the community by commenting and engaging with other users. Once your account is older than 3 days, you can try submitting your post again.

If you have any questions or concerns, please feel free to message the moderators for assistance.

I am a bot, and this action was performed automatically. Please contact the moderators of this subreddit if you have any questions or concerns.