Skip to content llms.txt

OpenCode — Rules

File format
Markdown
Discovery paths
AGENTS.md, CLAUDE.md
Global install path
~/.config/opencode
Syllago install method
Symlink, Direct copy
Symlink support
Yes

Features

How each feature converts to syllago's canonical format. See format conversion for what these statuses mean.

Other features

Behaviors, conventions, and capabilities that aren't tied to a single named field — things like path-based activation, discovery rules, and lifecycle behavior.

FeatureConversionSummary
cross_provider_recognition Translated Conversion type: Translated Actively mapped to the target provider’s equivalent field during conversion. Learn more → OpenCode reads both AGENTS.md (cross-provider convention) and CLAUDE.md (historical Claude Code convention) from project root
hierarchical_loading Translated Conversion type: Translated Actively mapped to the target provider’s equivalent field during conversion. Learn more → Project-root AGENTS.md/CLAUDE.md combined with global context files at ~/.config/opencode/
AGENTS.md cross-provider convention Preserved Conversion type: Preserved Syntax survives conversion but the target provider may not interpret it. Learn more → Plain markdown rule file at project root, shared with other agent tools (no frontmatter, context-injected).
CLAUDE.md compatibility Preserved Conversion type: Preserved Syntax survives conversion but the target provider may not interpret it. Learn more → OpenCode also reads CLAUDE.md at project root for compatibility with Claude Code projects.

Sources

Source
https://opencode.ai/docs/rules/