Put the human where a mistake costs money
Make a person approve only the AI actions that cost money, reach customers or can’t be taken back. Gate every step and people start clicking yes without reading, which leaves you worse off than having no gate.
Human in the loop UX for an AI agent mostly comes down to 3 calls. Which actions wait for a person? What does the approval card show? And how does someone stop or reverse the agent once it’s running? GitHub’s coding agent is our worked example, because its docs list its gates plainly. This post is about who decides before the AI acts; what someone does after a wrong answer is in our guide to [AI error handling UX](/blog/ai-error-handling-ux).

Published November 28, 2026 · Written by Dhaval Agrawal, founder of Kraftbase; sources checked November 27, 2026
Human in the loop UX starts with a list of actions
Before anyone draws an approval screen, we list every action the feature can take. Read a file, draft a reply, send it, issue a refund, delete a record.
That list is most of the work. The rest of human in the loop UX is deciding, action by action, when a person checks the AI: before it acts, after it produces something or whenever they disagree.
In the EU, part of that is law. For high risk AI systems, Article 14 of the EU AI Act says the people overseeing them must be able to “disregard, override or reverse the output” and interrupt the system with “a ‘stop’ button or a similar procedure”. It doesn’t say what the screen looks like. That part is ours.
We sort each action into one of 4 levels:
Level | Use it when | What the person sees |
|---|---|---|
1. Act and log | The action only reads, or stays private to the user | An activity log they can open later |
2. Act and notify | It can be reversed inside a short window | A notice with an undo button and a countdown |
3. Ask first | It costs money, goes public or is hard to reverse | An approval card with the exact payload |
4. Hand off | The AI shouldn’t act at all | A draft the person sends from their own tools |
Gmail’s Undo Send is level 2 at its plainest: a short delay before the email actually leaves, and one button to pull it back. Wherever we can make an action reversible like that, we push it down a level and then test whether the window is long enough.
Expect arguments. When the team can’t agree on a level, it usually means nobody owns that action’s risk yet. We settle that one before drawing a single card.
Not a fit: level 3 for everything. Give someone 50 cards a day and we’d bet they stop reading them within a couple of weeks.
The wider agent interface is in our AI agent UX patterns guide.
What goes on the approval card?
One test. Can the person answer “what happens if I click yes?” without leaving the card?
A card that reads “Agent wants to send an email” fails that test, because the person has to take the agent’s word for what the email says and who gets it. Microsoft’s Guidelines for Human AI Interaction cover this as Guideline 16, “Convey the consequences of user actions”, and the HAX Toolkit splits that guideline into feedforward and feedback. Feedforward is what you see before you act and feedback is what you see after, so an approval card is entirely feedforward and has to carry everything needed to judge the action.
In practice that means the card shows the email itself rather than a summary of it, with the recipient, subject and body editable right there, so the person can fix one line instead of rejecting the whole thing. If the action touches 3 records, the card names and links each of them, because “3 records” gives the reviewer nothing to check. Below that goes the consequence in plain words, such as “Customer is notified. Can’t be recalled.”, followed by one line on why the agent picked this action and the source it used.
The card also needs 4 buttons rather than the usual 2, which are Approve, Edit, Reject with a reason and Always allow this. The last one is worth shipping early because it cuts repeat prompts for actions the person already trusts. It only works when the card says exactly what the permission covers, such as this recipient, this amount or this folder, and when the person can revoke it in the same place they granted it.
The 40 row problem
Say an agent hands back 40 extracted rows. The reviewer will read some of them carefully and move faster through the rest, so the layout ends up deciding which rows get a real check.
That’s why the rows most likely to be wrong should go first. If the system knows which extractions it’s unsure about, sort those to the top of the list. Labeling them is its own job, which we cover in AI confidence indicators. For the check itself, show a diff against the input document the way code review marks changed lines, which lets the reviewer compare each row with its source without rereading the whole document.
Reviewers also need the evidence next to each claim, since nobody checks a row against a source they have to go and find, and our AI citations UI post covers how to show it.
Stop, edit, undo
Microsoft has 2 guidelines that apply here. Guideline 9 is “Support efficient correction” and Guideline 17 is “Provide global controls”, and on screen we turn them into 3 controls.
Stop sits in one fixed spot for the whole run, so nobody has to look for it mid run. When they press it, the agent halts safely and then reports what it finished and what it didn’t, which tells the person where things stand before they decide what to do next. Edit happens in place, which means the person fixes the draft directly instead of writing another prompt to describe the fix.
Undo should name what it reverses, as in “Undo: archived 12 tickets”, so the person knows exactly what they are about to put back. Where the system allows it, keep undo available after approval as well, because then one bad click isn’t permanent.
How does GitHub gate its coding agent?
GitHub’s Copilot coding agent works alone, then hands everything back as a draft pull request.
It can’t mark that pull request ready. It can’t approve it or merge it. GitHub Actions workflows don’t run on its changes until a person clicks “Approve and run workflows”, and the developer who asked for the work can’t be the one who approves it.
In our terms that’s level 3, placed exactly where code starts to reach other people. The review sits in the pull request view developers already use.
Also read: AI copilot UX patterns and Designing for AI products: 6 decisions that shape the UX.
Human in the loop UX FAQs
Someone other than the requester, when the action reaches other people. GitHub does exactly this with its Copilot coding agent: whoever asked for the pull request can’t approve it. A small team may have only one possible approver. Then log who approved what and read that log on a fixed schedule.
Whether the system waits. In the loop, a person has to act before anything continues, such as approving a payment. On the loop, the system acts while a person watches and can stop or reverse it. One product can use both, picked per action by what a mistake would cost.
Gate fewer actions. Move reversible ones to a notice with undo, show the exact payload on every card and let people grant “always allow this” for a narrow scope they can revoke. Then watch review times. We treat very short ones as people clicking without reading (our rule of thumb, not a published benchmark).
Track reject rate, edit rate and review time for each action type, and log who approved each action along with the payload they saw. A high edit rate on one action says the AI isn’t ready to take it alone. A reject rate near zero across many approvals is the opposite signal: ask whether that gate can drop a level.
About the author
Dhaval Agrawal is the founder of Kraftbase, a design and development studio in Vadodara, India, for AI and SaaS companies.
Sources
European Commission, AI Act, Article 14: Human oversight, AI Act Service Desk
Saleema Amershi and others, Guidelines for Human AI Interaction, Microsoft Research, CHI 2019
Microsoft, HAX Toolkit pattern library, Guideline 16
GitHub, About Copilot coding agent and Reviewing a pull request created by Copilot, GitHub Docs
All checked November 27, 2026.
Talk to Kraftbase
Is your agent asking for approval in the right places?
Send us the list of actions your AI can take. We’ll place each one on an approval level and show you which gates to add or remove.
Put the human where a mistake costs money
Make a person approve only the AI actions that cost money, reach customers or can’t be taken back. Gate every step and people start clicking yes without reading, which leaves you worse off than having no gate.
Human in the loop UX for an AI agent mostly comes down to 3 calls. Which actions wait for a person? What does the approval card show? And how does someone stop or reverse the agent once it’s running? GitHub’s coding agent is our worked example, because its docs list its gates plainly. This post is about who decides before the AI acts; what someone does after a wrong answer is in our guide to [AI error handling UX](/blog/ai-error-handling-ux).

Published November 28, 2026 · Written by Dhaval Agrawal, founder of Kraftbase; sources checked November 27, 2026
Human in the loop UX starts with a list of actions
Before anyone draws an approval screen, we list every action the feature can take. Read a file, draft a reply, send it, issue a refund, delete a record.
That list is most of the work. The rest of human in the loop UX is deciding, action by action, when a person checks the AI: before it acts, after it produces something or whenever they disagree.
In the EU, part of that is law. For high risk AI systems, Article 14 of the EU AI Act says the people overseeing them must be able to “disregard, override or reverse the output” and interrupt the system with “a ‘stop’ button or a similar procedure”. It doesn’t say what the screen looks like. That part is ours.
We sort each action into one of 4 levels:
Level | Use it when | What the person sees |
|---|---|---|
1. Act and log | The action only reads, or stays private to the user | An activity log they can open later |
2. Act and notify | It can be reversed inside a short window | A notice with an undo button and a countdown |
3. Ask first | It costs money, goes public or is hard to reverse | An approval card with the exact payload |
4. Hand off | The AI shouldn’t act at all | A draft the person sends from their own tools |
Gmail’s Undo Send is level 2 at its plainest: a short delay before the email actually leaves, and one button to pull it back. Wherever we can make an action reversible like that, we push it down a level and then test whether the window is long enough.
Expect arguments. When the team can’t agree on a level, it usually means nobody owns that action’s risk yet. We settle that one before drawing a single card.
Not a fit: level 3 for everything. Give someone 50 cards a day and we’d bet they stop reading them within a couple of weeks.
The wider agent interface is in our AI agent UX patterns guide.
What goes on the approval card?
One test. Can the person answer “what happens if I click yes?” without leaving the card?
A card that reads “Agent wants to send an email” fails that test, because the person has to take the agent’s word for what the email says and who gets it. Microsoft’s Guidelines for Human AI Interaction cover this as Guideline 16, “Convey the consequences of user actions”, and the HAX Toolkit splits that guideline into feedforward and feedback. Feedforward is what you see before you act and feedback is what you see after, so an approval card is entirely feedforward and has to carry everything needed to judge the action.
In practice that means the card shows the email itself rather than a summary of it, with the recipient, subject and body editable right there, so the person can fix one line instead of rejecting the whole thing. If the action touches 3 records, the card names and links each of them, because “3 records” gives the reviewer nothing to check. Below that goes the consequence in plain words, such as “Customer is notified. Can’t be recalled.”, followed by one line on why the agent picked this action and the source it used.
The card also needs 4 buttons rather than the usual 2, which are Approve, Edit, Reject with a reason and Always allow this. The last one is worth shipping early because it cuts repeat prompts for actions the person already trusts. It only works when the card says exactly what the permission covers, such as this recipient, this amount or this folder, and when the person can revoke it in the same place they granted it.
The 40 row problem
Say an agent hands back 40 extracted rows. The reviewer will read some of them carefully and move faster through the rest, so the layout ends up deciding which rows get a real check.
That’s why the rows most likely to be wrong should go first. If the system knows which extractions it’s unsure about, sort those to the top of the list. Labeling them is its own job, which we cover in AI confidence indicators. For the check itself, show a diff against the input document the way code review marks changed lines, which lets the reviewer compare each row with its source without rereading the whole document.
Reviewers also need the evidence next to each claim, since nobody checks a row against a source they have to go and find, and our AI citations UI post covers how to show it.
Stop, edit, undo
Microsoft has 2 guidelines that apply here. Guideline 9 is “Support efficient correction” and Guideline 17 is “Provide global controls”, and on screen we turn them into 3 controls.
Stop sits in one fixed spot for the whole run, so nobody has to look for it mid run. When they press it, the agent halts safely and then reports what it finished and what it didn’t, which tells the person where things stand before they decide what to do next. Edit happens in place, which means the person fixes the draft directly instead of writing another prompt to describe the fix.
Undo should name what it reverses, as in “Undo: archived 12 tickets”, so the person knows exactly what they are about to put back. Where the system allows it, keep undo available after approval as well, because then one bad click isn’t permanent.
How does GitHub gate its coding agent?
GitHub’s Copilot coding agent works alone, then hands everything back as a draft pull request.
It can’t mark that pull request ready. It can’t approve it or merge it. GitHub Actions workflows don’t run on its changes until a person clicks “Approve and run workflows”, and the developer who asked for the work can’t be the one who approves it.
In our terms that’s level 3, placed exactly where code starts to reach other people. The review sits in the pull request view developers already use.
Also read: AI copilot UX patterns and Designing for AI products: 6 decisions that shape the UX.
Human in the loop UX FAQs
Someone other than the requester, when the action reaches other people. GitHub does exactly this with its Copilot coding agent: whoever asked for the pull request can’t approve it. A small team may have only one possible approver. Then log who approved what and read that log on a fixed schedule.
Whether the system waits. In the loop, a person has to act before anything continues, such as approving a payment. On the loop, the system acts while a person watches and can stop or reverse it. One product can use both, picked per action by what a mistake would cost.
Gate fewer actions. Move reversible ones to a notice with undo, show the exact payload on every card and let people grant “always allow this” for a narrow scope they can revoke. Then watch review times. We treat very short ones as people clicking without reading (our rule of thumb, not a published benchmark).
Track reject rate, edit rate and review time for each action type, and log who approved each action along with the payload they saw. A high edit rate on one action says the AI isn’t ready to take it alone. A reject rate near zero across many approvals is the opposite signal: ask whether that gate can drop a level.
About the author
Dhaval Agrawal is the founder of Kraftbase, a design and development studio in Vadodara, India, for AI and SaaS companies.
Sources
European Commission, AI Act, Article 14: Human oversight, AI Act Service Desk
Saleema Amershi and others, Guidelines for Human AI Interaction, Microsoft Research, CHI 2019
Microsoft, HAX Toolkit pattern library, Guideline 16
GitHub, About Copilot coding agent and Reviewing a pull request created by Copilot, GitHub Docs
All checked November 27, 2026.
Talk to Kraftbase
Is your agent asking for approval in the right places?
Send us the list of actions your AI can take. We’ll place each one on an approval level and show you which gates to add or remove.
