Skip to content

Conversation

Copy link
Contributor

Copilot AI commented Nov 4, 2025

Adds support for OpenCode.ai rules following the same pattern as existing AI assistants (Cursor, Windsurf, Augment).

Changes

Rule search paths (main.go)

  • Project-level: .opencode/agent/, .opencode/command/
  • User-level: ~/.opencode/rules/
  • System-level: /etc/opencode/rules/

Documentation (README.md)

  • Updated file search paths section

Tests (integration_test.go)

  • Added TestOpenCodeRulesSupport covering both agent and command directories

Example

# OpenCode rules are now automatically included
mkdir -p .opencode/agent .opencode/command
echo "# Code Review Agent" > .opencode/agent/reviewer.md
echo "# Git Commit Helper" > .opencode/command/commit.md

coding-context-cli my-task
# ⪢ Including rule file: .opencode/agent/reviewer.md
# ⪢ Including rule file: .opencode/command/commit.md

Warning

Firewall rules blocked me from connecting to one or more addresses (expand for details)

I tried to connect to the following addresses, but was blocked by firewall rules:

  • opencode.ai
    • Triggering command: curl -s REDACTED (dns block)

If you need me to access, download, or install something from one of these locations, you can either:

Original prompt

Read https://opencode.ai/docs/rules/ and add support


✨ Let Copilot coding agent set things up for you — coding agent works faster and does higher quality work when set up for your repo.

Co-authored-by: alexec <1142830+alexec@users.noreply.github.com>
Copilot AI changed the title [WIP] Add support for OpenCode AI rules Add OpenCode.ai rules support Nov 4, 2025
Copilot AI requested a review from alexec November 4, 2025 15:42
@alexec alexec marked this pull request as ready for review November 4, 2025 15:43
@alexec alexec enabled auto-merge (squash) November 4, 2025 15:43
@alexec alexec merged commit e85065e into main Nov 4, 2025
2 checks passed
@alexec alexec deleted the copilot/add-support-for-opencode-rules branch November 4, 2025 15:43
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants