superpowers icon indicating copy to clipboard operation
superpowers copied to clipboard

Bug: `gemini extensions install` fails when extension repo has no `gemini-extension.json`

Open marco-salcedo opened this issue 8 months ago • 11 comments

Describe the bug

Running gemini extensions install with a GitHub URL succeeds in fetching credentials and cloning the repo into a temp directory, but then errors out because it expects a gemini-extension.json configuration file that doesn't exist. The error message is not actionable — it's unclear whether the extension author needs to provide this file, or whether the tool should generate/infer it.

To Reproduce

❯ gemini extensions install https://github.com/obra/superpowers
Loaded cached credentials.
Configuration file not found at /var/folders/r6/dsxczgr55wx301n9sxr13f740000gn/T/gemini-extensionX6zeEK/gemini-extension.json

Expected behavior

Either:

  1. Installation succeeds (if gemini-extension.json can be inferred or is optional), or
  2. Documentation on how to set up
  3. Clear error with link to docs

Environment

  • OS: macOS Sequoia 15.7.4
  • Gemini CLI version: v0.33.0

marco-salcedo avatar Mar 11 '26 17:03 marco-salcedo

+1

joekman990 avatar Mar 11 '26 17:03 joekman990

+1

sonim1 avatar Mar 11 '26 19:03 sonim1

same problem here on PC with archlinux. I have succeeded with the following command: gemini extensions install https://github.com/obra/superpowers.git --ref=main

sfauvart avatar Mar 11 '26 20:03 sfauvart

+1 on the issue as well

bmaclin58 avatar Mar 11 '26 21:03 bmaclin58

+1

Thronedoct avatar Mar 12 '26 02:03 Thronedoct

+1

SamWang32191 avatar Mar 12 '26 02:03 SamWang32191

+1

niccronc avatar Mar 12 '26 03:03 niccronc

+1

grold avatar Mar 12 '26 03:03 grold

Hm. I'm unable to replicate this on 0.33 on macos:

Image

The config file mentioned in the bug report is very much there: https://github.com/obra/superpowers/blob/main/gemini-extension.json

obra avatar Mar 12 '26 05:03 obra

Investigation Report

Investigated by: Claude (Opus 4.6 model, Claude Code v2.1.74 harness)

I looked into this at @obra's request. Here's what I found:

Current state on main

gemini-extension.json exists at the repo root on main (and has since commit 9df7269, pushed March 10):

{
  "name": "superpowers",
  "description": "Core skills library: TDD, debugging, collaboration patterns, and proven techniques",
  "version": "5.0.0",
  "contextFileName": "GEMINI.md"
}

GEMINI.md also exists at the repo root.

Reproduction attempt

I tested locally with Gemini CLI v0.33.0 (same version as the reporter):

$ gemini extensions install https://github.com/obra/superpowers
Loaded cached credentials.
Installing extension "superpowers".
This extension will append info to your gemini.md context using GEMINI.md
⚠️  This extension contains Hooks which can automatically execute commands.
Agent Skills:
  * writing-skills
  * writing-plans
  * verification-before-completion
  * using-superpowers
  ... (all 14 skills loaded successfully)
Do you want to continue? [Y/n]:

Installation succeeded — the CLI found gemini-extension.json, loaded all skills, and prompted for confirmation.

Root cause analysis

Looking at the Gemini CLI source (packages/cli/src/config/extensions/github.ts), the install flow for a GitHub URL is:

  1. Try downloadFromGitHubRelease() first
  2. This repo has no GitHub Releases (only tags), so this fails with 'no release data'
  3. Falls back to cloneFromGit() which fetches HEAD (resolves to main)
  4. Looks for gemini-extension.json in the cloned directory

Since the file has been on main since March 10 and the issue was filed March 11, possible explanations for the failures people are seeing:

  • Stale cached state from a prior failed install attempt (before the file existed)
  • Intermittent HEAD ref resolution issues in some git client/server configurations (which would explain why --ref=main works as a workaround — it bypasses the default HEAD resolution)
  • Network/CDN caching at GitHub's level serving a stale tree

Recommendation

The fix is already on main. If anyone is still hitting this:

  1. Try again — it should work now
  2. If it still fails, use gemini extensions install https://github.com/obra/superpowers --ref=main as a workaround (per @sfauvart's suggestion)
  3. If that also fails, please share your gemini --version and OS so we can investigate further

obra avatar Mar 12 '26 05:03 obra

works for me, after "try again"

grold avatar Mar 12 '26 06:03 grold