Show HN: Aisync, advisory file claims so two AI agents don't edit one repo githu...
Show HN @show
Show HN: Aisync, advisory file claims so two AI agents don't edit one repo github.com · 3 points · 0 comments · HN thread
TL;DR aisync is an open-source, standard-library-only Python CLI (Show HN, MIT licensed) that gives Claude Code, Codex and Cursor a shared local hub for rules, file claims and a hash-chained journal. Its advisory claims exit with code 3 on overlap so one agent stops before editing a file another has claimed, and hooks feed each running session what the other tools just did. The post had 3 points and no comments at the time of capture.
- All tools share one local hub at ~/.ai-sync (a git repo); an agent runs
aisync claimbefore editing, and an overlapping claim exits with code 3 and names the holder. - Every commit, decision, blocker and rule change is appended to one hash-chained journal that
aisync verifychecks for edited, lost or reordered entries. - Hooks for Claude Code, Codex and Cursor inject what other tools changed into a running session, and stay silent when nothing changed.
- Shared rules are kept in one block synced 3-way into each tool's rule file; conflicts are flagged for manual resolution rather than overwritten.
- Rules use a When/Do/Not shape with stable IDs, and a 'core' layer plus keyword-triggered topics cut always-loaded rules from 20,673 to 7,876 tokens on the author's hub.
- The author reports 6,700+ journal events from 7 AI tools over 4 weeks of dogfooding; requires Python 3.11+ and git, on macOS or Linux.
Discussion No comments had been posted when this digest was made, so there is no thread to summarize. The post has 3 points and has not drawn attention yet.
#aiAgents #developerTools #coordination #claudeCode #python #showHN