Discover MCPs & agents
Loading MCPs and agents…
Loading MCPs and agents…
Drop-in coordination system for codebases where Claude Code and Cursor both ship code. Trailer-signed commits, audit log, single-source rules, drift prevention.
Jump to setup instructionsFetched from the repository for this visit.
Drop-in coordination for codebases where Claude Code and Cursor both ship code.
Trailer-signed commits. Auto audit log. Single-source rules. Drift prevention.
Real story. PocketOS had Cursor's agent on their codebase. The agent found a Railway API token in an unrelated file, ran a GraphQL
volumeDelete, and wiped their production database AND backups in 9 seconds. Three months of customer bookings, gone.That's the worst case. The everyday case is worse-but-quieter: one AI commits to
main, the other AI starts work without knowing, files diverge, code styles drift, you can't tell who shipped what when you do a retro Friday afternoon.This template fixes that.
npx claude-cursor-coordinator init
One command, cross-platform. Copies all coordination files into your repo, installs Husky hooks, and runs bun gen:rules for you.
Manual install (fallback):
# Clone the template
git clone https://github.com/phileokairos-pixel/claude-cursor-coordinator.git
# Drop the files into your repo (adjust paths to taste)
# bash / macOS / Linux:
cp -r claude-cursor-coordinator/.{husky,coordination,cursor,claude,github,gitattributes,gitmessage} your-repo/
cp -r claude-cursor-coordinator/{scripts,docs,AGENTS.md,coordinator.config.json,LICENSE} your-repo/
# Windows PowerShell equivalent:
Copy-Item -Recurse claude-cursor-coordinator\.husky, claude-cursor-coordinator\.coordination, claude-cursor-coordinator\.cursor, claude-cursor-coordinator\.claude, claude-cursor-coordinator\.github your-repo\
Copy-Item claude-cursor-coordinator\.gitattributes, claude-cursor-coordinator\.gitmessage, claude-cursor-coordinator\coordinator.config.json your-repo\
Copy-Item -Recurse claude-cursor-coordinator\scripts, claude-cursor-coordinator\docs your-repo\
Copy-Item claude-cursor-coordinator\AGENTS.md, claude-cursor-coordinator\LICENSE your-repo\
cd your-repo
bun install
bun gen:rules
bun test
That's it. Every commit is now trailer-signed. Both AIs run bun status / read git log (and HANDOFF.md) before starting new work.
Full setup walkthrough: docs/CURSOR_USER_SETUP.md
✓ Every commit signed by tool — Co-authored-by: Cursor <cursoragent@cursor.com> or Co-authored-by: Claude <noreply@anthropic.com>. Husky rejects unsigned commits locally. GitHub Action rejects them server-side. No bypass.
✓ Per-tool activity on demand. bun status and bun whodid derive recent activity from git log — no tracked log file, no merge conflicts, no dirty tree.
✓ Single source of rules. Edit AGENTS.md, and bun gen:rules regenerates CLAUDE.md, .cursorrules, and .cursor/rules/*.mdc automatically. Drift becomes structurally impossible.
✓ Branch lane discipline. Cursor on main for small fixes. Claude on feature branches for multi-file work. Documented community pattern with ~40% time savings.
✓ Pre-push drift warning. git fetch runs automatically; warns if origin is ahead before you push.
✓ Optional gitleaks integration. Catches accidental secret leaks before they hit your remote.
✓ Morning dashboard. bun status shows branch, uncommitted state, recent commits per tool, open PRs in one screen.
✓ Per-tool audit. bun whodid --tool=cursor (or --tool=claude) shows past 7 days of work.
AGENTS.md ← canonical hand-edited rules (industry standard)
CLAUDE.md, .cursorrules, .cursor/rules/*.mdc ← auto-generated by `bun gen:rules`
coordinator.config.json ← single source: agent identities + scope globs
.coordination/
INDEX.md ← read-this-first index
HANDOFF.md ← sticky notes for in-flight work
(recent.jsonl is gitignored — activity comes from git log on demand)
scripts/
commit-msg-guard.mjs ← Husky commit-msg validator (with tests)
gen-rules.ts ← AGENTS.md → all generated outputs (with tests)
status.ts ← morning dashboard
whodid.ts ← past-7-day audit per tool
cli/
init.mjs ← npx init installer
.husky/
pre-commit, commit-msg, pre-push ← hooks (post-commit removed in v2)
.cursor/
hooks.json + hooks/sync-preflight.ps1 ← Cursor sessionStart auto-runs `bun sync`
mcp.json ← repo-level MCP config (yours to fill)
.claude/settings.json ← Claude Code SessionStart + per-repo attribution
.github/workflows/trailer-guard.yml ← server-side trailer enforcement (CI)
.gitattributes ← LF enforcement (Windows safety)
.gitmessage ← commit template with both trailer options
docs/
CANONICAL_EXAMPLES.md ← when-in-doubt-copy-this-file pointer (template)
CURSOR_USER_SETUP.md ← per-machine user setup walkthrough
You commit → Husky commit-msg hook validates trailer
│
├─ no trailer? → REJECTED with helpful error
└─ has trailer? → commit lands
You push → Husky pre-push hook runs `git fetch`
│
└─ origin ahead of you? → WARNS + blocks push
Push to main → GitHub Action `trailer-guard` re-validates every commit
│
├─ any commit missing trailer? → CI red, merge blocked
└─ all commits valid? → green, merge allowed
bun status / bun whodid → derive per-tool activity from git log on demand
Both AIs run bun status / read git log (and HANDOFF.md) before starting new work. They see what the other one shipped recently and avoid stomping.
Each contributor does this once:
git config commit.template .gitmessagescoop install gitleaks (or brew install gitleaks) for secret scanningFull walkthrough: docs/CURSOR_USER_SETUP.md
This template ships generic. Edit:
AGENTS.md — replace placeholder sections with your project's actual conventions. Use <!-- @scope: X --> markers to scope sections to specific languages (PHP, React, Python, Ruby, or any custom scope).coordinator.config.json — add agents (Codex, Gemini, Aider, etc.) and configure scope globs + priorities. The commit-msg hook, trailer-guard Action, .gitmessage, and gen-rules all read from this single file.docs/CANONICAL_EXAMPLES.md — replace placeholder example references with paths to YOUR canonical wizard / form / service / etc..cursor/mcp.json — add your repo-level MCP servers.Don't edit:
.husky/* hook files (they call the scripts)scripts/*.mjs and scripts/*.ts (the engine).github/workflows/trailer-guard.yml (server-side enforcement)CLAUDE.md, .cursorrules, .cursor/rules/*.mdc, .gitmessageThis is a new template. If you adopt it, send a PR adding your project here. (Or just open an issue with a link.)
MIT — use it, fork it, ship it. If this template saves your codebase from a PocketOS-style incident, I'd love to hear about it.
Built by Aaron Armond Zendejas — founder, builder.
Follow @aaron.armond for more builder ships.
GitHub checked 16h ago - refresh overdue. Recently viewed repositories target hourly refresh.
Find a documented setup for your client. No sign-in, installation, or tool execution.
If this MCP is also published on mcpchannel.ai, you can subscribe from Browse and use the gateway config there instead.