Approve, Edit, or Take the Wheel Before Agents Act

Local-first Action Card and takeover UX layer for consequential AI agent actions. Pause before side effects, approve with full context, replay runs as stories.

โšก Quick Start ๐Ÿ“– Read the Docs GitHub โ†—
๐Ÿ“ฆ npm alpha
๐Ÿ”ง TypeScript
๐ŸŽญ Playwright
โš›๏ธ React UI
๐Ÿ”’ Local-first
๐Ÿ“œ Apache-2.0

The Clutch Point

Agents are moving from chat into action. AgentClutch owns the moment something consequential is about to happen.

1

Agent proposes an action

A prompt app, wrapped tool, or engineered loop proposes a side effect โ€” clicking checkout, sending a message, deleting a file, changing a record.

2

AgentClutch normalizes it

The proposal becomes an ActionProposal, then an inspectable ActionCard โ€” showing target, evidence, consequence, and risk.

3

Human decides

Approve once, edit fields, take the wheel, block, or create a rule. The intervention is recorded.

4

Run resumes with context

AgentClutch returns LoopResumeContext and the agent continues. The entire run can be replayed as a human-readable Run Story.

What's In the Box

Everything you need to add human-in-the-loop control to any agent workflow.

๐ŸŽฏ

Action Cards

Inspectable UI cards showing what will happen, where, with what evidence, and what the consequences are โ€” before anything executes.

โš™๏ธ

Loop Engine

Pause and resume agent loops with structured context. Loop-native internally, prompt-compatible at the SDK edge.

๐Ÿ“œ

Recorder

Local JSONL recording of every action, intervention, and decision. Full audit trail without any external service.

๐ŸŽญ

Playwright Adapter

Browser automation with clutch points. Pause before clicks, form submissions, and checkout โ€” inspect before committing.

โš›๏ธ

React UI Components

Drop-in Action Card viewer, Run Story player, and consequence display. Styleable, composable, framework-friendly.

๐Ÿ“

Rules & Lessons

Create rules to auto-approve, block, or require clutch on matching patterns. Teach Mode captures human corrections as reusable lessons.

โš ๏ธ

Consequence Registry

Structured metadata for every action type โ€” reversibility, compensation, severity. Know what happens if it goes wrong.

๐ŸŽฌ

Run Story

Replay any recorded run as a human-readable story. Perfect for review, debugging, demos, and compliance.

๐Ÿ“ฆ

npm Packages

@agentclutch/core, @agentclutch/cli, and more. Install with npm or pnpm, run anywhere.

Quick Start

Try the FakeStore interactive demo in under 2 minutes โ€” a real browser, a real clutch point, a real decision.

# Install and build pnpm install --frozen-lockfile pnpm build pnpm exec playwright install chromium # Run the checkout demo pnpm demo:checkout # Or use the npm alpha CLI directly pnpm dlx @agentclutch/cli@alpha demo checkout
Full Quick Start Guide โ†’

One Action, One Clutch

Wrap any risky action with prompt_guard โ€” the simplest way to add a clutch point.

import { promptGuard } from '@agentclutch/core' const result = await promptGuard({ action: { type: 'browser.click', target: { selector: '#checkout', label: 'Checkout Button' }, sideEffect: 'Submits the order form and charges the payment method on file.' }, host: { name: 'my-app', version: '1.0.0' } }) // result.decision โ†’ 'approve' | 'edit' | 'block' | 'wheel' | 'rule' // result.edited โ†’ modified fields if user edited // result.rule โ†’ new rule if user created one

Stop Guessing. Start Clutching.

Add human-in-the-loop control to your agent workflows today.

GitHub โ†— npm โ†— ๐Ÿ“– Docs