Type: url
Original: https://opencode.ai/docs/rules/
Status: generated
Summary
OpenCode’s documentation page on rules explains how custom instructions are supplied to the agent through an AGENTS.md file, which the /init command can create or improve in place, placed either at a project root or globally under ~/.config/opencode/. It describes Claude Code compatibility fallbacks (CLAUDE.md, ~/.claude/CLAUDE.md, ~/.claude/skills/), the order in which rule files are looked up, and how additional instruction files, including remote URLs, can be listed in the instructions field of opencode.json.