[PR #6529] feat(cli): New debug agent <name> subcommand #11958

Closed
opened 2026-02-16 18:16:53 -05:00 by yindo · 0 comments
Owner

Original Pull Request: https://github.com/anomalyco/opencode/pull/6529

State: closed
Merged: Yes


When I writing my agent with markdown, I constently found I need to ask LLM to list your current available tools, I guess it should be a dedicated command.

opencode debug agent plan
{
  "name": "plan",
  "options": {},
  "permission": {
    "edit": "deny",
    "webfetch": "allow",
    "bash": {
      "*": "ask",
      "cut*": "allow",
      "diff*": "allow",
      "du*": "allow",
      "file *": "allow",
      "find * -delete*": "ask",
      "find * -exec*": "ask",
      "find * -fprint*": "ask",
      "find * -fls*": "ask",
      "find * -fprintf*": "ask",
      "find * -ok*": "ask",
      "find *": "allow",
      "git diff*": "allow",
      "git log*": "allow",
      "git show*": "allow",
      "git status*": "allow",
      "git branch": "allow",
      "git branch -v": "allow",
      "grep*": "allow",
      "head*": "allow",
      "less*": "allow",
      "ls*": "allow",
      "more*": "allow",
      "pwd*": "allow",
      "rg*": "allow",
      "sort --output=*": "ask",
      "sort -o *": "ask",
      "sort*": "allow",
      "stat*": "allow",
      "tail*": "allow",
      "tree -o *": "ask",
      "tree*": "allow",
      "uniq*": "allow",
      "wc*": "allow",
      "whereis*": "allow",
      "which*": "allow"
    },
    "skill": {
      "*": "allow"
    }
  },
  "tools": {
    "invalid": true,
    "bash": true,
    "read": true,
    "glob": true,
    "grep": true,
    "edit": false,
    "write": false,
    "task": true,
    "webfetch": true,
    "todowrite": true,
    "todoread": true,
    "websearch": true,
    "codesearch": true,
    "skill": true,
    "doc_convert": true,
    "internal_search_internal_search": true,
    "websearch_for_china_net": true
  },
  "mode": "primary",
  "native": true,
  "toolOverrides": {}
}
**Original Pull Request:** https://github.com/anomalyco/opencode/pull/6529 **State:** closed **Merged:** Yes --- When I writing my agent with markdown, I constently found I need to ask LLM to `list your current available tools`, I guess it should be a dedicated command. ```bash opencode debug agent plan ``` ```text { "name": "plan", "options": {}, "permission": { "edit": "deny", "webfetch": "allow", "bash": { "*": "ask", "cut*": "allow", "diff*": "allow", "du*": "allow", "file *": "allow", "find * -delete*": "ask", "find * -exec*": "ask", "find * -fprint*": "ask", "find * -fls*": "ask", "find * -fprintf*": "ask", "find * -ok*": "ask", "find *": "allow", "git diff*": "allow", "git log*": "allow", "git show*": "allow", "git status*": "allow", "git branch": "allow", "git branch -v": "allow", "grep*": "allow", "head*": "allow", "less*": "allow", "ls*": "allow", "more*": "allow", "pwd*": "allow", "rg*": "allow", "sort --output=*": "ask", "sort -o *": "ask", "sort*": "allow", "stat*": "allow", "tail*": "allow", "tree -o *": "ask", "tree*": "allow", "uniq*": "allow", "wc*": "allow", "whereis*": "allow", "which*": "allow" }, "skill": { "*": "allow" } }, "tools": { "invalid": true, "bash": true, "read": true, "glob": true, "grep": true, "edit": false, "write": false, "task": true, "webfetch": true, "todowrite": true, "todoread": true, "websearch": true, "codesearch": true, "skill": true, "doc_convert": true, "internal_search_internal_search": true, "websearch_for_china_net": true }, "mode": "primary", "native": true, "toolOverrides": {} } ```
yindo added the pull-request label 2026-02-16 18:16:53 -05:00
yindo closed this issue 2026-02-16 18:16:53 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: anomalyco/opencode#11958