@lucascouts/claude-agent-tui 0.14.6 → 0.14.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/README.md CHANGED
@@ -4,7 +4,16 @@
4
4
 
5
5
  An [ACP](https://agentclientprotocol.com)-compatible agent that drives the **Claude Code subscription TUI** over a PTY, so your Claude Code threads render natively in [Zed](https://zed.dev) and other ACP clients.
6
6
 
7
- > **Fork** of [`@agentclientprotocol/claude-agent-acp`](https://github.com/agentclientprotocol/claude-agent-acp) v0.57.0. Where the upstream adapter calls the Claude Agent **SDK**, this fork spawns the `claude` **subscription CLI** in a pseudo-terminal and translates its JSONL transcript into ACP `session/update` notifications. See [`.fork-provenance.json`](.fork-provenance.json) for the exact fork point.
7
+ > **Fork** of [`@agentclientprotocol/claude-agent-acp`](https://github.com/agentclientprotocol/claude-agent-acp) v0.57.0, with later upstream changes ported on top. Where the upstream adapter calls the Claude Agent **SDK**, this fork spawns the `claude` **subscription CLI** in a pseudo-terminal and translates its JSONL transcript into ACP `session/update` notifications. See [`.fork-provenance.json`](.fork-provenance.json) for the exact fork point.
8
+
9
+ ## Status
10
+
11
+ **Maintained for parity, not as an active product.** Development as a product stopped on 2026-06-24, for two reasons the code cannot resolve:
12
+
13
+ - **Billing.** The premise below — that bridge-driven TUI use counts against your subscription — is a server-side behaviour this project cannot verify. It was closed on the assumption that the billing split takes effect and such use is _not_ covered.
14
+ - **Terms.** Driving the subscription `claude` TUI from an unofficial client may not conform to Anthropic's Terms of Service.
15
+
16
+ Since 2026-08-28 the adapter is kept in step with upstream `claude-agent-acp` as engineering work, and releases continue. Use it knowing both points above.
8
17
 
9
18
  ## Why this exists
10
19
 
@@ -33,7 +42,11 @@ This project bridges the two: it drives the **official Claude Code TUI** over a
33
42
 
34
43
  ## Register in Zed
35
44
 
36
- Build the agent, then point Zed's `agent_servers` at the built entrypoint:
45
+ Install the agent, then point Zed's `agent_servers` at it:
46
+
47
+ ```sh
48
+ npm install -g @lucascouts/claude-agent-tui
49
+ ```
37
50
 
38
51
  ```jsonc
39
52
  // ~/.config/zed/settings.json
@@ -41,14 +54,16 @@ Build the agent, then point Zed's `agent_servers` at the built entrypoint:
41
54
  "agent_servers": {
42
55
  "Claude Agent TUI": {
43
56
  "type": "custom",
44
- "command": "node",
45
- "args": ["/absolute/path/to/claude-agent-tui/dist/index.js"],
57
+ "command": "claude-agent-tui",
58
+ "args": [],
46
59
  "env": {},
47
60
  },
48
61
  },
49
62
  }
50
63
  ```
51
64
 
65
+ From a source checkout instead, build it and use `"command": "node"` with `"args": ["/absolute/path/to/claude-agent-tui/dist/index.js"]`.
66
+
52
67
  Open the Agent Panel in Zed and select **Claude Agent TUI**.
53
68
 
54
69
  ## Build & test
package/dist/acp-agent.js CHANGED
@@ -491,13 +491,17 @@ const REPLAY_HIDDEN_COMMANDS = new Set([
491
491
  // their output as user messages in the session transcript, wrapping the
492
492
  // payload in these XML-like markers that the CLI uses for its own display.
493
493
  // The live prompt loop drops them; replay must strip them too or they leak
494
- // into the UI on session/load.
494
+ // into the UI on session/load. A `task-notification` is the CLI telling the
495
+ // model a background task stopped -- live it is never shown either -- and is
496
+ // stripped the same way, keeping any text typed beside it (upstream #1205's
497
+ // replay half).
495
498
  const LOCAL_COMMAND_MARKERS = [
496
499
  "command-name",
497
500
  "command-message",
498
501
  "command-args",
499
502
  "local-command-stdout",
500
503
  "local-command-stderr",
504
+ "task-notification",
501
505
  ].map((tag) => ({ open: `<${tag}>`, close: `</${tag}>` }));
502
506
  // Single-pass scanner that removes each `<tag>…</tag>` marker (matching the nearest
503
507
  // closing tag of the same name, like a lazy regex would) in O(n) — no polynomial
package/package.json CHANGED
@@ -3,8 +3,8 @@
3
3
  "publishConfig": {
4
4
  "access": "public"
5
5
  },
6
- "version": "0.14.6",
7
- "description": "Run the official Claude Code TUI in Zed's agent panel on your Claude Pro/Max subscription — an ACP-over-PTY bridge created for Anthropic's billing split (paused June 15; see README).",
6
+ "version": "0.14.8",
7
+ "description": "Runs the official Claude Code TUI over a PTY and exposes it via ACP, so Claude Code threads render natively in Zed's agent panel. Built for Anthropic's June 2026 billing split (since paused); maintained for upstream parity, not as an active product — see README.",
8
8
  "main": "dist/lib.js",
9
9
  "types": "dist/lib.d.ts",
10
10
  "bin": {
@@ -43,6 +43,7 @@
43
43
  "claude",
44
44
  "claude-code",
45
45
  "acp",
46
+ "agent-client-protocol",
46
47
  "agent",
47
48
  "anthropic",
48
49
  "zed",