gemini-cli - 💡(How to fix) Fix gemini extension: add support to pass more env to the subagents and default setting value in extension settings

Official PRs (…)
ON THIS PAGE

Recommended Tools

×6

Utilities matched from this issue’s tags and category — try them while you read without losing context.

GitHub issue graph ai analysis

Paste a GitHub issue URL. We fetch that issue, discover linked issues from bodies/comments/timeline, collect linked pull requests, and produce a structured English report.

The report is written in English Markdown for sharing and archival.

Helpful · Quick feedback

Loading…

Error Message

│ ✗ doc-validator · 💭 Error: Error: Template validation failed: Missing required input parameters: spec_directory, expected_filename. Available inputs: query, cliVersion, activeModel, today │

Code Example

│ ✗ doc-validator · 💭 Error: Error: Template validation failed: Missing required input parameters: spec_directory, expected_filename. Available inputs: query, cliVersion, activeModel, today                                         │

---

│ ✗ rust-dev · 💭 Error: Error: Template validation failed: Missing required input parameters: EXT_DATA Available inputs: query, cliVersion, activeModel, today                                         │

---

"settings": [
    {
      "name": "EXT_DATA",
      "description": "the default extension data directory",
      "envVar": "EXT_DATA",
      "sensitive": false
    }
]
RAW_BUFFERClick to expand / collapse

What would you like to be added?

Recently I am creating my own dev workflow and packaged as a extension, but things become very strange, i use agent team concept from claude code, and will pass some value to the sub agents, but the agent will not recognize these settings.

So I wish gemini cli can support the pass these parameters from lead to sub agents via prompts or it can extract the value from lead's prompts

such as i will spawn a doc-validator to ensure the docs are created correctly, so will spawn it and pass it the some directory and files but got error when spawning

│ ✗ doc-validator · 💭 Error: Error: Template validation failed: Missing required input parameters: spec_directory, expected_filename. Available inputs: query, cliVersion, activeModel, today                                         │

and i also want to pass some other paths such the EXT_DATA(extension data directory) to sub agent,same error

│ ✗ rust-dev · 💭 Error: Error: Template validation failed: Missing required input parameters: EXT_DATA Available inputs: query, cliVersion, activeModel, today                                         │

so i added it in the gemini-extension.json, but there is no default value, here, i want to set it default as ${extensionPath}/data, so if it can support this, i will be great.

and also in the settings,

"settings": [
    {
      "name": "EXT_DATA",
      "description": "the default extension data directory",
      "envVar": "EXT_DATA",
      "sensitive": false
    }
]

Why is this needed?

it will make it easy for agent team colaboration, when lead assign task to sub agents, and also need pass some parameters to the subagents

Additional context

No response

Vote matrix · Quick signals

Works
Did the solution work? Tap to confirm.
Easy Fix
Was it a quick fix?
Time Saver
Did it save you time?
Blocking
Was it severely blocking?
Common Issue
Are others likely hitting this too?
Flaky / Intermittent
Is it intermittent?
Verified / Reproducible
Can you reproduce it reliably?
Loading…

Still need to ship something?

×6

Another batch ranked right after the header list — different links, same matching logic.

Back to top recommendations

TRENDING

gemini-cli - 💡(How to fix) Fix gemini extension: add support to pass more env to the subagents and default setting value in extension settings