Skip to content

HerdrUsageProbe

Defined in: src/usage-probe.ts:27

Drives an ephemeral interactive claude, sends /usage, and captures the rendered panel.

herdr owns the agent (lifecycle + cleanup), but the panel only renders legibly when a PTY of a real size is attached — so I/O goes through the same Node pty-attach.mjs helper the browser bridge uses (node-pty is broken under Bun). ToS-pure: a real interactive session, no -p/SDK; /usage makes no model call (zero token cost).

new HerdrUsageProbe(herdr, cwd?, helperPath?): HerdrUsageProbe

Defined in: src/usage-probe.ts:28

Pick<HerdrDriver, "start" | "stop" | "list">

string = config.repoRoot

string = ...

HerdrUsageProbe

scrape(): Promise<string | null>

Defined in: src/usage-probe.ts:54

Promise<string | null>

UsageProbe.scrape