faultline

Reviewed at commit 867b81f

KOZMOS Faultline: the error lens in a sidebar. Every failed or denied tool call, refused or errored turn and API error, grouped by a masked signature with…

Made by
KOZMOS
What we checked

Adds a /faultline sidebar that lists every failed or denied tool call, refusal and API error of the session, grouped by a masked error signature with counts, times and the agent that hit it. It keeps the first error text (up to 1500 characters, which can include command output) in the session, and a copy button puts it on your clipboard when you press it. No network calls, no programs run.

Review details

Static review of the source at the pinned commit; not run. Registers session.start (clears state, registers /faultline, 15 s ticker, optional autoOpen via userConfig), command.run for /faultline (toggle pane, or 'list' prints top signatures), agent.spawn (remembers agent names), tool.call (calls next() unchanged and only records the result when it is an error or denied; the result is returned untouched), turn.complete (records refusals and error endings, passes the event on), classic.StopFailure (records the API error and the first 60 characters of the last assistant message) and ui.render for its own Pane. Runtime calls: $.clock, $.agent.list, $.ui.panes/open/close/copy/resolve, $.command.register and plugin state atoms via read/update. Error texts are masked for the signature (URLs, paths, ids, numbers) but the unmasked first text and the tool detail (Bash description or command clipped to 60 characters, file basename, URL, query) are stored in plugin state and shown in the pane; they can contain secrets if a failing command printed them. The copy button writes to the clipboard only on a press. No fetch, no process, no fs, no env access; all hook handlers are wrapped so a failure falls through to next. The SVG text is XML-escaped. The shared hooks/lib/kz.ts is a pure helper kit (colors, formatting, SVG helpers, price table) with no I/O. hooks/lib/probe.ts was in the 'not included' list; the clone was grepped and nothing imports it, so it is not loaded by this mod. npm dependencies: none.

What it uses
  • Reads your prompts: no
  • Sees tool calls: yes
  • Blocks or changes tool calls: no
  • Reads or writes files: no
  • Runs programs on your machine: no
  • Calls the model (uses tokens): no
  • Sends data over the network: no
  • Stores data: yes
  • Shows something on screen: yes
Hooked events

KOZMOS Faultline: the error lens in a sidebar. Every failed or denied tool call, refused or errored turn and API error, grouped by a masked signature with count, first and last seen, the agents that hit it, the full first error (expandable) and a copy button, under a severity strip of the last 10 minutes. /faultline toggles it.

Made this mod? Add a badge to your README

modsforClaude badge for faultline

Paste this into your README. The badge says reviewed once the current version has been reviewed, and links readers to this page.

[![Listed on modsforClaude](https://modsforclaude.com/badge/faultline.svg)](https://modsforclaude.com/mods/faultline/)

← All mods