# bidirectional-sync

bidirectional-sync — a slash command that pairs GitHub issues with Linear tasks and copies edits both ways, settling the ones that landed on both sides.

- command · `type=command` · Claude Code, Codex, GitHub Copilot, Gemini CLI · ★ 1357 repo stars
- Author: qdhenry
- License: not stated · policy=link-only · description only; the file stays with the author
- Source: https://github.com/qdhenry/Claude-Command-Suite/tree/HEAD/.claude/commands/sync/bidirectional-sync.md
- Updated: 2026-03-01
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/commands/qdhenry-bidirectional-sync

## What it does

Point this command at a repo and a Linear team, and Claude starts matching GitHub issues to Linear tasks in both directions. It needs the GitHub CLI and Linear MCP already set up, otherwise there is nothing to talk to. Each pair gets a record with both ids, the last edit time on each side and a hash, so the next run knows what moved.

Edits to the same item are caught by comparing timestamps. The default takes the newer one; `GITHUB_WINS`, `LINEAR_WINS`, `MANUAL_MERGE` and `FIELD_LEVEL_MERGE` are the alternatives. Under field-level merge, priority follows Linear, labels are unioned, comments are appended. A `[sync-bot]` marker plus a 30-second pause after each run keeps the two sides from echoing updates back and forth.

Per-label rules live in `.github/linear-sync.yml` — bug reports can be pushed to priority 1, drafts skipped. Run with `--dry-run` first to see the change list before anything is written.

## Install

### Claude Code (native platform)

**Manually: put the files in place**
- File: `.claude/commands/bidirectional-sync.md` — Call it with /bidirectional-sync. For all projects use ~/.claude/commands/

### Codex

**Manually: put the files in place**
- File: `~/.codex/prompts/bidirectional-sync.md` — Call it with /prompts:bidirectional-sync. Codex marks this format deprecated in favour of skills

### GitHub Copilot

**Manually: put the files in place**
- File: `.github/prompts/bidirectional-sync.prompt.md`

### Gemini CLI

**Manually: put the files in place**
- File: `.gemini/commands/bidirectional-sync.toml` — Gemini stores commands as TOML: the prompt text goes into the prompt field

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/qdhenry/Claude-Command-Suite/tree/HEAD/.claude/commands/sync/bidirectional-sync.md

## When to use it
- match GitHub issues to Linear tasks and spot the gaps
- settle an item that was edited on both sides
- push bug reports to priority 1 with a label rule
- preview a sync with `--dry-run` before writing anything
- stop sync runs from bouncing updates back and forth

## Example prompts
- \`/bidirectional-sync` run a full sync between GitHub Issues and Linear.
- \`/bidirectional-sync` settle conflicts with the LINEAR_WINS strategy.
- \`/bidirectional-sync` do a dry run and show me the change list.

## Similar
- [gh-issue-sync](https://affpapa.org/en/nevibecode/skills/gh-issue-sync.md) — skill · 28500 installs
- [linear-task-to-issue](https://affpapa.org/en/nevibecode/commands/linear-task-to-issue.md) — command · 129 installs
- [sync-issues-to-linear](https://affpapa.org/en/nevibecode/commands/sync-issues-to-linear.md) — command · 128 installs
- [sync-automation-setup](https://affpapa.org/en/nevibecode/commands/buildwithclaude-community-sync-automation-setup.md) — command · ★ 3785 repo stars
- [sync](https://affpapa.org/en/nevibecode/skills/iurykrieger-sync.md) — skill · ★ 111 repo stars
- [issue-triage](https://affpapa.org/en/nevibecode/commands/buildwithclaude-community-issue-triage.md) — command · ★ 3785 repo stars

## Other versions with the same name
- [bidirectional-sync · davila7](https://affpapa.org/en/nevibecode/commands/bidirectional-sync.md) — 133 installs

From the same set: [qdhenry/claude-command-suite](https://affpapa.org/en/nevibecode/by/qdhenry/claude-command-suite.md) — 112 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
