Skip to content

Subagents Can't find submit_plan tool #289

Closed

Description

@sfpmld

Main agent are unable to access submit_plan while main agent that delegate can't access submit_plan anymore:

Image

I'm on opencode 1.2.26 with plannotator version 0.12.0

Activity

  1. backnotprop commented on Mar 14, 2026

    @backnotprop
    Owner

    Thanks @sfpmld -

    We previously decided to disable this for sub-agents because people didn't like it when their sub-agents were calling Submit Plan. But happy to rethink this.

    Random data collection here: are you using any tooling like super powers or OhMyOpenCode?

  2. sfpmld commented on Mar 14, 2026

    @sfpmld
    Author

    Nope, but I've made a kind of custom one to orchestrate my subagent with basic routing according to usecases. Would be nice to make a select choice as for the after approval switch agent one, maybe 🙏🏾
    It would be very very nice to decide by ourself 🙏🏾🙏🏾🙏🏾

  3. backnotprop commented on Mar 16, 2026

    @backnotprop
    Owner

    For reference, PR #318 implements the current design for PLANNOTATOR_ALLOW_SUBAGENTS:

    • config hook: skips adding submit_plan to primary_tools, making the tool visible to subagents
    • system.transform: still skips prompt injection for subagents — intentionally

    The env var is a visibility toggle, not a "turn this subagent into a planner" switch. Subagents that need submit_plan are custom workflows with their own instructions — injecting the full planning prompt (directory paths, file naming rules, "don't edit codebase", question tool usage) would conflict with whatever the subagent is configured to do. The tool description itself is sufficient for a subagent that's been set up to use it.

  4. sfpmld commented on Mar 16, 2026

    @sfpmld
    Author

    Hi, thank you so much. I'll give it a try tomorrow 🤓

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

Metadata

Metadata

Assignees

No one assigned

    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