mcpField
O
opencode-mirror

opencode-mirror

github.com/different-aiDevelopment24.3k564 installsUpdated today
Repository

About opencode-mirror

A small development skill for maintaining an OpenCode Git mirror in vendor/opencode. It documents the clone and fast-forward-only update commands, along with mirror-specific repository precautions.

Key features

  1. 01Clone the OpenCode mirror
  2. 02Update with fast-forward-only pulls
  3. 03Keep the mirror gitignored

Use cases

  1. 01Set up vendor/opencode
  2. 02Refresh the mirror without merge commits

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/different-ai/openwork --skill opencode-mirror

After installing, type/opencode-mirrorin Claude Code to confirm it loaded.

Details

From the project README

Quick Usage (Already Configured)

Update mirror
git -C vendor/opencode pull --ff-only

Common Gotchas

  • Keep the mirror gitignored; never commit vendor/opencode.
  • Use --ff-only to avoid merge commits in the mirror.

First-Time Setup (If Not Configured)

Clone mirror
git clone https://github.com/anomalyco/opencode vendor/opencode

Comments

Markdown supported