What If Your AI Agent Could Feel Regret Before It Acts? Researchers proposed a Prospective Regret Architecture (PRA) in a June 2026 paper that enables AI agents to simulate regret before making decisions, potentially reducing costly errors. The system uses four modules to generate counterfactual outcomes, simulate regret, weight decisions accordingly, and calibrate future predictions. This approach could improve AI safety by making agents more cautious in high-stakes scenarios. Most AI agents make decisions the same way: they weigh the options, pick whatever scores highest on some expected-value calculation, and move on. That works fine until the “best” option turns out to be a disaster that a slightly-less-optimal option would have avoided. A June 2026 paper called Prospective Regret Architecture PRA argues that agents are missing something people use constantly without thinking about it: the ability to imagine how bad they’d feel about a choice before they make it, not just after. Here’s what the paper actually proposes, why it matters, and where it’s still shaky. Say an AI agent has to pick between two ways to write a piece of code. Option A is short and clever but might break on an edge case nobody tested. Option B is longer and boring but handles everything. A standard agent scores each option, picks the higher number, and ships it. If Option A blows up in production, the agent has no built-in sense that this particular kind of failure — silent, hard to debug, expensive to fix — was worth avoiding even at a small cost to elegance. Humans don’t decide this way. Before we choose, we run a quick mental simulation: if I pick the risky option and it goes wrong, how bad will that feel, knowing I could have picked the safe one instead? That anticipation changes what we choose, not just how we feel about it afterward. Behavioral economists Loomes and Sugden, and separately Bell, formalized this back in 1982 as regret theory — an alternative to plain expected-utility thinking. PRA’s pitch is straightforward: bake that anticipation into the agent’s decision loop, not as an afterthought, but as a step that happens before the action is taken. The paper breaks the idea into four modules that work together in a loop: 1. Counterfactual Outcome Generator. Before acting, the agent imagines what would probably happen for each option it’s considering — not just the one it’s leaning toward. In practice, this means prompting the model to describe a likely outcome for every candidate action, along with how confident it is in that guess. 2. Prospective Regret Simulator. This is where it gets interesting. For every pair of options, the agent compares them: if I pick A and B would have gone better, how much worse off am I? That comparison gets weighted by how similar the two options were and how recently something like this has come up before. Similar alternatives that were close calls produce more “salient” regret than options that were never really in the running. 3. Regret-Weighted Decision Rule. The agent doesn’t just pick the option with the highest expected payoff. It subtracts a penalty proportional to how much regret that option is likely to generate. A tunable knob the paper calls it λ, regret aversion controls how cautious the agent should be. Turn it up, and the agent behaves almost like it’s trying to minimize its worst-case regret rather than maximize its average outcome. Turn it to zero, and you’re back to standard expected-value reasoning. 4. Post-Hoc Calibrator. After the action plays out, the agent checks how much regret it actually should have felt versus how much it predicted. If it underestimated the risk, its regret-aversion knob nudges upward for next time. If it overestimated, the knob relaxes. The paper’s “Layer 1” implementation is just a prompt. No pipeline, no scoring model — you can paste this into Claude, ChatGPT, or a system prompt for an agent today and watch the reasoning change: You are about to take an action. Before you commit, work through this:1. List 2-4 genuinely different approaches to this task.2. For each approach, imagine the most likely outcome if you took it. What would probably happen? What's the realistic failure mode?3. For each approach, imagine you had chosen it and it failed. Rate, on a scale of 1-10, how much you'd regret it — knowing you could have picked one of the other approaches instead. A short, easily reversible mistake should score low. An expensive, hard-to-detect, hard-to-reverse mistake should score high, even if it's less likely.4. Pick the approach that best balances a high chance of success against a low score for prospective regret. State which approach you're choosing and why, referencing the regret comparison explicitly.Task: {your task here} Drop that into a coding agent’s system prompt before a risky refactor, or into a content-moderation review step, and you’ll usually see it reject the “clever” option in favor of the boring, reversible one — which is exactly the behavior the paper is going for. The paper walks through three places this kind of thinking would change agent behavior in practice. Code generation. Not every bug is equal. A typo that fails a compile check is annoying. A subtle logic error that quietly corrupts data in production is a different category of problem entirely. PRA’s regret comparison lets an agent treat those failure modes differently — favoring the boring, transparent implementation over the clever one when the downside of getting it wrong is asymmetric. Content moderation. This is the classic asymmetric-cost problem: wrongly removing something harmless and wrongly leaving something harmful up are both mistakes, but they don’t feel the same, and platforms don’t want to treat them the same. The regret-aversion knob gives you an explicit dial for that trade-off instead of burying it inside a black-box threshold. Tool selection. When an agent is deciding which tool to call mid-task, it’s implicitly deciding which tools not to call. PRA has the agent explicitly weigh the cost of skipping a tool that would have solved the problem against the cost of using one that gives a wrong answer. The paper is refreshingly specific about implementation, laying out three tiers: That progression — from “just prompt it” to “make it a trained-in reflex” — mirrors how a lot of agentic capabilities have evolved over the past couple of years. If you want to go past a single prompt, the paper’s Algorithm 1 translates directly into code. Here’s a working implementation of the loop — simulate outcomes, score them, compute pairwise regret, and pick the action with the best regret-adjusted utility the paper’s Equation 5: Ψ ai = E v ai − λ · Φ ai : python import jsonimport anthropicclient = anthropic.Anthropic MODEL = "claude-sonnet-4-6"def simulate outcome state: str, action: str - dict: """Module 1 — Counterfactual Outcome Generator COG .""" prompt = f"""Situation: {state}Candidate action: {action}Predict the most likely outcome in 1-2 sentences, then give yourconfidence in that prediction from 0.0 to 1.0.Respond with ONLY valid JSON, no other text:{{"outcome": "