opencode icon indicating copy to clipboard operation
opencode copied to clipboard

Agents and Commands are not shown

Open jsa4000 opened this issue 21 hours ago • 0 comments

Description

Hi,

Runinng opencode cli I cannot see any commands or agents created. When i rename the opencode.json to opencode.jsonc and run again it appears. However if i exit and start again they disappear. I have tried to give permissions to all folders and files but still not shown the commands or agents

├── .opencode
│   ├── agent
│   │   ├── openagent-functional-analyst.md
│   │   ├── openagent-github-issuer.md
│   │   ├── openagent-orchestrator.md
│   │   ├── openagent-performance-detector.md
│   │   ├── openagent-task-issuer.md
│   │   └── openagent-task-manager.md
│   ├── command
│   │   ├── speckit.analyze.md
│   │   ├── speckit.checklist.md
│   │   ├── speckit.clarify.md
│   │   ├── speckit.constitution.md
│   │   ├── speckit.implement.md
│   │   ├── speckit.plan.md
│   │   ├── speckit.specify.md
│   │   ├── speckit.tasks.md
│   │   └── speckit.taskstoissues.md
│   └── opencode.json
└── .specify
    ├── memory
    │   └── constitution.md
    ├── scripts
    │   └── bash
    │       ├── check-prerequisites.sh
    │       ├── common.sh
    │       ├── create-new-feature.sh
    │       ├── setup-plan.sh
    │       └── update-agent-context.sh
    └── templates
        ├── agent-file-template.md
        ├── checklist-template.md
        ├── plan-template.md
        ├── spec-template.md
        └── tasks-template.md

This is the opencode.json file

{
  "$schema": "https://opencode.ai/config.json",
  "mcp": {
    "github-mcp-server": {
      "enabled": true,
      "type": "remote",
      "url": "https://api.githubcopilot.com/mcp/",
      "headers": {
        "Authorization": "Bearer {env:GITHUB_TOKEN}",
        "X-MCP-Toolsets": "repos,issues,pull_requests"
      }
    },
    "playwright-mcp": {
      "enabled": true,
      "type": "local",
      "command": ["npx", "-y", "@playwright/mcp@latest"]
    }
  }
}

This is an example agent

---
name: Github Issuer
description: Issues GitHub issues for identified performance problems in the codebase
mode: primary
model: github-copilot/gpt-5-mini
temperature: 0.1
tools:
  write: false
  edit: false
  bash: false
  github-mcp-server*: true
---

You are an issue issuer agent responsible for creating detailed GitHub issues based on user-provided information.

Your primary function is to analyze the provided context, identify performance problems in the codebase, and create well-structured GitHub issues that clearly outline the problems, their impact, and potential solutions.

When creating an issue, ensure to include the following sections:

1. **Title**: A concise summary of the performance problem.
2. **Description**: A detailed explanation of the problem, including:
   - The specific performance issue identified.
   - The impact of the issue on the system or users.
   - Steps to reproduce the issue, if applicable.
3. **Proposed Solution**: Suggestions for addressing the performance problem, including potential fixes or optimizations.
4. **Labels**: Appropriate labels to categorize the issue (e.g., performance, bug, enhancement).
5. **Assignees**: Assign the issue to relevant team members or leave it unassigned for triage.

When you receive a request to create an issue, gather all necessary information from the codebase to ensure the issue is comprehensive and actionable.

Plugins

N/A

OpenCode version

1.1.23

Steps to reproduce

  1. Create .opencode folder with agents and commands (it can be created with the CLI)
  2. Create opencode.json file with the Github MCP Server.
  3. Run OpenCode
  4. There is no custom custom or agents loaded

Screenshot and/or share link

No response

Operating System

MacOs 26.2 (25C56) (used devcontainer with node image)

Terminal

iTerm2

jsa4000 avatar Jan 16 '26 11:01 jsa4000