A lot of coding assistant tools live in browser tabs or heavy extensions. If you do most of your data engineering work in the terminal, switching contexts between your shell and a web UI gets tedious quickly.
Google released a tool called Antigravity CLI (agy). It is a terminal user interface (TUI) that brings multi-step agentic capabilities directly into your local shell session. When configured with the latest Gemini Flash model, it runs tool calls with minimal latency, making it practical for rapid scripting, code refactoring, and prototype building.
Thanks for reading Data Bytes! Subscribe for free to receive new posts and support my work.
In this guide, we will walk through:
Installing and configuring
agyWhy low latency matters in terminal agent loops
Building a BigQuery Release Notes tracker from scratch
Extending the app and using
agyto create GitHub issues automaticallyTroubleshooting and common permission gotchas
Why Latency Matters in CLI Workflows
When an agent runs in your terminal, it doesn’t just return a single block of text. It runs in a multi-turn tool loop:
Inspect Directory ➔ Fetch Feed URL ➔ Read File ➔ Formulate Plan ➔ Write Code ➔ Run Test ➔ Iterate
If each step takes ten to fifteen seconds of model processing time, the entire workflow grinds to a halt. Gemini Flash models offer fast token generation and quick tool dispatch, which keeps this loop moving without long pauses.
1. Installation and Initial Login
You can install agy directly from your command line.
macOS and Linux
curl -fsSL https://antigravity.google/cli/install.sh | bash
Windows (PowerShell)
irm https://antigravity.google/cli/install.ps1 | iex
If the installer warns that the binary path is missing from your environment, add it to your shell profile:
echo ‘export PATH=”$HOME/.local/bin:$PATH”’ >> ~/.zshrc && source ~/.zshrc
Verify that the CLI is ready:
agy --version
Starting the CLI and Authenticating
Create a project directory and start the tool:
mkdir -p ~/agy-cli-projects/bq-release-notes
cd ~/agy-cli-projects/bq-release-notes
agy
On your first run, you will see a prompt to log in:
Select 1. Google OAuth.
Complete the login in your browser and copy the confirmation code back to the terminal.
Select your preferred color scheme.
When asked “Do you trust the contents of this project?” , select Yes, I trust this folder. This grants
agypermission to read and modify files in that specific directory.
2. Key Commands and Settings
Once inside the interactive prompt, you can use several built-in commands:
/config: Opens the settings interface. You can adjust review prompts, verbosity, telemetry, and color themes./model: Shows or changes the active model. You can also start the CLI with a specific model directly from your shell:
agy --model “Gemini 3.5 Flash (Medium)”
-
!(Shell Mode): Pressing!at an empty prompt toggles raw shell mode. This lets you run commands likegit status,ls, orpip listwithout exitingagy. PressESCto return to agent mode.
3. Hands-On Project: BigQuery Release Notes App
To see how agy works, we will build a Python Flask app that pulls the BigQuery release notes XML feed (https://docs.cloud.google.com/feeds/bigquery-release-notes.xml) and displays updates in a clean web interface.
The Initial Prompt
Enter this prompt into agy:
Please build a web application using Python Flask and plain HTML, JavaScript, and CSS.
The app should fetch the BigQuery Release notes XML feed from:
https://docs.cloud.google.com/feeds/bigquery-release-notes.xml
Requirements:
1. Parse the feed items (title, date, categories, content summary).
2. Display them on a clean webpage with a refresh button.
3. Include a button on each entry to compose a short tweet or summary.
What Happens Behind the Scenes
Instead of dumping raw code straight into the terminal, agy performs several steps:
Workspace Inspection : It runs
ListDirto check for existing files.Feed Fetching : It calls
ReadURLto inspect the XML structure of the BigQuery feed.Artifact Generation : It writes a structured plan to an artifact file called
implementation_plan.md.
In the terminal, you will see an indicator:
● ListDir(/Users/username/agy-cli-projects/bq-release-notes)
● ReadURL(https://docs.cloud.google.com/feeds/bigquery-release-notes.xml)
● Create(.../implementation_plan.md)
1 artifact · /artifact to review
Reviewing Artifacts
Type /artifact to open the built-in artifact viewer.
Artifacts are dedicated markdown documents created during the session. They separate planning and documentation from chat output. In this case, implementation_plan.md outlines:
How the XML feed will be parsed using Python’s
feedparserorxml.etree.ElementTree.The Flask endpoint structure (
/and/api/releases).The frontend layout in
templates/index.htmlandstatic/.
Press ESC to close the viewer, then confirm approval in the prompt.
Generated Project Structure
Once approved, agy creates the project structure:
requirements.txt(flask,feedparser,requests)app.pytemplates/index.htmlstatic/style.cssstatic/app.js
Here is an example of the parsing logic generated in app.py:
from flask import Flask, render_template, jsonify
import feedparser
app = Flask( __name__ )
FEED_URL = “https://docs.cloud.google.com/feeds/bigquery-release-notes.xml”
@app.route(”/”)
def index():
return render_template(“index.html”)
@app.route(”/api/releases”)
def get_releases():
feed = feedparser.parse(FEED_URL)
releases = []
for entry in feed.entries:
releases.append({
“title”: entry.get(“title”, “No Title”),
“link”: entry.get(“link”, “”),
“published”: entry.get(“published”, “”),
“summary”: entry.get(“summary”, “”)
})
return jsonify(releases)
if __name__ == “ __main__ ”:
app.run(debug=True, port=5000)
Run the application:
python3 -m venv venv
source venv/bin/activate
pip install -r requirements.txt
python app.py
Opening
displays the release notes formatted into individual cards, complete with dates, category badges, and quick social sharing buttons.
4. Extending Features and Automating GitHub Issues
Once the base app is running, you can iterate on it directly from the CLI.
Adding New Functionality
Prompt agy to add utility features:
Add two features to the app:
1. A "Copy Link" button on each release card.
2. An "Export to CSV" button in the navigation bar to download all loaded releases.
3. A toggle in the top navbar that switches between Dark and Light mode.
agy identifies the relevant sections in templates/index.html and static/app.js, applies targeted diffs, and keeps the rest of the files untouched.
Pushing to GitHub
You can use agy alongside the GitHub CLI (gh):
Create a sensible .gitignore file for Python, initialize git, and push this to a new repo called bq-release-tracker under my GitHub account using the gh CLI.
agy writes .gitignore, runs git init, creates the initial commit, and runs gh repo create to push the repository.
Asking agy to Suggest Improvements and Create GitHub Issues
Here is where agentic workflows get particularly handy. You can ask agy to analyze the current codebase, suggest realistic UX and architecture improvements, and file them as trackable issues on GitHub.
Enter this prompt:
Review our current application code and suggest 3 concrete feature or UX improvements.
Once I approve them, use the gh CLI to file each improvement as an issue in our GitHub repository with a clear description and acceptance criteria.
agy examines the code and returns proposed improvements, such as:
Client-side Search and Tag Filtering : Allowing users to filter updates by keywords (e.g., “SQL”, “Storage”, “Pricing”).
Local Caching Layer : Adding an in-memory or Redis cache for the XML feed to prevent rate-limiting Google’s servers on repeated page refreshes.
RSS Feed Poller and Desktop Alerts : A background worker that checks for new releases hourly and emits desktop notifications.
Once you confirm, agy executes the gh commands automatically:
gh issue create --title “Feature: Client-side keyword and tag filtering” --body “### Description\nAdd an instant search filter input to the header...\n\n### Acceptance Criteria\n- [] Filter cards by keyword in real time\n- [] Filter by category tag”
gh issue create --title “Perf: Add caching for XML feed parsing” --body “### Description\nCache the parsed feed responses for 15 minutes...\n\n### Acceptance Criteria\n- [] Add TTL cache to /api/releases route\n- [] Fallback to cached copy on network error”
gh issue create --title “Feature: Webhook / Email digest notifications” --body “### Description\nAllow users to subscribe to weekly summary emails...\n\n### Acceptance Criteria\n- [] Scheduled check for new entries\n- [] Send digest payload”
You now have active issues populated in your GitHub repository without having to leave the terminal.
5. Troubleshooting & Gotchas
Here are a few common issues and how to handle them:
Missing agy in PATH
If running agy returns command not found, the installer binary directory (~/.local/bin) is not in your current shell’s PATH.
Run
export PATH="$HOME/.local/bin:$PATH"Add that line to your
~/.bashrcor~/.zshrcfile to persist it across new terminal tabs.
Permission Prompts and Sandbox Mode
By default, agy asks for explicit approval before creating files, modifying code, or running shell commands.
- If you are building inside an isolated scratch directory and want the agent to execute commands without confirmation prompts, you can start with:
agy --dangerously-skip-permissions
- Only use this flag in isolated local projects, never in sensitive root or production directories.
Authentication Failures
If OAuth credentials expire or fail to refresh:
Run
/quitto exitagy.Delete cached token files located in
~/.gemini/antigravity-cli/if necessary.Restart
agyand choose 1. Google OAuth to re-authenticate.
Switching Models Mid-Session
If you want to verify which model is active or switch between Flash and Pro variants:
Type
/modelto view available options.Pass
--model "Gemini 3.5 Flash (Medium)"at startup to ensure consistent latency across large tool-calling tasks.
Summary
Antigravity CLI brings multi-step agentic tools directly to the command line where developers already spend their time. Pairing the CLI with Gemini Flash keeps tool execution fast, while the Artifacts workflow keeps code changes organized and easy to review.
Try spinning up agy in your next project or using it to scaffold your data ingestion workflows.
Thanks for reading Data Bytes! Subscribe for free to receive new posts and support my work.

Top comments (0)