/loxihart-ai:designing-hitl-workflowsfrom loxihart-ai
Designs human-in-the-loop (HITL) checkpoints for AI agent workflows — deciding where to pause for human approval, structuring the approval interface, handling timeouts and non-responses, and building escalation paths from automated to human. Covers implementation patterns for n8n wait nodes, Claude API stop sequences, and Base44 approval queue panels. Use when designing agents that need human oversight, building approval workflows, adding checkpoints to autonomous processes, deciding what actions require human sign-off, structuring escalation from AI to human, or building trustworthy agents for client delivery. Also triggers on: pause before action, approval queue, human approval, agent oversight, require confirmation, HITL, human review, escalation workflow, client agent trust, consequential action, irreversible action.
Ships in loxihart-ai. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
Read when SKILL.md points to them.
The purpose of HITL is not to slow down automation — it's to build trust in automation by making the right actions safe to delegate and keeping humans in control of the actions that aren't.
An agent that always asks for approval isn't autonomous. An agent that never asks isn't trustworthy for consequential work. HITL is the design discipline that determines which is which.
What are you building?
│
├─ Where should I put checkpoints in this workflow?
│ → Section 1: Checkpoint Placement Framework
│
├─ What should the approval interface look like?
│ → Section 2: Approval Interface Patterns
│
├─ What happens if the human doesn't respond in time?
│ → Section 3: Timeout and Escalation Handling
│
└─ I'm implementing HITL in n8n / Claude API / Base44
→ references/hitl-patterns.md (implementation patterns)
Run this gate on each action the agent can take:
Is the action irreversible OR high-consequence OR affects a non-consenting third party?
├─ YES → HITL checkpoint REQUIRED (Section 1: "always checkpoint")
└─ NO → Is it a high-volume batch whose aggregate undo cost is high?
├─ YES → HITL checkpoint REQUIRED (batch approval)
└─ NO → No checkpoint; log and monitor, or automate freely
Place checkpoints based on two dimensions: reversibility and consequence.
HIGH CONSEQUENCE
│
CHECKPOINT │ ALWAYS CHECKPOINT
if high volume │ (mandatory human review)
│
LOW ─────────────────────────────────────────── HIGH
REVERSIBILITY │ REVERSIBILITY
│
AUTOMATE │ LOG AND MONITOR
freely │ (audit trail, no pause)
│
LOW CONSEQUENCE
Always checkpoint (high consequence, low reversibility):
Checkpoint if high volume (low consequence, but many at once):
Log and monitor (high reversibility, low consequence):
Automate freely (low consequence, fully reversible):
Before finalizing checkpoint placement: would a reasonable client be surprised to learn this action happened automatically without their knowledge? If yes: add a checkpoint.
Every approval request MUST answer:
Template:
🔔 Approval Required
Action: Send proposal email to Marcus Webb ([email protected])
Reason: Discovery call completed — agent generated follow-up proposal
based on call notes. Budget: $8,500, SOW attached.
[Approve] [Reject] [Edit before sending]
No response in 4 hours → action will be paused, not sent.
Default on timeout: pause, never proceed.
An agent that proceeds without approval when the human doesn't respond is not a HITL system — it's an automated system with a courtesy notice. The default on timeout must be to pause the workflow and hold state.
T+0:00 → Approval request sent (primary channel: Slack DM or email)
T+1:00 → Reminder with escalating urgency language
T+4:00 → Escalation to secondary contact (if defined)
T+24:00 → Workflow paused, task queued for manual review
T+72:00 → Task expires, logged as "requires re-initiation"
Adjust timeframes to workflow urgency. A client-facing proposal can wait 24 hours. A time-sensitive booking might need 30 minutes.
Every HITL workflow should define:
primary_approver: [EMAIL]
secondary_approver: [backup contact or team channel]
timeout_minutes: 240
on_timeout: pause # never: auto-approve
escalation_message: "Action pending approval for 4 hours — needs review"
Platform-specific implementation — n8n Wait nodes, Claude API tool-based HITL / stop sequences, and the Base44 approval queue panel — lives in references/hitl-patterns.md. Place the checkpoints here (Sections 1–3), then wire them up there.
What SKILL.md sets; muted values are Claude Code's defaults
npx claudepluginhub krosebrook/loxihart-skills --plugin loxihart-aiOther plugins' skills for the same job
37 skills in this plugin
/ai-agents-workflowBuilds and implements AI agents, automation workflows, and tool integrations — MCP servers (2025 async, OAuth, stateless spec), LangChain and CrewAI agents, multi-LLM orchestration, and no-code platforms. Use when the user mentions: MCP server, build an agent, tool integration, API orchestration, multi-LLM routing, OAuth flow, webhook, connect services, deploy a workflow, integrate external APIs. Not for conceptual architecture overviews (use orchestrating-ai- agents), not for production n8n incident ops (use operating-n8n-production), and not for pure no-code platform wiring (use workflow-automation).
/ai-solution-architectureDesign pre-sales technical architectures for AI/ML solutions targeting B2B enterprise clients. Use when scoping AI implementations, designing reference architectures, mapping integration patterns, estimating infrastructure requirements, or preparing technical proposals. Triggers on solution design, AI architecture, technical scoping, integration mapping, infrastructure sizing, pre-sales engineering for AI projects./applying-adversarial-reviewApplies Kyle's adversarial review methodology to consequential outputs. Forces every recommendation, audit, plan, or claim through three checks before shipping: a CLAIMS / COUNTEREXAMPLE / CONTRADICTIONS footer, [SOURCED] vs [GENERATED] provenance labeling, and an agreement-streak flag at three consecutive consequential agreements. Use when finishing an audit, writing a recommendation, delivering a plan, drafting a decision memo, or producing any high-stakes deliverable. Also triggers when explicitly asked to pressure-test, stress-test, steelman, play devil's advocate, fight an idea, or check for blind spots. Triggers on: adversarial review, anti-sycophancy, claims footer, stress test this, steelman this, pressure test, devil's advocate, am I missing anything, what could go wrong, sourced vs generated, agreement streak, push back on this, where am I wrong, review this PR, pull request review, code review, PR feedback.