Skip to content

dotbrains/opencode

Repository files navigation

opencode

License: PolyForm Shield 1.0.0

This repository contains my sensible defaults for opencode.

Upstream Project

Install opencode

curl -fsSL https://opencode.ai/install | bash

Or with Homebrew:

brew install anomalyco/tap/opencode

Contents

  • opencode.json - Core opencode settings (includes MCP servers and plugins)
  • tui.json - Terminal UI preferences
  • agent/ - Agent configuration (assembled from shared + frontmatter)
  • command/ - Command definitions
  • skills/ - Skill configuration (assembled from shared + frontmatter)
  • shared/ - Shared AI config submodule (dotbrains/shared-ai-config)
  • frontmatter/ - OpenCode-specific YAML frontmatter for agents and skills
  • rules/ - Instruction files loaded as system-level rules
  • PLUGINS.md - External MCP servers and plugins (details)
  • RULES.md - Rule definitions and usage (details)

Install This Config

The contents of this repository should be placed in your $HOME/.config.

git clone --recursive https://github.com/dotbrains/opencode.git $HOME/.config/opencode

Shared Agent Definitions

Agent and skill body content is shared with Claude Code via the shared-ai-config submodule. To update after shared content changes:

git submodule update --remote shared
./shared/assemble.sh opencode

Fallback Commands (Notion + Linear)

If your workspace blocks MCP OAuth flows, this config includes local fallback slash commands:

  • Notion: command/notion-search.md, command/notion-page.md (powered by @dotbrains/notion-cli)
  • Linear: command/linear-search.md, command/linear-issue.md (powered by @dotbrains/linear-cli)

Setup and usage instructions are documented in PLUGINS.md under:

  • Linear → Fallback: linear-cli (when MCP auth is blocked)
  • Notion → Fallback: notion-cli (when MCP auth is blocked)

License

This project is licensed under the PolyForm Shield License 1.0.0 -- see LICENSE for details.

About

Personal OpenCode configuration including agents, commands, skills, and TUI settings.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors