English · 中文
Put agents on your production signals without handing them the keys.
A signal comes in: an alert, a chat message, a ticket, a timer. A pipe signs, routes and prices it. An agent investigates it read-only, and proves it is read-only at startup. The report reaches a person as a card they can rule on.
An agent can hold the controls too: one token, one door, each act under its own name and at a rung a person set. A person keeps every path they had — and the last word.
| service | what it does |
|---|---|
hookrelay |
The pipe. Adapts any webhook, routes it, delivers to chat, and keeps one ledger of every hop. |
hookjudge |
The judge. Decides cheaply whether a person must act now. Most events never pay for a model. |
hookprobe |
The investigator. One read-only agent run per event, behind an OpenClaw-compatible HTTP contract. It also runs on its own. |
hookstack |
The operator's door. One token for an agent that operates the stack, a grant at a time — and the leash for the person who decides what that means. |
The investigator is the product. The pipe and the judge are the smallest alerting front end for a team that has none. One deployment is one team: this is not a work-management platform, a multi-tenant SaaS or an agent framework.
-
30 seconds: docs/quickstart.md opens with the shape of it — three services, one diagram.
-
10 minutes, no keys, no bill: pipe + judge + a stub model + the investigator on a rehearsal + a readable sink. Docker is the only prerequisite.
curl -fsSLO https://raw.githubusercontent.com/itswl/hookstack/main/docker-compose.quickstart.yml docker compose -f docker-compose.quickstart.yml up -d bash <(curl -fsSL https://raw.githubusercontent.com/itswl/hookstack/main/scripts/demo.sh)The demo runs the whole loop: an alert judged, a recorded investigation replayed through the real read-only gate, the report as a card, an approve press running two allowlisted commands, the alert resolved. docs/quickstart.md has the rest of it — a real model, the boards, the half-day path.
-
Ten minutes: an agent on the controls: docs/agents.md — make an agent in shadow, read what it would have done, raise one grant. The door is in the published quickstart since 0.12.0, and in
docker compose upfrom source. -
Half a day, for real: STACK.md runs all four from source; docs/containment.md is the boundary map you read before pointing it at a cluster.
-
What it does, in full: docs/what-you-get.md.
The three boards install on a phone as apps, read in Chinese or English and follow the system's light or dark; the full tour has every screenshot, from local runs and not mockups.
upstreams ──► hookrelay ──► hookjudge ──► hookrelay ──► chat bridge / webhook
│
└──► hookprobe ──► hookrelay ──► the same channels
(critical/high; a rehearsal until it has a model)
an agent ──► hookstack :8400 ──► each service's own doors, a grant at a time
people ◄── hookrelay /hook/operator ◄── what an agent hands over
The same pipe also carries an operator's own work signals to a planner and, on a person's press, to a work runner (two deployment shapes, one codebase).
- docs/quickstart.md: the one page to start from
- docs/agents.md: agents and people — an agent on the controls, a person with the last word
- docs/what-you-get.md: the feature list, in full
- OVERVIEW.md: the tour, with every screenshot
- STACK.md: run the whole stack locally, step by step
- hookrelay, hookjudge, hookprobe, hookstack: each service in depth
- docs/containment.md: the security boundaries
- docs/bridge-protocol.md: how a card reaches a chat platform
- CONTRIBUTING.md: gates and workflow
bash scripts/gate.sh runs every service's gate plus the stack checks. Read its verdict before you commit. The pipe caps itself at 7,600 source lines, the judge at 4,000 and the operator's door at 5,300; the investigator is uncapped.
MIT licensed.

