Intercepts Claude Code tool calls and user prompts for policy enforcement.
# Add the marketplace
/plugin marketplace add cyera-ai/inline-protection-plugin
# Install the plugin
/plugin install cyera-inline-protection@cyera-securityAdd to managed settings (via admin console, MDM, or managed-settings.json):
{
"extraKnownMarketplaces": {
"cyera-security": {
"source": { "source": "github", "repo": "cyera-ai/inline-protection-plugin" }
}
},
"enabledPlugins": { "cyera-inline-protection@cyera-security": true },
"allowManagedHooksOnly": true
}claude --plugin-dir ./plugins/cyera-inline-protectionRegisters hooks on:
PreToolUse(Write, Edit, Bash) — before tool executionPostToolUse(Write, Edit, Bash) — after tool executionUserPromptSubmit— before Claude processes user input
Currently logs all events to ~/.claude/cyera-events.log for observation.
---
timestamp: 2026-06-21T10:30:00Z
event: PreToolUse
tool: Bash
session: abc123
cwd: /Users/dev/project
payload:
{ full JSON payload }- v0.1.0: Logging only (current)
- v0.2.0: HTTP callout to Cyera policy engine
- v0.3.0: Blocking based on policy response
- v1.0.0: Production-ready with auth, config, and error handling