Skip to content
Agent use cases

Six human-in-the-loop design patterns for AI agents

This guide outlines six human-in-the-loop patterns for AI agents, ranging from logging only and daily digest reviews to confidence thresholds, draft-then-send, side-effect approval gates, and two-person approval, helping developers effectively manage operational risks.

Reddit r/AI_Agents/u/Relevant_Strategy_38
LangGraphClaude Agent SDK

Added 2026-11-02 · originally published 2026-11-01


Steps

  1. 1Evaluate the specific action types of your agent and choose the appropriate collaboration pattern for different actions (a single agent can combine multiple patterns).
  2. 2For read-only queries, use the "Log only" pattern and review audit logs after the fact.
  3. 3For reversible operations, set up a "Digest review" to let stakeholders review and reverse actions in a daily summary.
  4. 4Set a "Confidence threshold" so the agent only requests human intervention when scores or rule checks fall below the set line.
  5. 5For tasks like customer service, use the "Draft then send" pattern where the agent writes emails or tickets for a human to review and send.
  6. 6For actions with side effects—such as spending money or contacting customers—set up an "Approval gate on side effects" that waits for human confirmation (implementable via LangGraph interruptions or Claude Agent SDK hooks).
  7. 7Implement "Two-person approval" for refunds or production changes that exceed a set threshold.

Ideas for Chinese platforms

These design patterns translate directly to automated operations on Chinese platforms (such as official account auto-replies, second-hand platform auto-fulfillment and customer service, and community management agents), preventing account bans or financial disputes by using "draft then send" or "side-effect approval" mechanisms.

Copy-ready prompt
Please help me design a human-in-the-loop control flow for my AI agent system. My agent's main task is [fill in the agent's specific task, e.g., handling customer service tickets or executing refunds], and I need to implement the following patterns: [fill in the required patterns, e.g., confidence threshold check and side-effect approval gate]. Please provide specific architectural design or code logic recommendations.
#AI Agent#Human in the Loop#Workflow Design#Automated Operations
Replicating Stripe's internal AI agent workflow

Handle repetitive tasks using the same AI agent setup used internally by Stripe, reducing task completion time from 20 days to 4 days compared to standard Claude Code. This system is built using over 100 saved prompts (one per step) with multiple agents collaborating to handle the build work.

Generate an interactive codebase map with Claude or Codex

Use the Floorplan plugin with Claude Code or Codex to transform your application codebase into a plain-English interactive map. It displays files, modules, and cross-repo network connections, while also running app health checks and tracking recent AI modifications.

RoadmapAI: Automatically turning user feedback into product roadmaps

Deploy RoadmapAI agents on Discord, Slack, and GitHub to automatically convert every user feature request and bug report into a prioritized product roadmap, integrating with development tools via MCP.

Found this useful? Get daily updates on Telegram or X.

Summarized by AI from the original source - refer to the original post for details. Copyright belongs to the original author.

nebu.lifeNebula AI Playbook · Daily AI use cases, prompts and prices

Content is collected daily from public sources and summarized with AI. Every entry links to the original, and copyright stays with the original authors. Spotted an error or a rights issue? Let us know via the contact page.

Last updated 2026-11-02 12:11 (Beijing time)