h5i (pronounced high-five) is a Git sidecar for teams where AI agents write code alongside humans. Git records what changed. h5i records the rest: who, why, what the agent knew, whether it was safe, and how the next agent picks up where the last left off.
curl -fsSL https://raw.githubusercontent.com/h5i-dev/h5i/main/install.sh | sh
An agent opens a PR — having run your commands to make it. Before a human can approve, six gaps Git was never built to fill.
h5i is a Git sidecar. Your commits, branches, and remotes stay exactly as they are — h5i writes the AI context to its own refs/h5i/* refs that travel with the repo.
h5i share push / pull ▲refs/h5i/*; audits, dashboards, and PR comments are views over that shared record.One command turns an agent's edit into a reviewable record — written to refs/h5i/notes, never touching your source tree.
$ git add src/auth/token.rs $ h5i commit -m "fix token refresh" \ --agent claude --tests --audit ✔ commit 1a2b3c4 · notes → refs/h5i/notes ✔ tests: 142 passed, 0 failed (3.1s) ✔ integrity audit: 12 rules · clean $ h5i recall log --limit 1 # the diff — now with the why attached
Multiple agents share one repo. h5i gives them a typed message channel — ask, review, risk, handoff — stored append-only in refs/h5i/msg.
feat/auth — focus token.rs, risk: expiry edgessession.rs:88A test or build log can be megabytes. The agent needs the two failures and the count — not the noise. h5i stores raw output out-of-band and surfaces a tiny structured summary.
Every signal is rule-based and reproducible — blind edits, scope creep, secrets, prompt injection. Riskiest commits surface first; bad ones blocked at commit time.
$ h5i audit policy check ✔ model declared (claude-sonnet-4-6) ✔ audit flag present ✗ test metrics missing [error] 1 error — commit blocked $ h5i audit compliance --since 2026-04-01 ── Compliance Report ────────────────────── AI-generated: 74% of commits (30d) Audit coverage: 91% Policy errors: 3 warnings: 8 Top risk file: src/billing/token.rs
.h5i/policy.toml rules — block on credential leak, require audit on auth.Hand an agent a disposable environment — a git worktree plus a policy that limits what code can read, write, and reach over the network. It picks the strongest isolation the host supports, records every command and blocked access, and nothing reaches your branch until you apply.
$ h5i env create fix-auth created env · isolation: supervised # net.egress = ["example.com"] — allowlist $ h5i env shell fix-auth box$ curl https://example.com 200 OK — on the allowlist box$ curl https://evil.example could not resolve host — blocked box$ nft flush ruleset Operation not permitted — can't undo it
Eight worked use cases — blame, resume, uncertainty heatmaps, claims, the web dashboard, and the full five-verb feature reference.
refs/h5i/*.prelude, sync, and finish commands. Both agents restore the same shared context when a session starts and check their work back in when it ends.refs/h5i/* refs, so it travels with the repo without touching your commit history.h5i audit scan applies deterministic regex rules to every OBSERVE/THINK/ACT entry in an agent's reasoning trace to flag prompt-injection signals — with no model in the audit path — and can rank which commits most need human review.h5i env gives an agent a disposable, confined environment — a git worktree plus a policy that limits what code can read, write, and reach over the network. It picks the strongest isolation the host can enforce (Landlock + seccomp + namespaces, up to a rootless network egress allowlist), records every command and blocked access, and nothing reaches your branch until you apply. No root and no VM required.h5i versions the thinking behind your code — so every session resumes where the last one left off. Apache 2.0. No lock-in.