Skip to content

Latest commit

 

History

History
51 lines (40 loc) · 2.67 KB

File metadata and controls

51 lines (40 loc) · 2.67 KB

Modified Files for OpenCode Adapter

This file tracks all files modified from the original gstack repository for OpenCode compatibility. Use it as the conflict-resolution guide when syncing upstream changes.

Path Changes

All references to ~/.claude/skills/gstack/ have been changed to ~/.config/opencode/skills/gstack/.

Modified Files

File Changes
SKILL.md Updated preamble paths, tool names (Bash→bash, Read→read, AskUserQuestion→question), removed broken fallback path in preamble update-check, removed Claude-specific mcp__claude-in-chrome__* warning from browse section
AGENTS.md Replaces upstream CLAUDE.md. Added OpenCode skill discovery paths, fixed /debug/investigate, added /codex to table, added OpenCode-specific notes. Must be kept in sync with upstream CLAUDE.md on every merge.
bin/dev-setup Original preserved; created bin/dev-setup-opencode with OpenCode paths
bin/dev-teardown Original preserved; created bin/dev-teardown-opencode with OpenCode paths
setup Added opencode as a valid --host value (alias for claude mode, same install path)

New Files (Adapter-Specific)

File Purpose
README.md Replaced with OpenCode-specific installation and usage guide
gstack-version.txt Pinned upstream gstack version
MODIFIED_FILES.md This file — tracks modifications for upstream syncing
bin/dev-setup-opencode Development setup script for OpenCode
bin/dev-teardown-opencode Development teardown script for OpenCode

Upstream Sync Procedure

  1. Before syncing: commit or stash any local adapter changes
  2. Run ./scripts/sync-upstream.sh which does:
    • git fetch upstream
    • git merge upstream/main (not rebase — preserves history)
  3. Resolve conflicts using this file as a reference:
    • Files in the "Modified Files" table are expected to conflict — resolve by re-applying adapter patches
    • Pay special attention to AGENTS.md: it replaces upstream CLAUDE.md. If upstream adds instructions to CLAUDE.md, mirror those changes into AGENTS.md.
    • Files NOT in this table should merge cleanly — if they conflict, investigate
  4. If merge breaks the adapter: git merge --abort to restore pre-sync state
  5. Run the full test suite after every sync to verify nothing broke

Version History

Date Upstream Version Adapter Version Notes
2026-03-21 0.9.4.1 0.1.0 Initial OpenCode adapter
2026-03-21 0.9.4.1 0.1.1 Fix preamble fallback path, AskUserQuestion→question, /debug→/investigate, setup --host opencode, corrected skill paths in AGENTS.md