Skip to content

Nested Permissions in Agent Markdown #9755

@sanchez

Description

@sanchez

Description

I have the following front matter for a markdown subagent:

description: Develop a detailed plan to implement based on the user's requirements.
mode: subagent
model: github-copilot/gpt-5.2-codex
temperature: 0.3
tools:
    write:
        "*": false
        plans/*.md: true
        specs/*.md: true
    edit:
        "*": false
        specs/*.md: ask
    bash: ask
    question: allow

When I try to launch opencode I get the following errors:

↳ Invalid input: expected boolean, received object tools.write
↳ Invalid input: expected boolean, received object tools.edit
↳ Invalid input: expected boolean, received string tools.bash
↳ Invalid input: expected boolean, received string tools.question

Plugins

none

OpenCode version

1.1.28

Steps to reproduce

  1. Create a custom subagent with the frontmatter above
  2. Launch OpenCode

Screenshot and/or share link

No response

Operating System

Windows 11

Terminal

Windows Terminal

Metadata

Metadata

Assignees

Labels

bugSomething isn't workingwindows

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions