Skip to content
Development
Hook

Hooks

What oma runs automatically, and when. A hook is a command Claude Code fires at a fixed moment, without you asking for it.

From plugin
oma
1.2k4 hooks3 MCP
Install
> /plugin marketplace add first-fluke/oh-my-agent
> /plugin install oma@oh-my-agent

Ships with oma. Installing the plugin gets these hooks.

What fires, and when

SessionStart

Fires once when a session begins, and again after a context compaction. It is where a plugin sets up its environment, or restores state the compaction dropped.

  • sh "${CLAUDE_PLUGIN_ROOT}/scripts/plugin-bootstrap.sh"

UserPromptSubmit

Fires before Claude sees each prompt you send. A plugin can use it to inject context, so the same instruction reaches the model every turn instead of only at session start.

  • bun "${CLAUDE_PLUGIN_ROOT}/.claude/hooks/keyword-detector.ts"bun "${CLAUDE_PLUGIN_ROOT}/.claude/hooks/state-boundary.ts"bun "${CLAUDE_PLUGIN_ROOT}/.claude/hooks/skill-injector.ts"

PreToolUse

  • MatchesBashbun "${CLAUDE_PLUGIN_ROOT}/.claude/hooks/test-filter.ts"

Stop

  • bun "${CLAUDE_PLUGIN_ROOT}/.claude/hooks/persistent-mode.ts"
Read hooks/hooks.json
Ships withoma

The hardcore multi-agent orchestrator for production-grade software. Not just another chat wrapper—oh-my-agent is a professional harness that gives your AI assistant an entire engineering team. Ever wished your AI assistant had coworkers?

Get the whole plugin
Stats
1,219
Stars
140
Forks
Active
Maintenance
TypeScript
Language
MIT
License
14h ago
Last commit
6mo ago
Created

Repo: first-fluke/oh-my-agent