ccish: Google's Antigravity Agent, Claude Code's Terminal UI
One-line intro: ccish is an open-source command-line tool that launches Google Antigravity CLI (
agy) through the Agent Client Protocol (ACP), then renders the entire session with Claude Code's terminal interface. The agent stays the same; only the interface and keybindings change.
Why build this
Antigravity CLI is Google's terminal programming agent, invoked with agy. I like its underlying agent and the Gemini models, but after spending a long time in Claude Code, switching felt awkward everywhere: how tool calls are displayed, where diffs go, what permission confirmations look like, which key does what — all slightly different. My fingers keep reaching for Claude Code's shortcuts.
Luckily, agy offers a structured interface, agy acp, so there's no need to choose: keep agy's agent, only swap the interface for something resembling Claude Code. Hence ccish (Claude Code-ish).
See it in action
Same task, same prompt: "The tests fail. Find the bug in src/todo.js, fix it, and run the tests again."
Before: agy's own interface
After: ccish agy
Permission confirmation with diff:
Command menu, @ file references and ! shell mode:
What it can do
- Claude Code-style conversation log:
⏺tool calls, collapsed read summaries, inline diffs, collapsed command output, task list,✻status line. - Familiar permission confirmations: asks with diff before modifying files, states what will run before executing commands; select with number keys or arrow keys, Esc to reject. Never auto-approves anything.
- Same keybindings:
/command menu,@reference files,!shell mode, Ctrl+R search history, Shift+Tab switch modes, Ctrl+O expand, Esc interrupt. - Built-in commands:
/model,/effort,/clear,/resume,/rename,/add-dir,/copy,/diff,/tasks,/context. - agy's own commands still work: read-only commands like
/usage,/creditsdisplay results in place; other commands open agy's own interface in the terminal's alternate screen, continuing the current session, and return to ccish on exit. - Doesn't touch your agent: uses the locally installed, logged-in agy; no API key needed, no contact with login credentials, no telemetry.
Installation
npm install -g ccish
ccish agy
Requires Node.js 22 or higher, and an installed, logged-in Antigravity CLI (1.5.18 or above). To keep typing agy, add an alias: alias agy='ccish agy'.
Implementation approach
1. Go through the protocol, don't screen-scrape
The easiest approach is to parse agy's terminal output and re-lay it out, but that's fragile: any interface change breaks everything. ccish only uses the structured interface.
Agent Client Protocol (ACP) is an open protocol proposed by Zed: the client communicates with the agent over JSON-RPC on stdio, and the agent reports what it's doing as structured events, including message fragments, tool calls, diffs, permission requests, and plans. agy exposes this interface via agy acp.
Overall data flow:
agy ⇄ ACP (stdio) ⇄ driver → normalized AgentEvent → session state reducer → Ink interface
UI actions (send / interrupt / approve / switch mode…) → session controller → driver
core/is pure functions: event definitions, session state, capability models; no I/O, and it doesn't know any specific agent;drivers/acp/strictly implements the ACP spec, no per-agent branches;agents/<id>/one profile per agent; the only place agent-specific knowledge is allowed;- The UI uses Ink (React in the terminal).
2. Use profiles to smooth over protocol variance
Real agents rarely follow the spec exactly. Several of agy's deviations are normalized in its profile:
- Tool calls carry non-standard fields
name,args, and parameter names are PascalCase (Path,CommandLine); - Plans don't go through ACP's
plan, but are emitted via anupdate_stepstool; - Diffs in permission requests are just fragments (
Target→Replacement); after completion, the full file is given, requiring re-locating to file line numbers to draw Claude Code-style diffs with line numbers; session/listignorescwd, returning sessions from all directories; the client must filter itself;- Sub-agents are launched via
invoke_subagent; the call is marked complete at launch, and the sub-agent's own steps and completion never pass through ACP.
This way core/ and ui/ only face spec-conformant events; hooking up the next ACP agent basically only requires writing a profile.
3. UI driven by measurement, not impressions
"Like Claude Code" easily becomes "kind of like." ccish measures first: drive a real Claude Code through a set of scenarios with a pseudo-terminal, record the terminal output, replay with xterm-headless, export each character's glyph, color, weight, and column position frame by frame, and compile into a UI spec docs/style-spec.md and machine-readable style-tokens.json.
No component hardcodes any color, glyph, indentation, collapse threshold, or animation duration; everything comes from tokens. Elements not covered by the spec get a measurement scenario added first, then an implementation.
4. Testing
Terminal UIs tend to break in edge cases, so testing is layered:
- Replay tests: record real agy ACP sessions (sanitized and stored), replay and assert event sequences and session states;
- Property tests: generate random edit sequences, Markdown, tool outputs and event streams with fixed seeds, assert invariants: no line exceeds a given width, cursor position matches line layout, no duplicate sends;
- End-to-end acceptance: drive real
ccish agyin a pseudo-terminal, check glyphs, column positions and colors against the UI spec item by item, and verify files are actually modified correctly (currently 314 items all passing); - Monkey tests: a fake agent randomly emitting Markdown, tool calls, permission requests and errors, combined with random typing, pasting and terminal resizing, checking the screen after every step.
5. A few details
/renamesyncs to agy's own records: agy doesn't implement ACP'ssession/set_title. ccish opensagy --conversation <id>in a background pseudo-terminal, types/rename new-nameand/exit, then confirms the rename viasession/list— all invisible to the user.- Terminal tab title: writes the title with OSC 0 like Claude Code, icon alternates during turns, shows
✳when idle. - Chinese input method: the input box uses the terminal's real cursor instead of inverted-character simulation, so IME candidate windows follow the insertion point.
- Desktop notifications: in iTerm2 and Ghostty, sends system notifications when a permission request waits long, or after a turn ends with no activity for a while.
Finally
ccish is an independent open-source project (MIT license), unrelated to Anthropic or Google. Currently only supports agy, but the architecture targets all ACP agents. Welcome to try it, file issues and PRs, and comment on which agent you'd most like it to support next.