The K9 Coordination Protocol defines a standard way to express project invariants, architectural decisions, and coordination state in K9 Kennel-level files, then generate native instruction files for every major AI coding tool.
When multiple AI agents (Claude, Copilot, Cursor, Gemini, Codex, etc.) work on the same codebase — sequentially or concurrently — they lack shared context about:
-
What is intentional vs accidental
-
What architectural decisions are deliberate
-
What another agent is currently working on
-
What should never be created, deleted, or reorganised
This leads to well-meaning destruction: agents "fixing" features, creating parallel systems, or deleting deliberate architecture because they lack context.
A single coordination.k9 file per project, written in K9 Kennel format (pure data,
no execution), which:
-
Declares invariants — rules that must never be violated
-
Protects patterns — files and directories that are deliberate
-
Records architecture — decisions that look odd but are intentional
-
Prevents creation — things that must not be introduced
-
Coordinates work — (Phase 2) who is working on what
A generator tool reads this K9 file and emits native instruction files for every supported AI tool.
| AI Tool | Output File | Location |
|---|---|---|
Claude Code |
|
|
GitHub Copilot |
|
|
OpenAI Codex |
|
root |
Cursor |
|
root |
Windsurf |
|
root |
Gemini CLI |
|
root |
Cline |
|
root |
JetBrains Junie |
|
|
Amazon Q |
|
|
# Generate all AI config files from a coordination.k9
deno run --allow-read --allow-write \
standards/k9-coordination-protocol/generator/generate.js \
./coordination.k9
# Generate for specific targets only
deno run --allow-read --allow-write \
standards/k9-coordination-protocol/generator/generate.js \
./coordination.k9 --targets claude,cursor,copilotSingle K9 file declares what is and isn’t negotiable. Every AI reads the same ground truth. Prevents accidental destruction.
K9 file tracks which agents are working on which areas. A new agent can read the coordination state and avoid stepping on active work.