acp-tui 0.0.0-stage → 0.8.0
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 +207 -0
- package/LICENSE +202 -0
- package/NOTICE +47 -0
- package/README.md +145 -2
- package/THIRD-PARTY-NOTICES.md +175 -0
- package/assets/grammars/bash/LICENSE +21 -0
- package/assets/grammars/bash/highlights.scm +56 -0
- package/assets/grammars/bash/tree-sitter-bash.wasm +0 -0
- package/assets/grammars/java/LICENSE +21 -0
- package/assets/grammars/java/highlights.scm +149 -0
- package/assets/grammars/java/tree-sitter-java.wasm +0 -0
- package/assets/grammars/json/LICENSE +21 -0
- package/assets/grammars/json/highlights.scm +16 -0
- package/assets/grammars/json/tree-sitter-json.wasm +0 -0
- package/assets/grammars/kotlin/LICENSE +9 -0
- package/assets/grammars/kotlin/highlights.scm +380 -0
- package/assets/grammars/kotlin/tree-sitter-kotlin.wasm +0 -0
- package/assets/grammars/manifest.json +252 -0
- package/assets/grammars/php/LICENSE +22 -0
- package/assets/grammars/php/highlights.scm +203 -0
- package/assets/grammars/php/tree-sitter-php.wasm +0 -0
- package/assets/grammars/python/LICENSE +21 -0
- package/assets/grammars/python/highlights.scm +137 -0
- package/assets/grammars/python/tree-sitter-python.wasm +0 -0
- package/assets/grammars/sql/LICENSE +21 -0
- package/assets/grammars/sql/highlights.scm +445 -0
- package/assets/grammars/sql/tree-sitter-sql.wasm +0 -0
- package/assets/grammars/xml/LICENSE +19 -0
- package/assets/grammars/xml/highlights.scm +168 -0
- package/assets/grammars/xml/tree-sitter-xml.wasm +0 -0
- package/assets/grammars/yaml/LICENSE +20 -0
- package/assets/grammars/yaml/highlights.scm +79 -0
- package/assets/grammars/yaml/tree-sitter-yaml.wasm +0 -0
- package/bin/acp-tui.js +19 -0
- package/dist/chunk-08kdppjx.js +235 -0
- package/dist/chunk-0w4xjw00.js +975 -0
- package/dist/chunk-2ad6nkqz.js +1524 -0
- package/dist/chunk-2wxsgxs5.js +998 -0
- package/dist/chunk-5366f4ye.js +1563 -0
- package/dist/chunk-5gzk1zcj.js +1707 -0
- package/dist/chunk-ek4fcw4r.js +12 -0
- package/dist/chunk-jes10974.js +19 -0
- package/dist/chunk-k0hahyd3.js +594 -0
- package/dist/chunk-qjrt5cj2.js +2124 -0
- package/dist/chunk-qrs9en4a.js +26 -0
- package/dist/chunk-racxqn19.js +75 -0
- package/dist/chunk-rdst3ye3.js +32634 -0
- package/dist/chunk-rzv2z5kc.js +93 -0
- package/dist/chunk-smgzmv9m.js +1 -0
- package/dist/chunk-w8yan6ty.js +282 -0
- package/dist/chunk-wgdt7k86.js +4418 -0
- package/dist/chunk-x17785m7.js +1848 -0
- package/dist/chunk-y0df247a.js +42 -0
- package/dist/chunk-y7mrsbch.js +29 -0
- package/dist/chunk-ymrner9c.js +74 -0
- package/dist/cli.js +485 -0
- package/package.json +50 -4
- package/schema/config.schema.json +2014 -0
- package/schema/theme.schema.json +1217 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,207 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
## 0.8.0
|
|
4
|
+
|
|
5
|
+
acp-tui is now an npm package (`bun add -g acp-tui`, or `npm install -g acp-tui` with Bun on the `PATH`). Its setup questions are keyboard lists, and the new `acp-tui setup paseo` checks Paseo and sets each harness to run directly, start in Paseo, or start directly and move to Paseo when wanted, with the new `paseo_start` setting. `fallback` is now `paseo_fallback`; the old name still works.
|
|
6
|
+
|
|
7
|
+
### Installing
|
|
8
|
+
|
|
9
|
+
- acp-tui is packaged for npm: `bun add -g acp-tui`, or `npm install -g acp-tui` with Bun on the `PATH` (acp-tui runs on Bun either way). Installing writes no configuration; the first plain `acp-tui` or `acp-tui setup` creates it, and `acp-tui config --print-default` takes the place of `config.dist.jsonc`. Update with `bun update -g acp-tui` or `npm update -g acp-tui`. A checkout with `bun run install-cli` works as before.
|
|
10
|
+
- `acp-tui --version` prints `(package)` after the version for a package install, and the commit for a checkout. For a package install, the messages for no harness enabled and for an unconfigured default name `acp-tui setup` and `acp-tui config --print-default` in place of the checkout's `bun run install-cli` and `config.dist.jsonc`, and `--help` shows the directory form below.
|
|
11
|
+
- From a package, an agent command without an entry is written with the directory first, `acp-tui . -- <command>`, because a `--` directly after the command does not reach acp-tui; a word refused that way says so.
|
|
12
|
+
- `NOTICE` covers the package as well as the checkout, and the package carries `THIRD-PARTY-NOTICES.md` with the licences of the libraries built into it.
|
|
13
|
+
|
|
14
|
+
### Paseo
|
|
15
|
+
|
|
16
|
+
- `acp-tui setup paseo` checks Paseo, `paseo-acp-bridge` and the Paseo daemon (starting the bridge for at most 10 seconds to ask the daemon; it never installs or starts anything) and says what to install or start. It lists the providers the daemon offers, then asks, for each harness with a Paseo provider available, how it runs (the others are listed dim, marked `x`, with `(no provider available)`; the first provider the daemon lists as available counts, from a commented-out `paseo_provider` line in the entry, the built-in provider, the harness's own name or the one available provider named `<harness>-...`): `direct only`, `Paseo: start in Paseo` or `Paseo: start direct, move when wanted`, and which harness starts by default. It changes only `paseo_provider`, `paseo_fallback` and `paseo_start` in the entries you change (and adds `"paseo_start": "always"` to an entry written by hand with `paseo_provider` but no `paseo_start`), and writes `paseo_start` with every choice (`"always"`, `"on_move"`, or `"never"` for `direct only` on an entry with a provider, which keeps the provider; an entry without one is left as it is), keeps one-line entries on one line, uncomments a commented-out key in place, shows the changes and keeps a backup. `--check` only checks (exit 0 when everything is there); `--harness <name>=always|on_move|never` (the `paseo_start` values), `--default` and `--yes` do it without questions; `--plain` asks line by line (`2p`).
|
|
17
|
+
- `paseo_start` on an `agent_servers` entry with `paseo_provider` says whether the harness's new sessions start in Paseo: `"always"` (the default when it is not set) through the bridge, as before; `"on_move"` by the entry's own command, without the bridge, keeping `Move this session to Paseo` for when you want one in Paseo; `"never"` by its own command, exactly as if the entry had no `paseo_provider` (no "Paseo is not running" card, no fallback, no move), while keeping the provider line so turning Paseo on again is one value. Sessions recorded through Paseo still reopen through it, and with `"on_move"` `-r` and `-c` list them beside the harness's own; sessions that only Paseo knows (started on the phone or in Paseo Desktop) are not listed for such an entry. Like `paseo_fallback`, it needs `paseo_provider`.
|
|
18
|
+
- A successful move to Paseo, and the reload after Paseo's history changed, are confirmed in the muted notice colour rather than the warning colour, which is red on a light background.
|
|
19
|
+
- The move to Paseo looks for the bridge itself, and when it is not installed refuses with the reason and leaves the session running directly.
|
|
20
|
+
- An `agent_servers` entry's `fallback` is renamed `paseo_fallback`, beside `paseo_provider` and `paseo_start`. The old name still works: it is read as `paseo_fallback`, `acp-tui config --check` prints a notice suggesting the new name, and when an entry has both, `paseo_fallback` wins with a warning. `acp-tui setup paseo` writes `paseo_fallback`, renames an old `fallback` key in place (and a commented `fallback` line as it uncomments it), and `setup paseo --check` names the entries still using `fallback`.
|
|
21
|
+
|
|
22
|
+
### Harness setup
|
|
23
|
+
|
|
24
|
+
- `bun run install-cli`, the first plain `acp-tui` with no harness enabled, and `acp-tui setup` ask their questions in a keyboard list, in place of typing numbers or names: the arrow keys (or `k` and `j`) move, Space ticks, Enter accepts, Esc or `q` cancels, and a digit moves to that row. The lists are drawn on the terminal's alternate screen, below a copy of what the command printed before them (`setup paseo`'s checks and providers, the answered checklist above the default question); when the questions are over the terminal returns to the main screen, untouched, and the final drawing of each list is printed there as the record of the answers. Resizing the terminal, wider, narrower or shorter, redraws the alternate screen once and never leaves copies of the list or the blocks above it in the scrollback; in a short terminal the oldest of those lines are left out first. The terminal is always put back as it was, main screen included, also after Ctrl+C, an error or SIGTERM. In a terminal too short for the whole list, a window follows the focus with `↑ n more` and `↓ n more`.
|
|
25
|
+
- The line prompt stays: `--plain` on `install-cli` and `acp-tui setup`, or `ACP_TUI_PROMPT=lines` (the first launch's switch), asks line by line as before, and it is used by itself when `TERM` is `dumb`, the terminal refuses raw input or is too short even for a window of the list.
|
|
26
|
+
- `install-cli`, `acp-tui setup` and the first launch report what they did in short blocks, a heading with its values indented below it and paths shortened with `~` (`install-cli: created your configuration`, then the path, `harnesses` and `default`; setup's `changed`, `wrote your configuration`, `kept a backup of the previous file` with the command that undoes it). After the `Write these changes ...? [Y/n]` confirmation the report leaves out `changed`, which the preview has just listed. Warnings have blocks of their own.
|
|
27
|
+
- A harness that was not found on the `PATH` is drawn dimmed in the keyboard checklist and can still be ticked; `r` looks for the harnesses again (nothing is run), keeping the focus and the ticks you changed, so a harness installed in another terminal can be ticked without starting over. The default question labels such harnesses `(not installed)` and never suggests one when an installed harness was chosen. `install-cli` now lists the install line of each chosen harness that is not installed, as `acp-tui setup` and the first launch do, and all three warn when the default is not installed.
|
|
28
|
+
|
|
29
|
+
### Other changes
|
|
30
|
+
|
|
31
|
+
- A notice too long for the prompt box's top border is also added to the conversation whole, where it wraps, instead of being readable only cut at the terminal's width.
|
|
32
|
+
- fake-agent's `paseo` scenario takes `--paseo-providers id[:label[:status]],...`, the providers its `_paseo/providers/list` answers, for tests of `acp-tui setup paseo`.
|
|
33
|
+
|
|
34
|
+
## 0.7.0
|
|
35
|
+
|
|
36
|
+
acp-tui finds the harnesses installed on your `PATH` and asks which to enable: when you install it, on the first plain `acp-tui` with none enabled, and whenever you run the new `acp-tui setup`, which adds harnesses to an existing configuration file without rewriting it and keeps a backup. Codex, Antigravity CLI and Cursor CLI are now checked.
|
|
37
|
+
|
|
38
|
+
### Breaking changes
|
|
39
|
+
|
|
40
|
+
- `setup` is now a subcommand, like `config` and `glyphs`: `acp-tui setup` no longer starts a harness named `setup`. Reach such a harness with `acp-tui --harness setup`, and a directory named `setup` as `./setup`.
|
|
41
|
+
|
|
42
|
+
### Harness setup
|
|
43
|
+
|
|
44
|
+
- `acp-tui setup` enables harnesses in your configuration file: it lists the example harnesses, marking those found on the `PATH`, asks which to enable (type a number or name to add one) and which to start by default, shows the changes with their line numbers and asks before writing. `--harness`, `--default` and `--yes` do it without questions, and it never waits without a terminal. It only adds entries and sets the default, keeps everything else in the file as it was, and keeps a timestamped backup beside the file with the command that undoes the change.
|
|
45
|
+
- Plain `acp-tui` with no harness enabled asks the same questions in a terminal, below the command line, then writes your file and starts the harness you chose; with several harnesses and no default it asks only which to start. Elsewhere it prints the message as before, which now names `acp-tui setup` when you have a configuration file; `acp-tui config --check` does too.
|
|
46
|
+
|
|
47
|
+
### Installing
|
|
48
|
+
|
|
49
|
+
- `bun run install-cli` in a terminal, with no `--harness` and no configuration file, first asks which harnesses to enable (the ones found on your `PATH` are ticked) and which starts by default, then writes the file `--harness` would have written. `q` cancels and installs nothing; `--harness` and scripts never ask. With a configuration already there it asks nothing and says to run `acp-tui setup --harness <names>`; its note for a file with no harness enabled now names `acp-tui setup` first.
|
|
50
|
+
|
|
51
|
+
### Other changes
|
|
52
|
+
|
|
53
|
+
- The Cursor example runs `cursor-agent acp` instead of `agent acp`: installers such as mise and npm provide only `cursor-agent`. A file with the old commented example keeps that line, and `acp-tui setup` adds the new entry.
|
|
54
|
+
- When the Codex adapter `codex-acp` is not installed, the error now ends with its install line, `npm install -g @agentclientprotocol/codex-acp`.
|
|
55
|
+
- When Codex or Cursor needs a login, the error now says to run `codex login` or `cursor-agent login`.
|
|
56
|
+
|
|
57
|
+
## 0.6.0
|
|
58
|
+
|
|
59
|
+
acp-tui runs a harness through Paseo: the session is one Paseo Desktop, the phone app and acp-tui all see, and any of them can carry on with it. It is opt-in per harness and needs the `paseo-acp-bridge` program on the `PATH` ([FasterPHP/paseo-acp-bridge](https://github.com/FasterPHP/paseo-acp-bridge)). The settings and what to expect are in [docs/configuration.md](docs/configuration.md#paseo).
|
|
60
|
+
|
|
61
|
+
### Paseo
|
|
62
|
+
|
|
63
|
+
- `paseo_provider` on an `agent_servers` entry runs that harness through Paseo, with `paseo.command` (default `paseo-acp-bridge`) and `paseo.args` in your own file; a project file cannot set them. `"fallback": "direct"` runs the entry's own command when the bridge is not installed or you choose `run <name> directly`, and says the session is not in Paseo.
|
|
64
|
+
- Sessions keep their transport: the index records whether a session went through Paseo or ran directly, and it reopens that way. `-r` and `-c` list the sessions of the entry's provider.
|
|
65
|
+
- When Paseo is not running, a card (`Paseo is not running`) offers `try again`, `run <name> directly` and `cancel`, and `c` or Ctrl+C copies the command that starts it. acp-tui never starts Paseo. Its own cards (this one, the move confirmation and Auggie's indexing question) are headed `Decision from acp-tui`, with a blank row between the options and the hints; the agent's own question card keeps `Question`.
|
|
66
|
+
- The splash and the `agent` module show Paseo's harness and model (`Harness: Claude via Paseo`).
|
|
67
|
+
- A bridge started with no provider asks for one in the `Provider` picker before a new session's first prompt.
|
|
68
|
+
- A turn a different client started is mirrored as it happens and reads exactly as one of your own: its prompt, `running <time>` on the activity line and an ordinary end line. A prompt you send while it runs is refused (`a turn is already running; wait for it to end`) with your draft kept, and the double Esc stops it.
|
|
69
|
+
- A permission answered on a different client closes its card and is recorded as if you had chosen that option (`reject once`); if your answer loses the race, the record shows the answer that won with `your answer was too late`.
|
|
70
|
+
- The connection state (`reconnecting to Paseo`, `disconnected from Paseo`), a reload when Paseo resets a session's history, and the Ctrl+D hint `the turn goes on in Paseo`.
|
|
71
|
+
- For a Paseo on another machine, a picker for a new session's project and then its workspace (a new one in the project's root, or an existing one to join), the workspace shown in place of the launch directory (splash and status row), and remote sessions in the session list marked `(remote)` under `Paseo (<host>, <name>)`.
|
|
72
|
+
- `Move this session to Paseo` (palette entry and `/move-to-paseo`) imports a direct session into Paseo and reopens it there, with its draft. A card asks `Move this session to Paseo?` first, and the notice afterwards reads `moved to Paseo: this session also shows in Paseo Desktop and on your phone`.
|
|
73
|
+
|
|
74
|
+
### Fixes
|
|
75
|
+
|
|
76
|
+
- Messages from the harness are handled in the order it sent them. Before, a quick burst could be handled out of order, so for example a notice that a permission was answered elsewhere could arrive after the cancellation that closes its card.
|
|
77
|
+
|
|
78
|
+
## 0.5.0
|
|
79
|
+
|
|
80
|
+
You choose your harnesses when you install (`bun run install-cli --harness <name>`), and none is enabled by default any more (see Breaking changes). The activity line shows the turn's run time and the running call's kind, Cmd keys work where the terminal passes them, and Ctrl+O and a density switch put back what they changed.
|
|
81
|
+
|
|
82
|
+
### Breaking changes
|
|
83
|
+
|
|
84
|
+
- A fresh install enables no harness. The default configuration has every harness, `auggie` included, as a commented example and no `default_agent_server`, and acp-tui with no configuration file reads it so: plain `acp-tui` stops and says how to enable one instead of starting Auggie. Install with `bun run install-cli --harness <name>` (`auggie`, `claude`, `codex`, `opencode`, `agy` and the other examples), or uncomment the harness's entry under `agent_servers` in your file (`acp-tui config --path` prints where it is). An existing configuration file is unaffected: it is yours and is never rewritten.
|
|
85
|
+
|
|
86
|
+
### Activity line and status row
|
|
87
|
+
|
|
88
|
+
- The activity line shows `running` and the running turn's run time at its right (`running 7s`, `running 4m 35s`, the time in `muted`), from the prompt until the turn ends, beside the running call, the plan, `awaiting permission` or the lingering finished call, and alone when nothing else is shown. Its left names the tool call's kind before its title (`read src/foo.ts`), and so does the finished call the line lingers on (`✓ read src/foo.ts`). It replaces the turn's count there; the gap lines and the turn-end line still carry the counts.
|
|
89
|
+
- The status row's `turn-state` module shows nothing while a turn runs (the word is on the activity line). A custom format still gets `running` in `{state}` and the run time in `{elapsed}`, so `"format": "{state} {elapsed}"` puts both back.
|
|
90
|
+
- Elapsed times are written with a space between the units: `4m 35s`, `2h 03m`.
|
|
91
|
+
|
|
92
|
+
### Keys
|
|
93
|
+
|
|
94
|
+
- `super+c` copies, `super+v` pastes, `super+a` selects all in the prompt box and `super+x` cuts, beside the Ctrl keys, in a terminal that reports Cmd under the kitty keyboard protocol (Ghostty, kitty). PhpStorm and Zed keep Cmd+C, Cmd+V, Cmd+A and Cmd+X for themselves; key help and the guide name the routes there (Ctrl+C or releasing a drag, Alt+V, Ctrl+A, Ctrl+X).
|
|
95
|
+
|
|
96
|
+
### Other changes
|
|
97
|
+
|
|
98
|
+
- The activity line shows the running call's kind and title in muted text, and leaves room for the tick that the lingering line adds, so when a call ends only the `✓` appears and the text does not move. The conversation's tool lines are unchanged.
|
|
99
|
+
- The activity line leaves out a tool call's kind when the title's first word already names it (`Read src/a.ts`, not `read Read src/a.ts`; also `Write` and `Edit`, `Bash`, `Grep`). The conversation's tool lines keep their kind column.
|
|
100
|
+
- `bun run install-cli --harness <name>[,<name>...] [--default <name>]` writes a new configuration with those harnesses in effect and the default chosen; without `--harness` the new file enables none, and the install says how to enable one. An existing file is kept, with a warning saying what to add to it.
|
|
101
|
+
- Without `default_agent_server`, the only configured harness is the default; with several, `auggie` if it is one of them (as before), else plain `acp-tui` asks you to set `default_agent_server` or to name one. `acp-tui config --check` gives a notice when no harness is enabled, and a warning when several are and none is the default.
|
|
102
|
+
- The Gemini CLI example is replaced by Antigravity CLI (`agy acp`), with its install and login hints.
|
|
103
|
+
- The `auggie-v2` example is removed: the `auggie` entry runs Auggie 1.x, now the default. An `auggie-v2` entry you wrote yourself still works.
|
|
104
|
+
- The messages for no harness enabled, several harnesses and no default, and a new file without `--harness` are laid out in short blocks, and name the harnesses most people use first (`claude`, `codex`, `opencode`, `auggie`).
|
|
105
|
+
- `selection.copy_on_release` now also copies a mouse selection in the prompt box when the drag is released, with the same toast as Ctrl+C. The selection stays, so typing replaces it as before; a selection made with the keys (Shift+arrows, Ctrl+A) never copies itself.
|
|
106
|
+
- A project file can no longer set `selection.copy_on_release`, so a cloned repository cannot make a drag write the clipboard.
|
|
107
|
+
- Ctrl+O pressed again puts back what it opened: in `focus` the latest call's line closes with the call, instead of staying open. A newer call started between the presses takes over, and a line you opened yourself stays open.
|
|
108
|
+
- Switching the density (`v`, the palette or the `density` setting) returns every tool call, thought and line to the new density's default, so the calls and lines you opened or closed by hand follow the switch too.
|
|
109
|
+
|
|
110
|
+
## 0.4.0
|
|
111
|
+
|
|
112
|
+
Kept drafts, a cursor that follows the terminal's colours, and `focus` density with one line per gap of hidden work. Ctrl+D now always leaves (see Breaking changes).
|
|
113
|
+
|
|
114
|
+
### Breaking changes
|
|
115
|
+
|
|
116
|
+
- Ctrl+D always leaves, whatever the prompt box holds. It no longer deletes forward when there is a draft: use Delete, or bind another key to `detach` and remove Ctrl+D under `keys`.
|
|
117
|
+
|
|
118
|
+
### Prompt box
|
|
119
|
+
|
|
120
|
+
- The cursor's colour comes from the terminal: acp-tui asks for its cursor, foreground and background colours at start and uses the cursor colour when it can be seen against the background, else the foreground (a dark cursor on a light theme was invisible in foot). The prompt box shows no cursor for the first moments (at most 0.3 seconds) until the terminal has answered, and `OSC 112` gives the terminal its own colour back at exit and on every fallback reset.
|
|
121
|
+
- Unsent drafts are kept per session: leaving a session that can be reopened with text in the prompt box (Ctrl+D, `/exit`, a closed window, a signal or a switch) saves the text, its `@` mentions and the cursor in a private file in acp-tui's state directory, and `-c`, `-r` or the session list puts it back. It is removed when you send a prompt or leave with an empty prompt box. At most 200 drafts of 256 KiB are kept.
|
|
122
|
+
- A draft that is not kept (too large, a session that cannot be reopened, or `prompt.keep_drafts` set to `false`) is printed below the command line at exit after `draft (not sent):`, unwrapped so that it can be copied back.
|
|
123
|
+
- New setting `prompt.keep_drafts` (default `true`), read from your own file only. Drafts are plain files that may hold anything you typed, a secret included.
|
|
124
|
+
|
|
125
|
+
### Other changes
|
|
126
|
+
|
|
127
|
+
- Muted text on a light background is drawn as a mix of the terminal's foreground and background colours, so it stays legible.
|
|
128
|
+
- A tool card's output note counts lines, not rows (`3 lines hidden`), and a harness that streams only the tail of an output shows `last N lines`.
|
|
129
|
+
- `focus` density shows one line per gap of hidden tool calls, thoughts and plans, in the place of the gap, instead of one line per turn, so a turn with several answers keeps its answers apart from its calls. A line sits between the answers with a blank row on each side, like any tool line; opening one line shows only its members.
|
|
130
|
+
- The turn-end line shows the turn's totals when it has more than one such gap, in every density: `end turn · 6 tool calls (1 failed) · 1 thought · 42.0s`, or `interrupted · 2 tool calls (1 stopped) · 1 thought` after an interrupt.
|
|
131
|
+
- Once a running turn has more than one such gap, the activity line shows its count at the right (`2 tool calls (1 running) · 1 thought`), and keeps it during `activity.linger_seconds`; with one gap the gap's own line shows it.
|
|
132
|
+
|
|
133
|
+
## 0.3.0
|
|
134
|
+
|
|
135
|
+
Auggie 1.x (`@augmentcode/auggie` 1.2, now its default install) works with the same `auggie` entry as 0.x. If you upgraded Auggie, log in again with `auggie auth login`; sessions made with 0.x cannot be opened by 1.x (import them in Auggie with `/import-legacy-sessions`).
|
|
136
|
+
|
|
137
|
+
### Auggie 1.x
|
|
138
|
+
|
|
139
|
+
- Auggie 1.x (`npm install -g @augmentcode/auggie`, Node 20.6 or later, then `auggie auth login`) is supported next to 0.x, with the one `auggie` entry. acp-tui recognises the generation from Auggie's answer to `initialize`; the login hint, the install hint and the notice for a version newer than checked (1.2.x, 0.37.x) follow it. The commented `auggie` example explains both generations, `--thinking` for 1.x, and `--permission bash:ask-user` (also `write` and `edit`) rules, which 1.x needs to ask before it acts; a commented `auggie-v2` example runs 1.x from `@augmentcode/onison` beside a 0.x `auggie`.
|
|
140
|
+
- A model chosen in 1.x is saved as Auggie's global default.
|
|
141
|
+
- Auggie 1.x indexes a directory only once it is allowed. acp-tui now turns Auggie's `Indexing disabled` line into a question card, `Auggie is not indexing <dir>.`, opening with nothing selected (digits choose, Esc means not now). Allowing restarts Auggie with `--allow-indexing`, which Auggie keeps as a lasting rule; a stored deny, a file-limit line and the home-directory line are notices.
|
|
142
|
+
- Each session records which Auggie made it. A session of the other generation is refused with a message that says how to get back to it (`/import-legacy-sessions` in 1.x).
|
|
143
|
+
- The login hint names the command for the generation that is running (`auggie auth login` or `auggie login`). With Auggie 1.x logged out, acp-tui stops at start-up with that command instead of failing every prompt with `Internal error`.
|
|
144
|
+
- The indexing question takes focus and mouse like the permission card: a click selects an option, Tab returns to the card from the prompt box.
|
|
145
|
+
- Auggie 1.x does not list your custom commands and skills in the `/` menu (it sends none); they still work when typed (`/`, Esc, then the name).
|
|
146
|
+
- The splash's arrow is `→` alone (the box-drawing line drew as a block in some terminals).
|
|
147
|
+
- Model pickers draw descriptions in a column after the names and cut them only at the row's end; when the harness names no current model, a line says that `default` is the harness's own choice (Auggie does not say which model that is).
|
|
148
|
+
- The advice for a 1.x session refused under 0.x reads `npm install -g @augmentcode/auggie@latest`.
|
|
149
|
+
|
|
150
|
+
### Other changes
|
|
151
|
+
|
|
152
|
+
- When a harness refuses a request, the reason it gives in the error's data is shown instead of `Internal error`.
|
|
153
|
+
- Permission cards name their options by what they do when a harness sends two with the same kind, and show a request for a tool call the harness has not announced.
|
|
154
|
+
- A turn you interrupt ends as `interrupted`, whatever stop reason the harness answers with.
|
|
155
|
+
- Tool calls that carry only a bare tool name as their title are drawn as their command or path; pi's failed-command text shows as a command result; the mode hint is hidden when a harness offers no modes.
|
|
156
|
+
- A session is recorded in the index on its first answered prompt, so a session that was never answered does not fill the list.
|
|
157
|
+
- `/add-dir` and `--add-dir` work before the first prompt.
|
|
158
|
+
- Errors and the messages of the session list can be selected and copied.
|
|
159
|
+
- Rows in the session list for a command you ran with `--` show a short harness name (`claude` for the Claude adapter, the script's name for a runner).
|
|
160
|
+
- Tool output keeps its line breaks: plain text output (from any harness, when it is not a recognised command result or a code block) was drawn with its lines joined.
|
|
161
|
+
- A permission question keeps its line breaks, in the card's scrollable preview, so a command quoted on its own line stays on its own line; so does an answered permission's record when expanded.
|
|
162
|
+
- Emoji that a terminal measures differently from how it draws them (`⚠️` in Zed) are drawn as their names in permission cards too, so the card's frame lines up.
|
|
163
|
+
- The tester guide says to install Auggie 1.x; an older `config.jsonc` without `agent_servers` needs an `auggie` entry (`acp-tui config --diff-default` shows it).
|
|
164
|
+
|
|
165
|
+
## 0.2.0
|
|
166
|
+
|
|
167
|
+
### Breaking changes
|
|
168
|
+
|
|
169
|
+
Harnesses now come only from your configuration file. If you set up 0.1.0 with the built-in `claude` or a bare command name, add an `agent_servers` entry for it: `acp-tui config --print-default` shows commented entries for `claude`, `opencode` and others to copy.
|
|
170
|
+
|
|
171
|
+
- A harness works only if it has an `agent_servers` entry. The default configuration has one, `auggie`, in effect; `claude`, `opencode` and the others are commented examples: remove the `//` to add one. With no configuration file acp-tui behaves as if it held that default, so a fresh checkout starts Auggie without `install-cli`. A file that exists is taken as written.
|
|
172
|
+
- A word that names no configured harness and no directory is an error; acp-tui never looks it up on your `PATH`. A command runs only after `--` (`acp-tui -- opencode acp`).
|
|
173
|
+
- A `default_agent_server` (or `default_agent`) naming a harness without an entry is reported by `acp-tui config --check`, and plain `acp-tui` then stops with `default harness '<name>' is not configured` and where to copy the entry from. Nothing changes your file.
|
|
174
|
+
- The session list offers exactly your configured harnesses.
|
|
175
|
+
- Additional directories in your own file belong to a harness: `agent_servers.<name>.additional_directories` adds them to every session of that harness only, through ACP or the entry's `additional_directory_args`. A top-level `additional_directories` in your own file is now reported by `acp-tui config --check` with a message to move it into the entries that should get it, and ignored; a project's `.acp-tui.jsonc` keeps it, for whichever harness runs. So starting a harness that cannot take directories no longer shows a notice every time. The default's commented `auggie` alternative uses `additional_directories` instead of `--add-workspace` in `args`.
|
|
176
|
+
|
|
177
|
+
### Slash menu
|
|
178
|
+
|
|
179
|
+
- Tab completes the selected entry of the slash menu into the prompt box as `/<name> `, so arguments can follow it. The key is the new `slash` key context's `complete` action (`keys.slash`), and the menu's border names it.
|
|
180
|
+
- Enter on an agent command in the slash menu now always completes it into the prompt box and sends nothing, whether or not the harness sent an argument hint, since a missing hint does not mean the command takes no arguments (`/openspec-apply-change` could not be given a change name before). A second Enter sends it, so a command that takes none, such as `/compact`, takes two presses of Enter from the menu. acp-tui's own commands keep their actions on Enter.
|
|
181
|
+
- A prompt that starts with `/` is sent without trailing spaces, so a completed `/compact ` reaches the harness as `/compact`.
|
|
182
|
+
- The slash menu lists each group in alphabetical order of name, whatever order the harness sent its commands in. While you type a filter, each group puts the entries where every word starts the name or a word of it first (`ap` lists `/claude-api` and `/openspec-apply-change` before `/heapdump`), then those that hold the words elsewhere in the name, then those matched only through their description, under a muted line `-- matching descriptions --`. The selection starts on the first name match, so `/appl` selects `/openspec-apply-change` before a command that merely mentions an application.
|
|
183
|
+
- Undoing a completed command in the prompt box no longer leaves its argument hint behind.
|
|
184
|
+
|
|
185
|
+
### Other changes
|
|
186
|
+
|
|
187
|
+
- What a harness needs is in its entry: Auggie's `additional_directory_args`, Claude's `startup_timeout_seconds` of 120. Install and login hints follow the program an entry runs, whatever the entry is called.
|
|
188
|
+
- A harness that lists models but names no current one (Auggie right after a login) shows `default` in the model pill, the status row and the splash, and the model picker opens as usual.
|
|
189
|
+
- A setting change the harness is slow to answer shows a notice after 3 s, and after 30 s a warning that names the value still in force; a later answer still applies.
|
|
190
|
+
- Model lists whose names are `<provider name>/<model>` (OpenCode 1.x) are grouped under each provider's name.
|
|
191
|
+
- The `@` file picker lists files in one case-insensitive alphabetical order, tracked and untracked together, with a directory's files kept together.
|
|
192
|
+
- Windows: Ctrl+C works while `--resume <id>` or `--continue` is finding a session, even when acp-tui was started with Ctrl+C ignored; the login and install hints name `auggie.cmd` and `npm.cmd`, which run under PowerShell's default execution policy; messages show the home directory as `~` instead of `undefined`.
|
|
193
|
+
- The commented Auggie examples no longer set a reasoning effort, since Auggie keeps a start-up effort across model changes.
|
|
194
|
+
|
|
195
|
+
## 0.1.0 (preview for testers)
|
|
196
|
+
|
|
197
|
+
First version shared with testers.
|
|
198
|
+
|
|
199
|
+
- Full-screen terminal client for ACP agents, for IDE terminals (PhpStorm, IntelliJ IDEA, Zed) and ordinary terminals, on Linux, macOS and Windows.
|
|
200
|
+
- Two built-in harnesses: `auggie` (`auggie --acp` from your `PATH`, the default for now) and `claude` (Claude Code through `claude-agent-acp`). Plain `acp-tui` starts Auggie, `acp-tui claude` starts Claude. Others are added in the configuration file.
|
|
201
|
+
- If Auggie is not installed, acp-tui prints the install command; if you are not logged in, it says to run `auggie login`. A notice appears when Auggie 1.x is the one running, since it has not been checked.
|
|
202
|
+
- The session list offers a built-in harness only when it is installed.
|
|
203
|
+
- `acp-tui --version` (and `-v`) prints the version, commit, Bun, platform and terminal, for bug reports.
|
|
204
|
+
- A crash writes a report under acp-tui's state directory and names it in the exit text; attach it to your report.
|
|
205
|
+
- Java, Kotlin and XML code blocks are highlighted, alongside PHP, JSON, YAML, Python, SQL and shell.
|
|
206
|
+
- `bun run update` brings a checkout up to date (`git pull --ff-only`, then `bun install` if the lock file changed).
|
|
207
|
+
- Issue forms for bugs and feedback, a README, a tester guide and a NOTICE file.
|
package/LICENSE
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 2026 Marcus Don
|
|
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/NOTICE
ADDED
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
acp-tui
|
|
2
|
+
Copyright 2026 Marcus Don
|
|
3
|
+
|
|
4
|
+
This product is licensed under the Apache License, Version 2.0 (see LICENSE).
|
|
5
|
+
|
|
6
|
+
It includes the following third-party material. Where each licence text is kept is given
|
|
7
|
+
below. Paths are given in the repository; the npm package holds the same
|
|
8
|
+
files under assets/ at its root, and the program built into its dist/ directory.
|
|
9
|
+
|
|
10
|
+
Syntax grammars (compiled to WebAssembly, with their highlight queries), under
|
|
11
|
+
packages/acp-tui/assets/grammars/<language>/LICENSE (assets/grammars/<language>/LICENSE in
|
|
12
|
+
the package). All are MIT licensed. The exact tag and commit of each is recorded in
|
|
13
|
+
packages/acp-tui/assets/grammars/manifest.json (assets/grammars/manifest.json).
|
|
14
|
+
|
|
15
|
+
bash tree-sitter-bash https://github.com/tree-sitter/tree-sitter-bash Copyright (c) 2017 Max Brunsfeld
|
|
16
|
+
java tree-sitter-java https://github.com/tree-sitter/tree-sitter-java Copyright (c) 2017 Ayman Nadeem
|
|
17
|
+
json tree-sitter-json https://github.com/tree-sitter/tree-sitter-json Copyright (c) 2014 Max Brunsfeld
|
|
18
|
+
kotlin tree-sitter-kotlin https://github.com/fwcd/tree-sitter-kotlin Copyright (c) 2019 fwcd
|
|
19
|
+
php tree-sitter-php https://github.com/tree-sitter/tree-sitter-php Copyright (c) 2017 Josh Vera, GitHub
|
|
20
|
+
python tree-sitter-python https://github.com/tree-sitter/tree-sitter-python Copyright (c) 2016 Max Brunsfeld
|
|
21
|
+
sql tree-sitter-sql https://github.com/DerekStride/tree-sitter-sql Copyright (c) 2021 Derek Stride
|
|
22
|
+
xml tree-sitter-xml https://github.com/tree-sitter-grammars/tree-sitter-xml Copyright (c) 2023 ObserverOfTime
|
|
23
|
+
yaml tree-sitter-yaml https://github.com/tree-sitter-grammars/tree-sitter-yaml Copyright (c) 2024 tree-sitter-grammars contributors
|
|
24
|
+
|
|
25
|
+
Generated data tables (generated by scripts in packages/acp-tui/scripts, committed as
|
|
26
|
+
TypeScript modules under packages/acp-tui/src/render, and built into dist/ in the package):
|
|
27
|
+
|
|
28
|
+
Emoji names (src/render/emoji/emoji-names.ts): generated from Unicode's emoji-test.txt,
|
|
29
|
+
Emoji 18.0 (https://www.unicode.org/Public/18.0.0/emoji/emoji-test.txt), distributed under
|
|
30
|
+
the Unicode License v3 (https://www.unicode.org/license.txt), Copyright (c) 1991-2026
|
|
31
|
+
Unicode, Inc.
|
|
32
|
+
|
|
33
|
+
LaTeX to Unicode symbols (src/render/math/latex-symbols.ts): generated from the npm
|
|
34
|
+
package unicode2latex 7.0.35 (https://github.com/retorquere/unicode2latex), ISC licence,
|
|
35
|
+
by Emiliano Heyns.
|
|
36
|
+
|
|
37
|
+
The licence texts are in the generated modules in the repository, and in
|
|
38
|
+
THIRD-PARTY-NOTICES.md in the npm package.
|
|
39
|
+
|
|
40
|
+
Libraries. In a checkout, the libraries acp-tui depends on (OpenTUI, Solid, web-tree-sitter,
|
|
41
|
+
marked and others) are installed by "bun install" from their own packages and keep their own
|
|
42
|
+
licences; they are not part of this repository. The npm package builds some of them into its
|
|
43
|
+
dist/ directory (the Solid runtime and the OpenTUI packages that use it, among others): those
|
|
44
|
+
are listed, each with its licence text, together with the generated tables above, in
|
|
45
|
+
THIRD-PARTY-NOTICES.md, which the package build
|
|
46
|
+
(scripts/pack.ts) generates. The package's dependencies are installed from their own packages
|
|
47
|
+
by Bun or npm and keep their own licences.
|
package/README.md
CHANGED
|
@@ -1,3 +1,146 @@
|
|
|
1
|
-
#
|
|
1
|
+
# acp-tui
|
|
2
2
|
|
|
3
|
-
|
|
3
|
+
A terminal client for the [Agent Client Protocol](https://agentclientprotocol.com) (ACP) that works with any ACP agent harness: Claude Code, Codex, OpenCode, Auggie, Antigravity CLI and others. acp-tui gives every agent the same interface, so changing harness changes nothing else.
|
|
4
|
+
|
|
5
|
+
It is designed for minimal distraction and built to be pleasant to live in inside an IDE's integrated terminal: it works the same in any JetBrains (IntelliJ-based) IDE, such as PhpStorm or IntelliJ IDEA, in Zed, and in any modern terminal. It fills the terminal pane while it runs, like an editor, and leaves the pane as it was when you exit.
|
|
6
|
+
|
|
7
|
+
By default the conversation shows the agent's answers, with tool calls, thoughts and plans folded into one-line summaries you can open. It is fully configurable: themes, glyphs, keys, the layout and the status row, from a configuration file with live reload.
|
|
8
|
+
|
|
9
|
+
It gives you a conversation that stays fast over thousands of items, rendered Markdown with highlighted code, tool cards and permission prompts you cannot mistake for agent text, find, selection and copy, a session list with resume, a command palette, and themes that follow your terminal's colours.
|
|
10
|
+
|
|
11
|
+
<!-- Screenshots go here. -->
|
|
12
|
+
|
|
13
|
+
**Status:** an early release, used every day and still changing; please report what you find (see [Feedback](#feedback)).
|
|
14
|
+
|
|
15
|
+
## Requirements
|
|
16
|
+
|
|
17
|
+
- [Bun](https://bun.sh) 1.3.14 or later: acp-tui runs on Bun, however you install it
|
|
18
|
+
- One harness (below). Most are npm packages, which need Node.js.
|
|
19
|
+
- git, to install from a checkout
|
|
20
|
+
|
|
21
|
+
## Install on Linux and macOS
|
|
22
|
+
|
|
23
|
+
Install your harness and log in to it first:
|
|
24
|
+
|
|
25
|
+
| Harness | Install | Name to pass | Checked |
|
|
26
|
+
| --- | --- | --- | --- |
|
|
27
|
+
| Claude Code | `curl -fsSL https://claude.ai/install.sh \| bash`, then run `claude` and sign in (`/login`); the ACP adapter (`claude-agent-acp`) is fetched automatically on first run | `claude` | yes (adapter 0.94.0) |
|
|
28
|
+
| Codex | Codex itself, logged in with `codex login`, then its ACP adapter: `npm install -g @agentclientprotocol/codex-acp` | `codex` | yes (adapter 2.13) |
|
|
29
|
+
| OpenCode | `npm install -g @opencode/cli`, then `opencode auth login` | `opencode` | yes (1.19) |
|
|
30
|
+
| Auggie | `npm install -g @augmentcode/auggie` (Node 20.6 or later), then `auggie auth login` | `auggie` | yes (1.2 and 0.37) |
|
|
31
|
+
| Antigravity CLI | `curl -fsSL https://antigravity.google/cli/install.sh \| bash`, then sign in with `agy acp --login` | `agy` | yes (1.5) |
|
|
32
|
+
|
|
33
|
+
Anything that speaks ACP can be a harness: the configuration file lists more examples (Copilot, Cursor, Goose, Qwen Code, pi), each one uncommented line away. [docs/harnesses.md](docs/harnesses.md) has notes on particular harnesses.
|
|
34
|
+
|
|
35
|
+
Then install acp-tui, from its package or from a checkout of this repository.
|
|
36
|
+
|
|
37
|
+
### From the package
|
|
38
|
+
|
|
39
|
+
From release 0.8.0 acp-tui is published on npm as `acp-tui`. Install Bun first if you do not have it, then acp-tui:
|
|
40
|
+
|
|
41
|
+
```sh
|
|
42
|
+
curl -fsSL https://bun.sh/install | bash
|
|
43
|
+
bun add -g acp-tui
|
|
44
|
+
```
|
|
45
|
+
|
|
46
|
+
`npm install -g acp-tui` works too, as long as Bun is on your `PATH`: npm installs the command, and Bun runs it. Nothing is written to your configuration when you install. The first plain `acp-tui` in a terminal asks which harnesses to enable (the ones it finds on your `PATH` are ticked; the arrow keys move, Space ticks, Enter accepts) and which should start by default, then writes `~/.config/acp-tui/config.jsonc` and starts the harness; for scripts, `acp-tui setup --harness claude` writes the file without questions. There is no `config.dist.jsonc` beside your file with a package install: `acp-tui config --print-default` prints the default configuration of the installed version, and `acp-tui config --diff-default` compares your file with it.
|
|
47
|
+
|
|
48
|
+
To run an agent command that has no entry in your configuration, put the directory first: `acp-tui . -- my-agent --acp`. Installed from the package, a `--` written directly after `acp-tui` does not reach it.
|
|
49
|
+
|
|
50
|
+
### From a checkout
|
|
51
|
+
|
|
52
|
+
In a terminal, `bun run install-cli` asks which harnesses to enable (the ones it finds on your `PATH` are ticked) and which should start by default: the arrow keys move, Space ticks, Enter accepts and Esc cancels (`--plain` asks line by line instead). For scripts and CI, name them instead:
|
|
53
|
+
|
|
54
|
+
```sh
|
|
55
|
+
git clone https://github.com/FasterPHP/acp-tui.git
|
|
56
|
+
cd acp-tui
|
|
57
|
+
bun install
|
|
58
|
+
bun run install-cli --harness claude
|
|
59
|
+
```
|
|
60
|
+
|
|
61
|
+
`bun run install-cli` writes a small `acp-tui` command into `~/.local/bin` that runs this checkout, and creates `~/.config/acp-tui/config.jsonc` with every setting at its default and the harness you named in effect. Name several to have them all, with the first as the default (`--harness claude,codex`), or choose the default with `--default <name>`. With `--harness` it never asks. Without it, in a script (or when nothing is ticked), no harness is enabled: every harness in the file is a commented example, and enabling one later simply involves removing the `//` in front of its line under `agent_servers` (`acp-tui config --path` prints where the file is). If a configuration file already exists it is never replaced and install-cli asks nothing: it says to run `acp-tui setup --harness <names>` instead.
|
|
62
|
+
|
|
63
|
+
If it warns that `~/.local/bin` is not on your `PATH`, add it in your shell's start-up file:
|
|
64
|
+
|
|
65
|
+
```sh
|
|
66
|
+
export PATH="$HOME/.local/bin:$PATH"
|
|
67
|
+
```
|
|
68
|
+
|
|
69
|
+
You can also run the checkout without installing it, as `bun packages/acp-tui/src/cli.ts`; it reads the same configuration file, and with none no harness is enabled, so it says how to enable one.
|
|
70
|
+
|
|
71
|
+
## Install on Windows
|
|
72
|
+
|
|
73
|
+
See [docs/install-windows.md](docs/install-windows.md).
|
|
74
|
+
|
|
75
|
+
## First run
|
|
76
|
+
|
|
77
|
+
```sh
|
|
78
|
+
cd path/to/your/project
|
|
79
|
+
acp-tui
|
|
80
|
+
```
|
|
81
|
+
|
|
82
|
+
acp-tui starts a session in the directory you launched it from, so choose the directory by where you start it.
|
|
83
|
+
|
|
84
|
+
- Ctrl+D leaves, whatever the prompt box holds. Your session is kept and can be resumed, and an unsent draft is kept with it (Delete deletes forward).
|
|
85
|
+
- `acp-tui -c` continues the last session in this directory; `acp-tui -r` lists sessions to resume.
|
|
86
|
+
- `acp-tui <name>` starts another configured harness. To add one later, run `acp-tui setup`, which lists the harnesses, ticks those it finds installed and enables the ones you choose (`acp-tui setup --harness codex` without the questions); or remove the `//` in front of its line under `agent_servers` in your configuration file yourself (`acp-tui config --path` prints where it is). Every harness needs an entry there.
|
|
87
|
+
- `?` in an empty prompt box opens acp-tui's commands, `/` the harness's, and F1 (Fn+F1 on a Mac) shows the keys.
|
|
88
|
+
- `acp-tui --help` lists the options and `acp-tui --version` says what you run.
|
|
89
|
+
|
|
90
|
+
If the harness is not installed, or you have not logged in, acp-tui says so and what to run. If no harness is enabled yet, plain `acp-tui` asks which to enable (in a terminal; elsewhere it says how); if your configuration file names a default harness that has no entry, it says so and where to copy the entry from.
|
|
91
|
+
|
|
92
|
+
## Using Paseo
|
|
93
|
+
|
|
94
|
+
[Paseo](https://paseo.sh) runs coding agents and shares their sessions between Paseo Desktop, the phone app and acp-tui, so a session started in one can be carried on in another. To run a harness through it (Linux and macOS; Claude Code, Codex, OpenCode, Copilot, pi and Antigravity CLI have a Paseo provider):
|
|
95
|
+
|
|
96
|
+
1. Install Paseo: `npm install -g @getpaseo/cli`, or Paseo Desktop from https://paseo.sh/download.
|
|
97
|
+
2. Install the bridge, [paseo-acp-bridge](https://github.com/FasterPHP/paseo-acp-bridge), from its release 0.2.0: `bun add -g paseo-acp-bridge` (or `npm install -g paseo-acp-bridge`).
|
|
98
|
+
3. Run `acp-tui setup paseo`. It checks Paseo, the bridge and the daemon, then asks for each harness whether it runs directly only, starts its sessions in Paseo, or starts them directly and moves one to Paseo when you want (`Move this session to Paseo`), and writes your choice to your configuration file after a backup.
|
|
99
|
+
|
|
100
|
+
[docs/configuration.md](docs/configuration.md#paseo) describes the settings and what to expect.
|
|
101
|
+
|
|
102
|
+
## Updating
|
|
103
|
+
|
|
104
|
+
From the package, with the tool you installed it with:
|
|
105
|
+
|
|
106
|
+
```sh
|
|
107
|
+
bun update -g acp-tui # or: npm update -g acp-tui
|
|
108
|
+
```
|
|
109
|
+
|
|
110
|
+
From a checkout:
|
|
111
|
+
|
|
112
|
+
```sh
|
|
113
|
+
cd path/to/acp-tui
|
|
114
|
+
bun run update
|
|
115
|
+
```
|
|
116
|
+
|
|
117
|
+
This runs `git pull --ff-only` and then `bun install` if the lock file changed, and says what it did. It refuses a checkout with local changes or one that cannot be fast-forwarded.
|
|
118
|
+
|
|
119
|
+
## Uninstalling
|
|
120
|
+
|
|
121
|
+
From the package, `bun remove -g acp-tui` (or `npm uninstall -g acp-tui`) removes it. From a checkout,
|
|
122
|
+
|
|
123
|
+
```sh
|
|
124
|
+
cd path/to/acp-tui
|
|
125
|
+
bun run install-cli --uninstall
|
|
126
|
+
```
|
|
127
|
+
|
|
128
|
+
removes the command, and deleting the checkout removes the program. Your configuration (`~/.config/acp-tui`) and acp-tui's state (`~/.local/state/acp-tui`: the session index and any crash reports) stay until you delete them.
|
|
129
|
+
|
|
130
|
+
If you have both a package install and a checkout's command, whichever comes first on your `PATH` runs: `acp-tui --version` shows `(package)` for the package and the commit for a checkout. Uninstall the one you do not use.
|
|
131
|
+
|
|
132
|
+
## Feedback
|
|
133
|
+
|
|
134
|
+
The [tester guide](docs/testing.md) says what to try and how to report it. Use the [issue forms](https://github.com/FasterPHP/acp-tui/issues/new/choose) for a bug or for feedback, and attach the output of `acp-tui --version`.
|
|
135
|
+
|
|
136
|
+
## More
|
|
137
|
+
|
|
138
|
+
- [docs/harnesses.md](docs/harnesses.md): notes on particular harnesses
|
|
139
|
+
- [docs/testing.md](docs/testing.md): the tester guide
|
|
140
|
+
- [docs/configuration.md](docs/configuration.md): every setting, themes, glyph sets, keys and layouts
|
|
141
|
+
- [docs/install-windows.md](docs/install-windows.md): Windows
|
|
142
|
+
- [CONTRIBUTING.md](CONTRIBUTING.md) and [CHANGELOG.md](CHANGELOG.md)
|
|
143
|
+
|
|
144
|
+
## Licence
|
|
145
|
+
|
|
146
|
+
Apache-2.0 (see [LICENSE](LICENSE) and [NOTICE](NOTICE)). Copyright 2026 Marcus Don.
|