Scan your whole stack
From OX Research Newsroom
Are you using h2cv?
Find out what’s in your code.
Scan your apps free in minutes (opens in a new tab)Latest version: v0.5.9
h2cv was last scanned on 27 Nov 2026 at version 0.5.9. Risk score 0 of 100. No malicious behavior was detected.
| Version | Published | Status |
|---|---|---|
| 0.5.9 LATEST | 27 Nov 2026 | No rules fired |
Findings for v0.5.9. The score is a capped sum of the weights of the rules that fired — not CVSS, not exploitability, and not a probability. It is not comparable across packages with different scan coverage.
The score describes 0.5.9; other versions have their own rules, not their own score.
The publisher’s own README, as collected from the registry.
Hand Claude Code a job that is bigger than one session — or one you want done while you are away — and let it start the extra Claude Code sessions it needs, with each instruction verified as delivered.
All of these need one claude session (or a script) to start another claude session and type into it. h2cv is the one command that does that and tells you, in JSON, whether it worked.
It runs on top of herdr, a terminal workspace manager for AI coding agents: herdr owns the tabs and panes the sessions live in, and herdr server is its headless server.
You need herdr and claude on PATH, a running herdr server, and a directory you have opened claude in before (a new directory shows the workspace-trust dialog, and h2cv stops with untrusted-workspace rather than answer it for you).
npm install -g h2cv
h2cv launch --cwd ~/your-project --prompt 'Say hello in one sentence, then stop.'
A new tab named after the directory appears in herdr, claude starts in it, and the prompt is typed and submitted. A few seconds later the command prints one JSON document with ok: true, the pane the session lives in, and the generated agentName. Switch to that tab and claude has already answered. Close the tab when you are done; h2cv leaves it open on purpose.
The more common way to use it is to hand it to an agent and let it read its own manual. h2cv --help is a machine-readable command catalog and h2cv explain is the mechanics; both are written to be consumed by an LLM and relayed to you.
claude -p '
Using the `npx h2cv` command,
start another Claude Code session with --remote-control.
Read `npx h2cv --help` first.'
herdr ships a skill file for AI agents, and asking claude to "type this into the other pane" looks like it should be enough. In practice the instruction arrives on the fourth attempt, or twice, and the agent spends your tokens and your waiting time on pane ids and screen dumps instead of the work. You end up checking on it because nothing seems to be happening. Two examples of what goes wrong in the Claude input box:
/review opens the completion menu, and the Enter that should submit it only closes the menu. The body sits in the box, and sending the whole message again creates a duplicate.No single retry or sleep fixes these; each one needs its own check of the screen.
h2cv runs those checks deterministically and reports the state it observed. h2cv explain failure-modes lists every failure mode it defends against, its mitigation, and the documentation topic for it. claude and herdr change often, and h2cv is the compatibility layer that absorbs those changes.
herdr and claude on PATHherdr server), kept resident by whatever means you preferserver-down when it is absent; it never starts the server for you. See h2cv explain launch-sequence for why the line is drawn therenpm install -g h2cv
launch — start a session and deliver the first prompth2cv launch \
--cwd /home/you/project \
--agent-name my-agent \
--prompt '/summarize README.md' \
-- \
--model claude-sonnet-5 \
--remote-control my-agent \
-n my-agent
Everything after -- is passed straight through to claude, and nothing is added to it. The session name claude sees (-n) and remote control are yours to pass; --agent-name only names the herdr agent and the tab. Omit --prompt to start the session.
--agent-name is optional. herdr needs a name to start an agent at all, so omitting it derives one from the pane (h2cv-w<N>-p<M>) and labels the tab with the basename of --cwd; the name that was used comes back as agentName in the success JSON either way.
Pass --pane <paneId> in place of --cwd to start the session in a pane you created yourself. The startup sequence is otherwise identical — the pane is still probed for shell readiness before anything is typed into it — but the tab is yours to create and to close.
send — deliver text to an existing pane and verify the submith2cv send --pane "$HERDR_PANE_ID" 'run the tests and report failures'
h2cv send --agent-name my-agent 'run the tests and report failures'
The destination is exactly one of --pane <paneId> or --agent-name <name>. --pane is the handle to carry around: a canonical pane id (w<N>:p<M>, where each number is base32 over 123456789ABCDEFGHJKMNPQRSTVWXYZ0, so anything past the ninth pane reads like w1:p2K) whose value stays valid across waits and retries, and inside a session $HERDR_PANE_ID already holds it. --agent-name is folded into a pane id by a single agent get before anything is typed — the name itself is not a handle, because its binding is released the moment claude exits, so a name that resolves to nothing fails as agent-vanished rather than typing anywhere.
Slash commands go through the same command. Anything that starts a turn is verified by waiting for the session to start working; commands that never start one (/clear, /rename, /exit, /quit) are verified by watching the input box clear instead. The caller does not have to know which is which — send picks the check from the text, and says which one it used.
{
"ok": true,
"target": "w1:p58",
"attempts": 1,
"evidence": "herdr-agent-working",
"trace": [
{ "attempt": 1, "stage": "alive", "ms": 41, "result": "ok" },
{ "attempt": 1, "stage": "box", "ms": 38, "result": "ok" },
{ "attempt": 1, "stage": "type", "ms": 94, "result": "ok" },
{ "attempt": 1, "stage": "enter", "ms": 199, "result": "ok" }
]
}
Every step of the run is a named stage, and trace records how long each one took and how it ended. evidence says what actually proved the submit landed.
When the submit cannot be verified, the same command returns ok: false with error: "send-unverified", the stage it stopped in, and the terminal snapshot (verify, sendVerdict, lastAgentStatus, boxBody, paneTail, detection) that tells the caller whether re-firing is safe.
Every failure object carries a hint pointing at the topic that explains it. An agent that reads the hint can work out what to do next on its own.
{
"ok": false,
"error": "send-unverified",
"stage": "enter",
"verify": "herdr-agent-working",
"sendVerdict": "submitted-late",
"hint": "h2cv explain send-protocol"
}
explain — how each layer behavesh2cv explain tells your AI agent how each layer actually behaves — the startup pipeline, the input-ready stages, the send protocol, the output contract, and the failure modes it exists to defend against. Each topic carries the stage table it covers, generated from the same registry the implementation reports stage and trace from.
h2cv explain # topic list
h2cv explain failure-modes # what goes wrong, and where each defense lives
h2cv explain send-protocol # a topic
h2cv explain send-unverified # or an error code you just received
launch is one command that starts a session, delivers the first prompt, and exits — so anything that can run a command can start a skill session, with no agent in the loop. A systemd user service and the timer that fires it:
# ~/.config/systemd/user/standup-morning.service
# If you keep the herdr server in a unit of your own, point Requires=/After= at it here.
[Service]
Type=oneshot
ExecStart=/usr/bin/env h2cv launch \
--cwd /home/you/project \
--agent-name morning-session \
--prompt '/standup Take stock of what happened last night.' \
-- \
--model claude-sonnet-5 \
--remote-control morning-session \
-n morning-session
# ~/.config/systemd/user/standup-morning.timer
[Timer]
OnCalendar=*-*-* 09:00:00
Persistent=true
[Install]
WantedBy=timers.target
systemctl --user enable --now standup-morning.timer
launch never closes the tab it created, so the session is still sitting in its pane — with the skill run behind it — when you get to the machine. The unit's own exit status is the startup verdict: the launch JSON goes to the journal, and a startup that could not be verified fails the unit rather than leaving a silent pane.
An agent that has read h2cv --help can open a pane, start a session in it, and hand that session a skill to run, all from one prompt.
claude -p '
Using the `npx h2cv` command,
launch another Claude Code session in a new pane
and have it run the `/review` skill.'
h2cv --help is the machine-readable catalog of every command, including the two this page does not cover: wait-input-ready (wait until a pane can take input, without sending anything; it takes the same --pane / --agent-name pair as send) and self-send (a send whose target is the caller's own pane). h2cv explain without arguments lists the topics.
npm install
npm test # vitest
npm run typecheck # tsc --noEmit over src and bin
npm run build # emit dist/
smoke.test.ts drives the real claude and herdr binaries, so it is skipped unless EXTERNAL is set in the environment.
MIT
Find threats in your stack.
OX Radar can check high-priority threats, like critical package CVEs, against your context.
Each incident is marked Detected or Not Detected with a remediation plan and proof all tracked in the Response Center.
The probe returned only these fields for this server — auth requirement, protocol and tool list weren’t observed, so they’re not shown (never guessed).
The publisher’s own links, as the registry reports them. These are not sources for the assessment on this page.