🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

oh-my-gemini

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

oh-my-gemini

Multi-agent orchestration extension for Gemini CLI

latest
Source
npmnpm
Version
0.0.1
Version published
Maintainers
1
Created
Source

oh-my-gemini

License: MIT

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.

What's New in v2.0

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.

Featurev1.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
PersistenceSkill with retry promptsralph-retry hook forces retries

Quick Start

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

Core Features

🪝 Hook-Enforced Workflows

oh-my-gemini uses Gemini CLI's hook system for deterministic behavior:

HookEventWhat It Does
session-startSessionStartLoads Conductor state, shows project status
before-agentBeforeAgentInjects context (git history, current task)
tool-filterBeforeToolSelectionSandboxes tools by agent mode
before-toolBeforeToolSecurity gates, git checkpoints
after-toolAfterToolAuto-verification (typecheck, lint)
phase-gateAfterAgentConductor phase enforcement
ralph-retryAfterAgentPersistence mode retry logic

🤖 Specialized Agents

AgentPurposeTool Access
OrchestratorTask coordination and routingFull
ResearcherWeb search, documentation lookupRead + Web (enforced by hook)
ArchitectSystem design, debuggingRead only (enforced by hook)
ExecutorCode implementationFull (with security gates)

📋 Conductor Workflow

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).

🔄 Persistence Mode (Ralph)

Never give up until the task is complete:

ralph: fix all TypeScript errors in this project

The ralph-retry hook automatically:

  • Detects failure indicators
  • Suggests alternative approaches
  • Forces retries (up to configurable max)
  • Escalates to user after max attempts

Commands

CommandDescription
/omg:setupInitialize oh-my-gemini in your project
/omg:statusShow current orchestration state
/omg:autopilotAutonomous task execution
/omg:conductor-setupInitialize Conductor workflow
/omg:trackStart a new feature track
/omg:implementExecute the current plan

Magic Keywords

Include these in your prompts for specific behaviors:

KeywordEffect
ralph / persistentEnable persistence mode - don't give up
@researcherSwitch to research mode (read + web only)
@architectSwitch to architect mode (read only)
@executorSwitch to executor mode (full access)
plan / designFocus on planning before implementation

Configuration

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.

Project Structure

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

Requirements

  • Gemini CLI v0.26.0+ (hooks support)
  • Google AI API key or Vertex AI credentials
  • Node.js (for hook execution)

Documentation

Roadmap

  • Phase 0: Project scaffolding
  • Phase 1: Core hooks infrastructure
  • Phase 2: Advanced hooks + agent simplification
  • Phase 3: Documentation + polish
  • Phase 4: SubAgent integration (when available)

Contributing

See CONTRIBUTING.md for development setup.

License

MIT

Acknowledgments

Hook-enforced workflows. Deterministic behavior. OMG.

Keywords

gemini-cli

FAQs

Package last updated on 26 Feb 2026

Did you know?

Socket

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.

Install

Related posts