To help you launch Antigravity CLI quickly, you can alias agy to just a.
To set this up, add this line to your shell config file (such as ~/.zshrc or ~/.bashrc):
alias a='agy'
I personally like to set up aliases for other tools I use often too, not just Antigravity. For example:
alias gb='github' # GitHub Desktop
alias co='code' # VS Code
You can customize the status line at the bottom of Antigravity CLI to show useful info (see the official docs). For example, I built this script that shows the model, current directory, git branch, uncommitted file count, sync status with origin, and a visual progress bar for token usage:
Claude Opus 4.6 (Thinking) | đantigravity-cli-tips | đmain (scripts/color-preview.sh uncommitted, synced 14m ago) | ââââââââââ 15% of 250k tokens
To set this up:
mkdir -p ~/.gemini/antigravity-cli
curl -o ~/.gemini/antigravity-cli/statusline.sh https://raw.githubusercontent.com/ykdojo/antigravity-cli-tips/main/scripts/context-bar.sh
chmod +x ~/.gemini/antigravity-cli/statusline.sh
~/.gemini/antigravity-cli/settings.json:
{
"statusLine": {
"type": "command",
"command": "~/.gemini/antigravity-cli/statusline.sh"
}
}
The script supports 10 color themes (orange, blue, teal, green, lavender, rose, gold, slate, cyan, or gray). Edit the COLOR variable at the top of the script to change it.

It also adapts to narrow terminals by wrapping at natural breakpoints instead of getting cut off:
Claude Opus 4.6 (Thinking) | đantigravity-cli-tips
| đmain (scripts/context-bar.sh uncommitted, synced 11m ago)
| ââââââââââ 0% of 250k tokens
I find it convenient to start Antigravity CLI from a single parent folder that contains my projects. That way, the agent automatically has access to any directory within it.
For example, I use a folder like this:
~/Desktop/antigravity-projects $
With my projects inside it, I can say things like âcreate a new project here,â âclone a new project here,â or âlook at project A and apply certain features to project Bâ - all without extra permission prompts.
AGENTS.md is a file you place in your project root to give Antigravity CLI persistent instructions. Anything you write in it gets included in every prompt within that directory. Itâs great for things like coding conventions, project-specific rules, or how you want the agent to behave in general.
If you also use Claude Code, you can symlink CLAUDE.md to point to the same file so both tools share the same instructions:
ln -s AGENTS.md CLAUDE.md
You can also set up a global AGENTS.md at ~/.gemini/AGENTS.md for instructions that apply across all projects.
I found that you can communicate much faster with your voice than typing with your hands. Using a voice transcription system on your local machine is really helpful for this.
On my Mac, Iâve tried a few different options:
You can get more accuracy by using a hosted service, but I found that a local model is strong enough for this purpose. Even when there are mistakes or typos in the transcription, the AI is smart enough to understand what youâre trying to say. Sometimes you need to say certain things extra clearly, but overall local models work well enough.
I think the best way to think about this is like youâre trying to communicate with your friend. Of course, you can communicate through texts. But if you want to communicate faster, why wouldnât you get on a quick phone call? You can just send voice messages. Itâs faster, at least for me.
A common objection is âwhat if youâre in a room with other people?â In that case, I just whisper using earphones - I personally like Apple EarPods (not AirPods). Theyâre affordable, high quality enough, and you just whisper into them quietly. Iâve done it in front of other people and it works fine. In offices, people talk anyway - instead of talking to coworkers, youâre talking quietly to your voice transcription system. This method works so well that it even works on a plane. Itâs loud enough that other people wonât hear you, but if you speak close enough to the mic, your local model can still understand what youâre saying.
One way to verify its output if itâs code is to have it write tests and make sure the tests look good and donât just hardcode true. Thatâs one way, but you can of course check the code it generates as it goes. You can also use a visual Git client like GitHub Desktop for checking changes quickly. And having it generate a PR is a great way as well - have it create a draft PR, check the content before marking it as ready for review.
In addition, you can set up different ways for the agent to test your code in different formats. For example, if youâre building a web app, you can set up Playwright MCP and itâll be able to use the browser to test your app all on its own. To set it up, add this to ~/.gemini/config/mcp_config.json:
{
"mcpServers": {
"playwright": {
"command": "npx",
"args": [
"-y",
"@playwright/mcp"
]
}
}
}
With this, the agent gets browser automation tools like browser_navigate, browser_click, and browser_take_screenshot, so it can open your app, interact with it, and visually check the result on its own.
For example, you can create a draft PR through the gh command, and once itâs created, you can ask the agent to open it in your browser with the open command so you can review it yourself. If you have a change you want to check quickly or fix manually, you can use the code command to open it in VS Code, or use the github command to open GitHub Desktop and see a visual diff. You can use ffmpeg for quick video editing, or ImageMagick for quick image editing and conversion. There are a lot of things you can do if youâre familiar with these CLI tools.
You can attach an image from your clipboard to your prompt by simply pressing Ctrl+V.
Sometimes you want to give Antigravity CLI a bunch of text from a webpage or terminal output. You can give it a URL, but another method is to just select all (Cmd+A on Mac, Ctrl+A on Windows/Linux), copy, and paste it directly into the CLI.
Some pages donât lend themselves well to select all by default - but there are tricks to get them into a better state first. For example, with Gmail threads, click Print All to get the print preview (but cancel the actual print). For YouTube videos, click âShow transcriptâ and then Cmd+A or Ctrl+A.
Itâs convenient to keep a to-do list or project status in your AGENTS.md file. Since the agent reads it with every prompt, you can just ask âwhatâs on the to-do list?â and itâll know exactly where things stand. You can also ask it to update the list as you make progress.
For example, you might have a section like this in your AGENTS.md:
## To-Do
### Done
- [x] Unity 3D URP project scaffold
- [x] Card hand UI with 7 cards at bottom of screen
- [x] Card hover effect (scale + blue outline highlight)
- [x] Card drag with placeholder in hand
### Up Next
- [ ] 3D world view - camera at an angled perspective looking down at a game field/board
Then you can just ask âwhat do we have for the to-do listâ and itâll give you a summary of whatâs done and whatâs next.
By default, Antigravity CLI auto-allows reading and writing files inside your current project directory. But if you ask it to access files in a different directory, itâll prompt you for permission every time.
You can fix this by adding those directories to the allow list in your ~/.gemini/antigravity-cli/settings.json (see the official docs):
{
"permissions": {
"allow": [
"read_file(/Users/yk/Desktop/projects/massive-coop-roguelike)"
]
}
}
Path matching is recursive, so allowing a directory covers all files and folders inside it. If you also want write access, add write_file too - and write_file implies read_file, so you donât need both for the same path.
This also comes up when the agent edits its own config. For example, setting up an MCP server writes to ~/.gemini/config/mcp_config.json, which is outside your workspace, so it triggers a permission prompt. You can pre-allow it the same way:
{
"permissions": {
"allow": [
"write_file(/Users/yk/.gemini/config/mcp_config.json)"
]
}
}
When you want to tell Antigravity CLI about files in a different folder, use realpath to get the full absolute path:
realpath some/relative/path
Then paste that absolute path into your prompt so it knows exactly where to look.
If youâre working in an isolated environment - like a container, a VM, or a dedicated test machine - where youâre okay with the agent doing anything without asking, you can launch Antigravity CLI with:
agy --dangerously-skip-permissions
This auto-approves all tool permission requests without prompting.
For convenience, you can even add an alias like in Tip 0:
alias ad='agy --dangerously-skip-permissions'
Two ways to pick up where you left off:
agy -c (or --continue) continues the most recent conversation/resume inside a session opens an interactive picker of your past conversations
Itâs common to over-rely on agents like Antigravity to generate code, but itâs just as important to use them for the other parts of the software development lifecycle: understanding issues, designing solutions, reviewing PRs, and testing.
I made a video about this for the Google Cloud Tech YouTube channel, and thereâs also a blog post version in this repo: