Skip to content

feat: cross-harness collaboration protocol#114

Merged
ShaheerKhawaja merged 1 commit into
mainfrom
feat/v2.0-cross-harness
Apr 16, 2026
Merged

feat: cross-harness collaboration protocol#114
ShaheerKhawaja merged 1 commit into
mainfrom
feat/v2.0-cross-harness

Conversation

@ShaheerKhawaja

Copy link
Copy Markdown
Owner

Summary

File-based collaboration protocol for multi-session co-working (Claude+Claude, Claude+Codex, Codex+Codex).

Commands

  • init — Register session in shared status
  • send — Send typed message (task-assigned, task-complete, finding, question)
  • poll — Read messages for a specific session
  • status — Show active sessions + file ownership map
  • claim — Claim exclusive file access (prevents edit conflicts)
  • release — Release file ownership

Architecture

All communication via files in .productionos/collaboration/:

  • messages.jsonl — Append-only event log
  • status.json — Active session registry
  • ownership.json — File-level write locks
  • plan.md — Shared plan document

No shared process. Poll-based. Auditable. Implements the SRS at docs/srs/cross-harness-collaboration/.

Test plan

  • npx tsc --noEmit — 0 errors
  • bun run scripts/collaboration/protocol.ts init test — creates session
  • bun run scripts/collaboration/protocol.ts send/poll/claim/release — all work

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.
@ShaheerKhawaja
ShaheerKhawaja merged commit dc31ab1 into main Apr 16, 2026
4 checks passed
@ShaheerKhawaja
ShaheerKhawaja deleted the feat/v2.0-cross-harness branch April 16, 2026 18:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant