Available in
Marketplaces, most starred first
Tags
Add to README
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Marketplaces, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
By onlooker-communityv0.11.0MITIn 1 marketplace
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.
Run automatically on Claude Code events. Claude doesn't decide.
2 cautions to review before installing
A hook runs when Claude uses the Bash tool
A hook runs when Claude writes or edits files
Static checks of hooks, mods, MCP servers and commands. Not a security audit.
1 marketplace, most starred first
Shows its components, always-on context cost and install status, kept current. Add ?tokens=0 to hide the cost.
Per-edit lint and typecheck gate for the Onlooker ecosystem — runs the project's
configured checks on just the touched file after every Write, Edit, and
MultiEdit, and on each file a Bash command changes, so the agent sees its own
lint and type errors before it claims success.
Inspector is a sibling plugin to ecosystem and assumes the Onlooker
observability substrate (~/.onlooker/) is present.
The ecosystem already has plugins that judge agent output after the fact and plugins that gate ambiguous writes before they happen. What it didn't have until now is a fast feedback loop that runs after every edit and tells the agent whether the code it just wrote actually compiles. Inspector is that loop.
Stop. Inspector runs only on touched files, only on PostToolUse.
Cheaper, fires far more often, narrower scope.| Hook | Matcher | What Inspector does |
|---|---|---|
PostToolUse | Edit, Write, MultiEdit, Bash | Resolves the touched file from tool_input.file_path, or for a Bash call asks git which files the command changed and checks each one (a call that changed nothing leaves after the git check). Looks up the configured checks for the file's extension, runs each check with a per-check timeout, and emits inspector.check.passed / .failed / .skipped plus a single inspector.run.completed summary. Bounded by total_timeout_seconds. Always exits 0 — inspector is advisory and never blocks the tool call. |
The hook's stdout (the additional-context channel for PostToolUse hooks) is
the agent-facing summary. By default it's quiet on clean runs:
inspector: src/cart.ts
✗ biome (3 issues, exit 1)
src/cart.ts:42:5 — Unused variable 'subtotal'
src/cart.ts:51:3 — Missing return type annotation
src/cart.ts:64:9 — Unreachable code
✗ tsc (1 issue(s), exit 2)
src/cart.ts:42:5 — Type 'string | undefined' is not assignable to 'string'
Set inspector.show_clean_runs: true to surface the file header on passing
checks too. The agent sees this on its next turn.
Install the plugin from the marketplace:
/plugin install inspector@onlooker-community
Once installed, inspector is active. Configure it per project (or globally) by
adding the inspector block to .claude/settings.json:
{
"inspector": {
"checks": {
".ts": [{ "name": "biome", "kind": "lint", "argv": ["biome", "check", "${file}"] },
{ "name": "tsc", "kind": "typecheck", "argv": ["tsc", "--noEmit"] }],
".tsx": [{ "name": "biome", "kind": "lint", "argv": ["biome", "check", "${file}"] },
{ "name": "tsc", "kind": "typecheck", "argv": ["tsc", "--noEmit"] }],
".py": [{ "name": "ruff", "kind": "lint", "argv": ["ruff", "check", "${file}"] }],
".sh": [{ "name": "shellcheck", "kind": "lint", "argv": ["shellcheck", "${file}"] }]
}
}
}
Each check is an { name, kind, argv } object. kind is one of lint or
typecheck (used for downstream grouping). argv is the literal argv array;
the following placeholders are expanded before exec:
| Placeholder | Resolves to |
|---|---|
${file} | absolute path to the touched file |
${file_relative} | path relative to the repo root |
${repo_root} | the repo's git rev-parse --show-toplevel |
${package_root} | nearest ancestor of the file, up to ${repo_root}, holding a package.json; ${repo_root} when none does |
${package_root} is what a workspace typecheck needs. In a pnpm or turbo
monorepo, tsc --noEmit ${file} ignores the package's tsconfig.json and
reports errors a clean tree does not have, while a typecheck from ${repo_root}
checks every package on every edit. Scope it to the owning package instead:
{ "name": "tsc", "kind": "typecheck", "argv": ["tsc", "--noEmit", "-p", "${package_root}"] }
It looks for package.json only, and never above ${repo_root}. Other
manifests (Cargo.toml, go.mod, pyproject.toml) are not consulted.
Built from public signals: copy clicks on this site, GitHub stars and activity, the README and the manifest. Not a security audit or an endorsement.
npx claudepluginhub onlooker-community/ecosystem --plugin inspectorPlugins from other owners that cover similar ground