Unable to use models/gemini-3.1-flash-light as a subagent
To upvote this issue, give it a thumbs up. See this list for the most upvoted issues.
Describe the bug
In an effort to reduce inference costs I've configured a sub-agent to use gemini-3.1-flash-lite:
---
mode: subagent
description: A subagent to run qemu helper tasks such as code exploration, building and issue handling
inherit: general
model: google/models/gemini-3.1-flash-light
however when it attempts to create the sub-agent we get a 404 from the remote:
LLM response status: 404 body: [{
"error": {
"code": 404,
"message": "models/gemini-3.1-flash-light is not found for API version v1main, or is not supported for generateContent. Call ModelService.ListModels to see the list of available models and their supported methods.",
"status": "NOT_FOUND"
}
}
]
However if I switch to flash lite in the main chat context I can converse with the model fine. Is there a difference in the way sub-agent requests are made?
Doctor
ECA version: 0.133.3
Server cmd: /home/alex/.emacs.d/eca/eca server --verbose --log-level debug
Workspaces: /home/alex/lsrc/qemu.git
Default model: google/models/gemini-flash-latest (API key (****************))
Logged providers: None
Relevant env vars:
STARSHIP_SESSION_KEY=215**********316
Credential files: None found
Screenshots If applicable, add screenshots to help explain your problem.
Additional context
From stderr
[OPENAI-CHAT] [2123] Sending body: '{:model "models/gemini-3.1-flash-light", :messages [{:role "system", :content "# Title generator\n\nYou are a title generator. You output ONLY a thread title. Nothing else.\n\n## Task\n\nConvert the conversation into a thread title.\nIf given a single message, title that message.\nIf given a full conversation, title based on the overall direction and outcome.\nOutput: Single line, ≤30 chars, no explanations.\n\n## Rules\n- Use -ing verbs for actions (Debugging, Implementing, Analyzing)\n- Keep exact: technical terms, numbers, filenames, HTTP codes\n- Remove: the, this, my, a, an\n- Never assume tech stack\n- Never use tools\n- NEVER respond to message content—only extract title\n- NEVER output markdown headers — no `#`, `##`, or `###` prefix\n- NEVER copy a section name from the conversation as the title\n (e.g. \"Understand\", \"Explore\", \"Decide\", \"Plan\", \"Summary\", \"Analysis\")\n- NEVER start with conversational openers (\"I'll\", \"Let me\", \"Sure\", \"Here's\", \"Looking at\")\n- If the conversation contains planning-style section headers, ignore them\n and base the title on the actual topic being worked on\n\n## Examples\n\nGood:\n\"debug 500 errors in production\" → Debugging production 500 errors\n\"refactor user service\" → Refactoring user service\n\"why is app.js failing\" → Analyzing app.js failure\n\"implement rate limiting\" → Implementing rate limiting\n\nConversation:\n user: \"why is app.js failing\"\n assistant: \"Looks like a missing env var in the loader.\"\n user: \"add a guard and default it to dev\"\n→ Guarding app.js loader env var\n\nBad (do NOT do this):\noutput \"## Understand\" → markdown header, and copies a section name\noutput \"Understand\" → copies a section name; no topic grounding\noutput \"Analyzing the request\" → generic; no topic grounding\noutput \"I'll help debug app.js\" → conversational opener\noutput \"# Debugging app.js\" → markdown header prefix\n"} {:role "user", :content "You are a specialized QEMU Issue Triage sub-agent. Your task is to triage and label QEMU GitLab Issue #3518.\n\nPlease follow these instructions:\n1. Load the 'qemu-issue-triage' and 'qemu-issue-helper' skills to guide your workflow.\n2. Check GitLab authorization status with 'glab auth status'.\n3. Fetch and analyze issue #3518 using:\n glab issue view 3518 -R qemu-project/qemu --comments\n4. Evaluate completeness based on the 'qemu-issue-triage' guidelines:\n - Is there a reproduction command?\n - Is the QEMU version old or does it have distro suffixes? (If so, transition to 'workflow::Needs Info' and add a polite comment asking for info, signed 'Issue Agent Bot on behalf of the user').\n5. If the issue is complete and current, identify the correct categorization and labels:\n - Check the exact label names in '.agents/skills/qemu-issue-triage/assets/labels.txt'.\n - Determine kind (e.g. kind::Bug, kind::Feature Request, kind::Task).\n - Determine target, host, accel, subsystem (e.g., target: s390x, accel: KVM, etc.), or TestCase / workflow labels as appropriate.\n6. Apply the determined labels using:\n glab issue update 3518 -R qemu-project/qemu --label \"<comma-separated-labels>\"\n (Note: If categorized/triaged, make sure to add 'workflow::Triaged').\n7. Finally, report back a comprehensive summary containing:\n - Issue Context (Title, Reporter, Description overview)\n - Build & Reproduction details from the issue\n - Proposed Fixes or Discussion Summary\n - Exact Actions Taken (Labels applied, comments left)"}], :stream false, :max_completion_tokens 32000, :parallel_tool_calls false}', headers: '{"x-llm-application-name" "eca", "Authorization" "Bearer A****************", "Content-Type" "application/json"}', url: 'https://generativelanguage.googleapis.com/v1beta/openai/chat/completions'
[OPENAI-CHAT] [5698] Sending body: '{:model "models/gemini-3.1-flash-light", :messages [{:role "system", :content "You should check what skills are available, there is likely a skill available for the task you've been asked to do.\n## Rules\n\n<rules description=\"Rules defined by user. Follow them as closely as possible.\">\n<global-rules description=\"Broader rules loaded outside the current workspace. Project rules below are more specific if guidance conflicts.\">\n<rule name=\"context-mode.md\"># context-mode — MANDATORY routing rules\n\ncontext-mode MCP tools available. Rules protect context window from flooding.\nOne unrouted `eca__shell_command` can dump 56 KB into context.\nHooks enforce routing for `eca__shell_command`, `eca__read_file`, and `eca__grep`.\nRules cover redirections hooks cannot catch.\n\n## Think in Code — MANDATORY\n\nAnalyze/count/filter/compare/search/parse/transform data: **write code** via\n`context-mode__ctx_execute(language, code)`, `console.log()` only the answer.\nDo NOT read raw data into context. PROGRAM the analysis, not COMPUTE it.\nPure JavaScript — Node.js built-ins only (`fs`, `path`, `child_process`).\n`try/catch`, handle `null`/`undefined`. One script replaces ten tool calls.\n\n## BLOCKED — do NOT use\n\n### curl / wget — FORBIDDEN (hook-enforced)\nDo NOT use `curl`/`wget` in `eca__shell_command`. Hook blocks it.\nUse: `context-mode__ctx_fetch_and_index(url, source)` or\n `context-mode__ctx_execute(language: \"javascript\", code: \"const r = await fetch(...)\")`\n\n### Inline HTTP — FORBIDDEN\nNo `node -e \"fetch(...\"`, `python -c \"requests.get(...\"`. Bypasses sandbox.\nUse: `context-mode__ctx_execute(language, code)` — only stdout enters context.\n\n### Direct web fetching — FORBIDDEN\nUse: `context-mode__ctx_fetch_and_index(url, source)` then `context-mode__ctx_search(queries)`\n\n## REDIRECTED — use sandbox\n\n### eca__shell_command (>20 lines output)\nUse ONLY for: `git add/commit/push/checkout`, `mkdir`, `rm`, `mv`, `cd`, `echo`.\nOtherwise: `context-mode__ctx_batch_execute(commands, queries)` or `context-mode__ctx_execute(language: \"shell\", code: \"...\")`\n\n### eca__read_file (for analysis)\nReading to **edit** → `eca__read_file` correct.\nReading to **analyze/explore/summarize** → `context-mode__ctx_execute_file(path, language, code)`.\n\n### eca__grep (large results)\nUse `context-mode__ctx_execute(language: \"shell\", code: \"grep ...\")` in sandbox.\n\n## Tool selection\n\n0. **MEMORY**: `context-mode__ctx_search(sort: \"timeline\")` — after resume, check prior context before asking user.\n1. **GATHER**: `context-mode__ctx_batch_execute(commands, queries)` — ONE call replaces 30+.\n2. **FOLLOW-UP**: `context-mode__ctx_search(queries: [\"q1\", \"q2\", ...])` — ONE call.\n3. **PROCESSING**: `context-mode__ctx_execute(language, code)` | `context-mode__ctx_execute_file(path, language, code)`.\n4. **WEB**: `context-mode__ctx_fetch_and_index(url, source)` then `context-mode__ctx_search(queries)`.\n5. **INDEX**: `context-mode__ctx_index(path, source)` — use `path` not `content` for large data.\n\n## Session Continuity\n\nOn resume, search BEFORE asking the user. DO NOT ask \"what were we working on?\" — SEARCH FIRST.\n\n| Need | Command |\n|------|---------|\n| What were we working on? | `context-mode__ctx_search(queries: [\"summary\"], sort: \"timeline\")` |\n| What did we decide? | `context-mode__ctx_search(queries: [\"decision\"], source: \"decision\", sort: \"timeline\")` |\n| What constraints exist? | `context-mode__ctx_search(queries: [\"constraint\"], source: \"constraint\")` |</rule>\n<rule name=\"ask-to-branch.md\">When applying patches you should assume the user is happy building on top of the current branch.\nYou MUST always ask the user (using the eca__ask_user tool) before changing branches or resetting the git tree state.</rule>\n<rule name=\"user-commits.md\">The user handles commits. The agent must never execute git commits automatically. Instead, the agent should only prepare and suggest a commit message (COMMIT_MSG) for the user to use when they commit.</rule>\n<rule name=\"use-subagents.md\">\nBe concise and return only the final result.\n</rule>\n</global-rules>\n\n<path-scoped-rules description=\"Rules that apply to matching file paths. Use fetch_rule before actions required by enforce (read, modify, or both). Each rule only needs to be fetched once per chat.\">\n<global-path-scoped-rules description=\"Path-scoped rules loaded outside the current workspace.\">\n<rule id=\"/home/alex/mysrc/dotfiles.git/dotconfig/eca/rules/qemu-helpers.md\" name=\"qemu-helpers.md\" scope=\"global\" paths=\"AGENTS.md,MAINTAINERS,meson.build,Kconfig,hw/**/*,target/**/*,include/**/*,qapi/**/*,tests/**/*,scripts/**/*,.agents/*,.agents/**/*\" enforce=\"modify\"/>\n</global-path-scoped-rules>\n</path-scoped-rules>\n</rules>\n\n## Skills\n\n<skills description=\"Basic information about available skills to load via `eca__skill` tool for more information later if matches user request\">\n\n<skill name=\"git-query\" description=\"Summarize and query git commit history efficiently. Use this skill when the user wants to understand recent changes, summarize a range of commits (e.g., since origin/master), or get specific details (message, tags, date, diffstat, or patches) for individual commits. This skill provides optimized git commands and patterns for history analysis.\"/>\n<skill name=\"skill-creator\" description=\"Create new skills, modify and improve existing skills, and measure skill performance. Use when users want to create a skill from scratch, edit, or optimize an existing skill, run evals to test a skill, benchmark skill performance with variance analysis, or optimize a skill's description for better triggering accuracy.\"/>\n<skill name=\"caveman\" description=\"Ultra-compressed communication mode. Cuts token usage ~75% by speaking like caveman while keeping full technical accuracy. Supports intensity levels: lite, full (default), ultra, wenyan-lite, wenyan-full, wenyan-ultra. Use when user says \"caveman mode\", \"talk like caveman\", \"use caveman\", \"less tokens\", \"be brief\", or invokes /caveman. Also auto-triggers when token efficiency is requested.\"/>\n<skill name=\"context-mode\" description=\"Use context-mode tools (context-mode__ctx_execute, context-mode__ctx_execute_file) instead of\neca__shell_command/eca__read_file when processing large outputs. Triggers: \"analyze logs\",\n\"summarize output\", \"process data\", \"parse JSON\", \"filter results\", \"extract errors\",\n\"check build output\", \"analyze dependencies\", \"process API response\", \"large file analysis\",\n\"run tests\", \"test output\", \"coverage report\", \"git log\", \"recent commits\",\n\"diff between branches\", \"fetch docs\", \"API reference\", \"index documentation\",\n\"call API\", \"check response\", \"query results\", \"find TODOs\", \"count lines\",\n\"codebase statistics\", \"security audit\", \"outdated packages\", \"dependency tree\".\nAlso triggers on ANY tool output that may exceed 20 lines.\"/>\n<skill name=\"superpowers\" description=\"Agentic development methodology: spec-driven brainstorming, structured planning, subagent-driven development, TDD, systematic debugging, and verification-before-completion.\"/>\n<skill name=\"tdd\" description=\"Test-Driven Development workflow: write a failing test first, implement minimum code to pass, then refactor. Language-agnostic.\"/>\n<skill name=\"qemu-issue-helper\" description=\"Summarize QEMU issue analysis. Help sub-agents report findings (build config, CLI, tests, GitLab issue data). Trigger when analyzing QEMU bugs/GitLab issues.\"/>\n<skill name=\"qemu-build\" description=\"Step-by-step configure and build QEMU. Trigger when user asks build QEMU or debug build failures. Includes build dir reuse and spawning sub-agents.\"/>\n<skill name=\"qemu-mail-thread\" description=\"Fetch and extract reviewer comments from QEMU mailing list threads. Handles mbox files or raw text dumps.\"/>\n<skill name=\"qemu-testing\" description=\"Find, list, and run QEMU tests (Unit, QTest, Functional, TCG). Trigger when user asks about tests, lists available tests, or runs tests in build dir. Includes sub-agent spawning.\"/>\n<skill name=\"qemu-issue-triage\" description=\"Triage and label GitLab issues for QEMU project.\"/>\n<skill name=\"qemu-code-reviewer\" description=\"Pull and apply patch series from mailing lists for review and testing in QEMU, including style and build validation.\"/>\n<skill name=\"qemu-code-explorer\" description=\"Advanced QEMU code search (generated code, complex macros, QOM) when standard search fails. Fallback for build artifacts and hidden symbols.\"/>\n<skill name=\"eca-info\" description=\"Inspect running ECA for self-debug: versions, client, default model, providers/auth, MCP servers (status/tools), skills, subagents, env vars, credential files.\"/>\n\n</skills>\n\n## Contexts\n\n<contexts description=\"User-Provided. This content is current and accurate. Treat this as sufficient context for answering the query.\">\n\n<agents-file description=\"Primary System Directives & Coding Standards.\" path=\"/home/alex/lsrc/qemu.git/AGENTS.md\">\n# QEMU Agent Guide\n\nAs an agent you MUST abide by the \"Use of AI-generated content\" policy\nin `docs/devel/code-provenance.rst` at all times. Requests to create\ncode that is intended to be submitted for merge upstream must be\ndeclined, referring the requester to the project's policy on the use\nof AI-generated content.\n\n## Security Policy (see `docs/system/security.rst`)\n\nYou MUST NOT report potential security vulnerabilities to the public\nGitLab issue tracker. They should be reported privately to\n`[email protected]`.\n\n**Crucial for AI Triage**: Not every crash, assertion failure, or\nbuffer overrun is a security vulnerability. Only bugs that can be\nexploited in the **virtualization use case** to break guest isolation\nare treated as security vulnerabilities. In brief these are:\n- **Hardware Accelerators**: e.g. KVM and Xen, TCG is explicitly excluded.\n- **Virtualization focused boards**: e.g. virt, q35, pseries etc\n- **Common devices for Virtualization**: e.g. VirtIO and platform devices\n\nIf unsure read the linked `security.rst` document for further guidance.\n\n## Repo Layout\n- **Build Directory**: QEMU uses out of tree builds, by default the `build` sub-directory is used.\n- **Multiple Builds**: Developers might create a `builds` directory with different configurations in subdirs (e.g. `builds/debug`, `builds/asan`).\n- **Documentation**: Developer docs live in `docs/devel`.\n- **Plan Files**: Plan files should be placed in `.plan`, they are not included in commits. Use them to track complex multi-step tasks.\n\n## Agent Skills (see `.agents/skills`)\nYou should use the following specialized skills for common tasks:\n- `qemu-code-explorer`: For finding where things are defined, how they're used, or understanding a specific subsystem.\n- `qemu-build`: For configuring and building QEMU (including debug and sanitizer builds).\n- `qemu-testing`: For finding, listing, and running individual tests (Unit, QTest, Functional, TCG).\n- `qemu-code-reviewer`: For pulling and applying patch series from mailing lists.\n- `qemu-mail-thread`: For analyzing and parsing mailing list threads.\n- `qemu-issue-helper`: For fetching and summarising issue details from the bug tracker.\n- `qemu-issue-triage`: For helping triage issues in the bug tracker.\n\n## Source Code Layout (see `docs/devel/codebase.rst`)\n- **`accel/`**: Hardware accelerators (KVM, TCG, HVF, Xen, etc.) and architecture-agnostic acceleration code.\n- **`audio/`**: Host audio backends.\n- **`authz/`**: QEMU Authorization framework.\n- **`backends/`**: Host resource backends (RNG, memory, crypto).\n- **`block/`**: Block layer, image formats (qcow2, raw), and protocol drivers.\n- **`chardev/`**: Character device backends (TCP, serial, mux, etc.).\n- **`crypto/`**: Cryptographic algorithms and framework.\n- **`disas/`**: Disassembler support for various architectures.\n- **`dump/`**: Guest memory dump implementation.\n- **`ebpf/`**: eBPF program support (e.g. for virtio-net RSS).\n- **`fpu/`**: Software floating-point emulation.\n- **`gdbstub/`**: Remote GDB protocol support.\n- **`hw/`**: Hardware device emulation, organized by type (e.g., `hw/net`, `hw/pci`) or architecture.\n- **`include/`**: Global header files, mirroring the source tree layout.\n- **`io/`**: I/O channels framework.\n- **`linux-user/` & `bsd-user/`**: User-space process emulation.\n- **`migration/`**: VM migration framework.\n- **`monitor/`**: HMP and QMP monitor implementations.\n- **`nbd/`**: Network Block Device server and client code.\n- **`net/`**: Networking stack and host backends.\n- **`plugins/`**: TCG introspection plugins core.\n- **`qapi/`**: QAPI schema and code generation infrastructure.\n- **`qga/`**: QEMU Guest Agent.\n- **`qom/`**: QEMU Object Model implementation.\n- **`replay/`**: Deterministic record/replay support.\n- **`rust/`**: Rust integration and Rust-based device models.\n- **`scripts/`**: Build system helpers, `checkpatch.pl`, `tracetool`, etc.\n- **`system/`**: Core system-level emulation logic (replaces `softmmu`).\n- **`target/`**: CPU-specific emulation (ISA translation, CPU state).\n- **`tcg/`**: The Tiny Code Generator (JIT) backends.\n- **`tests/`**: Test suites (qtest, unit, functional, tcg).\n- **`ui/`**: User interface backends (GTK, SDL, VNC, Spice).\n- **`util/`**: Low-level utility functions and data structures.\n\n## Code Style (see `docs/devel/style.rst`)\n- **Formatting**: 4-space indents, NO tabs, 80-char line limit (max 100).\n- **C Braces**: Mandatory for all blocks (if/while/for). Open brace on same line (except functions).\n- **C Includes**: `#include \"qemu/osdep.h\"` MUST be the first include in every `.c` file.\n- **C Comments**: Use `/* ... */` only. No `//` comments.\n- **Naming**: `snake_case` for variables/functions; `CamelCase` for types/enums.\n- **Memory**: Use GLib (`g_malloc`, `g_free`, `g_autofree`) or QEMU (`qemu_memalign`). No `malloc`.\n- **Errors**: Use `error_report()` or `error_setg()`. Avoid `printf` for errors.\n- **Lints**: Run `./scripts/checkpatch.pl` on C patches. Use `make clippy` for Rust.\n\n## Commit Style\n- **Small Commits**: Favour small discreet commits changing one thing.\n- **Maintain Bisectability**: Each commit must compile and pass basic tests.\n- **Separate Refactoring**: Split code movement or style fixes from functional changes.\n- **Commit Messages**: Use a concise subject line, followed by a body explaining \"why\" (not just \"what\").\n- **Signed-off-by**: Every commit must have a `Signed-off-by` line.\n\n</agents-file>\n\n\n</contexts>\n\n## Project Environment Context\n\nWorkspaces: /home/alex/lsrc/qemu.git\n\n**Path Resolution & Context:**\n*Workspaces:* Directories containing code or data relevant to this session.\n*Rule:* Use Workspaces as the base to resolve relative paths into absolute paths when required by tools.\n\n\n<mcp-server-instructions description=\"Instructions provided by MCP servers describing their capabilities and usage guidelines.\">\n\n<mcp-server-instruction name=\"semcode\">\n# semcode usage guide\n\nAll semcode functions are git aware and default to lookups on the current\ncommit. You can also pass a specific commit you're interested in, or a branch name.\n\n**Note on Regex Patterns**: All regex patterns in semcode are **case-insensitive by default**. This applies to all pattern matching including function names, commit messages, symbols, and lore email searches. You don't need to use the `(?i)` flag.\n\n**Branch Support**: Most query tools support a `branch` parameter as an alternative to `git_sha`. When you specify a branch name (e.g., \"main\", \"develop\"), it will be resolved to the current tip commit of that branch. Branch takes precedence over git_sha if both are provided.\n\n**find_function**: search for functions and macros\n - git_sha: indicates which commit to search (default: current)\n - branch: branch name to search (alternative to git_sha, e.g., \"main\", \"develop\")\n - name: function/macro name, or a regex\n - also displays details on callers and callees\n**find_type**: search for types and typedefs\n - git_sha: indicates which commit to search (default: current)\n - branch: branch name to search (alternative to git_sha, e.g., \"main\", \"develop\")\n - name: type/typedef name or regex\n**find_callers**: find all functions that call a function or macro\n - git_sha: indicates which commit to search (default: current)\n - branch: branch name to search (alternative to git_sha, e.g., \"main\", \"develop\")\n - name: function to search\n**find_calls**: find all functions called by a function or macro\n - git_sha: indicates which commit to search (default: current)\n - branch: branch name to search (alternative to git_sha, e.g., \"main\", \"develop\")\n - name: function to search\n**find_callchain**: search complete function/macro call chain (forward and reverse)\n - git_sha: indicates which commit to search (default: current)\n - branch: branch name to search (alternative to git_sha, e.g., \"main\", \"develop\")\n - name: function or macro to search\n - up_levels: number of caller levels to show (default: 2, 0 = unlimited)\n - down_levels: number of callee levels to show (default: 3, 0 = unlimited)\n - calls_limit: max calls to show per level (default: 15, 0 = unlimited)\n**diff_functions**: extract functions and types from a unified diff\n - diff_content: the string to analyze\n - Use this to determine which symbols are involved in a given diff\n**grep_functions**: search function/macro bodies for a regex\n - git_sha: indicates which commit to search (default: current)\n - branch: branch name to search (alternative to git_sha, e.g., \"main\", \"develop\")\n - pattern: the regex to search for\n - verbose: boolean, if true show full function bodies (default: false)\n - path_pattern: optional regex to filter results by path\n - limit: max number of results to return (default: 100, 0 = unlimited)\n - this only searches inside functions or macros, there's no need to escape\n your pattern to limit the search.\n**vgrep_functions**: vector embedding search on functions/macros/types\n - git_sha: indicates which commit to search (default: current)\n - branch: branch name to search (alternative to git_sha, e.g., \"main\", \"develop\")\n - query_text: text describing the kind of functions to find (e.g., \"memory allocation\", \"string comparison\")\n - path_pattern: optional regex to filter results by path\n - limit: max number of results to return (default: 10, max: 100)\n - Embedding searches are only useful when you want to search for broad\n concepts that a regex won't find well.\n - The database might not have embeddings indexed\n**find_commit**: search for changes, potentially in a range of commits\n - This can return a large body of results. Use pagination to manage context\n - git_ref: single commit ref to lookup (sha, short sha, branch, HEAD etc)\n - git_range: optional git range to search multiple commits: HEAD~10..HEAD etc\n cannot be combined with git_ref\n - author_patterns: optional array of regex to filter by author name/email (OR logic)\n - subject_patterns: optional array of regex to filter by subject line (OR logic)\n - regex_patterns: optional array of regex patterns to filter commits.\n - All patterns are AND'd together\n - Applied against the combination of commit message and unified diff\n - symbol_patterns: optional array of regex of symbols to search for\n - Use this to quickly find commits changing a function or type (w/regex)\n - path_patterns: optional regex to filter commits based on which files they\n change. Multiple regex can be passed and will be OR'd together\n - page: optional page number for pagination (1-based). Each page contains\n 50 lines, results indicate current page and total pages. Default: full results\n - reachable_sha: optional git sha, filter results to only those reachable from the\n sha provided. Mutually exclusive with git_range\n - verbose: show full diff in addition to metadata (default: false)\n**vcommit_similar_commits**: search commits based on vector embeddings\n - git_range: optional git range to search multiple commits: HEAD~10..HEAD etc\n - query_text: search text\n - author_patterns: optional array of regex to filter by author name/email (OR logic)\n - subject_patterns: optional array of regex to filter by subject line (OR logic)\n - regex_patterns: array of regex AND'd together to limit search results\n - symbol_patterns: array of regex AND'd together to limit search results based\n on symbols changed in the commit\n - path_patterns: optional regex to filter commits based on which files they\n change. Multiple regex can be passed and will be OR'd together\n - limit: max results to return (default 10, max 50)\n - reachable_sha: optional git sha, filter results to only those reachable from the\n sha provided. Mutually exclusive with git_range\n - page: optional page number for pagination (1-based). Each page contains\n 50 lines, results indicate current page and total pages. Default: full results\n**lore_search**: search lore.kernel.org email archives\n - from_patterns: optional array of regex to filter by sender (OR logic)\n - subject_patterns: optional array of regex to filter by subject (OR logic)\n - body_patterns: optional array of regex to filter by message body (OR logic)\n - symbols_patterns: optional array of regex to filter by symbols in patches (OR logic)\n - recipients_patterns: optional array of regex to filter by recipients (OR logic)\n - message_id: optional exact message ID for direct lookup\n - verbose: show full message body (default: false)\n - show_thread: show full email thread for each match (default: false)\n - show_replies: show replies/subthreads under each match (default: false, mutually exclusive with show_thread)\n - limit: max number of results (default: 100, 0 = unlimited)\n - since_date: filter emails from this date onwards (e.g., \"yesterday\", \"2 weeks ago\", \"2024-01-15\")\n - until_date: filter emails up to this date\n - mbox: output in MBOX format with full headers and body (default: false)\n - page: optional page number for pagination (1-based). Each page contains\n 50 lines, results indicate current page and total pages. Default: full results\n**dig**: find lore.kernel.org emails related to a git commit\n - commit: git commit reference (SHA, short SHA, HEAD, branch name, etc.)\n - verbose: show full message body (default: false)\n - show_all: show all duplicate results, not just most recent (default: false)\n - show_thread: show full thread for each result (use with show_all, default: false)\n - show_replies: show replies/subthreads under each result (use with show_all, mutually exclusive with show_thread)\n - since_date: filter emails from this date onwards\n - until_date: filter emails up to this date\n - page: optional page number for pagination (1-based). Each page contains\n 50 lines, results indicate current page and total pages. Default: full results\n**vlore_similar_emails**: semantic vector search over lore.kernel.org emails\n - query_text: text describing the kind of emails to find (e.g., \"memory leak fix\", \"performance optimization\")\n - from_patterns: optional array of regex to filter by sender (OR logic)\n - subject_patterns: optional array of regex to filter by subject (OR logic)\n - body_patterns: optional array of regex to filter by message body (OR logic)\n - symbols_patterns: optional array of regex to filter by symbols in patches (OR logic)\n - recipients_patterns: optional array of regex to filter by recipients (OR logic)\n - limit: max number of results to return (default: 20, max: 100)\n - since_date: filter emails from this date onwards\n - until_date: filter emails up to this date\n - page: optional page number for pagination (1-based). Each page contains\n 50 lines, results indicate current page and total pages. Default: full results\n - The database might not have lore embeddings indexed\n**list_branches**: list all indexed branches with their status\n - No parameters required\n - Shows branch names, indexed commit SHAs, and freshness status\n - **up-to-date**: indexed commit matches current branch tip\n - **outdated**: branch has new commits since indexing (re-index to update)\n - Useful for tracking multiple stable branches (e.g., linux-5.10.y, 6.1.y, 6.12.y)\n and knowing when they need re-indexing after new releases\n**compare_branches**: compare two branches and show their relationship\n - branch1: first branch name (e.g., \"main\")\n - branch2: second branch name (e.g., \"feature-branch\")\n - Shows merge base, ahead/behind status, and indexing status for both branches\n**indexing_status**: check the status of background indexing operation\n - No parameters required\n - Shows current indexing progress, errors, and timing\n\n## Lazy Loading\n\nTo reduce the initial context size consumed by the MCP server (saving ~96% of initial tokens), you can start the server in **lazy mode** using the `--lazy` flag.\n\nIn lazy mode, the server initially exposes only 3 meta-tools:\n\n**list_categories**: List available tool categories\n - No parameters required\n - Returns a list of categories (e.g., `code_lookup`, `code_search`) and their descriptions\n - Use this first to discover what semcode can do\n\n**get_tools**: Get full schemas for tools in a category\n - category: The name of the category to inspect (from `list_categories`)\n - Returns the full tool definitions for all tools in that category\n - Use this to learn how to call specific tools\n\n**call_tool**: Execute a specific tool\n - tool_name: Name of the tool to execute (e.g., `find_function`)\n - arguments: Object containing the arguments for the tool\n - Use this to run tools after you've discovered them\n\n**Workflow**:\n1. Call `list_categories` to see available functionality\n2. Call `get_tools` for a relevant category (e.g., `code_lookup`)\n3. Call `call_tool` to execute the desired tool (e.g., `find_function`)\n\n## Recipes\n\n### Searching for commits reachable from HEAD (or any other git sha)\n\nIf a repository heavily cherry-picks patches, it might have a backported commit\nunder a different git sha. This means the most effective way to find the\nbackported commit is searching by commit subject:\n\n```\nsemcode> commit -r \"bnxt_en: Fix memory corruption when FW resources change during ifdown\"\nsemcode> commit -r \"bnxt_en: Fix memory corruption when FW resources change during ifdown\" --reachable HEAD\n```\n\n❌ WRONG: reachable_sha=HEAD + git_range=HEAD~5000..HEAD\n❌ WRONG: git_range=HEAD~5000..HEAD\n✅ CORRECT: reachable_sha=HEAD only (no git_range)\n\n</mcp-server-instruction>\n\n\n</mcp-server-instructions>\n"} {:role "user", :content "You are a specialized QEMU Issue Triage sub-agent. Your task is to triage and label QEMU GitLab Issue #3518.\n\nPlease follow these instructions:\n1. Load the 'qemu-issue-triage' and 'qemu-issue-helper' skills to guide your workflow.\n2. Check GitLab authorization status with 'glab auth status'.\n3. Fetch and analyze issue #3518 using:\n glab issue view 3518 -R qemu-project/qemu --comments\n4. Evaluate completeness based on the 'qemu-issue-triage' guidelines:\n - Is there a reproduction command?\n - Is the QEMU version old or does it have distro suffixes? (If so, transition to 'workflow::Needs Info' and add a polite comment asking for info, signed 'Issue Agent Bot on behalf of the user').\n5. If the issue is complete and current, identify the correct categorization and labels:\n - Check the exact label names in '.agents/skills/qemu-issue-triage/assets/labels.txt'.\n - Determine kind (e.g. kind::Bug, kind::Feature Request, kind::Task).\n - Determine target, host, accel, subsystem (e.g., target: s390x, accel: KVM, etc.), or TestCase / workflow labels as appropriate.\n6. Apply the determined labels using:\n glab issue update 3518 -R qemu-project/qemu --label \"<comma-separated-labels>\"\n (Note: If categorized/triaged, make sure to add 'workflow::Triaged').\n7. Finally, report back a comprehensive summary containing:\n - Issue Context (Title, Reporter, Description overview)\n - Build & Reproduction details from the issue\n - Proposed Fixes or Discussion Summary\n - Exact Actions Taken (Labels applied, comments left)"}], :stream true, :max_completion_tokens 32000, :stream_options {:include_usage true}, :parallel_tool_calls false}', headers: '{"x-llm-application-name" "eca", "Authorization" "Bearer A****************", "Content-Type" "application/json"}', url: 'https://generativelanguage.googleapis.com/v1beta/openai/chat/completions'
[OPENAI-CHAT] 721 Unexpected response status: %s body: %s 404 [{
"error": {
"code": 404,
"message": "models/gemini-3.1-flash-light is not found for API version v1main, or is not supported for generateContent. Call ModelService.ListModels to see the list of available models and their supported methods.",
"status": "NOT_FOUND"
}
}
]
ECA didn't update the binary automatically but same failure with 0.135.3
@stsquad there are no differences in subagent requests, are you sure the model name "google/models/gemini-3.1-flash-light" is the correct one? you can compare requests of main agents and subagents enabling debug logs
The only thing I can see is an inconsistency in the use of :model - with google/ being dropped by ECA in the sub-agent call. See the attached simple log of my whole session asking the sub-agent to say hello.
@stsquad shouldn't the model name be "gemini-3.1-flash-lite" 😅 ?
@ericdallo I am apparently light/lite blind! Sorry about the noise.