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.8.3MITIn 1 marketplace
Untrusted-content gate. Scans content flowing in through WebFetch and Read for prompt-injection patterns, and when a threat is detected closes a session-scoped gate that blocks Write, Edit, MultiEdit, and Bash until the user explicitly clears it. Grounded in Meta's Agents Rule of Two: an agent should hold no more than two of {private data, external actions, untrusted content} at once — warden removes the external-actions property while untrusted content is in play. Builds on the Onlooker ecosystem plugin.
Claude loads one when your task matches it, or you run it by name.
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.
Untrusted-content gate enforcing the Agents Rule of Two.
Warden scans content flowing into the agent through WebFetch and Read for prompt-injection patterns. When it finds a threat, it closes a session-scoped content gate that blocks Write, Edit, MultiEdit, and Bash until the user explicitly clears it.
Grounded in Meta's Agents Rule of Two: an agent should hold no more than two of {access to private data, ability to take external actions, processing of untrusted content} at once. A coding agent in a real repository already holds the first two — your source and secrets, plus the ability to write files and run commands. The moment it ingests untrusted content (a fetched page, a file of unknown provenance) it holds all three: the dangerous configuration in which untrusted content can steer private data into external actions. Warden cannot un-read content, so it removes the external-actions property instead — closing the gate keeps the agent reading and reasoning while a human reviews the situation. Three-of-three collapses back to two-of-three, with the user as the release valve.
Warden is a sibling plugin to ecosystem and assumes the Onlooker observability substrate (~/.onlooker/) is present.
Detection and enforcement are split across two hook surfaces, mediated only by the on-disk gate lock — the surfaces never call each other. See ADR-001.
| Surface | What Warden does |
|---|---|
PostToolUse (WebFetch, Read) | Extracts ingested content from tool_response, applies the source and skip-glob filters and length cap, and runs the hybrid scanner. A strong pattern hit closes the gate immediately; a weak hit escalates to the evaluator. On a positive verdict it closes the session-scoped gate and emits warden.threat.detected. PostToolUse cannot block the read — and deliberately does not, because reading is how the threat is discovered. |
PreToolUse (Write, Edit, MultiEdit, Bash) | Pure lock check: if the gate is closed it returns {"decision":"block", …} and emits warden.gate.blocked; otherwise it allows silently. No model call, no command parsing. |
SessionStart | Initializes Warden for the session. A new session always starts with the gate open, even if a prior session saw a threat. |
/warden skill | The user-facing control surface — reports gate status and is the only sanctioned way to clear a closed gate. |
Detection is a two-stage funnel, balancing coverage against cost and data egress:
warden-patterns.sh) — a curated regex set mapped to five threat types: prompt_injection, instruction_override, credential_exfiltration, command_injection, and social_engineering. Strong signatures (explicit override/exfil/command-injection phrasing) score detection.strong_pattern_confidence (default 0.9) and close the gate with no model call. Weak signatures (social-engineering pressure, soft instruction-shaped imperatives) score detection.weak_pattern_confidence (default 0.5) — below close_threshold — and are treated as borderline.warden-evaluator.sh) — borderline content is sanitized and sent to N parallel Haiku judges (majority vote). The gate closes only if the panel judges it an injection with confidence ≥ close_threshold.Clean content (no signature) never reaches the model. Set escalation.enabled: false for a zero-egress, pattern-only posture.
PostToolUse cannot. If escalation errors, Warden falls back to the deterministic pattern verdict.Install the plugin in Claude from the marketplace with:
/plugin install warden@onlooker-community
All keys are optional. Unset keys fall back to the plugin's config.json defaults.
{
"warden": {
"scan": {
"sources": ["web_fetch", "file_read"],
"max_content_chars": 20000,
"skip_globs": ["**/*.lock", "**/*.sum", "**/node_modules/**", "**/.git/**", "**/dist/**", "**/build/**"],
"store_snippet": true,
"snippet_max_chars": 240
},
"detection": {
"close_threshold": 0.65,
"strong_pattern_confidence": 0.9,
"weak_pattern_confidence": 0.5
},
"escalation": {
"enabled": true,
"borderline_only": true,
"model": "claude-haiku-4-5-20251001",
"n": 3,
"temperature": 0.0,
"max_output_tokens": 192,
"sample_timeout_seconds": 12,
"min_valid_samples": 2
},
"gate": {
"blocked_tools": ["Write", "Edit", "MultiEdit", "Bash"],
"clear_policy": "user_override_only"
}
}
}
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 wardenPlugins from other owners that cover similar ground