aisync
A local, verifiable hub that shares rules, coordinates file claims and journals activity across Claude Code, Codex, Cursor and other AI coding agents.
- Source repo
- MaxonT/aisync
- Stars
- ★ 49
- Last updated
- 2d ago
- FARS reviewed
- Nov 18, 2026
- License
- MIT
- Primary language
- Python
- FA score
- 70/100 · Some gaps
At a glance
- How it runs
- Works with
- Universal · cross-platformCodex · Claude Code
- Cost
- Free, no paid service needed
- Setup effort
- Low · running in minutes
- You'll need
- Typical use
- A developer running Claude Code and Codex in the same repo who needs the second agent to hear, mid-session, about a blocker the first one logged.
- Not a fit if
- Teams that need OS-enforced file locking or automatic edit interception
- Windows developers — documented support is macOS and Linux only
- Projects looking for an agent that writes code or orchestrates tasks itself
- Website
- maxont.github.io/aisync ↗ set on GitHub
- Maintenance
- Commits in the last 30 dayslast commit 2026-11-20
- Source review
- 70/100 · Some gaps
What does this agent do, and when should you use it?
aisync is a local hub (by default ~/.ai-sync, itself a git repository) where several AI coding agents can share context, coordinate concurrent work and leave an auditable record. It is written against the Python standard library only, needs Python 3.11+ and git, and is documented for macOS and Linux. It has four doors: native hooks for Claude Code, Codex and Cursor, an MCP server behind aisync mcp, a CLI, and shared instruction files. A sync cycle runs harvest, rules, distribute, render and flush — turning new commits and rules into journal events, 3-way-syncing the shared rules block into each tool's rule file, rendering the progress page and committing the hub. Coordination covers cooperative file claims (overlap returns exit code 3), blockers and incremental news; observability covers a SHA-256 hash-chained journal with aisync verify, plus status, report, tail and a static HTML board. It calls no model itself and is not a coding agent or task orchestrator; its deployment boundary is the developer's own machine.
aisync init creates the hub at ~/.ai-sync (or $AISYNC_HOME) with shared rules, the journal, config.toml and a local git repo. Each aisync sync / aisync watch cycle runs five isolated steps: harvest turns new commits in watched repos into journal events attributed by their Agent: trailer, rules pulls new entries from the repos listed in rule_sources, distribute 3-way-syncs the rules block into every configured [[target]] file (for example ~/.claude/CLAUDE.md and ~/.codex/AGENTS.md) with backups before overwriting, render writes the progress page, and flush commits the hub, optionally pushing remote. Inside a session an agent uses aisync claim -a codex -p api -f app/payments/ to declare ownership, aisync log to append dev_log, decision, blocked, unblocked, rule_change or note events, aisync news to read what other tools did since it last looked, and aisync release when finished. aisync install-hooks writes SessionStart, UserPromptSubmit and PostToolUse entries into ~/.claude/settings.json, ~/.codex/hooks.json and ~/.cursor/hooks.json; aisync hook <tool> reads the hook JSON and returns hookSpecificOutput.additionalContext only when another tool changed something. aisync mcp serves the tools rules, rule_add, log, claim, release, news, status and tidy over stdio. aisync verify recomputes the SHA-256 chain, while status, report, tail and board surface claims, blockers, silent tools and metrics.
- A developer running Claude Code and Codex in the same repo who needs the second agent to hear, mid-session, about a blocker the first one logged.
- Two agents reaching for the same file: the second
aisync claimreturns exit 3 instead of quietly editing over the first. - A team keeping one rules block and pushing it into CLAUDE.md, AGENTS.md and Cursor without overwriting edits made in any single copy.
- Reviewing what agents did last week:
aisync tailfor events,aisync reportfor commits missing anAgent:trailer,aisync verifyagainst the hash chain. - Publishing a static status page of claims, blockers and timeline with
aisync board, without standing up a server. - An MCP-only agent that cannot install hooks, pointed at
aisync mcpto read rules and record claims.
Key setup facts
Pulled from the install and usage notes below. The project README has the current values.
- Install / run
curl -fsSL https://maxont.github.io/aisync/install.sh | bashpipx install aisync-cliuv tool install aisync-clinpx @mingyang2026/aisync-cli --version
- Config files
~/.ai-sync/config.toml~/.claude/CLAUDE.md~/.ai-sync/STOP- Runtime
- Python 3.11+
- Install notes cover
- macOS · Linux · Docker
How do you install or deploy this agent?
Requirements: Python 3.11+ and git on macOS or Linux; aisync has zero third-party runtime dependencies.
The documented script installs through uv, pipx or pip and never edits your shell config:
curl -fsSL https://maxont.github.io/aisync/install.sh | bashPackages are also published; the command is always aisync:
pipx install aisync-cliuv tool install aisync-clinpx @mingyang2026/aisync-cli --versionbrew install maxont/tap/aisync
docker run --rm ghcr.io/maxont/aisync --versionThe MCP server needs the optional extra:
pip install 'aisync-cli[mcp]'After installing, aisync doctor checks python, git, the hub folder and the journal chain and exits 1 on any failure.
How do you use this agent?
Start with the throwaway hub — it runs on synthetic data in your temp folder and does not touch your own hub:
uvx --from aisync-cli aisync demoThen create the real hub and wire the hooks:
aisync initinstall-hooks shows every tool config change as a diff and asks before writing:
aisync install-hooksKeep the sync loop running (aisync sync runs a single cycle by hand):
aisync watch &Configuration lives in ~/.ai-sync/config.toml; set AISYNC_HOME to move the hub:
roster = ["claude-code", "codex", "cursor"]
scan_dirs = ["~/projects"]
rule_sources = []
remote = ""
progress_file = "progress.md"
rule_spec = true
[shelf]
Deploys = ["deploy", "terraform", "rollback"]
[[target]]
label = "claude-code"
path = "~/.claude/CLAUDE.md"
layer = "core"What an agent does during a session:
aisync claim -a codex -p api -f app/payments/ -m "SDK upgrade"
aisync log -a codex -p api -m "SDK 5.0, retries kept"
aisync rule add -a codex --when "changing an API" --do "add a contract test"
aisync news
aisync release -a codex -p apiInspect and verify:
aisync status
aisync verify
aisync boardNote: gate_hook, guard_hook and web_inbox_secs are off by default and must be enabled in config.toml; aisync watch has to be kept alive by a login item, systemd user unit or launchd agent, and creating ~/.ai-sync/STOP stops it cleanly.
Safety boundaries, hardening & integrations
Operational blast radius, source-verified safety controls, and first-run hardening steps before connecting this agent to real workspaces.
Declared capability surface (blast radius)
Can run terminal commands; pair with approval gates or container/OS sandboxing.
Modifies local files; work on a clean Git branch or dedicated worktree.
Makes outbound requests; verify telemetry settings and model data routing on private repos.
Inherits capabilities of connected MCP servers; audit third-party servers before enabling.
What are this agent's strengths and limitations?
- Agent-agnostic core: the same hub is reachable through native hooks (Claude Code, Codex, Cursor), an MCP server (
aisync mcp), a CLI, and shared instruction files. - Zero third-party runtime dependencies — standard library only — and one-command installs across PyPI, npm, Homebrew, GHCR and install.sh.
- Hash-chained journal: each event stores its predecessor's id and its own id is a SHA-256 of that link plus its body, so
aisync verifycatches edited events and removed or reordered events a later event points at. - 3-way rule sync with backups: when both sides changed, nothing is overwritten — it becomes a conflict handled by
aisync resolve. - Overlap detection is machine-readable (exit code 3), so an agent can reroute programmatically instead of a human spotting a collision in a log.
- File claims are cooperative, not OS-enforced locks: agents must call the claim protocol, and aisync neither intercepts edits nor guarantees every agent honors a claim.
aisync verifydoes not detect deleting the last journal lines (tracked as issue #23); the project recommends keeping the hub in git to catch that case.- macOS and Linux only, with Python 3.11+ and git required; keeping
aisync watchalive is left to a login item, systemd unit or launchd agent. gate_hook,guard_hookandweb_inbox_secsship off by default and need config.toml edits; the guard can deny edits, and undoing it means removing hook entries from settings.json by hand.- The layered-loading token saving (20,673 → 7,876) is a single measurement on the author's hub, not a benchmark — your numbers will differ.
How does this agent compare with similar options?
The README positions aisync against AGENTS.md. AGENTS.md is one plain-text instruction file read whole at session start; aisync keeps that shape (the same rules block is copied into each tool's own AGENTS.md / CLAUDE.md) and adds what a static file cannot say: who is editing which files right now (cooperative claims, overlap returns exit 3), what changed while the session is running (delivered through hooks and aisync news), and a hash-chained event journal that aisync verify can check. The author also states aisync is neither a coding agent nor a task orchestrator, but the shared context and coordination layer those agents use.
Key facts side by side with the most closely related agents.
| Agent | Source review | Form / cost | Stars | Updated | Language | Full support on |
|---|---|---|---|---|---|---|
| aisync This agent | 70 · Some gaps | CLIFree | ★ 49 | 2d ago | Python | Codex · Claude Code |
| Concord MCP | 75 · Good | — | ★ 1.5k | today | TypeScript | Codex · Claude Code |
| Emulo | 76 · Good | Agent plugin / skillFree + model costs | ★ 306 | 1mo ago | HTML | Codex · Claude Code |
| AWS Agent Toolkit | 61 · Some gaps | Agent plugin / skillFree + model costs | ★ 3.5k | today | Python | Codex · Claude Code |
How does FollowAgents rate this agent?
Why each dimension lost points
Least privilege: core is stdlib-only, MCP is an optional extra, and the release workflow grants contents:read at workflow level with per-job write scopes — good practice; however install-hooks rewrites external tool configs (~/.claude/settings.json), a non-trivial permission surface, so 2. User confirmation: install-hooks shows a diff then asks, wt land requires --yes, gate/guard/web-inbox default off — well evidenced, 2. Data-flow transparency: README explains the hub lives in a local git repo at ~/.ai-sync, remote empty means local-only, and hooks inject additionalContext — reasonably clear, 2. Sensitive data: a privacy_scan tool and CI privacy scan exist, but there is no stated redaction/encryption for journal entries that may contain paths or summaries, deducted to 1. Dependency security: zero runtime deps, MCP pinned with bounds, CI pins action SHAs, 2. External effects: side effects (tool config edits, git hooks, push) are mostly opt-in and reversible, 2. Rollback: conflicts are never overwritten, backups dir exists, lease release and hook-removal instructions given, 2. Source attribution: README credits upstream projects and states independence, 2.
Self-consistency: README, pyproject version (0.2.11) and the npm test's version check agree; command table matches CLI description, 2. Dependency availability: requires-python>=3.11, zero runtime deps, multiple package managers, CI covers 3.11/3.13 on macOS/Linux, 2. Failure messages: claim overlap returns exit 3, status/doctor use exit codes, hooks never fail, fail_threshold triggers ALERT.md, 2.
Audience and scenarios: explicitly targets developers running two or more coding agents and contrasts with AGENTS.md, 3. Capability boundaries: clearly states claims are cooperative not OS-enforced, hash chain does not prove actions occurred, and compatibility is not automatic integration — very clear, 3. Trigger precision: hooks inject only when others changed, shelf keyword triggers, debounce tunable, but keyword triggering depends on config, 2. Environment fit: macOS/Linux, multiple package managers, MCP/CLI/shared-file access, but POSIX-only with no Windows mention, 2.
Information architecture: README is well structured (audience, install, command table, config, how-it-works, credits), 3. Install notes: multiple install paths, uvx demo, install.sh with dry-run and git precheck, CI validates the script, 3. Naming stability: stable rule IDs R-### and command names, but the npm package name differs between README (@mingyang2026) and the release workflow (@maxont) — deducted to 2. Examples and FAQ: demo, command examples and how-it-works, but no dedicated FAQ, 2. Known limitations: cooperative claims, hash chain not covering last-line deletion, single-machine measurement not a benchmark — all stated, 3. License: MIT, LICENSE matches pyproject, 3. Versioning/changelog: version numbers and release workflow, but no CHANGELOG file, 2. Maintenance responsibility: publisher unverified; maintainer identity and update path rest on README self-description, 1.
Output usability: CLI output, status/board/report are human-readable and demo allows zero-risk trial, 2. Marginal value: addresses real multi-agent shared-rule and file-conflict pain, but claims are cooperative and value depends on adoption, 2. Cost-benefit: zero deps, one-command install, layered rules cut tokens, but needs a running watch and multi-target config, 2.
Claim traceability: most README claims map to CLI commands and config keys; token figures are labelled as a one-off single-machine measurement, 2. Cross-source corroboration: README, pyproject, CI and npm tests corroborate versions and install paths, but some claims (6,700+ events, token reduction) are self-reported only, 2. Fact/inference separation: README distinguishes measured values from inference and states non-affiliation, 2.
- Publisher identity is unverified; verify that the PyPI/npm/Homebrew packages actually correspond to this repository before installing.
- install-hooks rewrites external tool configs (~/.claude/settings.json, ~/.codex/AGENTS.md); review the diff before confirming.
- File claims are cooperative, not enforced locks; do not assume other agents will honor them.
- The hash-chain check cannot detect a deleted final journal line, so it is not a complete tamper proof.
- The npm package name differs between README (@mingyang2026) and the release workflow (@maxont); confirm the real package name when installing.
- The journal may record file paths and summaries with no stated redaction; review contents before sharing or pushing the hub.
FAQ
Does aisync call a model or need an API key?
Do file claims actually stop two agents from editing one file?
aisync claim on an overlapping path returns exit 3, but whether an agent claims first and respects the result is up to that agent. aisync does not intercept all edits.Which agents can use it?
aisync mcp. Any agent that can run shell commands can use the CLI. Agents limited to reading instruction files get standing rules only — no mid-session news and no claim enforcement.What does aisync verify actually prove?
Can it run on Windows?
Is aisync free?
Is aisync open source?
Is aisync safe to use?
Is aisync still maintained?
Who makes aisync?
What is aisync's official website?
Thanks — we use this to improve the page.
Subscribe to the FollowAgents RSS feed, or save this agent to your browser shortlist to compare on your next visit.