oma-security — Claude Code hook: features and install
The oma-security hook runs security scans, source review, and verified remediation. It responds to session, prompt, Bash, and stop events.
MIT ★ 1,472 updated 2026-10-29
/plugin marketplace add first-fluke/oh-my-agent
/plugin install oma-security@oh-my-agentWhat oma-security does
oma-security adds hooks for security scans, source review, and verification of remediation. They run on SessionStart, UserPromptSubmit, PreToolUse, and Stop; the PreToolUse handler is matched to Bash. The checks can therefore run at several points in a Claude Code session, rather than only after a dedicated request.
The bundle calls plugin-hook.sh for Stop, PreToolUse, and UserPromptSubmit, and plugin-bootstrap.sh when a session starts. Timeouts vary: the Bash handler has 15 seconds, the stop handler 40, and bootstrap 600. Install the plugin through the oh-my-agent marketplace; its configuration is associated with .claude/settings.json. The listed platforms are Claude Code and Codex, while the provided install commands are for Claude Code.
What it helps with
- run security checks at session events
- review source code after a user prompt
- inspect Bash calls with a dedicated hook
- check remediation when an agent session ends
Example prompts for the agent
- Scan this project for security issues and review its source.
- Check this Bash command for security risks before running it.
- Verify the security fixes before ending the session.
How to install oma-security
1Plugin marketplace
/plugin marketplace add first-fluke/oh-my-agent/plugin install oma-security@oh-my-agent2Manually: put the files in place
.claude/settings.jsonThe hooks block: event (PreToolUse, PostToolUse, Stop…) → command. Personal ones go to ~/.claude/settings.json
Step by step, with commands for each platform: Claude Code hooks: what they are, where to configure them, how to block a risky command
Questions about oma-security
How do I install oma-security in Claude Code?
Run /plugin marketplace add first-fluke/oh-my-agent, then /plugin install oma-security@oh-my-agent. Its configuration is associated with .claude/settings.json.
What does oma-security do?
It runs security scans, reviews source code, and verifies remediation. Its hooks respond to session, prompt, Bash, and stop events.
Which events trigger oma-security?
It triggers on PreToolUse, UserPromptSubmit, SessionStart, and Stop. The PreToolUse handler is matched to Bash.
Source text
security · MIT
Hooks bundle shipped with the oma-security plugin for Claude Code.
Security scans, source review, and verified remediation
Triggers on: PreToolUse, UserPromptSubmit, SessionStart, Stop.
```json
{"Stop":[{"hooks":[{"type":"command","command":"sh \"${CLAUDE_PLUGIN_ROOT}/scripts/plugin-hook.sh\" Stop","timeout":40}]}],"PreToolUse":[{"hooks":[{"type":"command","command":"sh \"${CLAUDE_PLUGIN_ROOT}/scripts/plugin-hook.sh\" PreToolUse Bash","timeout":15}],"matcher":"Bash"}],"SessionStart":[{"hooks":[{"type":"command","async":true,"command":"sh \"${CLAUDE_PLUGIN_ROOT}/scripts/plugin-bootstrap.sh\" security","timeout":600}]}],"UserPromptSubmit":[{"hooks":[{"type":"command","command":"sh \"${CLAUDE_PLUGIN_ROOT}/scripts/plugin-hook.sh\" UserPromptSubmit","timeout":15}]}]}
```
© First Fluke · MIT · first-fluke/oh-my-agent