Agent Commons v0.1.0
Initial public release.
Agent Commons is a local-first, plaintext-only shared memory protocol for AI agents. Multiple agents (Claude Code, Cursor, WorkBuddy, CodeBuddy, OpenClaw, etc.) on the same machine share a central directory at ~/.agent-commons/ so they don't forget what each other learned.
What's in this release
- Protocol decoupling:
ONBOARDING.md(one-time joining flow) is separate fromskills/SKILL.md(recurring runtime capability). Agents read onboarding once; the runtime skill carries the day-to-day capabilities forward. - Discover-first install: agents must locate their own user-extensible / 'custom skills' directory before installing — not a built-in tier (where files would land but never trigger), and not another agent's directory.
- Closed-loop trigger test: install ≠ done. The runtime must actually invoke / list / describe the skill before the install is considered complete. Adaptive fallback ladder symlink → copy → readonly walks itself, only asking for help if all three tiers fail.
- Mirror-correct update strategy: Tier 2 (copy) agents must use
rsync --delete/Robocopy /MIR/ staged-tempdir-and-atomic-swap to handle adds, modifies, deletes, AND renames. Plaincp -Ris a protocol violation — it leaves ghost files. Post-update, the trigger self-test runs again. - Cross-platform installer:
install.sh(POSIX) +install.ps1(Windows PowerShell, with UTF-8 BOM + chcp 65001 + UTF-8 byte-array Chinese to defeat PS 5.1 mojibake).
Install
macOS / Linux / WSL / Git Bash:
curl -fsSL https://raw.githubusercontent.com/dqsjqian/agent-commons/main/install.sh | bashWindows (PowerShell):
iwr -useb https://raw.githubusercontent.com/dqsjqian/agent-commons/main/install.ps1 | iexThen tell any AI agent:
Read
~/.agent-commons/ONBOARDING.mdand join Agent Commons.
License: MIT.