Skip to content

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.

docs: keep agent instructions short and move build-replacement steps to docs

leepokaia4cc488514e7
diff --git a/AGENTS.md b/AGENTS.md
index 50dfadbd..dfebddc0 100644
--- a/AGENTS.md
+++ b/AGENTS.md
@@ -23,10 +23,7 @@ Run from the repository root unless a command changes directories:
## Installing a new build: kill the old one first
-Whenever you build and install/run a new build, stop the old copies so nothing stale keeps running (old host = old protocol, old app = old UI):
-- **Mac app**: quit every running Codync (including copies from Xcode DerivedData) before opening the new one: `osascript -e 'tell application id "com.pokai.Codync" to quit'; pkill -x Codync`, then `open build/dd/Build/Products/Debug/Codync.app`.
-- **Host**: the launchd agent `com.pokai.codync.host` runs `build/dd/.../Codync.app/Contents/MacOS/codync-host`; after rebuilding, restart it with `launchctl kickstart -k gui/$(id -u)/com.pokai.codync.host`, and kill any other `codync-host` still running from a different path (`pgrep -fl codync-host`). Test hosts you start yourself must be stopped when done.
-- **iPhone**: after `xcrun devicectl device install app …`, relaunch with `xcrun devicectl device process launch --terminate-existing --device <id> com.pokai.Codync.ios` so the old process doesn't linger.
+Always stop the old Mac app, host and iPhone process before running a new build (old host = old protocol, old app = old UI); commands in [docs/guides/development.md](docs/guides/development.md#apple-apps).
## Versioning & releases
@@ -63,3 +60,9 @@ Use Swift Testing (`@Test`, `#expect`), Rust unit tests, and the relay’s Node
- English only; no `Co-Authored-By` or other AI attribution trailers (the commit-msg hook rejects them).
PRs should explain behavior changes, link relevant issues, list validation performed, and include screenshots for UI changes. Update affected documentation in the same change.
+
+## Keeping this file short
+
+- CLAUDE.md and AGENTS.md hold only rules an agent needs on every task. Reference material (file structure, naming tables, API details, audits, how-tos) goes in `docs/` as its own file, with a one-line pointer here.
+- Whenever you edit either file, check its length: past ~100 lines, or a section past a few lines of reference detail, refactor that detail into `docs/` and leave the pointer, without being asked.
+- Keep `docs/` current: update the doc in the same change that makes it stale.
diff --git a/CLAUDE.md b/CLAUDE.md
index cba35d61..eafc898b 100644
--- a/CLAUDE.md
+++ b/CLAUDE.md
@@ -50,10 +50,7 @@ Bot-based remote for coding agents: persistent named bots on your computer, mess
## Installing a new build: kill the old one first
-Whenever you build and install/run a new build, stop the old copies so nothing stale keeps running (old host = old protocol, old app = old UI):
-- **Mac app**: quit every running Codync (including copies from Xcode DerivedData) before opening the new one: `osascript -e 'tell application id "com.pokai.Codync" to quit'; pkill -x Codync`, then `open build/dd/Build/Products/Debug/Codync.app`.
-- **Host**: the launchd agent `com.pokai.codync.host` runs `build/dd/.../Codync.app/Contents/MacOS/codync-host`; after rebuilding, restart it with `launchctl kickstart -k gui/$(id -u)/com.pokai.codync.host`, and kill any other `codync-host` still running from a different path (`pgrep -fl codync-host`). Test hosts you start yourself must be stopped when done.
-- **iPhone**: after `xcrun devicectl device install app …`, relaunch with `xcrun devicectl device process launch --terminate-existing --device <id> com.pokai.Codync.ios` so the old process doesn't linger.
+Always stop the old Mac app, host and iPhone process before running a new build (old host = old protocol, old app = old UI); commands in [docs/guides/development.md](docs/guides/development.md#apple-apps).
## Project generation
@@ -97,6 +94,6 @@ Folder layout, file naming and shared terms: [docs/architecture/file-structure.m
## Keeping this file short
-- CLAUDE.md holds only rules an agent needs on every task. Reference material (file structure, naming tables, API details, audits, how-tos) goes in `docs/` as its own file, with a one-line pointer here.
-- When a section here grows past a few lines of reference detail, move it to `docs/` and leave the pointer.
+- CLAUDE.md and AGENTS.md hold only rules an agent needs on every task. Reference material (file structure, naming tables, API details, audits, how-tos) goes in `docs/` as its own file, with a one-line pointer here.
+- Whenever you edit either file, check its length: past ~100 lines, or a section past a few lines of reference detail, refactor that detail into `docs/` and leave the pointer, without being asked.
- Keep `docs/` current: update the doc in the same change that makes it stale.
diff --git a/docs/guides/development.md b/docs/guides/development.md
index 2f384498..f379bb53 100644
--- a/docs/guides/development.md
+++ b/docs/guides/development.md
@@ -39,8 +39,10 @@ also kills tools and MCP servers that remain in its group. Processes that detach
into their own sessions and unrelated hosts using other data directories are
outside this cleanup.
-For a manual restart of the installed launch agent, and to inspect other host
-processes for stale binaries:
+After rebuilding the host, restart the launch agent (it runs
+`build/dd/.../Codync.app/Contents/MacOS/codync-host`) and kill any `codync-host`
+still running from a different path. Test hosts you start yourself must be
+stopped when done:
```sh
launchctl kickstart -k gui/$(id -u)/com.pokai.codync.host