Skip to content

Viewport HITL

Declare which actions need a person, route each request to the right channel, and wait for the answer durably, across restarts. Every decision leaves an audit receipt with who approved what, when, and on which evidence.

On npm and PyPIOn npm and PyPI. Install it today.
npm install @viewportai/hitl
pip install viewport-hitl
Approval requestedsupport-agent, run 1842Waiting

issue_refund wants to refund $42.50 on order A-1001.

Policy
refunds-over-25 says ask
Evidence
Order delivered, photo of damage attached
Channels
Console, Slack
Timeout
Deny after 24h
DenyApprove

The run is paused durably and resumes when someone answers.

Sample data.

What it does

Declarative policies

Allow, deny or ask, by tool, argument and risk threshold. Policies are data you can review in a pull request.

Approval channels

CLI, Slack, webhook or a small web view. Channels are an interface, so your own inbox can be one.

Durable pending approvals

A request survives a restart and resumes when someone answers. SQLite by default, your database in production.

Audit receipts

Each decision is also recorded as an approval event in the run's trajectory, so Evals can assert on it.

Native adapters

LangGraph interrupts, Claude Agent SDK permission hooks and OpenAI Agents SDK guardrails, without rewriting your agent.

A fake for your tests

A test helper that auto-approves or auto-denies and records every request, so approval paths are unit-testable.