Quality v0.11.4 on main

Per-edit lint and typecheck, so the agent sees its own errors.

inspector

Per-edit lint and typecheck gate. Runs the project's configured checks on just the touched file after every Write/Edit/MultiEdit, and on each file a Bash command changes, so the agent sees its own lint and type errors before claiming success. Cheaper than running the full project verify; complements assayer (which catches the agent lying about claims). Emits inspector.* events for downstream analysis. Builds on the Onlooker ecosystem plugin.

Install /plugin install inspector@onlooker-community

Problem

Elsewhere in the ecosystem, plugins judge agent output after the fact or gate ambiguous writes before they happen. Neither tells the agent, right after an edit, whether the code it just wrote compiles. Without that signal the agent has only its own belief that the last edit was right, and builds the next one on it.

How it works

  1. On PostToolUse for Edit, Write and MultiEdit, Inspector resolves the touched file and looks up the checks you configured for its extension. Checks are opt-in per project, so with none configured it runs nothing.
  2. It runs each check against just that file, with a timeout per check and one for the whole run, then emits inspector.check.* events and a single inspector.run.completed summary.
  3. The hook's output reaches the agent on its next turn: failures with file, line and message. Clean runs stay quiet unless show_clean_runs is set.
  4. Inspector is advisory. It always exits 0 and never blocks the edit. A project-wide check such as tsc reports errors in every file, not only the touched one.