Bug: `gemini extensions install` fails when extension repo has no `gemini-extension.json`
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:
- Installation succeeds (if
gemini-extension.jsoncan be inferred or is optional), or - Documentation on how to set up
- Clear error with link to docs
Environment
- OS: macOS Sequoia 15.7.4
- Gemini CLI version: v0.33.0
+1
+1
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
+1 on the issue as well
+1
+1
+1
+1
Hm. I'm unable to replicate this on 0.33 on macos:
The config file mentioned in the bug report is very much there: https://github.com/obra/superpowers/blob/main/gemini-extension.json
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:
- Try
downloadFromGitHubRelease()first - This repo has no GitHub Releases (only tags), so this fails with
'no release data' - Falls back to
cloneFromGit()which fetchesHEAD(resolves tomain) - Looks for
gemini-extension.jsonin 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
HEADref resolution issues in some git client/server configurations (which would explain why--ref=mainworks as a workaround — it bypasses the defaultHEADresolution) - Network/CDN caching at GitHub's level serving a stale tree
Recommendation
The fix is already on main. If anyone is still hitting this:
- Try again — it should work now
- If it still fails, use
gemini extensions install https://github.com/obra/superpowers --ref=mainas a workaround (per @sfauvart's suggestion) - If that also fails, please share your
gemini --versionand OS so we can investigate further
works for me, after "try again"