kit

module
v0.6.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 8, 2026 License: Apache-2.0

README

hev kit

hev kit is what you need to make your machine part of a software factory. It's one binary with the tools a factory needs: a daemon that collects traces, dispatch that sends work to your hosts, and an admission controller that decides which repos a host accepts (and probably tools and skills over time). brew install hev gets you everything you need to run a factory. To get the most out of the factory you'll want headless machines locally or in the cloud.

Install

On macOS or Linux with Homebrew, the tap command works now:

brew install hev/tap/hev

Bare brew install hev needs a formula in homebrew-core. The tap formula installs the binary, which includes bundled agent skills. Existing hev/tap/kit users can upgrade that compatibility formula, which depends on hev.

Linux and Windows binaries are on GitHub Releases. Extract the archive for your OS and architecture and put the binary on your PATH. 0.6 is not tagged yet; build from main for the factory features described here (Go is required):

go install github.com/hev/kit/cmd/hev@main

See the Windows guide for capture service setup. The local archive started by hev up needs Docker on macOS or Linux.

Five-minute quickstart

Start the local archive and capture daemon, then check it:

hev up
hev s

Register a host in ~/.config/hev/dispatch.toml. This example uses your own machine; it needs Git, tmux, the Codex CLI, and an existing clone at ~/workspace/sample with an origin remote. Use a repository you want an agent to work on, and replace sample below with its directory name.

cap = 2
workspace = "~/workspace"

[hosts.here]
local = true

Save an order as order.md:

---
name: explain-project
host: here
repo: sample
base: main
harness: codex
validation: none
---
Read the project and write a short architecture guide in ARCHITECTURE.md.
Do not push or open a PR.

## Acceptance
- The guide explains the entry points and how to run the project.

Dispatch it, follow its log, and inspect the result:

hev dispatch order.md
hev dispatch logs explain-project -f
hev dispatch show explain-project

Dispatch creates an isolated Git worktree and keeps the order, status, report, and logs under ~/dispatch/explain-project/. Once capture has indexed the session, search its trace:

hev traces search 'architecture' --order explain-project

The dispatch guide covers remote hosts, inline tasks, notifications, validation, and rework. The online docs walk through the factory setup.

Dispatch

Send an order to a configured host with hev dispatch. Each order names its repository, harness, and acceptance criteria. Dispatch reserves capacity, creates a worktree, starts the agent, and records its result. It works without the capture daemon. Follow work with hev dispatch logs, inspect it with hev dispatch show, and send instructions with hev dispatch say. Replace an order with hev dispatch amend while keeping its name, branch, and PR. See dispatch.

Admission

The receiving host decides which repositories it accepts. Set top-level cap and [admission] repos in that host's dispatch configuration. Repository policy matches the clone's origin remote before fetch or worktree creation, and is checked again before rework or an ended-run relaunch. The target reads policy from its own default configuration (or its own HEV_DISPATCH_CONFIG); a sender cannot select a different admission policy. Omitted repos admits all, and an empty list admits none. A per-route host cap can lower the sender ceiling; the target enforces its own capacity. Upgrade receiving hosts to 0.6 before relying on this policy. See repository admission. Invited teammates can add and remove repositories themselves only when the owner sets [admission] add_from and grants them repos; see teammate-added repositories.

Peers

hev peers discovers agent sessions in tmux and dispatch runs using native Go; no external peers program is required. Use hev peers read to see what another agent is doing and hev peers send to coordinate before touching shared work. See peers.

Board

hev board gives agents a shared place for findings and decisions that should survive a session. Search it before repeating an investigation, then leave what you learned for the next agent. See the board.

Traces

The daemon captures coding sessions into a searchable archive built on hev layer. The default archive runs locally with Postgres and CPU embeddings. To use the shared hosted archive, export HEVLAYER_API_KEY and run hev up; capture writes to hev layer and hev open opens the public hosted dashboard. Saved targets are reused; select --store explicitly to move an existing archive setup. HEVLAYER_ENDPOINT and HEVLAYER_NAMESPACE select the gateway and archive. See hosted setup and advanced stores. Capture reads Claude Code, Codex, PI, OpenCode and dot sessions from their usual local stores. Use hev traces search to find prior work, hev traces show to read a session, and hev traces ls to list captured sessions. hev d starts capture and hev s reports its status. hev down stops capture and local services and preserves the archive.

Secret scrubbing is enabled by default, but source transcripts remain raw and scrubbing cannot cover every kind of sensitive data. Treat transcripts, the archive, and configuration as sensitive. Read redaction and archive upgrades before upgrading an existing archive. See instruction capture and session enrichment for more ways to use the record.

Secrets

Use hev secrets run --ref TOKEN=op://example/service/token -- command to resolve service-account secrets into a child's environment. The local daemon batches and caches reads in memory (five minutes by default); --ttl TOKEN=0s requires a fresh read. hev secrets status reports usage without values. See the secrets RFC for the security boundary, rate-limit behavior, and wrapper and scheduler examples.

Headless machines

Add machines in a closet or in the cloud to keep work running while your laptop is away. Remote hosts need SSH access, hev, Git, a configured agent harness, and repository clones; Unix hosts also need tmux. Each host owns its capacity and repository admission policy. Capture must be configured separately on each host. See host configuration and headless setup.

More guides live in docs/ and at hevkit.com/docs.

A machine that only sends work needs no daemon: hev skills setup installs the bundled agent skills for Claude Code, Codex, pi and OpenCode, records the machine's skills role and syncs team sources, and starts nothing. hev up runs the same bundled install. Teams can install their own pinned skills alongside bundled skills using [[skills.sources]] in the HEV config and hev skills sync. See skill sources, targeting, and scheduling.

Directories

Path Synopsis
cmd
hev command
internal
cost
Package cost prices factory's content-free accounting export.
Package cost prices factory's content-free accounting export.
dispatch
Package dispatch sends bounded agent runs to configured machines.
Package dispatch sends bounded agent runs to configured machines.
expedite
Package expedite implements the bounded follow-through policy for dispatch runs.
Package expedite implements the bounded follow-through policy for dispatch runs.
gittest
Package gittest serves bare repositories over authenticated HTTPS for tests.
Package gittest serves bare repositories over authenticated HTTPS for tests.
index
Package index drives a trace source into a Layer namespace.
Package index drives a trace source into a Layer namespace.
intake
Flat parser semantics mirrored from github.com/hev/kit/internal/dispatch/order.go.
Flat parser semantics mirrored from github.com/hev/kit/internal/dispatch/order.go.
layer
Package layer writes chunks to a Layer namespace and searches them.
Package layer writes chunks to a Layer namespace and searches them.
layerenv
Package layerenv resolves kit's public environment contract.
Package layerenv resolves kit's public environment contract.
local
Package local runs the stack that `hev up` owns: the Layer CE gateway, in front of Layer CE's own Postgres store and CPU embedding sidecar by default or of the user's Turbopuffer account, and the kit dashboard, from Compose files vendored into the binary.
Package local runs the stack that `hev up` owns: the Layer CE gateway, in front of Layer CE's own Postgres store and CPU embedding sidecar by default or of the user's Turbopuffer account, and the kit dashboard, from Compose files vendored into the binary.
nodes
Package nodes manages paste-based SSH invitations using host-owned plain files.
Package nodes manages paste-based SSH invitations using host-owned plain files.
peers
Package peers implements terminal and dispatch peer messaging without a backend.
Package peers implements terminal and dispatch peer messaging without a backend.
platformops
Package platformops implements native writer locking, private state files, and daemon lifecycle operations.
Package platformops implements native writer locking, private state files, and daemon lifecycle operations.
redact
Package redact scrubs transcript strings before archive rows or model inputs are built.
Package redact scrubs transcript strings before archive rows or model inputs are built.
redact/fixture
Package fixture builds synthetic credentials for acceptance tests.
Package fixture builds synthetic credentials for acceptance tests.
secrets
Package secrets resolves service-account references without persisting values.
Package secrets resolves service-account references without persisting values.
skillsources
Package skillsources installs explicitly configured repositories as pinned skills.
Package skillsources installs explicitly configured repositories as pinned skills.
trace
Package trace reads coding-agent session transcripts into one shape.
Package trace reads coding-agent session transcripts into one shape.
version
Package version is the release this binary was built from.
Package version is the release this binary was built from.
pkg
dashboard
Package dashboard exposes kit's read-side UI to private hosted wrappers.
Package dashboard exposes kit's read-side UI to private hosted wrappers.
nativejob
Package nativejob implements an opt-in, host-local durable process bridge.
Package nativejob implements an opt-in, host-local durable process bridge.
nodeinventory
Package nodeinventory observes this process's native OS without enrolling it or inferring executor readiness.
Package nodeinventory observes this process's native OS without enrolling it or inferring executor readiness.
outboxrelay
Package outboxrelay projects a transactional outbox into an eventually consistent document store.
Package outboxrelay projects a transactional outbox into an eventually consistent document store.
search
Package search is kit's query, for any Layer namespace: the request that `hev traces search` sends, with nothing about traces in it.
Package search is kit's query, for any Layer namespace: the request that `hev traces search` sends, with nothing about traces in it.
Package skills embeds the agent skills that `hev up` installs for Claude Code and Codex, so a brew install carries them without a clone.
Package skills embeds the agent skills that `hev up` installs for Claude Code and Codex, so a brew install carries them without a clone.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL