跪拜 Guibai
← Back to the summary

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

before-agy.gif

After: ccish agy

after-ccish.gif

Permission confirmation with diff:

permissions.gif

Command menu, @ file references and ! shell mode:

commands.gif

What it can do

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

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:

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:

5. A few details

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.

GitHub: https://github.com/JasonWu1111/ccish