hitl-patterns

Community

Human-in-the-Loop patterns for CopilotKit.

Authorrwxproject
Version1.0.0
Installs0

System Documentation

What problem does it solve?

Comprehensive HITL patterns for CopilotKit, including reusable React components and hooks to implement approval workflows, user input collection, option selection, and progress confirmation.

Core Features & Use Cases

  • Core hook: useHumanInTheLoop provides a unified pattern to collect human feedback and approvals within LLM-driven workflows.
  • Pattern 1: Approval Workflow - Request user approval before executing sensitive actions using UI dialogs.
  • Pattern 2: User Input Collection - Collect structured information from the user via dynamic forms.
  • Pattern 3: Option Selection - Present multiple options for the user to choose from.
  • Pattern 4: Progress Confirmation - Confirm workflow progress and continuation.
  • Use Case: Integrate HITL patterns into CopilotKit-powered agents to streamline human-in-the-loop interactions.

Quick Start

Integrate useHumanInTheLoop into your React components and trigger on approvals, input collection, and option selections.

Dependency Matrix

Required Modules

None required

Components

Standard package

💻 Claude Code Installation

Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.

Please help me install this Skill:
Name: hitl-patterns
Download link: https://github.com/rwxproject/agent-framework/archive/main.zip#hitl-patterns

Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
View Source Repository