Skip to content

subagent: Bash-less agent profiles fail at launch with free-tier error #52880

Closed as not planned

Description

@xsefirosus

Description

Subagent dispatches of Bash-less agent profiles fail at launch with Error from provider (Console): OpenCode's free tier can only be used from within OpenCode, while Bash-capable profiles launch fine under identical dispatch (Bash-less 5/5 fail, Bash-capable 6+/6+ succeed, Sep 23-30). Failing profiles: prompt-engineer (Read, Grep, Glob), product-manager (Read, Grep, Glob, Write), technical-writer (Read, Grep, Glob, Write, Edit) — none carries a model line, all inherit the session model. Write capability and model tier are uncorrelated with the outcome.

This matches the linked cluster: #50806 reports a custom subagent (agent: architect) failing at spawn with the identical error while the parent session works; #49723 reports built-in explore failing 8/8 while general with identical Zen free models succeeds 3/3; #50627 isolates the trigger to the request tools array missing bash — headers byte-identical, 35 tools (with bash) succeeds vs 34 tools (without) fails with FreeTierError, and bash: ask succeeds where bash: deny fails. No maintainer-stated cause, workaround, or duplicate ruling was recorded in any of the three issues as read; the mechanism above is community-reported evidence, not a maintainer finding.

Plugins

@sami7786/opencode-image-proxy@latest, superpowers@git+https://github.com/obra/superpowers.git

OpenCode version

1.18.33

Steps to reproduce

  1. From the environment below, dispatch a Bash-less subagent with no model: line (e.g. product-manager).
  2. Observe launch failure: OpenCode's free tier can only be used from within OpenCode.
  3. Dispatch any Bash-capable agent (e.g. software-engineer) identically.
  4. Observe success.

Screenshot and/or share link

No response

Operating System

Microsoft Windows NT 10.0.26200.0, PowerShell 5.1 Desktop, npm global install at %APPDATA%\npm (only reachable as opencode.cmd; opencode not on PATH)

Terminal

TERM=xterm-256color, TERM_PROGRAM/COLORTERM empty; shell via COMSPEC cmd.exe / PowerShell 5.1

Activity

  1. github-actions commented on Oct 3, 2026

    @github-actions
    Contributor

    This issue doesn't fully meet our contributing guidelines.

    What needs to be fixed:

    • Please use the Bug Report template and put the report in a populated Description field; the current body has a Summary but no Description field.
    • Remove the stray draft-only/publishing instructions at the top and condense the diagnostic dump to the essential reproduction steps, symptoms, and environment details.

    Please edit this issue to address the above within 72 hours, or it will be automatically closed.


    This issue might be a duplicate of existing issues. Please check:

    • #50806: A custom subagent fails to start with the same free-tier error.
    • #49723: The explore subagent fails with the same error while general succeeds.
    • #50627: A custom agent with shell denied triggers the same free-tier error.

    If you believe this was flagged incorrectly, please let a maintainer know.

  2. xsefirosus commented on Oct 3, 2026

    @xsefirosus
    Author

    Context for the agent names in this report: they come from the sefi-agents plugin installed in this OpenCode setup (16 agent profiles installed from xsefirosus/sefi-agents, e.g. product-manager tools Read Grep Glob Write, technical-writer tools Read Grep Glob Write Edit, prompt-engineer tools Read Grep Glob; none of the 16 installed profiles carries a model line, so all inherit the session model). The Bash-less versus Bash-capable split in this report refers to the tools frontmatter of those installed profiles.

  3. github-actions commented on Oct 3, 2026

    @github-actions
    Contributor

    Thanks for updating the issue with the Bug Report template and adding the reproduction steps and environment details!

  4. hymsoft commented on Oct 3, 2026

    @hymsoft

    Confirming the same trigger on my setup + minimal workaround.

    Setup:

    • OpenCode 1.18.34 (opencode --version)
    • Windows 11
    • Custom project subagent (mode: subagent) that never needs bash (only reads .md/.typ and returns text)

    Failing frontmatter (repro 3/3):

    permission:
      read:
        "*": deny
        "**/*.md": allow
        "*.md": allow
      edit:
        "*": deny
        "**/*.md": allow
        "*.md": allow
        ".opencode/**": deny
      bash: deny
      question: allow

    Error every time via task:

    OpenCode's free tier can only be used from within OpenCode

    Working frontmatter (repro 3/3 after restart):

    permission:
      read:
        "*": deny
        "**/*.md": allow
        "*.md": allow
      edit:
        "*": deny
        "**/*.md": allow
        "*.md": allow
        ".opencode/**": deny
      bash:
        "*": deny
        "echo maquetador-noop*": allow
      question: allow

    The agent never calls bash. Declaring a noop echo allow is enough to route correctly. This matches #50627 (34 vs 35 tools) and #49723.
    Happy to add logs if a maintainer tells me which ones.

  5. thdxr commented on Oct 11, 2026

    @thdxr
    Member

    Thanks for the report! OpenCode 2.0 is now out and development is focused on V2, so we're closing issues filed against OpenCode 1. Please upgrade (opencode upgrade --major, details: https://anoma.ly/notes/opencode-2-0), and if this is still relevant on 2.0, reopen this issue or open a new one with your 2.0 version.

    — from 𝕺𝖕𝖊𝖓𝕮𝖔𝖉𝖊

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

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions