Skip to content

fix: install.sh does not symlink agents - #8

Merged
timpara merged 1 commit into
mainfrom
fix/install-sh-symlink-agents
Aug 30, 2026
Merged

timpara merged 1 commit into
mainfrom
fix/install-sh-symlink-agents

Conversation

@timpara

@timpara timpara commented Aug 30, 2026

Copy link
Copy Markdown
Owner

Summary

  • install.sh mirrors skills/, commands/, and plugins/ into $XDG_CONFIG_HOME/opencode/{skills,commands,plugins}/, but never touched .opencode/agents/*.md. After a global install, commands that depend on those agents (e.g. /ars-reviewer) fail because OpenCode can't resolve the agent.
  • Adds an Agents: step to both main_install and main_uninstall, following the exact same link_one/unlink_one pattern already used for commands.
  • .opencode/agents/ars-*.md are real files (not symlinks to a root-level agents/ dir, unlike skills/commands/plugins), so the source path is $REPO_ROOT/.opencode/agents.

Fixes #2

Test plan

  • bash -n install.sh — syntax check
  • install.sh --dry-run against a scratch XDG_CONFIG_HOME — confirmed Agents: step lists the 4 agent files
  • install.sh (real run) against a scratch XDG_CONFIG_HOME — confirmed ars-researcher.md, ars-reviewer.md, ars-verifier.md, ars-writer.md are correctly symlinked into agents/
  • install.sh --uninstall — confirmed all four agent symlinks are cleanly removed

🤖 Generated with Claude Code

https://claude.ai/code/session_01QC9aWbjMeyszotVnKeCwyd

.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 <noreply@anthropic.com>
@timpara
timpara merged commit a0d52f0 into main Aug 30, 2026
3 of 5 checks passed
@timpara
timpara deleted the fix/install-sh-symlink-agents branch August 30, 2026 21:23
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.

Install script does not symlink agents

1 participant