trying to integrate chainlink into opencode

Chainlink OpenCode Plugin#

Integrates Chainlink issue tracking into OpenCode.

Installation#

// opencode.json
{
  "plugin": ["git@tangled.org:karitham.dev/chainlink-opencode"],
}

Tools#

  • chainlink({ command }): Run any chainlink command (e.g., show 42, create "fix bug")
  • chainlink_session({ action, id?, notes? }): Manage session lifecycle (start, work, end, status)
  • chainlink_rules({ rule? }): Read rules from .chainlink/rules/
  • chainlink_next(): Get next issue recommendation

Features#

  • Rule Enforcement: Reminds agents to read rules before editing code.
  • Auto Context: Injects priority issues at session start.
  • Dynamic Language Hints: Automatically detects file language and prompts to read language-specific rules when reading code files.