Command Palette

Search for a command to run...

UnylyUnyly
Весь каталог

Huqan

БесплатноПоддерживается

Local-first verification layer for AI agents: evidence, provenance, policy gates, human approval, and auditable Trust Receipts before a claim, memory write, or

GitHubEmbed

Описание

Local-first verification layer for AI agents: evidence, provenance, policy gates, human approval, and auditable Trust Receipts before a claim, memory write, or action is trusted.

README

An agent proposes something. HUQAN decides whether it lands.

It is a local gate between what an AI agent produces and the state that output would change — a memory entry, a repository, a tool call. Every decision leaves a Trust Receipt: what the evidence was, which policy applied, who approved it. No model, no cloud, no API key.

npm Node License

Sixty seconds

$ npx -y huqan quickstart
HUQAN quickstart — learn -> review -> approve -> verify -> Trust Receipt
  1. OK   propose: huqan.learn -> review (mutating_requires_review), approval approval-…
  2. OK   approve: huqan.approve -> approved (actor cli-quickstart)
  3. OK   verify: verified (confidence 0.90)
  4. OK   receipt: receiptId … (status canonical)

Read line 1 again: the write did not happen. It was held. It happened at line 3, after something approved it, and line 4 is the durable record of why. That gap is the entire product.

The quickstart runs against a throwaway store in your temp directory. It does not touch your own memory and does not relax a gate.

Install

Node.js 22.13.0 or newer.

npm install -g huqan

Three binaries: huqan (CLI), huqan-mcp (MCP server over stdio), huqan-gate (pre-execution guard for external agents). PDF ingest and PDF receipt export are optional dependencies — --omit=optional drops both, JSON export is unaffected.

The decision

Everything routes through one pipeline:

evidence + provenance + workspace scope
        → verification, contradiction, risk
                → policy and approval boundary
                        → outcome + Trust Receipt

The outcome is one of:

ALLOW / REVIEW / QUARANTINE / DRY-RUN ONLY / BLOCK / REJECT

Which of them are reachable depends on the gate. A tool call can come back allow, review, dry_run_only or block. A memory write adds quarantine and reject, because a write can be set aside for inspection rather than refused outright.

Escalation is a decision a person makes, not one the gate returns. A reviewer can move a pending case to escalated instead of deciding it, and nothing executes until the authority it was raised to answers. That requires a second approver, so it is simply absent in a single-user install. The decision types are approve, reject, expire, cancel, escalate and override — see lib/human-oversight-approval-runtime.js.

A passing verification is not a certificate of truth. It is a result produced inside one configured boundary, and the receipt names which one.

Wiring it in

MCP — for Claude, Cursor, or anything else speaking the protocol:

{
  "mcpServers": {
    "huqan": {
      "command": "npx",
      "args": ["-y", "--package=huqan", "huqan-mcp"]
    }
  }
}

--package=huqan is required: the binary name differs from the package name.

Three operator tools — huqan.approve, huqan.approvals, huqan.agent_resume — are withheld from tools/list and need HUQAN_MCP_OPERATOR_TOKEN. A model that proposes a mutation cannot approve it through the catalog it can see. Operator capabilities are single-use and the record of a spent one survives restarts and workers; if it cannot be written, verification fails closed.

Any other agenthuqan-gate takes a brand-independent envelope and ships with Claude Code, Codex, OpenCode, Pi and Hermes projections. It is enforcement only when the client calls it before executing; a hookless client needs a wrapper, gateway or sandbox. Details.

As a library:

const Kernel = require('huqan');   // KernelV2, the canonical runtime
const kernel = new Kernel();

As a local serverHUQAN_API_KEY=… npm run server serves port 3000: read-only /api and /graph-data, guarded /verify and /upload, the UI at /, and a read-only receipt viewer at /viewer. Mutations authenticate with X-API-Key or a bearer token.

Limits

A verification tool that oversells itself has refuted its own thesis, so:

  • HUQAN does not eliminate hallucinations. It makes one inspectable and blockable before it becomes state.
  • Coverage is whatever is actually wired. An unconnected agent is not governed, and HUQAN does not pretend otherwise.
  • Some modules pass unit tests without being reachable from the production entry-point graph in lib/module-reachability.js — currently bounded V5, Self-Healer and connector entries. An isolated green test is not deployment evidence.
  • The A2A routes are deployment-gated. Unconfigured, they answer 404 rather than 401, so an install never advertises a surface it cannot serve.
  • It complements IAM, application and infrastructure security, and human governance. It replaces none of them.

Neighbours, not substitutes

Four tools get compared to HUQAN. Each owns a different boundary, and one system can reasonably run all of them:

Reach for When the problem is HUQAN's job instead
NeMo Guardrails Filtering an LLM's inputs and outputs — safety, topic, PII, jailbreak controls Deciding whether an output earned the write, and recording why
LangChain guardrails and HITL middleware Framework-native checks and a pause-and-resume step around selected tool calls A durable receipt binding evidence, scope, policy and approval to one decision
Docker MCP Gateway MCP server lifecycle, credentials, routing, container isolation The decision inside the call, not the isolation around it
DeepEval Scoring model quality against datasets, in CI The single live action, judged before it lands

This is a comparison of focus, not a claim that any of them lacks features outside its primary documentation. Evals score a model offline. Tracing says what happened last night. IAM says who may call the API. HUQAN answers the question none of them ask: should this specific output be trusted, right now, before it lands?

Full reasoning, sources, and the cases where HUQAN is the wrong choice: competitive positioning.

More

npm ci && npm test                    # full suite
npm run conformance:external          # consumer conformance
npm run pilot:trust-receipt           # bounded receipt pilot

Operating roadmap · Agent Action Firewall · A2A deployment · NLP boundary · Threat model · Security · Contributing · Discussions

When a summary and the repository disagree, the repository wins: product surfaces, module reachability, package.json.

License

AGPL-3.0-only. A commercial license is being prepared; those terms are not yet operative and this repository grants no commercial rights. CLA.md is a review draft, not an operative agreement.


Confidence is not truth. Verify before you trust.

from github.com/ali-ulu/huqan

Установить Huqan в Claude Desktop, Claude Code, Cursor

Рекомендуется · одна команда, все IDE
unyly install huqan

Ставит в Claude Desktop, Claude Code, Cursor и VS Code — сам разбирается с npx, uvx и сборкой из исходников.

Впервые? Поставь CLI: curl -fsSL https://unyly.org/install | sh

Или настроить вручную

Выполни в терминале:

claude mcp add huqan -- npx -y huqan

Пошаговые гайды: как установить Huqan

FAQ

Huqan MCP бесплатный?

Да, Huqan MCP бесплатный — установка в пару кликов через Unyly без оплаты.

Нужен ли API-ключ для Huqan?

Нет, Huqan работает без API-ключей и переменных окружения.

Huqan — hosted или self-hosted?

Self-hosted: сервер запускается локально на твоей машине командой из раздела установки.

Как установить Huqan в Claude Desktop, Claude Code или Cursor?

Открой Huqan на unyly.org, выбери вкладку своего клиента (Claude Desktop, Claude Code, Cursor) и нажми Install — конфиг сгенерируется автоматически, без правки JSON.

Похожие MCP

Fetch

Web content fetching and conversion for efficient LLM usage.

автор: Community

Roblox Studio

Enables AI coding tools to control Roblox Studio for workspace exploration, instance manipulation, and script management. It provides tools for playtesting, sce

paralovавтор: paralov

AWS KB Retrieval

Retrieval from AWS Knowledge Base using Bedrock Agent Runtime.

modelcontextprotocolавтор: modelcontextprotocol

Spring AI MCP Server

Provides auto-configuration for setting up an MCP server in Spring Boot applications.

автор: Community

llm-analysis-assistant

A very streamlined mcp client that supports calling and monitoring stdio/sse/streamableHttp, and can also view request responses through the /logs page. It also

xuzexin-hzавтор: xuzexin-hz

MCP-Agent

A simple, composable framework to build agents using Model Context Protocol by [LastMile AI](https://www.lastmileai.dev)

lastmile-aiавтор: lastmile-ai

Spring AI MCP Client

Provides auto-configuration for MCP client functionality in Spring Boot applications.

автор: Community

mcp.natoma.ai

A Hosted MCP Platform to discover, install, manage and deploy MCP servers by [Natoma Labs](https://www.natoma.ai)

автор: Community

MCPHub

Website to list high quality MCP servers and reviews by real users. Also provide online chatbot for popular LLM models with MCP server support.

автор: Community

MCP Servers Rating and User Reviews

Website to rate MCP servers, write authentic user reviews, and [search engine for agent & mcp](http://www.deepnlp.org/search/agent)

автор: Community

Compare Huqan with

Не уверен что выбрать?

Найди свой стек за 60 секунд

Автор?

Embed-бейдж для README

Похожее

Все в категории ai