Skip to content

# Feature Request: Add Gemini CLI hooks support #10

Description

@rexplx

Description

Gemini CLI added hooks support in v0.26.0 (announced January 27, 2026). dotagents should symlink ~/.agents/hooks/ to ~/.gemini/hooks/.

Current Behavior

In src/core/mappings.ts, hooks only target Claude and Factory:

{
  name: 'hooks',
  source: path.join(canonical, 'hooks'),
  targets: [
    clients.has('claude') ? path.join(roots.claudeRoot, 'hooks') : null,
    clients.has('factory') ? path.join(roots.factoryRoot, 'hooks') : null,
    // Gemini NOT included
  ].filter(Boolean) as string[],
  kind: 'dir',
},

Requested Change

  {
    name: 'hooks',
    source: path.join(canonical, 'hooks'),
    targets: [
      clients.has('claude') ? path.join(roots.claudeRoot, 'hooks') : null,
      clients.has('factory') ? path.join(roots.factoryRoot, 'hooks') : null,
+     clients.has('gemini') ? path.join(roots.geminiRoot, 'hooks') : null,
    ].filter(Boolean) as string[],
    kind: 'dir',
  },

Gemini CLI Hooks Reference

Workaround

ln -s "../.agents/hooks" ~/.gemini/hooks

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions