kith-coord 0.1.2 → 0.1.3

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.
@@ -64,12 +64,12 @@ Uninstall restores the exact original bytes/permissions or deletes files created
64
64
 
65
65
  ## Registry installation
66
66
 
67
- The package is `kith-coord`, and its binary remains `kith`. Install it persistently (`npm install --global kith-coord@0.1.2`) before `kith init`, because generated configurations launch `kith` on PATH. Invoking init through npx alone does not create that persistent executable.
67
+ The package is `kith-coord`, and its binary remains `kith`. Install it persistently (`npm install --global kith-coord@0.1.3`) before `kith init`, because generated configurations launch `kith` on PATH. Invoking init through npx alone does not create that persistent executable.
68
68
 
69
69
  An MCP client can instead use a pinned registry launcher without a global install:
70
70
 
71
71
  ```json
72
- {"mcpServers":{"kith":{"command":"npx","args":["--yes","--package","kith-coord@0.1.2","kith","mcp","--repo","/absolute/checkout"]}}}
72
+ {"mcpServers":{"kith":{"command":"npx","args":["--yes","--package","kith-coord@0.1.3","kith","mcp","--repo","/absolute/checkout"]}}}
73
73
  ```
74
74
 
75
75
  Use a version you have verified; the unrelated npm package named `kith` is not Kith's distribution. Hook commands still need their configured executable to remain available. The clean-package smoke check exercises the installed binary, library, supervised worker and actual MCP discovery/status in a separate consumer.
@@ -78,3 +78,14 @@ Use a version you have verified; the unrelated npm package named `kith` is not K
78
78
  ## Native Windows setup
79
79
 
80
80
  Version 0.1.1 generates MCP configuration using the current absolute Node executable and built CLI path, avoiding `.cmd` launcher/shell quoting. Use `kith init --mcp-only` and review the generated paths; rerun setup if the Node/Kith installation moves. Native Windows setup refuses shell hooks and shims before configuration writes. Supervised mutex commands are also refused. Use WSL for those full workflows. The `npx` example above is a POSIX launcher; do not assume a native Windows client can spawn `npx.cmd` directly. See [platform proof and limits](client-validation.md#native-windows).
81
+
82
+
83
+ ## Configure detected local clients
84
+
85
+ `kith setup --dry-run` previews configuration for detected existing clients; omit `--dry-run` to apply it. It works from HOME without creating a project database there. Global Claude Desktop, Claude Code, Codex and Antigravity entries use this installation's Node and CLI paths and can select a different Git repository on each MCP call. No disk-wide scan or shared current-project switch is involved. Clients started inside a Git checkout use that checkout by default. Desktop clients started at `/` or HOME connect without opening a coordinator; their agent supplies an absolute `repository` path for the task.
86
+
87
+ Run `kith setup /absolute/checkout` inside a project to configure its Cursor entry as well. Project entries and explicit `mcp --repo /absolute/checkout` remain pinned to that checkout. Existing hooks and approval settings are untouched. Custom Kith transports or wrappers that cannot be safely recognized are preserved and reported for manual review, with a nonzero exit. Detection/configuration is not proof that a particular GUI client connected; restart or reconnect that client after setup and check its server status. VS Code is not an automatic setup adapter.
88
+
89
+ Project configuration uses the existing checkout setup ledger. Global client files use a private `~/.coord/setup/` ledger: `kith uninstall --repo "$HOME" --dry-run` previews restoring those unchanged writes. As with project uninstall, edited files and backups are retained. Configuration already overwritten by older untracked setup cannot be reconstructed; recover an earlier copy manually. All selected configuration is parsed and checked before writes, and backups precede each write. A partial setup can still require manual review; rerunning does not discard recovery material.
90
+
91
+ Generated launchers use absolute paths from the current installation. Rerun setup after moving Node or Kith. MCP connections retain capabilities as usual; setup neither creates a session nor changes ownership rules.
@@ -1,5 +1,5 @@
1
1
  {
2
- "protocolVersion": "1.1.0",
2
+ "protocolVersion": "1.2.0",
3
3
  "tools": [
4
4
  {
5
5
  "name": "kith_start_session",
@@ -15,6 +15,10 @@
15
15
  },
16
16
  "leaseDurationMs": {
17
17
  "type": "number"
18
+ },
19
+ "repository": {
20
+ "type": "string",
21
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
18
22
  }
19
23
  },
20
24
  "required": [
@@ -35,6 +39,10 @@
35
39
  },
36
40
  "sessionToken": {
37
41
  "type": "string"
42
+ },
43
+ "repository": {
44
+ "type": "string",
45
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
38
46
  }
39
47
  },
40
48
  "required": [
@@ -79,6 +87,10 @@
79
87
  "isolateWorktree": {
80
88
  "type": "boolean",
81
89
  "description": "Recommended: true, giving each parallel agent a separate Git worktree"
90
+ },
91
+ "repository": {
92
+ "type": "string",
93
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
82
94
  }
83
95
  },
84
96
  "required": [
@@ -105,6 +117,10 @@
105
117
  },
106
118
  "client": {
107
119
  "type": "string"
120
+ },
121
+ "repository": {
122
+ "type": "string",
123
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
108
124
  }
109
125
  },
110
126
  "required": [
@@ -143,6 +159,10 @@
143
159
  "items": {
144
160
  "type": "string"
145
161
  }
162
+ },
163
+ "repository": {
164
+ "type": "string",
165
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
146
166
  }
147
167
  },
148
168
  "required": [
@@ -179,6 +199,10 @@
179
199
  },
180
200
  "reason": {
181
201
  "type": "string"
202
+ },
203
+ "repository": {
204
+ "type": "string",
205
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
182
206
  }
183
207
  },
184
208
  "required": [
@@ -206,6 +230,10 @@
206
230
  },
207
231
  "content": {
208
232
  "type": "string"
233
+ },
234
+ "repository": {
235
+ "type": "string",
236
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
209
237
  }
210
238
  },
211
239
  "required": [
@@ -251,6 +279,10 @@
251
279
  },
252
280
  "docComment": {
253
281
  "type": "string"
282
+ },
283
+ "repository": {
284
+ "type": "string",
285
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
254
286
  }
255
287
  },
256
288
  "required": [
@@ -281,6 +313,10 @@
281
313
  },
282
314
  "basePort": {
283
315
  "type": "number"
316
+ },
317
+ "repository": {
318
+ "type": "string",
319
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
284
320
  }
285
321
  },
286
322
  "required": [
@@ -339,6 +375,10 @@
339
375
  "type": "integer",
340
376
  "minimum": 1,
341
377
  "maximum": 1048576
378
+ },
379
+ "repository": {
380
+ "type": "string",
381
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
342
382
  }
343
383
  },
344
384
  "required": [
@@ -365,6 +405,10 @@
365
405
  "includeContracts": {
366
406
  "type": "boolean",
367
407
  "description": "Include the full contract registry. Default false keeps frequent status polls compact; contractCount always reports its size."
408
+ },
409
+ "repository": {
410
+ "type": "string",
411
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
368
412
  }
369
413
  },
370
414
  "additionalProperties": false,
@@ -382,6 +426,10 @@
382
426
  },
383
427
  "sessionToken": {
384
428
  "type": "string"
429
+ },
430
+ "repository": {
431
+ "type": "string",
432
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
385
433
  }
386
434
  },
387
435
  "required": [
@@ -416,6 +464,10 @@
416
464
  "verificationCmd": {
417
465
  "type": "string",
418
466
  "description": "Command to run in speculative merge tree (e.g. \"npm run typecheck\")"
467
+ },
468
+ "repository": {
469
+ "type": "string",
470
+ "description": "Absolute Git checkout path. Required on global connections without project context. Always use the same original checkout for a task."
419
471
  }
420
472
  },
421
473
  "required": [
package/docs/protocol.md CHANGED
@@ -6,12 +6,14 @@ Kith is a local ledger for cooperating coding agents. Clients share one reposito
6
6
 
7
7
  Protocol 1.1 ships with package 0.1.2. Earlier `kith-coord@0.1.1` reports protocol 1.0 and includes full contracts in MCP status; the compact default and `includeContracts` input below require 0.1.2.
8
8
 
9
- `KITH_PROTOCOL_VERSION` and status responses advertise `1.1.0`. Package releases (`kith-coord`, beginning at 0.1.0) and the SQLite storage schema (2) have independent versions. The [tool snapshot](protocol/tools.v1.json) contains all 13 tool names, descriptions and JSON input schemas, exported from an actual MCP `tools/list` response. `pnpm protocol:check` rejects snapshot drift in CI. Update deliberately using `pnpm protocol:export`.
9
+ `KITH_PROTOCOL_VERSION` and status responses advertise `1.2.0`. Package releases (`kith-coord`, beginning at 0.1.0) and the SQLite storage schema (2) have independent versions. The [tool snapshot](protocol/tools.v1.json) contains all 13 tool names, descriptions and JSON input schemas, exported from an actual MCP `tools/list` response. `pnpm protocol:check` rejects snapshot drift in CI. Update deliberately using `pnpm protocol:export`.
10
10
 
11
11
  For protocol 1.x, existing tool names, required input fields and the ownership/claim semantics below remain compatible. New optional fields/tools and additive result fields use a minor version; compatible repairs use a patch version. Removing tools, adding required inputs or changing ownership semantics requires a major version. Clients should ignore unknown result fields. The snapshot describes inputs; it is not a machine-validated schema for every result or a guarantee of source-level library compatibility.
12
12
 
13
13
  Successful tool replies place the same JSON object in `structuredContent` and the first text block. Additional text may contain an advisory event delta. Inspect `isError` and the operation's fields: a computed preview with `clean:false` is a successful observation of a conflict, not permission to integrate. Exceptions are MCP tool errors. Never infer successful work from the client process exit code alone.
14
14
 
15
+ Protocol 1.2 adds optional `repository` to every tool. A global `kith mcp` connection can route calls independently to absolute Git checkout paths; it creates no project database until a project is selected. A Git checkout in the process/project context supplies a default. Without one, calls must include `repository` and otherwise return a tool error while the connection remains available. Never substitute HOME or a filesystem root. Always keep the original checkout path for a task, even when editing its isolated worktree. Capabilities and commands remain attached to their repository context, and disconnect cleanup covers every opened context. An explicit `mcp --repo` connection retains its pinned checkout and refuses a different repository argument.
16
+
15
17
  ## Sessions and claims
16
18
 
17
19
  - `kith_start_session` or `kith_begin_work` grants a random session capability for a unique `agentId`. The owning MCP connection retains it. Another connection needs the capability to resume that generation; an ID is not authorization. Omit `sessionToken` on subsequent calls on the owning connection. Tokens are returned at grant/resume, so client transcripts can contain capabilities and must stay private. Public status omits capabilities and their hashes.
package/docs/usage.md CHANGED
@@ -107,3 +107,12 @@ unset KITH_AGENT_ID KITH_SESSION_TOKEN
107
107
  ```
108
108
 
109
109
  Never include session tokens in issues, terminal recordings, or shared logs. See [session lifecycle](sessions-and-mutexes.md) for expiry and recovery.
110
+
111
+
112
+ ## Optional read-only worktree observations
113
+
114
+ `kith watch /absolute/checkout --once --json` reports uncommitted path overlaps across linked worktrees sharing a Git common directory. A parent directory can contain several independent repositories; equal filenames in unrelated repositories do not establish a collision. The watcher does not identify agents, enforce ownership, or establish contract/semantic compatibility. Clean output means only that the completed scan observed no differing or unverified shared dirty paths. Failed discovery or Git reads produce `complete:false`, error details and a nonzero one-shot exit; inspect the failure before relying on the observation.
115
+
116
+ The read-only watcher excludes byte-identical dirty copies (including matching executable modes) across linked worktrees. Remaining shared dirty paths are advisories, not proven merge conflicts. Files over 8 MiB and non-file objects remain unverified rather than being treated as identical. The menu shows at most eight overlap rows; `kith watch --once` provides the full observations.
117
+
118
+ Omit `--once` for continuous observation. `--notify=false` suppresses optional macOS notifications. On macOS 12 or newer, `kith menubar /absolute/checkout` opens the same limited read-only view. The package includes an Intel/Apple Silicon executable, launched with this installation's Node and CLI paths; unavailable/failed scans remain visibly unavailable. Other platforms use `kith watch`. Source contributors can rebuild with `pnpm build:menubar` using Apple's command-line tools, and run the pipe/timeout regressions with `pnpm test:menubar`.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "kith-coord",
3
- "version": "0.1.2",
3
+ "version": "0.1.3",
4
4
  "description": "Local coordination for cooperating coding agents: work claims, isolated worktrees, shared resources, and verified integration without a hosted service.",
5
5
  "type": "module",
6
6
  "bin": {
@@ -25,7 +25,8 @@
25
25
  "SECURITY.md",
26
26
  "CODE_OF_CONDUCT.md",
27
27
  "CHANGELOG.md",
28
- "assets/brand"
28
+ "assets/brand",
29
+ "bin/kith-menubar"
29
30
  ],
30
31
  "engines": {
31
32
  "node": "^22.13.0 || >=24.0.0"
@@ -37,12 +38,14 @@
37
38
  "test:watch": "tsup && vitest",
38
39
  "typecheck": "tsc --noEmit",
39
40
  "check": "pnpm typecheck && pnpm test",
40
- "prepack": "tsup",
41
+ "prepack": "tsup && node scripts/build-menubar.mjs --if-supported",
41
42
  "test:package": "pnpm build && node scripts/smoke-package.mjs",
42
43
  "demo": "pnpm build && node examples/two-agents.mjs",
43
44
  "test:clients": "pnpm build && node scripts/validate-native-clients.mjs",
44
45
  "protocol:export": "pnpm build && node scripts/export-protocol.mjs",
45
- "protocol:check": "node scripts/export-protocol.mjs --check"
46
+ "protocol:check": "node scripts/export-protocol.mjs --check",
47
+ "build:menubar": "node scripts/build-menubar.mjs",
48
+ "test:menubar": "node scripts/test-menubar.mjs"
46
49
  },
47
50
  "keywords": [
48
51
  "ai-agents",
package/server.json CHANGED
@@ -3,7 +3,7 @@
3
3
  "name": "io.github.connorhriley/kith",
4
4
  "title": "Kith",
5
5
  "description": "Coordinate coding agents with work claims, Git worktrees, shared resources and verified integration.",
6
- "version": "0.1.2",
6
+ "version": "0.1.3",
7
7
  "repository": {
8
8
  "url": "https://github.com/connorhriley/kith",
9
9
  "source": "github"
@@ -23,7 +23,7 @@
23
23
  "registryType": "npm",
24
24
  "registryBaseUrl": "https://registry.npmjs.org",
25
25
  "identifier": "kith-coord",
26
- "version": "0.1.2",
26
+ "version": "0.1.3",
27
27
  "runtimeHint": "npx",
28
28
  "runtimeArguments": [
29
29
  {
@@ -42,9 +42,9 @@
42
42
  {
43
43
  "type": "named",
44
44
  "name": "--repo",
45
- "description": "Absolute path to the Git checkout to coordinate. Git 2.38+ and Node 22.13+ (22.x) or 24+ required.",
45
+ "description": "Optional fixed Git checkout. Omit for a global connection and supply repository on each tool call. Git 2.38+ and Node 22.13+ (22.x) or 24+ required.",
46
46
  "format": "filepath",
47
- "isRequired": true
47
+ "isRequired": false
48
48
  }
49
49
  ]
50
50
  }