feat: cross-harness collaboration protocol#114
Merged
Conversation
File-based collaboration protocol enabling two sessions (Claude+Claude, Claude+Codex, Codex+Codex) to co-work on the same repo. Commands: init [name] — Register session send [to] [type] — Send message (task-assigned, task-complete, finding, etc.) poll [name] — Read messages for a session status — Show active sessions + file ownership claim [file] — Claim exclusive file access (prevents conflicts) release [file] — Release file ownership Communication is artifact-based: shared messages.jsonl, status.json, ownership.json, plan.md in .productionos/collaboration/. No shared process or socket — poll-based, file-based, auditable. Implements protocols from docs/srs/cross-harness-collaboration/. tsc --noEmit: 0 errors. All 6 commands tested end-to-end.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
File-based collaboration protocol for multi-session co-working (Claude+Claude, Claude+Codex, Codex+Codex).
Commands
init— Register session in shared statussend— Send typed message (task-assigned, task-complete, finding, question)poll— Read messages for a specific sessionstatus— Show active sessions + file ownership mapclaim— Claim exclusive file access (prevents edit conflicts)release— Release file ownershipArchitecture
All communication via files in
.productionos/collaboration/:messages.jsonl— Append-only event logstatus.json— Active session registryownership.json— File-level write locksplan.md— Shared plan documentNo shared process. Poll-based. Auditable. Implements the SRS at
docs/srs/cross-harness-collaboration/.Test plan
npx tsc --noEmit— 0 errorsbun run scripts/collaboration/protocol.ts init test— creates sessionbun run scripts/collaboration/protocol.ts send/poll/claim/release— all work