rules for opencode
Find a file
2026-02-13 18:34:08 +00:00
AGENTS.md add opencode rules and changelog guidance 2026-02-13 12:08:16 -05:00
base.md add opencode rules and changelog guidance 2026-02-13 12:08:16 -05:00
changelog.md add curl one-liner to readme 2026-02-13 13:33:40 -05:00
CODE_OF_CONDUCT.md add opencode rules and changelog guidance 2026-02-13 12:08:16 -05:00
get-rules.sh include agents rules in download script 2026-02-13 13:23:10 -05:00
languages.md add opencode rules and changelog guidance 2026-02-13 12:08:16 -05:00
LICENSE.md add opencode rules and changelog guidance 2026-02-13 12:08:16 -05:00
opencode.json add opencode rules and changelog guidance 2026-02-13 12:08:16 -05:00
README.md add curl one-liner to readme 2026-02-13 13:33:40 -05:00

OpenCode Rules

This repository defines the OpenCode instruction set and changelog rules used by the CLI.

curl -fsSL https://emmy.link/opencode | bash

How it works

  • opencode.json loads the instruction files listed in instructions.
  • base.md provides universal rules for every task.
  • languages.md adds language-specific requirements.
  • changelog.md tracks notable changes in Keep a Changelog format.

Using this repo

  1. Update rules by editing the appropriate instruction file.
  2. For every change, update changelog.md under ## [Unreleased] using the correct change type section.
  3. Keep entries concise and user-facing.
  4. When releasing, move the Unreleased entries into a new version section with a UTC date in YYYY-MM-DD format and update any link references.

Changelog format

changelog.md follows Keep a Changelog 1.1.0:

  • Always keep ## [Unreleased] at the top.
  • Use these sections when needed: Added, Changed, Deprecated, Removed, Fixed, Security.
  • Do not add empty sections.
  • Newest releases first.

Files

  • opencode.json
  • base.md
  • languages.md
  • changelog.md