AI agents can perform real-world actions: deleting data, deploying services, spending funds, and sending messages. Having the capability to run tools does not mean the human has granted authorization. Existing human-machine interaction mechanisms often validate a vague fact (“the human touched the sensor”) and then grant the agent a generic verified = true, usually valid for a period of time. This cannot bind approval to a precise operation. Approving rm -rf ./test-data silently authorizes rm -rf ./production-data. dsh-human-intent fills this gap.
What is this¶
guhanfei-ai/dsh-human-intent is a DSH plugin designed to verify human intent and cryptographically authorize AI agent operations.
It ensures that authorizations are precisely action-bound, cryptographically signed, single-use, time-limited, and auditable. This plugin solves the “capability != authority” problem by precisely binding human approval to the specific command to be executed.
Installation and Activation¶
In a local development environment, install the plugin using the following command:
dsh plugin --profile web add link:/Users/you/dsh-human-intent
Core Functions¶
The plugin provides the following core capabilities:
- Precise Action Binding: Approvals are hashed and signed, covering the exact tool, target, and parameters; any mutation invalidates them.
- Cryptographic Signature: Uses WebAuthn (platform authenticators, passkeys, or security keys) for full server-side verification.
- Single-use & Expiration: Authorizations are valid for exactly one execution, and requests/receipts have short validity periods.
- Auditable: Local append-only logs record all state transitions.
- Policy Enforcement: Protects specific
protectedToolsvia thetools/pre-executepolicy hook. - API & UI: Provides
human_intent_request,human_intent_verify,human_intent_statusinterfaces, along with a Better Sidebar approval panel and WebAuthn UI.
Typical Usage¶
After installing and running the DSH client, you can interact and debug using the following commands:
- Run Interactive Demo:
npm run demo
This opens a browser for registration (Touch ID / Windows Hello / passkey) and demonstrates the full process of the agent proposing a destructive command, human approval/rejection, and the terminal outputting the encrypted result.
- Start Approval Server:
npm run serve
Runs on `http://localhost:8787` by default.
- Inspect Receipt:
Verify the structure, integrity, and signature of the receipt.
node bin/dsh-human-intent.js inspect receipt.json
- Read Audit Log:
View locally stored audit records.
node bin/dsh-human-intent.js audit
Use Cases & Notes¶
- Environment Requirements: Requires Node.js >= 20.11.
- Local Development: The DSH client UI must be served from
localhostfor WebAuthn to function. The DSH host origin must be in the configuredallowedOrigins. - Security Model: This project is not a biometric identification system, nor does it identify specific natural persons. WebAuthn proves that a user holding a registered credential performed a User Verification gesture, not the identity of a specific natural person.
- Conceptual Distinction: Please note the difference between “Capability” (the agent’s ability to call a tool) and “Authority” (the permission granted by the human to execute it). This plugin only addresses the latter.
Summary¶
This plugin provides a secure human-machine interaction layer based on WebAuthn for the DSH plugin ecosystem. It cryptographically binds human approval to specific operations, ensuring that agents can only execute explicitly authorized actions.