Open source Grok Bot alternative, Bring your own agent and subscription: message Claude Code, Codex, Gemini CLI, Cursor, Copilot and 40+ AI agents as bots on your own computer, from iPhone, Mac, Windows, Linux or terminal. Agent-agnostic and free. Also a Muse and Dots alternative. Built in Rust.
Rust acpagent-client-protocolai-agentsai-assistantclaudeclaude-codecodexcoding-agentscursorgeminigemini-cligrok-bot-alternativeiosiphonelinuxmacosmcpopen-sourcerustself-hosted
Drop everything left over from Codync 1.x
leepokai6d75d8634b0d
diff --git a/CLAUDE.md b/CLAUDE.mdindex bf6e251c..2fb6166a 100644--- a/CLAUDE.md+++ b/CLAUDE.md@@ -25,7 +25,11 @@ Bot-based remote for coding agents: persistent named bots on your computer, mess- Push: iOS registers its APNs token with `relay/` → gets an AES-GCM ticket → gives it to the host. Only two alert kinds: *needs you* and *done*, suppressed while the iOS app is connected.- Usage: local only — `claude -p /usage --no-session-persistence`, the Claude status line (`codync-host statusline`, wrapping any existing one), Claude ACP `usage_update` rate-limit meta, Codex rollout files. Never call provider APIs with agent credentials.- macOS app is thin: embeds `codync-host` in `Contents/MacOS` (Xcode post-build script runs cargo), installs it as a launchd agent via `codync-host install`; menu bar shows status/pairing/usage and opens the native chat window (NavigationSplitView over `CodyncUI`). Not sandboxed, not Mac App Store (the host must spawn CLIs).-- Do **not** reintroduce Claude Code hooks or CloudKit — both were removed in 2.0.++## Codync 1.x does not exist for us++- Ignore everything from Codync 1.x (the Claude Code hooks + CloudKit session monitor): no migration, no compatibility shims, no cleanup of its files or hooks, no keeping old workers or App Store copy alive for it. Don't mention 1.x in code, docs or release notes.+- Build only the current design; don't reintroduce hooks or CloudKit.## Project generation@@ -38,8 +42,7 @@ Bot-based remote for coding agents: persistent named bots on your computer, mess## Versioning-- **Major version** defines phone ↔ host compatibility: 2.x iOS works with 2.x host/macOS-- 2.x is NOT compatible with 1.x (1.x was the hooks + CloudKit monitor)+- **Major version** defines phone ↔ host compatibility: an iOS app works with hosts/Mac apps of the same major- Minor/patch bumps are always backward compatible within the same major; the iOS decoder is lenient (`Bot.init(from:)`) so small host additions don't break older apps## Targetsdiff --git a/Codync-macOS/HostController.swift b/Codync-macOS/HostController.swiftindex 8aafedf1..46a54d90 100644--- a/Codync-macOS/HostController.swift+++ b/Codync-macOS/HostController.swift@@ -72,7 +72,7 @@ final class HostController {connect()}- /// `codync-host install` also removes Codync 1.x Claude hooks.+ /// `codync-host install` also routes Claude Code's status line through the host.func install() {guard let bin = binaryURL else { return }state = .startingdiff --git a/README.md b/README.mdindex 7b1b6f92..6c4c57b0 100644--- a/README.md+++ b/README.md@@ -57,7 +57,7 @@ Install [Tailscale](https://tailscale.com) on the computer and the phone to reac| Command | ||---|---|-| `codync-host install` / `uninstall` | background service (launchd on macOS, systemd `--user` on Linux); also removes Codync 1.x Claude hooks |+| `codync-host install` / `uninstall` | background service (launchd on macOS, systemd `--user` on Linux) || `codync-host pair [--json]` | pairing QR code / link || `codync-host status` | installed? running? || `codync-host serve [--port 19222]` | run in the foreground |@@ -90,7 +90,7 @@ cd relay && npm test # relay tickets## Versioning-The major version is the phone ↔ host protocol: 2.x apps work with 2.x hosts. Codync 2 replaces the 1.x hook/CloudKit monitor entirely.+The major version is the phone ↔ host protocol: apps work with hosts of the same major version.## Licensediff --git a/host/src/main.rs b/host/src/main.rsindex a6ffc95e..bb8aa773 100644--- a/host/src/main.rs+++ b/host/src/main.rs@@ -161,13 +161,6 @@ async fn main() -> Result<()> {Sub::Install { port } => {open_store()?;if let Some(home) = dirs::home_dir() {- match service::remove_legacy_hooks(&home.join(".claude/settings.json")) {- Ok(0) => {}- Ok(n) => println!(- "Removed {n} Codync 1.x hook(s) from ~/.claude/settings.json (backup saved next to it)."- ),- Err(e) => eprintln!("Couldn't clean up Codync 1.x hooks: {e}"),- }match service::ensure_statusline(&home.join(".claude/settings.json")) {Ok(true) => println!("Claude Code's status line now also reports usage limits to Codync (your own status line still shows)."diff --git a/host/src/service.rs b/host/src/service.rsindex 7cf0c0c0..479f3f00 100644--- a/host/src/service.rs+++ b/host/src/service.rs@@ -1,6 +1,6 @@//! Platform glue: data dir, background service install (launchd / systemd),//! keeping the machine awake during turns, pairing addresses, and the Claude-//! Code settings we touch (1.x hook cleanup, status line).+//! Code status line we route through the host.//!//! Everything here is blocking (`std::fs`, `std::process`): async callers go//! through `spawn_blocking`.@@ -235,37 +235,6 @@ fn write_settings(settings: &Path, v: &Value) -> Result<()> {.with_context(|| format!("writing {}", settings.display()))}-/// Codync 1.x installed `~/.codync/notify.sh` as Claude Code hooks. 2.x drives-/// agents over ACP instead, so those hooks are dead weight; remove only them.-/// Returns how many hook commands were removed.-pub fn remove_legacy_hooks(settings: &Path) -> Result<usize> {- let Some(mut v) = read_settings(settings)? else { return Ok(0) };- let Some(root) = v.as_object_mut() else { return Ok(0) };- let mut removed = 0;- if let Some(hooks) = root.get_mut("hooks").and_then(Value::as_object_mut) {- for groups in hooks.values_mut() {- let Some(groups) = groups.as_array_mut() else { continue };- for g in groups.iter_mut() {- if let Some(list) = g.get_mut("hooks").and_then(Value::as_array_mut) {- let before = list.len();- list.retain(|h| !h["command"].as_str().is_some_and(|c| c.ends_with(".codync/notify.sh")));- removed += before - list.len();- }- }- groups.retain(|g| g["hooks"].as_array().is_none_or(|l| !l.is_empty()));- }- hooks.retain(|_, groups| groups.as_array().is_none_or(|g| !g.is_empty()));- if hooks.is_empty() {- root.remove("hooks");- }- }- if removed > 0 {- std::fs::copy(settings, settings.with_extension("json.codync-backup")).context("backing up Claude settings")?;- write_settings(settings, &v)?;- }- Ok(removed)-}-/// Routes Claude Code's status line through `codync-host statusline` so usage/// limits reach the host locally. An existing status line keeps working: it is/// wrapped (`codync-host statusline -- <original>`) and restored on uninstall.@@ -333,26 +302,6 @@ mod tests {);}- #[test]- fn removes_only_codync_hooks() {- let f = temp_settings(- r#"{"model":"x","hooks":{"Stop":[{"hooks":[{"type":"command","command":"/Users/a/.codync/notify.sh"},{"type":"command","command":"say hi"}]}],"Notification":[{"hooks":[{"type":"command","command":"/Users/a/.codync/notify.sh"}]}]}}"#,- );- assert_eq!(remove_legacy_hooks(&f).unwrap(), 2);- let v = read(&f);- assert_eq!(v["hooks"]["Stop"][0]["hooks"].as_array().unwrap().len(), 1);- assert!(v["hooks"].get("Notification").is_none());- assert_eq!(v["model"], "x");- assert!(f.with_extension("json.codync-backup").exists());- }-- #[test]- fn missing_or_non_object_settings_are_left_alone() {- let dir = std::env::temp_dir().join(format!("codync-none-{}", uuid::Uuid::new_v4()));- assert_eq!(remove_legacy_hooks(&dir.join("settings.json")).unwrap(), 0);- assert_eq!(remove_legacy_hooks(&temp_settings("[1, 2]")).unwrap(), 0);- }-#[test]fn statusline_wraps_and_restores() {let f = temp_settings(r#"{"statusLine":{"type":"command","command":"sh ~/mine.sh"}}"#);diff --git a/metadata/version/en-US.json b/metadata/version/en-US.jsonindex 5eaaada9..d28461c2 100644--- a/metadata/version/en-US.json+++ b/metadata/version/en-US.json@@ -3,5 +3,5 @@"keywords": "claude code,codex,cursor,coding agent,ai,bot,remote,developer,approval,opencode","promotionalText": "Delegate to Claude Code, Codex, Cursor and more from your iPhone. Each agent is a bot you message; approve actions and get notified when it's done.","supportUrl": "https://github.com/leepokai/Codync/issues",- "whatsNew": "Codync 2.0 is a new app: persistent bots for every coding agent on your computer, approvals from your phone, a native Mac window and a Linux app. It replaces the 1.x session monitor; update the Mac app to 2.0 too."+ "whatsNew": "Codync 2.0: persistent bots for every coding agent on your computer, approvals from your phone, a native Mac window and a Linux app."}diff --git a/metadata/version/zh-Hant.json b/metadata/version/zh-Hant.jsonindex 50172948..4c3629f9 100644--- a/metadata/version/zh-Hant.json+++ b/metadata/version/zh-Hant.json@@ -3,5 +3,5 @@"keywords": "claude code,codex,cursor,程式,ai,agent,bot,遠端,開發者,核准","promotionalText": "從 iPhone 指派工作給 Claude Code、Codex、Cursor 等程式 AI。每個 agent 都是可以傳訊息的 bot,隨時核准動作,完成時通知你。","supportUrl": "https://github.com/leepokai/Codync/issues",- "whatsNew": "Codync 2.0 是全新的 app:為電腦上的每個程式 agent 建立常駐 bot、從手機核准動作、原生 Mac 視窗與 Linux app。它取代了 1.x 的工作階段監控,Mac app 也請一併更新到 2.0。"+ "whatsNew": "Codync 2.0:為電腦上的每個程式 agent 建立常駐 bot、從手機核准動作、原生 Mac 視窗與 Linux app。"}diff --git a/relay/README.md b/relay/README.mdindex 6a42da6c..618f638a 100644--- a/relay/README.md+++ b/relay/README.md@@ -16,8 +16,7 @@ openssl rand -base64 32 | npx wrangler secret put TICKET_KEYnpm run deploy```-It deploys as `codync-relay` (the 1.x `codync-push` worker keeps serving old-installs). The iOS app points at `SharedStore.relayURL` in `CodyncKit`.+It deploys as `codync-relay`. The iOS app points at `SharedStore.relayURL` in `CodyncKit`.Rotating `TICKET_KEY` invalidates every ticket; phones re-register on launch.## Test