kit

module
v0.3.3 Latest Latest
Warning

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

Go to latest
Published: Sep 28, 2026 License: Apache-2.0

README

hev kit

Take back your agency. hev kit makes your coding agent traces searchable via a hybrid search system built on hev layer. It is free and local by default: hev up runs Layer's Postgres store and a CPU embedding model on your machine, with no account and no key. turbopuffer is the optional hosted lane. Install the hev daemon on as many machines as you want to share and search your traces. The tour is at hev.dev/kit.

[!CAUTION] Your transcripts may contain sensitive data. Coding agent sessions hold whatever the agent saw: keys pasted into a prompt, secrets on a command line, file contents, customer data. hevd indexes every coding agent session on each machine it runs on, including prompts, replies and tool calls, and writes them as they are to the archive: a Postgres volume on this machine, or your turbopuffer namespace on the hosted lane. kit does not redact anything or filter by project yet. Run it on a machine whose sessions you are comfortable storing there, and treat the archive and any key with the same care as the transcripts.

Quick start

You need macOS and Docker running.

brew install hev/tap/kit
hev up
hev query "why did the preflight fail"

hev up starts the hev layer gateway, its Postgres store, the CPU embedding sidecar and the kit dashboard in Docker, writes ~/.hev/config.toml, installs the capture daemon (hevd) under launchd, and installs the agent skills for Claude Code and Codex. The dashboard is at http://127.0.0.1:8099. The gateway embeds each chunk with BAAI/bge-small-en-v1.5 on your CPU, and hev query gets hybrid search, semantic and BM25, fused by the gateway. Nothing leaves the machine and nothing costs anything. hev down stops everything and leaves the archive in its Docker volume.

On the free lane every command and the whole dashboard work, including its session list, stats, search, filter by tool and the session summaries hev index --summarize writes. An archive started on kit v0.3.0 stored the session list's tool names as text; after an upgrade, hev up (or hevd, when it starts on the new binary) rewrites that namespace with array attributes, once, without indexing anything again.

The hosted lane: turbopuffer

With a turbopuffer API key, the gateway runs in front of your turbopuffer account instead, embeds with qwen/qwen3-embedding-8b, and every command works:

export TURBOPUFFER_API_KEY=tpuf_...
hev up

The key is saved in the config, so running hev up again needs nothing exported, and hev down leaves the archive in turbopuffer. A machine stays on the store its first hev up chose; hev up --store turbopuffer (or --store pgvector) moves it, starting the new archive empty and indexing every transcript into it again.

When every step has passed, up ends on hevd and a summary (in a terminal only; piped output keeps just the ✓ lines):

   ▄▀▄   ▄▀▄    hevd is up, capturing sessions on this machine.
  ▐████████▌    dashboard  http://127.0.0.1:8099
  ▐█ ▀  ▀ █▌    search     hev query "why did the preflight fail"
   ▀██▄▄██▀ ψ   archive    postgres, on this machine · hev-traces
    ▐█  █▌      edition    hev layer community · pro: hev pro
                stop       hev down

To build from source, run go install github.com/hev/kit/cmd/hev@latest.

Configuration

hev up writes ~/.hev/config.toml:

[layer]
endpoint = "http://127.0.0.1:8080"
api_key = "local"
namespace = "hev-traces"
store = "pgvector"

[local]
image = "hevlayer/layer-gateway:0.7.3"
embed_image = "hevlayer/layer-embed:0.7.3"
port = 8080
project = "hev-kit"
kit_image = "hevlayer/kit:0.1.1"
serve_port = 8099

[capture]
scan_interval = "5m"

On the hosted lane api_key is your turbopuffer key, store is turbopuffer, and there is no embed_image.

HEV_LOCAL_IMAGE, HEV_LOCAL_EMBED_IMAGE, HEV_LOCAL_PORT, HEV_LOCAL_PROJECT, HEV_LOCAL_KIT_IMAGE and HEV_LOCAL_SERVE_PORT override the [local] block, and hev up records them there. LAYER_EMBED_MODEL overrides the embedding model for either store; changing it on an existing archive means indexing it again into a new namespace. If a port is busy, hev up stops and names the variable to set.

To archive to a hosted Layer instead of the local gateway, run hev init and enter its endpoint, API key and namespace. LAYER_ENDPOINT, LAYER_API_KEY and LAYER_NAMESPACE override the file for commands run in your shell. The daemon runs under launchd and reads only the file.

The hev layer gateway sends anonymous telemetry: a started event and a daily heartbeat with a random instance id, the gateway version, the store kind and feature counts. The gateway hev up starts also names kit as the distribution that started it, with kit's version, and says nothing else about you or your data. It never sends queries, results or transcripts. Export DO_NOT_TRACK=1 (or LAYER_TELEMETRY=off) before hev up to turn it off.

Commands

hev up                  Start the gateway, store, dashboard and daemon (free, local)
hev up --no-dashboard   Start the gateway, store and daemon only
hev up --store <kind>   Move the archive to pgvector or turbopuffer
hev down                Stop the containers and unload the daemon
hev query <query>       Search the archive (alias: find)
hev ls                  List sessions from the last 24h (--since 5d to widen)
hev trace <session-id>  Show a session
hev                     Browse traces interactively
hev s                   Daemon status: last run, units indexed, last error
hev index               Index once (--tier all includes tool results)
hev init                Configure a hosted Layer
hev pro                 The gateway's edition, and what hev layer pro adds
hev pro trial           Open the hev layer pro trial signup
hev config show         Print the effective config, secrets redacted

hev layer pro

hev up runs the community edition of the hev layer gateway. hev layer pro is the licensed edition: scoped, revocable keys per machine or teammate, functions on write, search history, cost views and agents. hev pro asks the gateway you are pointed at which edition it is (GET /v2/license, answered offline from its key) and shows what pro adds; hev s and the hev up summary carry the same edition line, and warn when a license is within two weeks of its end. hev pro trial opens the trial signup.

kit also prints an occasional hint, on stderr, when something you just did is what pro is for (for example, sessions from several machines sharing one Turbopuffer key). Hints only appear at an interactive terminal, never inside Claude Code, Codex or CI, at most once a week each, and never change what a command does. HEV_NO_HINTS=1 turns them off.

Agent skills

skills/ holds skills that teach Claude Code and Codex to use the archive instead of their built-in session history. hev-query fans a question out into several phrasings, gathers and dedupes the hits, and reads a window of each matching session. hev up installs them into ~/.claude/skills and ~/.codex/skills for each harness installed on the machine, and replaces them on upgrade. To work on a skill, symlink it from a clone instead: hev up leaves a symlinked skill alone.

ln -sfn "$PWD/skills/hev-query" ~/.claude/skills/hev-query

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.
index
Package index drives a trace source into a Layer namespace.
Package index drives a trace source into a Layer namespace.
layer
Package layer writes chunks to a Layer namespace and searches them.
Package layer writes chunks to a Layer namespace and searches them.
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.
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
search
Package search is kit's query, for any Layer namespace: the request that `hev query` sends, with nothing about traces in it.
Package search is kit's query, for any Layer namespace: the request that `hev query` 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