Repository navigation
fix: install.sh does not symlink agents - #8
Merged
Merged
Conversation
.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>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
install.shmirrorsskills/,commands/, andplugins/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.Agents:step to bothmain_installandmain_uninstall, following the exact samelink_one/unlink_onepattern already used for commands..opencode/agents/ars-*.mdare real files (not symlinks to a root-levelagents/dir, unlike skills/commands/plugins), so the source path is$REPO_ROOT/.opencode/agents.Fixes #2
Test plan
bash -n install.sh— syntax checkinstall.sh --dry-runagainst a scratchXDG_CONFIG_HOME— confirmedAgents:step lists the 4 agent filesinstall.sh(real run) against a scratchXDG_CONFIG_HOME— confirmedars-researcher.md,ars-reviewer.md,ars-verifier.md,ars-writer.mdare correctly symlinked intoagents/install.sh --uninstall— confirmed all four agent symlinks are cleanly removed🤖 Generated with Claude Code
https://claude.ai/code/session_01QC9aWbjMeyszotVnKeCwyd