
Company News
Free Business Plan Upgrades for Open Source Maintainers
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.
oh-my-gemini
Advanced tools
Hook-enforced multi-agent orchestration for Gemini CLI. Zero learning curve.
Inspired by oh-my-claudecode, reimagined for the Gemini ecosystem with deterministic workflow enforcement.
oh-my-gemini v2.0 introduces hook-based enforcement - workflows that were previously enforced through prompts are now enforced through Gemini CLI's hook system, making behavior deterministic rather than probabilistic.
| Feature | v1.0 (Prompts) | v2.0 (Hooks) |
|---|---|---|
| Tool sandboxing | "Don't use write tools" | tool-filter hook blocks them |
| Security gates | "Avoid dangerous commands" | before-tool hook rejects them |
| Auto-verification | "Remember to typecheck" | after-tool hook runs it |
| Phase gates | "Wait for confirmation" | phase-gate hook enforces it |
| Persistence | Skill with retry prompts | ralph-retry hook forces retries |
Step 1: Install
gemini extensions install https://github.com/richardcb/oh-my-gemini
Step 2: Enable Experimental Features
Add to ~/.gemini/settings.json:
{
"experimental": {
"enableAgents": true,
"skills": true,
"hooks": true
}
}
Step 3: Verify Hooks
/hooks panel
You should see 7 hooks registered.
Step 4: Build Something
/omg:autopilot build a REST API for managing tasks
oh-my-gemini uses Gemini CLI's hook system for deterministic behavior:
| Hook | Event | What It Does |
|---|---|---|
session-start | SessionStart | Loads Conductor state, shows project status |
before-agent | BeforeAgent | Injects context (git history, current task) |
tool-filter | BeforeToolSelection | Sandboxes tools by agent mode |
before-tool | BeforeTool | Security gates, git checkpoints |
after-tool | AfterTool | Auto-verification (typecheck, lint) |
phase-gate | AfterAgent | Conductor phase enforcement |
ralph-retry | AfterAgent | Persistence mode retry logic |
| Agent | Purpose | Tool Access |
|---|---|---|
| Orchestrator | Task coordination and routing | Full |
| Researcher | Web search, documentation lookup | Read + Web (enforced by hook) |
| Architect | System design, debugging | Read only (enforced by hook) |
| Executor | Code implementation | Full (with security gates) |
Context-Driven Development with specs and plans:
/omg:conductor-setup # Initialize Conductor
/omg:track "feature" # Start a new feature track
/omg:implement # Execute the plan
/omg:status # Check progress
Workflow: PRD → Technical Plan → Implementation → Review
Phase gates are enforced by the phase-gate hook (advisory or strict mode).
Never give up until the task is complete:
ralph: fix all TypeScript errors in this project
The ralph-retry hook automatically:
| Command | Description |
|---|---|
/omg:setup | Initialize oh-my-gemini in your project |
/omg:status | Show current orchestration state |
/omg:autopilot | Autonomous task execution |
/omg:conductor-setup | Initialize Conductor workflow |
/omg:track | Start a new feature track |
/omg:implement | Execute the current plan |
Include these in your prompts for specific behaviors:
| Keyword | Effect |
|---|---|
ralph / persistent | Enable persistence mode - don't give up |
@researcher | Switch to research mode (read + web only) |
@architect | Switch to architect mode (read only) |
@executor | Switch to executor mode (full access) |
plan / design | Focus on planning before implementation |
Customize hook behavior via .gemini/omg-config.json:
{
"phaseGates": {
"enabled": true,
"strict": false
},
"autoVerification": {
"enabled": true,
"typecheck": true,
"lint": true
},
"security": {
"gitCheckpoints": true
},
"ralph": {
"enabled": true,
"maxRetries": 5
}
}
See docs/HOOKS.md for full configuration reference.
oh-my-gemini/
├── gemini-extension.json # Extension manifest
├── commands/omg/ # Slash commands
├── .gemini/agents/ # Agent definitions (SubAgent format)
├── skills/ # Skill definitions
├── hooks/ # Hook scripts (v2.0)
│ ├── hooks.json # Hook definitions for Gemini CLI
│ ├── lib/ # Shared utilities
│ ├── session-start.js
│ ├── before-agent.js
│ ├── tool-filter.js
│ ├── before-tool.js
│ ├── after-tool.js
│ ├── phase-gate.js
│ └── ralph-retry.js
├── policies/ # TOML policy files (v2.0)
│ └── omg-security.toml # Static security rules
├── conductor/templates/ # Conductor workflow templates
├── mcp/ # MCP server configurations
├── templates/ # Project templates
├── docs/ # Documentation
└── examples/ # Real-world examples
See CONTRIBUTING.md for development setup.
MIT
Hook-enforced workflows. Deterministic behavior. OMG.
FAQs
Multi-agent orchestration extension for Gemini CLI
We found that oh-my-gemini demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Company News
Open source maintainers are under more pressure than ever. We're raising our open source program from the Team plan to the Business plan, free.

Security News
The supply chain control that delays freshly published gems now covers lockfile generation and gem vendoring in Ruby projects.

Security News
During a UK cyber test, a Mythos 5 agent used sockpuppets, social engineering, and prompt injection to try to get a maintainer to merge malware.