kith-coord 0.1.7 → 0.1.8
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/CHANGELOG.md +17 -1
- package/README.md +37 -19
- package/bin/kith-menubar +0 -0
- package/dist/cli/index.js +12759 -8199
- package/dist/cli/index.js.map +1 -1
- package/dist/index.d.ts +380 -7
- package/dist/index.js +2393 -394
- package/dist/index.js.map +1 -1
- package/docs/architecture.md +4 -1
- package/docs/integrations.md +16 -5
- package/docs/protocol/tools.v1.json +205 -29
- package/docs/protocol.md +32 -2
- package/docs/reliability.md +5 -1
- package/docs/roadmap.md +1 -1
- package/docs/sessions-and-mutexes.md +25 -0
- package/docs/usage.md +38 -10
- package/package.json +18 -20
- package/server.json +2 -2
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,21 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.8 — 2026-11-15
|
|
4
|
+
|
|
5
|
+
- Handoffs. Coordination state used to lose everything an agent learned when its session ended: claims were released and the task requeued as if untouched. `kith_write_handoff` (and `kith handoff write`) leaves a note with what is done, what remains, what failed and what was learned, plus the files changed from Git and a pointer to the full transcript; `releaseTask` hands the task back to the queue. Kith records an `abandoned` note itself when a session dies or disconnects mid-task (claimed files, last failed integration, quarantined changes) and a completion note when none was written. `kith_begin_work` and `kith_claim_next_task` return relevant notes by task and exact scope overlap, `kith_get_status` lists open ones, `kith_read_handoffs` returns full text, and siblings see new notes in their live delta. Notes are labelled untrusted, stripped of control characters and bounded. A note is superseded only by a later completion that exists. Abandoned notes point at the branch, and its worktree when that still exists.
|
|
6
|
+
- `kith brief` and `kith_brief`: a read-only summary of who is active on what, claims that overlap a scope, queued work, open handoff notes and conflicts. It needs no session, reads a private snapshot (creates no state, migrates nothing), never fails its caller, and is silent with `--quiet` when there is nothing to report. `kith init --only brief` adds a Claude Code `SessionStart` hook that runs it. Queued tasks untouched for two weeks, with no open note, are counted rather than listed. Exited auto-sessions leave the brief immediately; entries show activity age.
|
|
7
|
+
- Workflow mode. `kith mode main` (or `kith init --mode main`) makes a repository work in the main checkout: no worktrees are created, `isolateWorktree` is ignored with a note, and completing work releases claims. Generated guidance describes the recorded mode. `worktrees` stays the default. `kith_begin_work`, `kith_claim_next_task` and status report `workflowMode`. `kith mode`, `kith status --human` and `kith doctor --human` say whether `worktrees` is the unpinned default or an explicit choice. Interactive `kith init` asks for the mode when `--mode` is omitted.
|
|
8
|
+
- Hooks govern only sessions that joined. A process with no Kith identity no longer has its tool calls and `git commit` rejected: `kith hook pre|post|pre-commit` allows immediately, prints nothing, and never opens the coordination database. A named agent without a valid capability is still refused; `--require-session` or `KITH_REQUIRE_SESSION=1` restores fail-closed hooks. Generated guidance is replaced only while its digest still matches what Kith wrote; hand-edited blocks are kept, and `--refresh-guidance` opts in to replacing them. `kith setup` does not refresh guidance. Doctor reports a shell with no session as not participating, and a removed worktree of an ended session as retired history.
|
|
9
|
+
- Integration no longer requires a clean target. Preview and integration refuse only when the target has uncommitted or untracked changes to a file the merge itself changes, name those files, and leave unrelated local work untouched.
|
|
10
|
+
- Git-ignored paths are no longer locked or reported as conflicts, and conflicts or claims already recorded on them are cleared on the next reap. A hook session whose saved capability was lost, but whose owning process is still the caller, re-registers instead of failing with `Auto-session capability conflict`. Registering through MCP binds that capability to the parent client's auto-session and transfers its file locks. Auto-sessions stay alive across turns and long commands while the operating-system process lives. `kith session clear [<agent-id|session-key>] [--conflicts]` releases a stuck auto-session by hand.
|
|
11
|
+
- `kith commit -m "<msg>" [files...]` (and `commitMessage`/`commitFiles` on finish) commits only the caller session's recorded or specified files through a temporary Git index and a compare-and-swap `git update-ref`, then syncs those paths in `.git/index`. A commit made that way is not reported as a conflict against a stale main snapshot: untouched shadow-index files follow HEAD, and a side equal to HEAD is discarded. Quarantine checks skip read-only commands and concurrent edits to files another live agent holds, unless the command targeted that file for write.
|
|
12
|
+
- Conflict notices in the hook footer list only conflicts on files the agent edited or locks, plus a count of the rest, and only when that notice changed. The footer stays under about 1,500 characters. Conflicts held by sessions idle for over an hour, or past their lease, are dropped when dead agents are reaped.
|
|
13
|
+
- `kith install [workspace]` configures global MCP with the compact tool profile by default, installs silent-solo `--auto` hooks for Claude Code and Cursor, and on macOS registers a login LaunchAgent (`dev.kith.radar`) when the menu-bar helper is present. `--no-radar` and `--no-autostart` skip that login item. `kith setup` remains a compatible alias and also opens read-only Radar on macOS. `kith uninstall` removes the LaunchAgent, global hooks, global MCP entries, retained runtimes and launcher symlinks. `--auto` hooks stay zero-write for an uninitialised or single-writer repository and open coordination only when concurrent activity overlaps. Repeat setup keeps the existing Radar workspace. Linux and Windows do not launch the menu-bar view.
|
|
14
|
+
- `kith mcp --compact` exposes the shorter tool profile; `--full` keeps the complete surface. `kith run`, `kith gc`, `kith task done`, `kith task clear` and `kith watch` cover everyday supervision. `kith gc` compacts idle repositories and preserves active sessions, open handoffs, dirty worktrees and unmerged branches. A parent directory of several Git repositories is handled per checkout, with a presence key per repository. The index is resynced after `update-ref`. Recent session files are kept across turns. External IDE presence scanning stays behind `kith watch --include-presence`.
|
|
15
|
+
- The editor adds `kith.mcp.profile` (compact by default), a read-only background-hooks line, and **Kith: Install Global Hooks & Autostart** in a trusted workspace. The VSIX does not bundle the macOS menu-bar helper; Radar login autostart still needs `kith install` from the package.
|
|
16
|
+
- Reduce repeated MCP discovery instructions while preserving repository, capability and retry boundaries. Owned replies add `session.leaseExpiresAt` (Unix milliseconds) for the existing lease. Guidance uses direct begin/claim, an idle-only heartbeat, automatic edit publication and a single integration verification. Default status omits successful integration logs and reports `completedIntegrationCount`; `includeHistory:true` restores them. Failed and current integration diagnostics stay visible. No background renewal and no event suppression.
|
|
17
|
+
- Advance the additive protocol to 1.6. New optional tools are `kith_write_handoff`, `kith_read_handoffs` and `kith_brief`. Additive result fields include handoffs, `workflowMode`, `session.leaseExpiresAt` and `completedIntegrationCount`. The full tool snapshot has 17 tools. The storage schema stays 3. Opening the database creates an optional `handoffs` table; older binaries ignore it and keep working. There is no schema-version migration. `node:sqlite` loads on first use, so pass-through hooks and `kith help` do not print Node's experimental-feature notice.
|
|
18
|
+
|
|
3
19
|
## 0.1.7 — 2026-10-24
|
|
4
20
|
|
|
5
21
|
- Retain the bundled setup runtime outside temporary npx caches, verify MCP discovery, and preserve existing client settings, custom launchers and original-byte recovery backups. Clarify actual tasks, claims, resource waits and verification results in the read-only coordination view.
|
|
@@ -115,7 +131,7 @@
|
|
|
115
131
|
- Add an opt-in native Codex/Claude runner checking real editor/MCP workflows and resulting repository state, with redacted reports and bounded runs.
|
|
116
132
|
- Add manually dispatched CI, retained JUnit evidence and installed-package/two-client demo validation across Linux/macOS and Node 22.13/22/24.
|
|
117
133
|
|
|
118
|
-
|
|
134
|
+
### Notes later released in 0.1.7
|
|
119
135
|
|
|
120
136
|
- One-command setup retains a self-contained runtime outside transient npx caches, checks MCP discovery and installs marked project guidance alongside detected client configuration. Repeat/interrupted setup retains recovery material and existing custom launchers; older live project schemas require the stopped-upgrade procedure.
|
|
121
137
|
- Read-only menu and editor views show current recorded tasks/claims, resource waits and failed integrations with next steps. Saved work and review paths move into details; the default menu omits file timestamps. Missing/partial state stays explicit. No new coordination database, model calls or automatic cleanup.
|
package/README.md
CHANGED
|
@@ -29,6 +29,9 @@ Kith gives cooperating agents shared local state: who owns a task, which files a
|
|
|
29
29
|
| Give agents separate working files | Git worktrees with an explicit integration step |
|
|
30
30
|
| Check work before integration | Your project's verification command |
|
|
31
31
|
| Share local tools | Port reservations and supervised command mutexes |
|
|
32
|
+
| Know what is going on before you start | `kith brief`: who is active on what, overlapping claims, open handoffs and conflicts. Read-only, no session needed |
|
|
33
|
+
| Work the way you do | Worktree isolation, or one shared checkout with scope claims (`kith mode main`) |
|
|
34
|
+
| Keep what an agent learned | Handoff notes that survive a session boundary and reach whoever works the same scope next |
|
|
32
35
|
| See what is happening | Session/task state through CLI/MCP; optional read-only editor and worktree views |
|
|
33
36
|
|
|
34
37
|
Kith fits workflows where you already launch multiple coding agents and want them to coordinate. It does not choose models, write prompts, or launch a fleet for you. Worktrees separate files; Kith adds shared ownership and resource coordination.
|
|
@@ -41,22 +44,22 @@ Requires **Git 2.38+** and **Node.js 22.13+ on 22.x or Node.js 24+**. Full workf
|
|
|
41
44
|
|
|
42
45
|
Git recording and integration require a commit identity configured for the repository (`user.name` and `user.email`). Kith does not change your global Git identity.
|
|
43
46
|
|
|
44
|
-
**Upgrading to 0.1.
|
|
47
|
+
**Upgrading to 0.1.8:** Stop existing Kith connections first. Back up stopped coordination state (including SQLite sidecars) and retain worktrees; upgrade all coordinators sharing a repository together. The storage schema stays 3. Databases already on schema 3 open without a version migration. The first open with 0.1.8 creates an optional `handoffs` table; binaries from 0.1.6 and 0.1.7 ignore that table and keep working, but they do not read or write handoff notes. An upgrade from schema 2 still applies the 0.1.6 migration to schema 3, which older binaries refuse. Hooks no longer block a process that has not joined a session, and integration refuses only dirty files the merge itself changes. Existing custom launchers are preserved; review their pinned version before reconnecting. On macOS, `kith install` and `kith setup` register a login LaunchAgent unless `--no-autostart` or `--no-radar` is passed. See [recovery guidance](docs/reliability.md#recovery).
|
|
45
48
|
|
|
46
49
|
### VS Code or Cursor
|
|
47
50
|
|
|
48
51
|
Install **Kith** (`kith-coord.kith`) from the [VS Code Marketplace](https://marketplace.visualstudio.com/items?itemName=kith-coord.kith) or [Cursor / Open VSX](https://open-vsx.org/extension/kith-coord/kith). You can also search for `kith-coord.kith` in the editor's Extensions view.
|
|
49
52
|
|
|
50
|
-
To select release **0.1.
|
|
53
|
+
To select release **0.1.8** explicitly with an editor CLI already on your `PATH`:
|
|
51
54
|
|
|
52
55
|
```sh
|
|
53
|
-
code --install-extension kith-coord.kith@0.1.
|
|
54
|
-
cursor --install-extension kith-coord.kith@0.1.
|
|
56
|
+
code --install-extension kith-coord.kith@0.1.8
|
|
57
|
+
cursor --install-extension kith-coord.kith@0.1.8
|
|
55
58
|
```
|
|
56
59
|
|
|
57
|
-
Use the command for your editor. A marketplace lookup can temporarily select an older version; the [extension guide](extensions/editor/README.md#install) also links the published 0.1.
|
|
60
|
+
Use the command for your editor. A marketplace lookup can temporarily select an older version; the [extension guide](extensions/editor/README.md#install) also links the published 0.1.8 VSIX.
|
|
58
61
|
|
|
59
|
-
Open a trusted local Git checkout and approve Kith's MCP server through the editor. The extension bundles the coordination server, detects Node, and preserves existing MCP entries, hooks and tool permissions. **No global npm install is needed.** Each agent still needs to use Kith's tools; installing the extension does not enforce claims on other writers.
|
|
62
|
+
Open a trusted local Git checkout and approve Kith's MCP server through the editor. The extension bundles the coordination server, detects Node, and preserves existing MCP entries, hooks and tool permissions. **No global npm install is needed.** It registers the compact tool profile (`kith.mcp.profile`, `compact` by default, or `full`), shows a read-only global hook status note in Output, and adds **Kith: Install Global Hooks & Autostart** (`kith.installGlobal`). The bundled extension does not include the macOS menu-bar helper; run `kith install` from the CLI on macOS for Radar login autostart. Each agent still needs to use Kith's tools; installing the extension alone does not enforce claims on other writers.
|
|
60
63
|
|
|
61
64
|
Start with a scoped task:
|
|
62
65
|
|
|
@@ -70,17 +73,24 @@ The [extension guide](extensions/editor/README.md) covers settings and existing
|
|
|
70
73
|
|
|
71
74
|
### CLI and other MCP clients
|
|
72
75
|
|
|
73
|
-
|
|
76
|
+
Published **0.1.7** configures detected clients and adds project instructions with:
|
|
74
77
|
|
|
75
78
|
```sh
|
|
76
|
-
npx --yes --package kith-coord@0.1.
|
|
79
|
+
npx --yes --package kith-coord@0.1.8 kith setup
|
|
77
80
|
```
|
|
78
81
|
|
|
79
|
-
|
|
82
|
+
**`kith install`** is the one-command onboarding path. `kith setup` remains a compatible alias:
|
|
80
83
|
|
|
81
|
-
|
|
84
|
+
- Configures global MCP servers with the concise **`--compact`** tool profile by default (`kith mcp --compact`, or `--full` for the complete surface).
|
|
85
|
+
- Installs global silent-solo `--auto` hooks for **Claude Code** (`~/.claude/settings.json`) and **Cursor** (`~/.cursor/hooks.json`). Solo work stays zero-write (`Watching only`); when concurrent activity overlaps, hooks auto-join Kith and isolate writers into worktrees or leases.
|
|
86
|
+
- On **macOS**, installs and starts a login `LaunchAgent` (`dev.kith.radar`) for background menu-bar Radar, and opens the read-only view. `--no-autostart` or `--no-radar` skips the login item. Repeat setup keeps the existing workspace.
|
|
87
|
+
- **`kith uninstall`** removes the macOS `LaunchAgent`, global Kith hooks, global MCP entries, retained runtimes and launcher symlinks.
|
|
82
88
|
|
|
83
|
-
|
|
89
|
+
Note the platform and client boundaries: **Codex CLI** does not expose native pre/post tool hooks, so it coordinates through `--compact` MCP tools and Radar/watcher observations rather than automatic hook interception. **Linux and Windows** skip macOS menu-bar autostart and use `kith watch` for passive supervision.
|
|
90
|
+
|
|
91
|
+
Durable setup starts with **0.1.7** (retaining an exact self-contained runtime outside npx's cache, verifying MCP discovery, and backing up modified files). Existing custom Kith launchers, peer servers, hooks and permissions are preserved. Reconnect the client and approve its MCP server through the client's normal controls.
|
|
92
|
+
|
|
93
|
+
Day to day, run `kith` (a read-only status overview in a terminal), `kith status`, `kith brief`, `kith run`, `kith gc`, `kith doctor [path]`, or `kith help --all`. The view says **Watching only** until a task or concurrent overlap is recorded. `kith install --dry-run` and `kith setup --dry-run` preview without writes.
|
|
84
94
|
|
|
85
95
|
For source installation and the disposable demo, use the pinned **pnpm 10.20.0**:
|
|
86
96
|
|
|
@@ -115,19 +125,21 @@ The implementation is in [examples/two-agents.mjs](examples/two-agents.mjs). Thi
|
|
|
115
125
|
|
|
116
126
|
### Client support
|
|
117
127
|
|
|
118
|
-
The editor extension bundles the server and offers it through native MCP registration; no global npm install is needed. Installing an extension or writing configuration does not enforce claims on writers that do not
|
|
128
|
+
The editor extension bundles the server and offers it through native MCP registration; no global npm install is needed. Installing an extension or writing MCP configuration alone does not enforce claims on writers that do not call Kith tools unless global `--auto` hooks are installed for that client. Existing custom Kith entries retain precedence.
|
|
119
129
|
|
|
120
|
-
| Client | Setup and
|
|
130
|
+
| Client | Setup and behavior |
|
|
121
131
|
| --- | --- |
|
|
122
|
-
| VS Code / Cursor |
|
|
123
|
-
| Claude Code
|
|
124
|
-
|
|
|
132
|
+
| VS Code / Cursor | Marketplace extension with `kith.mcp.profile` set to `compact` by default; **Kith: Install Global Hooks & Autostart** runs `kith install` |
|
|
133
|
+
| Claude Code and Cursor | Detected client configuration through `kith install` or `kith setup`; silent-solo `--auto` hooks join when work overlaps |
|
|
134
|
+
| Codex CLI | Detected global MCP configuration (`--compact` by default). Codex CLI has no native tool hooks, so coordination uses MCP tools and Radar or `kith watch` |
|
|
135
|
+
| Claude Desktop | Detected MCP configuration via `kith install` / `kith setup` |
|
|
136
|
+
| Other MCP clients | stdio server via `kith mcp` (`--compact` or `--full`); client-specific validation required |
|
|
125
137
|
|
|
126
138
|
Native evidence is version-specific. See [client validation](docs/client-validation.md), [advanced integration setup](docs/integrations.md) and [session ownership](docs/sessions-and-mutexes.md). The npm package is **`kith-coord`** and the command is **`kith`**; the unrelated npm package `kith` is not this project.
|
|
127
139
|
|
|
128
140
|
## Dev servers and shared config
|
|
129
141
|
|
|
130
|
-
|
|
142
|
+
`kith dev` runs a server with its allocated `PORT` and supports explicit `{port}` arguments. File claims also accept an optional bounded wait:
|
|
131
143
|
|
|
132
144
|
```sh
|
|
133
145
|
kith dev --agent web-a -- npm run dev -- --port '{port}'
|
|
@@ -137,7 +149,11 @@ kith lock acquire --agent worker-1 --scope package.json --wait --wait-ms 30000
|
|
|
137
149
|
|
|
138
150
|
See [dev-server launch and waiting claims](docs/usage.md#launch-a-dev-server-on-its-allocated-port) for framework flags, session setup, cancellation, and MCP usage.
|
|
139
151
|
|
|
140
|
-
##
|
|
152
|
+
## Read-only Radar
|
|
153
|
+
|
|
154
|
+
From 0.1.8, macOS `kith install` and `kith setup` load a `LaunchAgent` (`dev.kith.radar`) so menu-bar Radar runs in the background and restarts across logins for the selected checkout or workspace. It uses the retained installation, so clearing the npx cache does not break it. Repeat runs keep an existing Radar workspace selected. Use **Switch Workspace** in its menu to change it.
|
|
155
|
+
|
|
156
|
+
`kith install --no-autostart` (or `--no-radar`) configures MCP and hooks without loading the macOS login agent (useful on headless machines); `--dry-run` never writes or launches anything. Linux and Windows skip the macOS menu-bar app and `LaunchAgent`, using `kith watch` for passive monitoring instead (external IDE `presence.db` discovery is opt-in via `--include-presence`). Remove the login item anytime with `kith uninstall`, or inspect manually with:
|
|
141
157
|
|
|
142
158
|
```sh
|
|
143
159
|
kith watch /path/to/workspace --once --json
|
|
@@ -150,10 +166,12 @@ The menu and editor lead with recorded tasks, current file claims, shared-resour
|
|
|
150
166
|
|
|
151
167
|
## How a task moves through Kith
|
|
152
168
|
|
|
169
|
+
0. **Look first.** `kith brief` (or `kith_brief`) shows who is active on what, claims that overlap your scope, open handoffs and conflicts. It is read-only and needs no session.
|
|
153
170
|
1. **Begin through MCP.** Call `kith_begin_work` with a unique `agentId`, explicit `scopeGlobs`, and `isolateWorktree: true`. The connection retains session ownership; no shell exports are needed for this MCP-only workflow.
|
|
154
171
|
2. **Claim a scope.** Cooperating clients receive a conflict when an exclusive claim overlaps another claim.
|
|
155
172
|
3. **Do the work.** Edit the returned `worktree.worktreePath`, report edits with `kith_record_file_edit`, and use `kith_run_with_mutex` for serialized commands. Heartbeat before expiry and keep the owning connection open.
|
|
156
|
-
4. **
|
|
173
|
+
4. **Leave a handoff.** When you finish, get blocked or must stop, call `kith_write_handoff` with what is done, what remains, what failed and what you learned. `releaseTask` hands the task back to the queue. If a session ends without a note, Kith records what it observed. The next agent on the same scope receives these notes from `kith_begin_work` or `kith_claim_next_task`, labelled as untrusted information to verify.
|
|
174
|
+
5. **Verify and complete.** For a worktree, Kith checkpoints changes and integrates through a separate staging worktree. The target may hold unrelated uncommitted work, but not edits to files the integration changes. Supply a verification command to check more than Git mergeability.
|
|
157
175
|
|
|
158
176
|
Failed verification leaves the target unchanged and keeps the worktree for repair. Successful integration also retains the worktree until explicit cleanup. External Git writers must still coordinate.
|
|
159
177
|
|
package/bin/kith-menubar
CHANGED
|
Binary file
|