seamlock 0.0.0-stage → 0.3.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE-APACHE +202 -0
- package/LICENSE-MIT +21 -0
- package/README.md +425 -2
- package/bin/seamlock.js +47 -0
- package/package.json +40 -4
package/LICENSE-APACHE
ADDED
|
@@ -0,0 +1,202 @@
|
|
|
1
|
+
|
|
2
|
+
Apache License
|
|
3
|
+
Version 2.0, January 2004
|
|
4
|
+
http://www.apache.org/licenses/
|
|
5
|
+
|
|
6
|
+
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
|
7
|
+
|
|
8
|
+
1. Definitions.
|
|
9
|
+
|
|
10
|
+
"License" shall mean the terms and conditions for use, reproduction,
|
|
11
|
+
and distribution as defined by Sections 1 through 9 of this document.
|
|
12
|
+
|
|
13
|
+
"Licensor" shall mean the copyright owner or entity authorized by
|
|
14
|
+
the copyright owner that is granting the License.
|
|
15
|
+
|
|
16
|
+
"Legal Entity" shall mean the union of the acting entity and all
|
|
17
|
+
other entities that control, are controlled by, or are under common
|
|
18
|
+
control with that entity. For the purposes of this definition,
|
|
19
|
+
"control" means (i) the power, direct or indirect, to cause the
|
|
20
|
+
direction or management of such entity, whether by contract or
|
|
21
|
+
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
|
22
|
+
outstanding shares, or (iii) beneficial ownership of such entity.
|
|
23
|
+
|
|
24
|
+
"You" (or "Your") shall mean an individual or Legal Entity
|
|
25
|
+
exercising permissions granted by this License.
|
|
26
|
+
|
|
27
|
+
"Source" form shall mean the preferred form for making modifications,
|
|
28
|
+
including but not limited to software source code, documentation
|
|
29
|
+
source, and configuration files.
|
|
30
|
+
|
|
31
|
+
"Object" form shall mean any form resulting from mechanical
|
|
32
|
+
transformation or translation of a Source form, including but
|
|
33
|
+
not limited to compiled object code, generated documentation,
|
|
34
|
+
and conversions to other media types.
|
|
35
|
+
|
|
36
|
+
"Work" shall mean the work of authorship, whether in Source or
|
|
37
|
+
Object form, made available under the License, as indicated by a
|
|
38
|
+
copyright notice that is included in or attached to the work
|
|
39
|
+
(an example is provided in the Appendix below).
|
|
40
|
+
|
|
41
|
+
"Derivative Works" shall mean any work, whether in Source or Object
|
|
42
|
+
form, that is based on (or derived from) the Work and for which the
|
|
43
|
+
editorial revisions, annotations, elaborations, or other modifications
|
|
44
|
+
represent, as a whole, an original work of authorship. For the purposes
|
|
45
|
+
of this License, Derivative Works shall not include works that remain
|
|
46
|
+
separable from, or merely link (or bind by name) to the interfaces of,
|
|
47
|
+
the Work and Derivative Works thereof.
|
|
48
|
+
|
|
49
|
+
"Contribution" shall mean any work of authorship, including
|
|
50
|
+
the original version of the Work and any modifications or additions
|
|
51
|
+
to that Work or Derivative Works thereof, that is intentionally
|
|
52
|
+
submitted to Licensor for inclusion in the Work by the copyright owner
|
|
53
|
+
or by an individual or Legal Entity authorized to submit on behalf of
|
|
54
|
+
the copyright owner. For the purposes of this definition, "submitted"
|
|
55
|
+
means any form of electronic, verbal, or written communication sent
|
|
56
|
+
to the Licensor or its representatives, including but not limited to
|
|
57
|
+
communication on electronic mailing lists, source code control systems,
|
|
58
|
+
and issue tracking systems that are managed by, or on behalf of, the
|
|
59
|
+
Licensor for the purpose of discussing and improving the Work, but
|
|
60
|
+
excluding communication that is conspicuously marked or otherwise
|
|
61
|
+
designated in writing by the copyright owner as "Not a Contribution."
|
|
62
|
+
|
|
63
|
+
"Contributor" shall mean Licensor and any individual or Legal Entity
|
|
64
|
+
on behalf of whom a Contribution has been received by Licensor and
|
|
65
|
+
subsequently incorporated within the Work.
|
|
66
|
+
|
|
67
|
+
2. Grant of Copyright License. Subject to the terms and conditions of
|
|
68
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
69
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
70
|
+
copyright license to reproduce, prepare Derivative Works of,
|
|
71
|
+
publicly display, publicly perform, sublicense, and distribute the
|
|
72
|
+
Work and such Derivative Works in Source or Object form.
|
|
73
|
+
|
|
74
|
+
3. Grant of Patent License. Subject to the terms and conditions of
|
|
75
|
+
this License, each Contributor hereby grants to You a perpetual,
|
|
76
|
+
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
|
77
|
+
(except as stated in this section) patent license to make, have made,
|
|
78
|
+
use, offer to sell, sell, import, and otherwise transfer the Work,
|
|
79
|
+
where such license applies only to those patent claims licensable
|
|
80
|
+
by such Contributor that are necessarily infringed by their
|
|
81
|
+
Contribution(s) alone or by combination of their Contribution(s)
|
|
82
|
+
with the Work to which such Contribution(s) was submitted. If You
|
|
83
|
+
institute patent litigation against any entity (including a
|
|
84
|
+
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
|
85
|
+
or a Contribution incorporated within the Work constitutes direct
|
|
86
|
+
or contributory patent infringement, then any patent licenses
|
|
87
|
+
granted to You under this License for that Work shall terminate
|
|
88
|
+
as of the date such litigation is filed.
|
|
89
|
+
|
|
90
|
+
4. Redistribution. You may reproduce and distribute copies of the
|
|
91
|
+
Work or Derivative Works thereof in any medium, with or without
|
|
92
|
+
modifications, and in Source or Object form, provided that You
|
|
93
|
+
meet the following conditions:
|
|
94
|
+
|
|
95
|
+
(a) You must give any other recipients of the Work or
|
|
96
|
+
Derivative Works a copy of this License; and
|
|
97
|
+
|
|
98
|
+
(b) You must cause any modified files to carry prominent notices
|
|
99
|
+
stating that You changed the files; and
|
|
100
|
+
|
|
101
|
+
(c) You must retain, in the Source form of any Derivative Works
|
|
102
|
+
that You distribute, all copyright, patent, trademark, and
|
|
103
|
+
attribution notices from the Source form of the Work,
|
|
104
|
+
excluding those notices that do not pertain to any part of
|
|
105
|
+
the Derivative Works; and
|
|
106
|
+
|
|
107
|
+
(d) If the Work includes a "NOTICE" text file as part of its
|
|
108
|
+
distribution, then any Derivative Works that You distribute must
|
|
109
|
+
include a readable copy of the attribution notices contained
|
|
110
|
+
within such NOTICE file, excluding those notices that do not
|
|
111
|
+
pertain to any part of the Derivative Works, in at least one
|
|
112
|
+
of the following places: within a NOTICE text file distributed
|
|
113
|
+
as part of the Derivative Works; within the Source form or
|
|
114
|
+
documentation, if provided along with the Derivative Works; or,
|
|
115
|
+
within a display generated by the Derivative Works, if and
|
|
116
|
+
wherever such third-party notices normally appear. The contents
|
|
117
|
+
of the NOTICE file are for informational purposes only and
|
|
118
|
+
do not modify the License. You may add Your own attribution
|
|
119
|
+
notices within Derivative Works that You distribute, alongside
|
|
120
|
+
or as an addendum to the NOTICE text from the Work, provided
|
|
121
|
+
that such additional attribution notices cannot be construed
|
|
122
|
+
as modifying the License.
|
|
123
|
+
|
|
124
|
+
You may add Your own copyright statement to Your modifications and
|
|
125
|
+
may provide additional or different license terms and conditions
|
|
126
|
+
for use, reproduction, or distribution of Your modifications, or
|
|
127
|
+
for any such Derivative Works as a whole, provided Your use,
|
|
128
|
+
reproduction, and distribution of the Work otherwise complies with
|
|
129
|
+
the conditions stated in this License.
|
|
130
|
+
|
|
131
|
+
5. Submission of Contributions. Unless You explicitly state otherwise,
|
|
132
|
+
any Contribution intentionally submitted for inclusion in the Work
|
|
133
|
+
by You to the Licensor shall be under the terms and conditions of
|
|
134
|
+
this License, without any additional terms or conditions.
|
|
135
|
+
Notwithstanding the above, nothing herein shall supersede or modify
|
|
136
|
+
the terms of any separate license agreement you may have executed
|
|
137
|
+
with Licensor regarding such Contributions.
|
|
138
|
+
|
|
139
|
+
6. Trademarks. This License does not grant permission to use the trade
|
|
140
|
+
names, trademarks, service marks, or product names of the Licensor,
|
|
141
|
+
except as required for reasonable and customary use in describing the
|
|
142
|
+
origin of the Work and reproducing the content of the NOTICE file.
|
|
143
|
+
|
|
144
|
+
7. Disclaimer of Warranty. Unless required by applicable law or
|
|
145
|
+
agreed to in writing, Licensor provides the Work (and each
|
|
146
|
+
Contributor provides its Contributions) on an "AS IS" BASIS,
|
|
147
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
|
148
|
+
implied, including, without limitation, any warranties or conditions
|
|
149
|
+
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
|
150
|
+
PARTICULAR PURPOSE. You are solely responsible for determining the
|
|
151
|
+
appropriateness of using or redistributing the Work and assume any
|
|
152
|
+
risks associated with Your exercise of permissions under this License.
|
|
153
|
+
|
|
154
|
+
8. Limitation of Liability. In no event and under no legal theory,
|
|
155
|
+
whether in tort (including negligence), contract, or otherwise,
|
|
156
|
+
unless required by applicable law (such as deliberate and grossly
|
|
157
|
+
negligent acts) or agreed to in writing, shall any Contributor be
|
|
158
|
+
liable to You for damages, including any direct, indirect, special,
|
|
159
|
+
incidental, or consequential damages of any character arising as a
|
|
160
|
+
result of this License or out of the use or inability to use the
|
|
161
|
+
Work (including but not limited to damages for loss of goodwill,
|
|
162
|
+
work stoppage, computer failure or malfunction, or any and all
|
|
163
|
+
other commercial damages or losses), even if such Contributor
|
|
164
|
+
has been advised of the possibility of such damages.
|
|
165
|
+
|
|
166
|
+
9. Accepting Warranty or Additional Liability. While redistributing
|
|
167
|
+
the Work or Derivative Works thereof, You may choose to offer,
|
|
168
|
+
and charge a fee for, acceptance of support, warranty, indemnity,
|
|
169
|
+
or other liability obligations and/or rights consistent with this
|
|
170
|
+
License. However, in accepting such obligations, You may act only
|
|
171
|
+
on Your own behalf and on Your sole responsibility, not on behalf
|
|
172
|
+
of any other Contributor, and only if You agree to indemnify,
|
|
173
|
+
defend, and hold each Contributor harmless for any liability
|
|
174
|
+
incurred by, or claims asserted against, such Contributor by reason
|
|
175
|
+
of your accepting any such warranty or additional liability.
|
|
176
|
+
|
|
177
|
+
END OF TERMS AND CONDITIONS
|
|
178
|
+
|
|
179
|
+
APPENDIX: How to apply the Apache License to your work.
|
|
180
|
+
|
|
181
|
+
To apply the Apache License to your work, attach the following
|
|
182
|
+
boilerplate notice, with the fields enclosed by brackets "[]"
|
|
183
|
+
replaced with your own identifying information. (Don't include
|
|
184
|
+
the brackets!) The text should be enclosed in the appropriate
|
|
185
|
+
comment syntax for the file format. We also recommend that a
|
|
186
|
+
file or class name and description of purpose be included on the
|
|
187
|
+
same "printed page" as the copyright notice for easier
|
|
188
|
+
identification within third-party archives.
|
|
189
|
+
|
|
190
|
+
Copyright [yyyy] [name of copyright owner]
|
|
191
|
+
|
|
192
|
+
Licensed under the Apache License, Version 2.0 (the "License");
|
|
193
|
+
you may not use this file except in compliance with the License.
|
|
194
|
+
You may obtain a copy of the License at
|
|
195
|
+
|
|
196
|
+
http://www.apache.org/licenses/LICENSE-2.0
|
|
197
|
+
|
|
198
|
+
Unless required by applicable law or agreed to in writing, software
|
|
199
|
+
distributed under the License is distributed on an "AS IS" BASIS,
|
|
200
|
+
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
201
|
+
See the License for the specific language governing permissions and
|
|
202
|
+
limitations under the License.
|
package/LICENSE-MIT
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) 2026 Lucas-Michael Rus-Gheorghiu
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/README.md
CHANGED
|
@@ -1,3 +1,426 @@
|
|
|
1
|
-
|
|
1
|
+
<p align="center">
|
|
2
|
+
<img src="docs/assets/banner.png" alt="Seamlock — Contract-level coherence and smart merging for parallel AI coding agents" width="100%" />
|
|
3
|
+
</p>
|
|
2
4
|
|
|
3
|
-
|
|
5
|
+
<p align="center">
|
|
6
|
+
<a href="https://github.com/lucas-rus/seamlock/actions/workflows/ci.yml"><img src="https://github.com/lucas-rus/seamlock/actions/workflows/ci.yml/badge.svg" alt="CI" /></a>
|
|
7
|
+
<a href="https://github.com/lucas-rus/seamlock/releases/latest"><img src="https://img.shields.io/github/v/release/lucas-rus/seamlock?color=38bdf8&label=release" alt="Latest Release" /></a>
|
|
8
|
+
<a href="https://www.npmjs.com/package/seamlock"><img src="https://img.shields.io/npm/v/seamlock?color=38bdf8&label=npm" alt="npm" /></a>
|
|
9
|
+
<a href="https://pypi.org/project/seamlock/"><img src="https://img.shields.io/pypi/v/seamlock?color=34d399&label=PyPI" alt="PyPI" /></a>
|
|
10
|
+
<a href="https://crates.io/crates/seamlock-cli"><img src="https://img.shields.io/crates/v/seamlock-cli?color=f59e0b&label=crates.io" alt="crates.io" /></a>
|
|
11
|
+
<a href="#license"><img src="https://img.shields.io/badge/license-MIT%20%7C%20Apache--2.0-818cf8.svg" alt="License" /></a>
|
|
12
|
+
</p>
|
|
13
|
+
|
|
14
|
+
<p align="center">
|
|
15
|
+
<a href="#quick-start">Quick Start</a> ·
|
|
16
|
+
<a href="#why-seamlock">Why Seamlock</a> ·
|
|
17
|
+
<a href="#benchmarks">Benchmarks</a> ·
|
|
18
|
+
<a href="#mcp-integration">MCP Server</a> ·
|
|
19
|
+
<a href="#cli-reference">CLI</a> ·
|
|
20
|
+
<a href="#architecture">Architecture</a> ·
|
|
21
|
+
<a href="#comparison">Comparison</a> ·
|
|
22
|
+
<a href="CHANGELOG.md">Changelog</a>
|
|
23
|
+
</p>
|
|
24
|
+
|
|
25
|
+
---
|
|
26
|
+
|
|
27
|
+
**Seamlock** is a local Rust orchestration engine and [MCP](https://modelcontextprotocol.io) server for running multiple AI coding agents (**Claude Code, OpenAI Codex CLI, OpenCode, Cursor, Windsurf, Gemini CLI, VS Code / Copilot, Antigravity, or any MCP client**) **in parallel on the same repository** without merge conflicts or silent cross-file breakage.
|
|
28
|
+
|
|
29
|
+
Instead of locking whole files or relying on a slow post-hoc merge agent, Seamlock tracks **symbol contracts** (signatures, types, exports, schemas, HTTP routes) and **live edit regions** across git worktrees, sending surgical notices only to affected agents and verifying every merge before it lands.
|
|
30
|
+
|
|
31
|
+
---
|
|
32
|
+
|
|
33
|
+
## Quick Start
|
|
34
|
+
|
|
35
|
+
Install Seamlock and auto-connect it to your coding agents (macOS, Linux, and Windows):
|
|
36
|
+
|
|
37
|
+
```bash
|
|
38
|
+
# Homebrew (macOS & Linux)
|
|
39
|
+
brew install lucas-rus/tap/seamlock && seamlock setup
|
|
40
|
+
|
|
41
|
+
# npm / npx (macOS, Linux, Windows)
|
|
42
|
+
npm install -g seamlock && seamlock setup
|
|
43
|
+
|
|
44
|
+
# PyPI (uvx / pipx — macOS, Linux, Windows)
|
|
45
|
+
pipx install seamlock && seamlock setup
|
|
46
|
+
|
|
47
|
+
# crates.io (prebuilt via cargo-binstall, or cargo install seamlock-cli)
|
|
48
|
+
cargo binstall seamlock-cli && seamlock setup
|
|
49
|
+
|
|
50
|
+
# Shell installer (macOS / Linux) or PowerShell (Windows)
|
|
51
|
+
curl -fsSL https://raw.githubusercontent.com/lucas-rus/seamlock/main/install.sh | sh -s -- --setup
|
|
52
|
+
# irm https://raw.githubusercontent.com/lucas-rus/seamlock/main/install.ps1 | iex
|
|
53
|
+
```
|
|
54
|
+
|
|
55
|
+
*(From source with Rust >= 1.90: `cargo install seamlock-cli && seamlock setup`.)*
|
|
56
|
+
|
|
57
|
+
Run a parallel team on any repository:
|
|
58
|
+
|
|
59
|
+
```bash
|
|
60
|
+
# 1. Inspect existing worktrees or plan parallel ticket clusters
|
|
61
|
+
seamlock worktrees --base main
|
|
62
|
+
seamlock plan --rev HEAD
|
|
63
|
+
|
|
64
|
+
# 2. Launch coordinated parallel agents with live contract + region coherence
|
|
65
|
+
seamlock run --tasks tasks.json --mode enforce --regions --test-cmd "npm test"
|
|
66
|
+
|
|
67
|
+
# 3. Watch live coordination in another terminal
|
|
68
|
+
seamlock watch .seamlock/runs/
|
|
69
|
+
```
|
|
70
|
+
|
|
71
|
+
---
|
|
72
|
+
|
|
73
|
+
## Why Seamlock
|
|
74
|
+
|
|
75
|
+
Git worktrees isolate parallel agents from overwriting each other's files, but they do not prevent agents from **breaking each other's code**:
|
|
76
|
+
|
|
77
|
+
- 28% of AI-agent pull requests on GitHub hit merge conflicts ([AgenticFlict](https://arxiv.org/abs/2604.03551)).
|
|
78
|
+
- Two cooperating agents succeed ~30% less often than one agent doing both tasks ([CooperBench](https://arxiv.org/abs/2601.13295)).
|
|
79
|
+
- The hardest bugs are invisible to git: patches that ["pass alone but fail together"](https://arxiv.org/abs/2609.25396).
|
|
80
|
+
|
|
81
|
+
```python
|
|
82
|
+
# notify/email.py (agent A: rate-limit e-mails) # auth/reset.py (agent B: password reset)
|
|
83
|
+
-def send_email(to, body): +def request_reset(user):
|
|
84
|
+
+def send_email(to, body, *, user_id): + token = tokens.issue(user)
|
|
85
|
+
... + send_email(user.email, reset_msg(token))
|
|
86
|
+
```
|
|
87
|
+
|
|
88
|
+
Both branches touch different files, merge cleanly in git, and pass their own tests—then crash at runtime with `TypeError: send_email() missing 1 required keyword-only argument: 'user_id'`. Meanwhile, a third agent rewriting only the *body* of another function in `notify/email.py` would be blocked unnecessarily by a file lock.
|
|
89
|
+
|
|
90
|
+
### How It Works
|
|
91
|
+
|
|
92
|
+
Seamlock treats each agent's worktree like a CPU cache and each symbol like a cache line:
|
|
93
|
+
|
|
94
|
+
1. **Inferred footprints.** Hooks and worktree diffs map what each agent actually reads, writes, and calls onto a live symbol graph—no manual file claims required.
|
|
95
|
+
2. **Contract vs. body.** Every symbol is split into its public contract (signature, type, schema, route) and its body. Body edits never block anyone. Contract edits are classified as **compatible** (informational notice) or **breaking** (short lease + targeted notice).
|
|
96
|
+
3. **Live region coherence and finish gate.** Overlapping edits in the same file are resolved live—pure two-sided insertions via AST-verified union, genuine collisions via region ownership and hand-offs. An agent cannot finish while it depends on a stale contract or unresolved conflict.
|
|
97
|
+
4. **Speculative integration and verification.** Branches are merged in finish order, checked with Tier-2 type checkers (`tsc`, `pyright`, `cargo check`, `go vet`) and your test command, with $O(\log k)$ bisection on regressions and an auditable Merge-Readiness Pack (`mrp.md` / `mrp.json`).
|
|
98
|
+
|
|
99
|
+
### Capabilities
|
|
100
|
+
|
|
101
|
+
<table>
|
|
102
|
+
<tr>
|
|
103
|
+
<td width="50%">
|
|
104
|
+
<strong>Contract-Level Coherence</strong><br/>
|
|
105
|
+
Separates symbol <em>contracts</em> from <em>bodies</em>. Body edits never block; breaking contract edits deliver exact before/after signatures and affected call sites only to impacted agents.
|
|
106
|
+
</td>
|
|
107
|
+
<td width="50%">
|
|
108
|
+
<strong>Region Coherence & Verified Union</strong><br/>
|
|
109
|
+
Detects overlapping edits live, combines pure two-sided insertions with patience/diff3 + AST verification, and blocks duplicate symbol definitions before merge.
|
|
110
|
+
</td>
|
|
111
|
+
</tr>
|
|
112
|
+
<tr>
|
|
113
|
+
<td width="50%">
|
|
114
|
+
<strong>Polyglot & Full-Stack Contracts</strong><br/>
|
|
115
|
+
Python, TypeScript/JS (incl. <code>@/</code> aliases), Rust, Go, C/C++, SQL/Prisma/Protobuf/OpenAPI schemas, and cross-language HTTP routes (FastAPI/Flask/Express/Next.js ↔ <code>fetch</code>/<code>axios</code>).
|
|
116
|
+
</td>
|
|
117
|
+
<td width="50%">
|
|
118
|
+
<strong>12-Tool MCP Server & One-Line Setup</strong><br/>
|
|
119
|
+
Connects to OpenCode, Claude Code, Cursor, and Antigravity via <code>seamlock setup</code>. Exposes planning, symbol summaries, worktree inspection, smart merge, and team orchestration.
|
|
120
|
+
</td>
|
|
121
|
+
</tr>
|
|
122
|
+
<tr>
|
|
123
|
+
<td width="50%">
|
|
124
|
+
<strong>Merge-Readiness Packs & Tier-2 Checks</strong><br/>
|
|
125
|
+
Generates <code>mrp.md</code> / <code>mrp.json</code> reports, runs <code>tsc</code>/<code>pyright</code>/<code>cargo check</code>/<code>go vet</code> via <code>--type-check</code>, and bisects test regressions in <em>O</em>(log <em>k</em>).
|
|
126
|
+
</td>
|
|
127
|
+
<td width="50%">
|
|
128
|
+
<strong>Formally Verified Protocol</strong><br/>
|
|
129
|
+
Bounded exhaustive BFS model checking proves Lease Exclusivity, Finish-Gate Soundness, Duplicate-Symbol Safety, and Deadlock-Freedom across reachable agent interleavings.
|
|
130
|
+
</td>
|
|
131
|
+
</tr>
|
|
132
|
+
</table>
|
|
133
|
+
|
|
134
|
+
---
|
|
135
|
+
|
|
136
|
+
## Benchmarks
|
|
137
|
+
|
|
138
|
+
<p align="center">
|
|
139
|
+
<img src="docs/assets/benchmarks.png" alt="Seamlock v0.3.2 vs AI Merge Integrator across 4 multi-agent suites" width="100%" />
|
|
140
|
+
</p>
|
|
141
|
+
|
|
142
|
+
Evaluated in [`seamlock-bench`](https://github.com/lucas-rus/seamlock-bench). On 12-agent CommonMark (652 official spec examples), **uncoordinated parallel agents (`parallel-off`) collapse to 199/652** (~9 merge conflicts, ~302 integration-loss regressions), while a **single sequential agent takes 65.1 min** (`3.1×` slower than Seamlock, 651.2/652). Rather than comparing against sequential, the table below benchmarks Seamlock head-to-head against the strongest baseline: **`parallel-integrator`** (the same parallel agents in isolated worktrees, followed by an extra AI Integrator agent that resolves all merge conflicts and fixes regressions).
|
|
143
|
+
|
|
144
|
+
### Current Release (`v0.3.2`, DeepSeek V4.1 Flash + Pre-Registered Baselines)
|
|
145
|
+
|
|
146
|
+
All DeepSeek runs use `opencode-go/deepseek-v4.1-flash` with default Seamlock (`--mode enforce --regions --trim-outputs`) and list-price API cost ([protocol](https://github.com/lucas-rus/seamlock-bench/blob/main/PROTOCOL.md)). Across every suite, Seamlock achieved **0 merge conflicts** where the integrator had to resolve 1–10 conflicts per run:
|
|
147
|
+
|
|
148
|
+
| Benchmark Suite | Condition | Tests Passed | Conflicts | Wall Time | Total Tokens | List Cost |
|
|
149
|
+
|---|---|---:|---:|---:|---:|---:|
|
|
150
|
+
| **12-agent Python CommonMark** (652 official spec examples) | **Seamlock v0.3.2** | **652/652** | **0** | **20.0 min** | **34.0M** | **$0.99** |
|
|
151
|
+
| | `parallel-integrator` (n=4) | 652/652 | ~9 resolved | 31.7 min | 43.8M | $1.15 |
|
|
152
|
+
| | `sequential` (1 agent, `hy4` n=5) | 651.2/652 | 0 | 65.1 min *(3.1× slower)* | 34.0M | — |
|
|
153
|
+
| | `parallel-off` (uncoordinated, `hy4` n=5) | 199/652 *(broken)* | ~9 unresolved | 13.7 min | 48.0M | — |
|
|
154
|
+
| **6-agent Polyglot Full-Stack** (SQL + Python + TS `@/`, 30 live E2E) | **Seamlock v0.3.1** (n=2) | **30/30** | **0** | **8.8 min** | **7.7M** | $0.40 |
|
|
155
|
+
| | `parallel-integrator` (n=3) | 30/30 | 5–6 resolved | 13.8 min | 8.2M | **$0.33** |
|
|
156
|
+
| **5-agent Product Sprint** (Next.js + Postgres app) | **Seamlock** (n=2) | Matched | **0** | **16.7 min** | **31.5M** | **$0.69** |
|
|
157
|
+
| | `parallel-integrator` (n=3) | Matched | 1–3 resolved | 19.1 min | 33.6M | $0.76 |
|
|
158
|
+
| **6-agent TypeScript Dispatch App** (48 integration tests) | **Seamlock** (n=2) | **48/48** | **0** | **3.7 min** | **2.1M** | **$0.16** |
|
|
159
|
+
| | `parallel-integrator` (n=2) | 48/48 | 2–3 resolved | 6.8 min | 4.0M | $0.21 |
|
|
160
|
+
|
|
161
|
+
On 12-agent CommonMark, `v0.3.1` is **37% faster**, uses **22% fewer tokens**, and costs **14% less** than an AI merge integrator. On the 6-agent polyglot full-stack suite, `v0.3.1` cuts wall time by **34%** and total tokens by **31%** compared to `v0.3.0` (`8.8 min` vs `13.3 min`, `7.7M` vs `11.1M`), running faster and using fewer total tokens than the integrator.
|
|
162
|
+
|
|
163
|
+
### Release & Benchmark History
|
|
164
|
+
|
|
165
|
+
<details>
|
|
166
|
+
<summary><strong>Version-by-version progression (v0.1 → v0.3.1)</strong></summary>
|
|
167
|
+
|
|
168
|
+
Each milestone was validated empirically on [`seamlock-bench`](https://github.com/lucas-rus/seamlock-bench) before shipping as default:
|
|
169
|
+
|
|
170
|
+
| Release | Key Changes | CommonMark (12 agents) | Polyglot Full-Stack (6 agents) |
|
|
171
|
+
|---|---|---|---|
|
|
172
|
+
| **v0.1.x** | Initial contract coherence, peer merge, region coherence, 12-tool MCP server, 6 language front-ends + schemas + HTTP routes. | `652/652`, `0` conflicts, `20.8 min` (`hy4-flash-free`, n=5, pre-lean gate) | — |
|
|
173
|
+
| **v0.2.0 – v0.2.4** | Lean finish gate by default (`--no-lean` to opt out), `--trim-outputs` (8,000-char head/tail), finish-order integration, silent waits for OpenCode, base-failure filtering, process-group check timeouts. | `652/652`, `0` conflicts, `20.6 min`, `61.2M` tok, `$0.41` (`hy4`, n=3) · `20.6 min`, `34.6M` tok, `$1.00` (DeepSeek) | — |
|
|
174
|
+
| **v0.3.0** | Renamed from Concord to Seamlock; added public polyglot full-stack benchmark (`projects/fullstack`, SQL + Python + TS `@/`, 30 live E2E tests). | `652/652`, `0` conflicts, `22.3 min`, `39.8M` tok, `$1.09` (DeepSeek) | `30/30`, `0` conflicts, `13.3 min`, `11.1M` tok, `$0.44` (n=3; [report](https://github.com/lucas-rus/seamlock-bench/blob/main/results/ds-fullstack-030/report.md)) |
|
|
175
|
+
| **v0.3.1** *(current)* | Fixed OpenCode 2.x `shell`/`execute` hook mapping, blocked cross-worktree/log snooping, compact region-conflict notices (rules once in system note), fixed `silent_wait` livelock on rank-broken wait cycles. | `652/652`, `0` conflicts, **`20.0 min`**, **`34.0M` tok**, **`$0.99`** (DeepSeek) | `30/30`, `0` conflicts, **`8.8 min`**, **`7.7M` tok**, **`$0.40`** (n=2) |
|
|
176
|
+
|
|
177
|
+
</details>
|
|
178
|
+
|
|
179
|
+
<details>
|
|
180
|
+
<summary><strong>Pre-registered statistical studies (hy4-flash-free, n = 3 and n = 5)</strong></summary>
|
|
181
|
+
|
|
182
|
+
All pre-registered protocols, raw logs, bootstrap CIs, and Mann–Whitney U / Cliff's δ tests live in [`seamlock-bench`](https://github.com/lucas-rus/seamlock-bench).
|
|
183
|
+
|
|
184
|
+
**1. Lean Seamlock vs. AI Integrator (`opencode-go/hy4-flash-free`, n = 3 interleaved; [report](https://github.com/lucas-rus/seamlock-bench/blob/main/results/hy4-eff3/report.md)):**
|
|
185
|
+
|
|
186
|
+
| Condition | Spec examples passed | Merge conflicts | Wall-clock time | Coordination tokens | Total tokens | Cost per run |
|
|
187
|
+
|---|---:|---|---:|---:|---:|---:|
|
|
188
|
+
| `parallel-integrator` (12 agents + integrator) | 652 in every run | 8.7 ± 1.5 resolved | 35.5 ± 9.5 min | 27.6 ± 7.4M | 68.8 ± 14.6M | $0.48 ± 0.07 |
|
|
189
|
+
| **Seamlock (`--regions --trim-outputs`)** | **652 in every run** | **0** | **20.6 ± 6.3 min** | **17.5 ± 2.5M** | **61.2 ± 1.7M** | **$0.41 ± 0.01** |
|
|
190
|
+
|
|
191
|
+
Seamlock was faster, used fewer coordination tokens, and cost less in all nine pairings (Cliff's δ = −1.00, p = 0.10, the minimum possible with n = 3).
|
|
192
|
+
|
|
193
|
+
**2. Main baseline study vs. Sequential & Uncoordinated Parallel (`opencode-go/hy4-flash-free`, n = 5 interleaved, pre-lean gate; [report](https://github.com/lucas-rus/seamlock-bench/blob/main/results/hy4m/report/report.md)):**
|
|
194
|
+
|
|
195
|
+
| Condition | n | Spec examples (of 652) | Integration loss | Merge conflicts (of 12) | Wall-clock time |
|
|
196
|
+
|---|---:|---:|---:|---|---:|
|
|
197
|
+
| `sequential` (1 agent, ticket by ticket) | 5 | 651.2 ± 0.8 (650–652) | 0 | 0 | 65.1 ± 5.9 min (1.0×) |
|
|
198
|
+
| `parallel-off` (12 agents, uncoordinated) | 5 | 199.0 ± 30.1 (161–236) | 301.8 ± 45.8 | 9.0 ± 1.4 | 13.7 ± 1.9 min |
|
|
199
|
+
| `parallel-integrator` (12 agents + integrator) | 5 | 652 in every run | 0 | 9.4 ± 1.1 resolved | 34.2 ± 4.8 min (1.9×) |
|
|
200
|
+
| Seamlock, peer merge (v0.1 build) | 3 | 652 in every run | 0 | 0 | 27.1 ± 3.5 min (2.4×) |
|
|
201
|
+
| **Seamlock, region coherence (v0.1 pre-lean)** | **5** | **652 in every run** | **0** | **0** | **20.8 ± 1.9 min (3.1×)** |
|
|
202
|
+
|
|
203
|
+
Pre-registered tests (Mann–Whitney U, Holm-corrected): region coherence vs. `parallel-off` on examples passed (H1) and integration loss (H2), and vs. `sequential` on wall time (H3) all reached Cliff's δ = ±1.00, p = 0.03.
|
|
204
|
+
|
|
205
|
+
</details>
|
|
206
|
+
|
|
207
|
+
<details>
|
|
208
|
+
<summary><strong>Static evaluation: CooperBench 560 gold patch pairs (RQ1)</strong></summary>
|
|
209
|
+
|
|
210
|
+
On all **560** Python feature pairs of [CooperBench](https://github.com/cooperbench/CooperBench), Seamlock's textual merge results agree with CooperBench's own gold conflict report on **560/560** pairs:
|
|
211
|
+
|
|
212
|
+
- **24%** of pairs share files but touch disjoint symbols, so a file lock would serialize them needlessly.
|
|
213
|
+
- **12%** are contract-coupled, and only **1%** have call sites that violate the updated contract.
|
|
214
|
+
- Interference between *gold* human patches is rare (0 of 48 evaluable jinja pairs fail together); live coordination shows its impact on *agent* patches (see the live suites above).
|
|
215
|
+
|
|
216
|
+
Details: [eval/rq1/results.md](eval/rq1/results.md).
|
|
217
|
+
|
|
218
|
+
</details>
|
|
219
|
+
|
|
220
|
+
---
|
|
221
|
+
|
|
222
|
+
## MCP Integration
|
|
223
|
+
|
|
224
|
+
Seamlock runs locally next to your repository as a 12-tool [MCP](https://modelcontextprotocol.io) server.
|
|
225
|
+
|
|
226
|
+
### Connect Your Client
|
|
227
|
+
|
|
228
|
+
- **Automatic (auto-detects OpenCode, Claude Code, Codex CLI, Cursor, Windsurf, Gemini CLI, VS Code / Copilot, Antigravity):**
|
|
229
|
+
```bash
|
|
230
|
+
seamlock setup
|
|
231
|
+
```
|
|
232
|
+
- **Any other MCP client (Cline, Roo Code, Zed, Continue, etc.):**
|
|
233
|
+
Add a standard stdio MCP server running `seamlock mcp` (or `npx -y seamlock mcp`).
|
|
234
|
+
- **OpenAI Codex CLI (`~/.codex/config.toml`):**
|
|
235
|
+
```bash
|
|
236
|
+
seamlock setup --client codex
|
|
237
|
+
```
|
|
238
|
+
- **OpenCode (CLI):**
|
|
239
|
+
```bash
|
|
240
|
+
opencode mcp add --global seamlock -- seamlock mcp --agent-cli opencode
|
|
241
|
+
```
|
|
242
|
+
- **Claude Code (plugin with MCP server + `seamlock-team` skill):**
|
|
243
|
+
```text
|
|
244
|
+
/plugin marketplace add lucas-rus/seamlock
|
|
245
|
+
/plugin install seamlock@lucas-rus-seamlock
|
|
246
|
+
```
|
|
247
|
+
- **Antigravity (`~/.gemini/config/mcp_config.json`, then restart):**
|
|
248
|
+
```bash
|
|
249
|
+
seamlock setup --client antigravity
|
|
250
|
+
```
|
|
251
|
+
All planning, inspection, and merge tools run directly inside Antigravity. `seamlock_run` launches parallel workers via OpenCode or Claude Code (`--agent-cli opencode|claude`).
|
|
252
|
+
|
|
253
|
+
### MCP Tools (12)
|
|
254
|
+
|
|
255
|
+
| Category | Tool | Purpose |
|
|
256
|
+
|---|---|---|
|
|
257
|
+
| **Planning & Inspection** | `seamlock_plan` | Partition the repository symbol graph into shared contract hubs and producer-first ticket clusters |
|
|
258
|
+
| | `seamlock_symbols` | List symbol contracts and line spans without bodies (~10× fewer tokens than reading whole files) |
|
|
259
|
+
| | `seamlock_diff_contracts` | Contract-level diff between revisions or working tree, with impacted callers |
|
|
260
|
+
| | `seamlock_worktrees` | Zero-mutation live check across all active `git worktree` checkouts |
|
|
261
|
+
| | `seamlock_analyze` | Check concurrent branches for cross-file contract breaks, duplicate symbols, and overlaps |
|
|
262
|
+
| **Merging & Protocol** | `seamlock_smart_merge` | Producer-first merge with AST-verified insertion union, call conformance, `--type-check`, and $O(\log k)$ bisection |
|
|
263
|
+
| | `seamlock_negotiate` | Propose a signature adjustment to a symbol's live owner |
|
|
264
|
+
| | `seamlock_ack` | Acknowledge a peer's contract change |
|
|
265
|
+
| **Team Orchestration** | `seamlock_run` | Launch a coordinated parallel agent run (`tasks.json` or multi-wave `--milestones`) |
|
|
266
|
+
| | `seamlock_status` | Poll live agent progress, holds, and coordination events |
|
|
267
|
+
| | `seamlock_result` | Fetch final summary and SASE Merge-Readiness Pack (`mrp.md` / `mrp.json`) |
|
|
268
|
+
| | `seamlock_cancel` | Stop an active run and clean up worktrees |
|
|
269
|
+
|
|
270
|
+
---
|
|
271
|
+
|
|
272
|
+
## CLI Reference
|
|
273
|
+
|
|
274
|
+
Requires Rust >= 1.90 (if building from source) and git >= 2.38 (2.44+ recommended for `git merge-file --diff-algorithm`; Seamlock warns and falls back cleanly on older git).
|
|
275
|
+
|
|
276
|
+
```bash
|
|
277
|
+
seamlock setup # auto-connect OpenCode, Claude Code, Cursor, Antigravity
|
|
278
|
+
seamlock plan --rev HEAD # identify shared hubs & producer-first parallel clusters
|
|
279
|
+
seamlock symbols src/ # symbol contracts & spans (Py, TS/JS, Rust, Go, C/C++, Schemas)
|
|
280
|
+
seamlock diff old.py new.py # contract vs. body changes between two versions
|
|
281
|
+
seamlock worktrees --base main # inspect all active git worktrees (incl. uncommitted edits)
|
|
282
|
+
seamlock analyze --base main b1 b2 --json # check branches for silent contract breaks (for CI & scripts)
|
|
283
|
+
seamlock typecheck --repo . # auto-detect & run Tier-2 checker (tsc, pyright/ty, cargo, go vet)
|
|
284
|
+
seamlock merge --base main b1 b2 --type-check # contract-ordered smart merge + verified union + type check
|
|
285
|
+
seamlock mrp .seamlock/runs/<run-id> # render SASE Merge-Readiness Pack (markdown or --json)
|
|
286
|
+
seamlock run --tasks tasks.json --mode enforce --regions --test-cmd "npm test"
|
|
287
|
+
seamlock run --milestones waves.json --mode enforce --regions --test-cmd "npm test"
|
|
288
|
+
```
|
|
289
|
+
|
|
290
|
+
> [!NOTE]
|
|
291
|
+
> **Zero-config acceptance gating:** `tasks.json` only needs `[{"name": "...", "prompt": "..."}]`. When per-ticket `check` commands are omitted, Seamlock automatically uses `--test-cmd` for finish-gate verification, regression checks, and $O(\log k)$ post-merge failure bisection.
|
|
292
|
+
|
|
293
|
+
### Try the Built-In Demo
|
|
294
|
+
|
|
295
|
+
```bash
|
|
296
|
+
git clone https://github.com/lucas-rus/seamlock && cd seamlock
|
|
297
|
+
cargo build --release
|
|
298
|
+
|
|
299
|
+
examples/running-example/setup.sh /tmp/seamlock-demo
|
|
300
|
+
./target/release/seamlock analyze --repo /tmp/seamlock-demo --base main agent-a agent-b agent-c --notices
|
|
301
|
+
```
|
|
302
|
+
|
|
303
|
+
<details>
|
|
304
|
+
<summary><strong>View demo output (cross-file breaking parameter detection)</strong></summary>
|
|
305
|
+
|
|
306
|
+
```text
|
|
307
|
+
Findings
|
|
308
|
+
BREAKING agent-a -> agent-b: notify.email.send_email (no shared files: invisible to textual merge and file locks)
|
|
309
|
+
now: def send_email(to, body, *, user_id)
|
|
310
|
+
what: new required parameter `user_id`
|
|
311
|
+
auth/reset.py:11 request_reset: send_email(user.email, reset_msg(token))
|
|
312
|
+
FILE agent-a & agent-c: notify/email.py disjoint symbols (a file lock would serialise this needlessly)
|
|
313
|
+
|
|
314
|
+
Textual merge (git merge-tree)
|
|
315
|
+
agent-a & agent-b: clean
|
|
316
|
+
agent-a & agent-c: clean
|
|
317
|
+
agent-b & agent-c: clean
|
|
318
|
+
|
|
319
|
+
Protocol simulation (notices each agent would receive)
|
|
320
|
+
-> to agent-b
|
|
321
|
+
[seamlock] BREAKING contract change: notify.email.send_email v0 -> v1 (by agent-a)
|
|
322
|
+
before: def send_email(to, body)
|
|
323
|
+
after : def send_email(to, body, *, user_id)
|
|
324
|
+
what : new required parameter `user_id`
|
|
325
|
+
your code that depends on it:
|
|
326
|
+
auth/reset.py:11 request_reset: send_email(user.email, reset_msg(token))
|
|
327
|
+
Finish gates:
|
|
328
|
+
agent-a: open
|
|
329
|
+
agent-b: BLOCKED (1 unresolved)
|
|
330
|
+
agent-c: open
|
|
331
|
+
```
|
|
332
|
+
|
|
333
|
+
</details>
|
|
334
|
+
|
|
335
|
+
### Watch a Team Live
|
|
336
|
+
|
|
337
|
+
<p align="center">
|
|
338
|
+
<img src="docs/assets/seamlock-watch-demo.gif" alt="seamlock watch live terminal dashboard coordinating 12 parallel agents" width="100%" />
|
|
339
|
+
</p>
|
|
340
|
+
|
|
341
|
+
```bash
|
|
342
|
+
seamlock watch .seamlock/runs/ # follow the latest run in a live terminal dashboard
|
|
343
|
+
seamlock watch .seamlock/runs/ --web # open live coordination graph in the browser
|
|
344
|
+
seamlock watch .seamlock/runs/ --once # print one snapshot (useful for logs)
|
|
345
|
+
```
|
|
346
|
+
|
|
347
|
+
```text
|
|
348
|
+
seamlock 1795518603-enforce-463d82 1/12 finished 03:07 · running
|
|
349
|
+
|
|
350
|
+
agent state edits notices blocks hand-off combined merges
|
|
351
|
+
code-spans finished 4 0 0 0 0 0
|
|
352
|
+
emphasis working 8 0 0 0 0 0
|
|
353
|
+
images-autolinks working 2 0 0 0 1 0
|
|
354
|
+
lists working 5 0 0 0 1 0
|
|
355
|
+
...
|
|
356
|
+
|
|
357
|
+
coordination
|
|
358
|
+
02:26 region raw-html-breaks yields src/cmark/inlines.py to code-spans
|
|
359
|
+
02:36 combine lists + headings add at the same place in src/cmark/blocks.py
|
|
360
|
+
02:59 done code-spans finished
|
|
361
|
+
```
|
|
362
|
+
|
|
363
|
+
### GitHub Cross-PR CI Action
|
|
364
|
+
|
|
365
|
+
Drop [`action.yml`](action.yml) into any GitHub Actions workflow to cross-check concurrently open pull requests for silent contract breaks:
|
|
366
|
+
|
|
367
|
+
```yaml
|
|
368
|
+
- uses: lucas-rus/seamlock@main
|
|
369
|
+
with:
|
|
370
|
+
base: main
|
|
371
|
+
```
|
|
372
|
+
|
|
373
|
+
---
|
|
374
|
+
|
|
375
|
+
## Architecture
|
|
376
|
+
|
|
377
|
+
```mermaid
|
|
378
|
+
flowchart LR
|
|
379
|
+
subgraph Agents
|
|
380
|
+
A1["Agent 1 (worktree w1)"]
|
|
381
|
+
A2["Agent 2 (worktree w2)"]
|
|
382
|
+
An["Agent n (worktree wn)"]
|
|
383
|
+
end
|
|
384
|
+
subgraph Coherence layer
|
|
385
|
+
FT["Footprint tracker"]
|
|
386
|
+
SG["Symbol graph (contracts / bodies / uses)"]
|
|
387
|
+
CD["Coherence directory (leases, versions, notices)"]
|
|
388
|
+
end
|
|
389
|
+
SI["Speculative integrator (merge-tree, type-check, tests)"]
|
|
390
|
+
IQ["Integration queue"]
|
|
391
|
+
A1 & A2 & An -- "hook events, diffs" --> FT --> SG --> CD
|
|
392
|
+
CD -. "notices, finish gate" .-> A1 & A2 & An
|
|
393
|
+
FT --> SI --> CD
|
|
394
|
+
CD --> IQ --> main[("main")]
|
|
395
|
+
```
|
|
396
|
+
|
|
397
|
+
| Crate | Role | Coverage |
|
|
398
|
+
|---|---|---|
|
|
399
|
+
| [`seamlock-core`](crates/seamlock-core) | Symbols, contract/body change classification, coherence protocol (leases, duplicate-symbol guard, negotiation, finish gate), pairwise analysis, exhaustive BFS model checker | Complete |
|
|
400
|
+
| [`seamlock-lang`](crates/seamlock-lang) | Tree-sitter and schema front-ends: normalized contracts, body digests, imports, reference resolution, HTTP route linking, affected-test graph | Python, TS/JS, Rust, Go, C/C++, Schemas |
|
|
401
|
+
| [`seamlock-git`](crates/seamlock-git) | Git plumbing: tree reading, in-memory `merge-tree`, patience/diff3 verified insertion-union, worktree snapshots and listing | Complete |
|
|
402
|
+
| [`seamlock-cli`](crates/seamlock-cli) | `seamlock` binary: `setup`, `plan`, `symbols`, `diff`, `analyze`, `worktrees`, `typecheck`, `merge`, `mrp`, `run`, `watch`, `mcp` (12 MCP tools + authenticated TCP daemon) | Complete |
|
|
403
|
+
|
|
404
|
+
**Supported languages:** Python (`.py`, `.pyi`), TypeScript/JavaScript (`.ts`, `.tsx`, `.mts`, `.cts`, `.js`, `.jsx`, `.mjs`, `.cjs`, including `@/...` and `~/...` tsconfig root aliases), Rust (`.rs`), Go (`.go`), C/C++ (`.c`, `.h`, `.cc`, `.cpp`, `.cxx`, `.hh`, `.hpp`, `.hxx`), schema/API contracts (`.sql`, `.prisma`, `.proto`, OpenAPI `.json`/`.yaml`), and cross-language HTTP routes (FastAPI/Flask/Express/Next.js App Router ↔ `fetch`/`axios`). Other file types still participate in textual/structural merge checks and file-existence guards.
|
|
405
|
+
|
|
406
|
+
Docs: [Design](docs/design.md) · [Tech Stack](docs/tech-stack.md) · [Roadmap](docs/roadmap.md) · [Related Work](docs/research/related-work.md) · [Contributing](CONTRIBUTING.md) · [Security](SECURITY.md)
|
|
407
|
+
|
|
408
|
+
---
|
|
409
|
+
|
|
410
|
+
## Comparison
|
|
411
|
+
|
|
412
|
+
| Tool | Unit of coordination | Footprint | Cross-file contract dependencies | Proactive, targeted feedback |
|
|
413
|
+
|---|---|---|---|---|
|
|
414
|
+
| Claude Code agent teams | Tasks; files by convention | Declared by lead | No | Free-form messages |
|
|
415
|
+
| [Clash](https://github.com/clash-sh/clash) | File (textual merge) | Observed diffs | No | Pre-edit warning |
|
|
416
|
+
| [Grove](https://github.com/NathanDrake2406/grove) | File, hunk, symbol, import | Observed diffs | Imports/exports | Advisory score |
|
|
417
|
+
| [Weave](https://github.com/Ataraxy-Labs/weave) / [Aura](https://github.com/Naridon-Inc/aura) | AST entities | Declared MCP claims | No (same-file entity merge) | Entity claim conflict |
|
|
418
|
+
| [Claim Plane](https://github.com/SkeinRank/claim-plane) | Declared intents/regions | Declared by planner | Partially | Admission (96.7% serialized) |
|
|
419
|
+
| [Gas Town](https://github.com/gastownhall/gastown) Refinery | Merge queue | — | At merge time | No |
|
|
420
|
+
| **Seamlock** | **Symbols (contract vs. body) + regions** | **Inferred at runtime** | **Yes (live + post-merge + HTTP/schema)** | **Surgical notices + finish gate + MRP** |
|
|
421
|
+
|
|
422
|
+
---
|
|
423
|
+
|
|
424
|
+
## License
|
|
425
|
+
|
|
426
|
+
Licensed under either of [Apache License, Version 2.0](LICENSE-APACHE) or [MIT license](LICENSE-MIT) at your option.
|
package/bin/seamlock.js
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
"use strict";
|
|
3
|
+
|
|
4
|
+
const { spawnSync } = require("node:child_process");
|
|
5
|
+
const path = require("node:path");
|
|
6
|
+
|
|
7
|
+
const PLATFORMS = {
|
|
8
|
+
"darwin-arm64": { pkg: "seamlock-darwin-arm64", bin: "seamlock" },
|
|
9
|
+
"darwin-x64": { pkg: "seamlock-darwin-x64", bin: "seamlock" },
|
|
10
|
+
"linux-arm64": { pkg: "seamlock-linux-arm64", bin: "seamlock" },
|
|
11
|
+
"linux-x64": { pkg: "seamlock-linux-x64", bin: "seamlock" },
|
|
12
|
+
"win32-x64": { pkg: "seamlock-windows-x64", bin: "seamlock.exe" },
|
|
13
|
+
};
|
|
14
|
+
|
|
15
|
+
const key = `${process.platform}-${process.arch}`;
|
|
16
|
+
const entry = PLATFORMS[key];
|
|
17
|
+
|
|
18
|
+
if (!entry) {
|
|
19
|
+
console.error(
|
|
20
|
+
`seamlock: unsupported platform ${key}. Supported platforms: ${Object.keys(PLATFORMS).join(", ")}.\n` +
|
|
21
|
+
"Install from source with: cargo install seamlock-cli"
|
|
22
|
+
);
|
|
23
|
+
process.exit(1);
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
let binPath;
|
|
27
|
+
try {
|
|
28
|
+
const pkgDir = path.dirname(require.resolve(`${entry.pkg}/package.json`));
|
|
29
|
+
binPath = path.join(pkgDir, "bin", entry.bin);
|
|
30
|
+
} catch {
|
|
31
|
+
console.error(
|
|
32
|
+
`seamlock: platform package "${entry.pkg}" is not installed.\n` +
|
|
33
|
+
"Try reinstalling without --omit=optional, or install from crates.io:\n" +
|
|
34
|
+
" cargo binstall seamlock-cli"
|
|
35
|
+
);
|
|
36
|
+
process.exit(1);
|
|
37
|
+
}
|
|
38
|
+
|
|
39
|
+
const result = spawnSync(binPath, process.argv.slice(2), { stdio: "inherit" });
|
|
40
|
+
if (result.error) {
|
|
41
|
+
console.error(`seamlock: failed to execute ${binPath}: ${result.error.message}`);
|
|
42
|
+
process.exit(1);
|
|
43
|
+
}
|
|
44
|
+
if (result.signal) {
|
|
45
|
+
process.kill(process.pid, result.signal);
|
|
46
|
+
}
|
|
47
|
+
process.exit(result.status ?? 0);
|
package/package.json
CHANGED
|
@@ -1,6 +1,42 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "seamlock",
|
|
3
|
-
"
|
|
4
|
-
"
|
|
5
|
-
"
|
|
6
|
-
|
|
3
|
+
"description": "Contract-level coherence and smart merging for parallel AI coding agents",
|
|
4
|
+
"version": "0.3.4",
|
|
5
|
+
"license": "MIT OR Apache-2.0",
|
|
6
|
+
"homepage": "https://github.com/lucas-rus/seamlock",
|
|
7
|
+
"repository": {
|
|
8
|
+
"type": "git",
|
|
9
|
+
"url": "https://github.com/lucas-rus/seamlock.git"
|
|
10
|
+
},
|
|
11
|
+
"bugs": {
|
|
12
|
+
"url": "https://github.com/lucas-rus/seamlock/issues"
|
|
13
|
+
},
|
|
14
|
+
"keywords": [
|
|
15
|
+
"ai",
|
|
16
|
+
"agents",
|
|
17
|
+
"git",
|
|
18
|
+
"mcp",
|
|
19
|
+
"merge",
|
|
20
|
+
"parallel",
|
|
21
|
+
"coherence"
|
|
22
|
+
],
|
|
23
|
+
"bin": {
|
|
24
|
+
"seamlock": "bin/seamlock.js"
|
|
25
|
+
},
|
|
26
|
+
"files": [
|
|
27
|
+
"bin/seamlock.js",
|
|
28
|
+
"README.md",
|
|
29
|
+
"LICENSE-MIT",
|
|
30
|
+
"LICENSE-APACHE"
|
|
31
|
+
],
|
|
32
|
+
"engines": {
|
|
33
|
+
"node": ">=18"
|
|
34
|
+
},
|
|
35
|
+
"optionalDependencies": {
|
|
36
|
+
"seamlock-darwin-arm64": "0.3.4",
|
|
37
|
+
"seamlock-darwin-x64": "0.3.4",
|
|
38
|
+
"seamlock-linux-arm64": "0.3.4",
|
|
39
|
+
"seamlock-linux-x64": "0.3.4",
|
|
40
|
+
"seamlock-windows-x64": "0.3.4"
|
|
41
|
+
}
|
|
42
|
+
}
|