All workAndrew Cates.

Project 64 of 84

plan-sync

CLI that durably syncs human-authored AI-agent planning artifacts in .omc/ (plans, drafts, research, handoffs) to a git remote without those files ever appearing in git status, diff, log, or the host's branch list.

Status
Shipped
Area
Developer Tooling & CLIs
Last activity
2026
Live

No public deployment.

Stack
  • TypeScript
  • Vitest
  • ESLint
  • Go
  • git plumbing
  • GitHub Actions
  • Bun
  • Beads issue tracking

Highlights

  1. Added 3-way merge to plan-sync's shadow-track pull in both TypeScript and Go: each file is compared against the last-synced ref and passed to git merge-file. Unpushed local edits are never overwritten, clean merges apply silently, and overlapping edits get standard conflict markers.
  2. Added a non-destructive pull --dry-run that reports per-file actions (would-write, would-merge, would-conflict with hunk counts, would-delete). Fixed a bug where status moved the local shadow ref and corrupted the merge base for the next pull.
  3. Diagnosed a live sync incident across 79 repos on two machines: repos sharing a git root commit collided on one shadow repo and ref, and repeated re-merges nested conflict markers until one plan file reached about 10MB. Shipped root-set-hashed project ids with automatic legacy-ref migration, a push guard that refuses conflict-marked files, and a checkout-ownership check that fails loudly instead of cross-pushing.
  4. Cut secret-scan false positives by requiring a base64 key body before flagging a PEM block. Documentation that merely mentioned '-----BEGIN' no longer blocked sync of planning files.
  5. Brought the repo to org standards through two merged PRs: ESLint with typescript-eslint, a PR-gated GitHub Actions CI (lint, build, test), and an interim Bun --compile binary workflow deliberately scoped to two native targets because no release tags exist yet. Documented the scoping in an ADR.
  6. Turned 8 planning documents (Go-port Phases 2-3, hardening gaps, concurrency/locking, research follow-ups) into 37 tracked beads issues across 5 epics, so the remaining roadmap is an explicit, prioritized queue.
  7. Added a one-command install script that builds and globally links both the TypeScript CLI and the dependency-free Go binary, so all machines in the workflow stay on the same version.