Skip to content
itswlPublic

About

Put agents on your production signals without handing them the keys. A pipe signs, routes and prices every signal; an investigator runs read-only and proves it at startup; what survives reaches a person with an audit trail. Self-hosted; the investigator also stands alone.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

hookstack

ci ci-hookjudge ci-hookprobe

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.

Start here

  • 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 up from 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.

hookprobe's console: a real investigation on GLM-5.3, its conclusion first, what it observed set apart from what it could only infer, and its cost in the header

the three boards on a phone, each laid out as an app with a frosted tab bar along the bottom: the pipe's alerts under a large title, its one sentence glowing amber because two things wait on you; the investigator's runtime page with the procedure a person approved and what each command printed; the judge's board

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.

How it fits together

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).

Read more

Developing

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.

About

Put agents on your production signals without handing them the keys. A pipe signs, routes and prices every signal; an investigator runs read-only and proves it at startup; what survives reaches a person with an audit trail. Self-hosted; the investigator also stands alone.

Topics

Resources

Contributing

Security policy

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages