OmO
Oh My OpenAgentv4.7.5

Lifecycle Events

The six event types OmO hooks intercept and what each can change.

OmO hooks intercept agent behavior at six distinct event types. Each event has a different power and a different cost.

EventWhenWhat hooks can do
PreToolUseBefore tool executionBlock the call, modify input, inject context.
PostToolUseAfter tool executionAdd warnings, modify output, inject follow-up messages.
MessageDuring message processingTransform content, detect keywords, activate modes (ultrawork, search, analyze, team).
EventOn session lifecycle changesRecovery, fallback, notifications, ralph-loop continuation.
TransformDuring context transformationInject context, validate blocks (thinking, tool-use).
ParamsWhen setting API parametersAdjust model settings, effort level, sampling.

Composition counts

OmO ships 52 base hooks across five tiers:

TierCount
Session24
Tool Guard14
Transform5
Continuation7
Skill2

With team_mode.enabled the total becomes 59: +1 Tool Guard, +2 Transform, +4 direct team session event handlers in src/plugin/event.ts.

Why this matters

Most "OmO does X automatically" features are a hook. Keyword detection (ultrawork/ulw/search/analyze/team) is a Message hook. Continuation enforcement is an Event hook. Comment-checker is PostToolUse. Disable a hook, lose the behavior — call out the right hook in Configuration → disabled_hooks instead of turning off a parent feature.

Source Notes

Aligned with upstream docs/reference/features.md#hooks and docs/reference/features.md#hook-events.

On this page