Skip to content

fix: repair inert .opencode symlinks on Windows checkouts (#93) - #98

Merged
striderZA merged 1 commit into
masterfrom
fix/issue-93-windows-opencode-symlinks-inert
Aug 2, 2026
Merged

fix: repair inert .opencode symlinks on Windows checkouts (#93)#98
striderZA merged 1 commit into
masterfrom
fix/issue-93-windows-opencode-symlinks-inert

Conversation

@striderZA

Copy link
Copy Markdown
Owner

Closes #93.

Problem

.opencode/{agents,commands,skills,rules} are committed as git symlinks. On Windows with the default core.symlinks=false, git checks them out as inert plain-text stub files instead of real symlinks — OpenCode's .opencode/-based agent/skill/command discovery silently finds nothing. Pi is unaffected (reads .agents/ directly).

Fix

  • New tools/fix-opencode-symlinks.mjs: detects the stub-file state and repairs it into a real symlink/junction pointing at the canonical .agents/* directory.
  • Documented the root cause + fix (both the proper core.symlinks=true setup and the repair-script fallback) in README.md (Quick Start + Known Issues) and docs/pi-compatibility.md.

Verification

Ran the script locally: detected 4 stub files, repaired all 4 into working symlinks resolving to 51/78/77/11 entries respectively (matching .agents/{agents,commands,skills,rules} counts).

.opencode/{agents,commands,skills,rules} are git symlinks pointing at
../.agents/*. On Windows with the default core.symlinks=false, git
checks these out as inert plain-text stub files instead of real
symlinks/junctions, so OpenCode auto-discovery finds zero agents,
skills, or commands. Pi is unaffected (reads .agents/ directly).

- Add tools/fix-opencode-symlinks.mjs: detects stub files and repairs
  them into working directory junctions/symlinks pointing at the
  canonical .agents/* directories
- Document the Windows setup requirement (core.symlinks=true +
  Developer Mode) and the repair-script fallback in README.md Quick
  Start + Known Issues, and docs/pi-compatibility.md

Verified locally: script correctly detected 4 stub files and repaired
them into real symlinks resolving to 51/78/77/11 entries.
@striderZA
striderZA merged commit 2916038 into master Aug 2, 2026
4 checks passed
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.

[Framework] .opencode symlinks (agents/commands/skills/rules) are inert on Windows

1 participant