Skip to content
Agentmart
Submit a tool

opencode

Configure and manage OpenCode — the open-source AI coding agent.

Skill by heydemoura

IndexedMIT
Write a review

Chalk Labs

Need help deploying opencode?

Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.

Book a call

Install

Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.

npx agentmarket install skill/heydemoura-opencode

Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.

Get the weekly diff

The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.

We use your email only for this newsletter. Privacy

About

Configure and manage OpenCode — the open-source AI coding agent. Covers config, agents, commands, MCP servers, providers, skills, permissions, and project setup.

Use cases: agent-building

No reviews yet. Installed it? Reviews come from verified installers only. How reviews work

Permissions

What this skill can do and what it asks for, from its SKILL.md. Checked Oct 25, 2026.

Tools
No tools found
Secrets
None asked for
Install scripts
None found

Network hosts it talks to 1

  • codeload.github.com · found in install command

Files it touches

  • ~/.claude/skills/opencode

What's inside

Skill name
opencode
Description
Configure and manage OpenCode — the open-source AI coding agent. Covers config, agents, commands, MCP servers, providers, skills, permissions, and project setup.
License
MIT
Instructions
383 lines in SKILL.md · view on GitHub

Before installing

  • Instructions read files in your home folder (~/.ssh, ~/.aws…)

Files (1)

  • SKILL.md

SKILL.md (first lines)

# OpenCode Configuration Skill

Reference guide for configuring [OpenCode](https://opencode.ai), the open-source AI coding agent (terminal, desktop, and IDE extension).

## Config Files

OpenCode uses JSON/JSONC config files. Precedence (later overrides earlier):
1. Remote config (`.well-known/opencode`) — organizational defaults
2. Global: `~/.config/opencode/opencode.json` — user preferences
3. Custom: `OPENCODE_CONFIG` env var — custom overrides
4. Project: `opencode.json` in project root — project-specific
5. `.opencode/` directories — agents, commands, plugins
6. Inline: `OPENCODE_CONFIG_CONTENT` env var — runtime overrides

Schema: `https://opencode.ai/config.json`

## Quick Config Template

```jsonc
{
  "$schema": "https://opencode.ai/config.json",
  // Main model
  "model": "anthropic/claude-sonnet-4-5",
  // Cheaper model for titles, summaries
  "small_model": "anthropic/claude-haiku-4-5",
  // Theme
  "theme": "opencode",
  // Auto-update
  "autoupdate": true,
  // Provider overrides
  "provider": {},
  // Tool permissions
  "permission": {},
  // Custom agents
  "agent": {},
  // Custom commands
  "command": {},
  // MCP servers
  "mcp": {},
  // Formatters
  "formatter": {},
  // Instructions (extra rule files)
  "instructions": [],
  // Compaction
  "compaction": { "auto": true, "prune": true, "reserved": 10000 },
  // Sharing
  "share": "manual",
  // Disabled providers
  "disabled_providers": []
}
```

## Agents

Two types: **primary** (Tab to cycle) and **subagent** (invoked via `@name` or by primary agents).

Built-in: `build` (full access), `plan` (read-only), `general` (subagent, full access), `explore` (subagent, read-only).

### Define agents in JSON
```jsonc
{
  "agent": {
    "review": {
      "description": "Code review agent",
      "mode": "subagent",          // primary | subagent | all
      "model": "anthropic/claude-sonnet-4-5",
      "temperature": 0.1,          // 0.0-1.0
      "prompt": "{file:./prompts/review.txt}",
      "steps": 10,                 // max agentic iterations
      "color": "#ff6b6b",          // hex or theme color
      "tools": { "write": false, "edit": false },
      "permission": {
        "bash": { "*": "ask", "git log*": "allow" },
        "edit": "deny",
        "task": { "*": "deny", "explore": "allow" }
      }
    }
  }
}
```

### Define agents in Markdown
Place in `~/.config/opencode/agents/` (global) or `.opencode/agents/` (project).

File `review.md`:
```markdown
---
description: Code review agent
mode: subagent
model: anthropic/claude-sonnet-4-5
temperature: 0.1
tools:
  write: false
  edit: false
permission:
  edit: deny
  bash:
    "*": ask
    "git diff": allow
---
Your review instructions here...
```

### Agent options
| Option | Description |
|--------|-------------|
| `description` | What the agent does (required) |
| `mode` | `primary`, `subagent`, or `all` (default: `all`) |
| `model` | Override model (`provider/model-id`) |
| `temperature` | 0.0-1.0 (lower = more focused) |
| `steps` | Max agentic iterations |
| `prompt` | System prompt or `{file:./path}` |
| `tools` | Enable/disable tools (`true`/`false`, wildcards ok) |
| `permission` | Per-tool permissions (`allow`/`ask`/`deny`) |
| `color` | UI color (hex or theme name) |
| `hidden` | Hide from `@` autocomplete |
| `disable` | Disable the agent |
| `top_p` | Alternative to temperature for diversity |
| `default_agent` | Set default primary agent globally |

From heydemoura/ai-skills-inventory, MIT.

Signals

Stars
0
Forks
0
Open issues
1
Last commit (this folder)
Feb 13, 2026 (8 months ago)

From GitHub (fetched Oct 24, 2026).

Details

License
MIT
First seen
Oct 24, 2026
Last checked
Oct 24, 2026

More from heydemoura

Done for you

Rather not set it up yourself?

Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.

See how we build AI agents →Read the case studies

Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.

launches shipped
50+
launches shipped
media placements
500+
media placements
founders on every account
2
founders on every account

Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block

Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.

Get opencode running in your business

Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.

Goes to the Chalk Labs founders, not the newsletter. Privacy

Need help deploying opencode?

CallGet help
Cite this page

opencode skill. Agent Mart. https://agentmart.dev/skills/heydemoura-opencode (last updated 2026-10-24)