From a17be76f7a1961ce0a4d25248d3e81abf9403dba Mon Sep 17 00:00:00 2001 From: timpara <45405388+timpara@users.noreply.github.com> Date: Sun, 30 Aug 2026 23:18:42 +0200 Subject: [PATCH] fix: install.sh does not symlink agents (#2) .opencode/agents/*.md was never mirrored into $XDG_CONFIG_HOME/opencode/agents/ by install.sh, only skills/, commands/, and plugins/ were. Commands that depend on those agents (e.g. /ars-reviewer) error out after a global install because OpenCode can't find the agent. Add an Agents: step to both main_install and main_uninstall, mirroring the existing skills/commands/plugins pattern. Verified with a dry run and a real install/uninstall cycle against a scratch XDG_CONFIG_HOME. Fixes #2 Co-Authored-By: Claude Sonnet 5 --- CHANGELOG.md | 6 ++++++ install.sh | 13 +++++++++++++ 2 files changed, 19 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 0c215e9..7065352 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -6,6 +6,12 @@ The history below this section is the upstream `Imbad0202/academic-research-skil changelog, reproduced verbatim. Entries prefixed `opencode.` apply to this port only and document packaging / runtime differences from upstream. +## [Unreleased] + +- Fixed `install.sh` not symlinking `.opencode/agents/*.md` into + `$XDG_CONFIG_HOME/opencode/agents/`, which left commands like + `/ars-reviewer` erroring after a global install (#2). + ## [3.13.0] (2026-06-19) — Upstream merge + OpenCode integration fixes Merged upstream `v3.9.4.2` → `v3.13.0` (136 commits). All upstream diff --git a/install.sh b/install.sh index 877b8d6..8cc6cad 100755 --- a/install.sh +++ b/install.sh @@ -120,6 +120,7 @@ main_install() { echo "Installing into: $OC_HOME" ensure_dir "$OC_HOME/skills" ensure_dir "$OC_HOME/commands" + ensure_dir "$OC_HOME/agents" ensure_dir "$OC_HOME/plugins" echo "Skills:" @@ -136,6 +137,12 @@ main_install() { link_one "$f" "$OC_HOME/commands/$(basename "$f")" done + echo "Agents:" + for f in "$REPO_ROOT/.opencode/agents"/*.md; do + [[ -f "$f" ]] || continue + link_one "$f" "$OC_HOME/agents/$(basename "$f")" + done + echo "Plugins:" for f in "$REPO_ROOT/plugins"/*.ts; do [[ -f "$f" ]] || continue @@ -170,6 +177,12 @@ main_uninstall() { unlink_one "$OC_HOME/commands/$(basename "$f")" done + echo "Agents:" + for f in "$REPO_ROOT/.opencode/agents"/*.md; do + [[ -f "$f" ]] || continue + unlink_one "$OC_HOME/agents/$(basename "$f")" + done + echo "Plugins:" for f in "$REPO_ROOT/plugins"/*.ts; do [[ -f "$f" ]] || continue