
AI Tools Deep Dive
20 partsTL;DR
Google's Gemini CLI gives you free access to Gemini 2.5 Pro with a 1 million token window. Here is how to use it for TypeScript projects.
Read next
From terminal agents to cloud IDEs - these are the AI coding tools worth using for TypeScript development in 2026.
8 min readClaude Code is Anthropic's terminal-based AI agent that ships code autonomously. Complete guide: install, CLAUDE.md memory, MCP, sub-agents, pricing, and workflows.
6 min readComplete pricing breakdown for every major AI coding tool. Claude Code, Cursor, Copilot, Windsurf, Codex, Augment, and more. Free tiers, pro plans, hidden costs, and what you actually get for your money.
12 min readGoogle shipped an open-source CLI for Gemini and made it free. Not free-tier-with-limits free. Genuinely free - 60 requests per minute, 1,000 requests per day, backed by Gemini 2.5 Pro. The same model that tops coding benchmarks. The same model with a 1 million token context window.
For TypeScript developers, this changes the math on which tools you reach for.
Source check: the official Gemini CLI docs and quota/pricing page list the personal-account free tier at 60 requests per minute and 1,000 requests per day. Use this guide with AI coding tools pricing comparison, Claude Code usage limits, and Aider vs Claude Code if you are deciding which coding CLI should handle which workload.
Gemini CLI is an open-source, terminal-native AI coding agent from Google. Install it globally and run it in any project directory:
For the next layer of context, read Every AI Coding Tool Compared: The 2026 Matrix and The 10 Best AI Coding Tools in 2026; they show how reusable agent knowledge turns one-off wins into repeatable workflow.
npm install -g @google/gemini-cli
# or
npx @google/gemini-cliIt authenticates through your Google account. No API key setup. No billing configuration. Sign in with gemini and you are coding in seconds.
The CLI operates like other agentic coding tools - it reads your files, understands your project structure, generates code, runs commands, and iterates on errors. The difference is the model behind it and the price tag attached to it.
Context window size determines what an AI coding tool can hold in its head at once. Most tools cap out around 128K to 200K tokens. Gemini 2.5 Pro gives you 1 million.
In practical terms, that means you can load an entire TypeScript monorepo into a single session. Not just the file you are working on. Not just the nearby modules. The whole project - every type definition, every utility function, every test file, every configuration.
# Point Gemini at your entire project
gemini
# It can reason across your full codebase in one pass
> Refactor the auth module to use the new token format.
> Update every file that imports from auth/types.ts.
For TypeScript specifically, this matters because the language is inherently cross-referential. Types flow through interfaces, generics propagate across module boundaries, and a change in one type definition can ripple through dozens of files. A model that can see all of those files simultaneously catches issues that a smaller context window misses entirely.
The free tier runs on Gemini 2.5 Pro through Google AI Studio. The limits are generous:
There is no credit card required. No trial period. No degraded model. You get the same Gemini 2.5 Pro that powers Google's paid API, accessed through your personal Google account.
For comparison, Claude Code on the Max plan runs $200/month. Cursor Pro is $20/month. Gemini CLI is $0/month with a context window that dwarfs both.
The better comparison is workload routing, not winner-take-all. Use Gemini CLI when a large repository or long research context would burn paid quota. Use Claude Code when you need mature subagents, hooks, and memory. Use the pricing calculator to sanity-check how those choices compound over a month.
Get the weekly deep dive
Tutorials on Claude Code, AI agents, and dev tools - delivered free every week.
From the archive
Mar 19, 2026 • 5 min read
Mar 19, 2026 • 10 min read
Mar 19, 2026 • 11 min read
Mar 19, 2026 • 5 min read
Gemini CLI picks up your project context automatically. Drop a GEMINI.md file in your project root (similar to CLAUDE.md for Claude Code) and define your conventions:
# GEMINI.md
This is a Next.js 16 project with TypeScript strict mode.
## Conventions
- Use Zod for all runtime validation
- Prefer server components, use "use client" only when necessary
- All API routes return typed responses using shared types from lib/types.ts
- Tests use Vitest with React Testing Library
## Project Structure
- app/ - Next.js App Router pages
- lib/ - Shared utilities and types
- components/ - React components
- convex/ - Backend functions and schema
With this file in place, every Gemini session starts with your project's rules loaded. The CLI reads it automatically on startup.
A typical TypeScript workflow looks like this:
# Start a session in your project
cd ~/Developer/my-app
gemini
# Generate a typed API client from your OpenAPI spec
> Generate a fully typed API client from openapi.yaml.
> Use Zod schemas for runtime validation.
> Export all types from lib/api-types.ts.
# Refactor across the codebase
> Migrate all useState calls in the dashboard to useReducer.
> Keep the same component interfaces.
# Debug type errors
> Fix all TypeScript errors in the project.
> Run tsc --noEmit and resolve each one.
The CLI handles file reads, writes, and shell commands. It will run tsc to check its own work, fix errors, and iterate until the build passes.
Gemini CLI supports the Model Context Protocol. You can connect external tools - databases, APIs, documentation servers - and the CLI will use them as part of its workflow.
// .gemini/settings.json
{
"mcpServers": {
"postgres": {
"command": "npx",
"args": ["-y", "@modelcontextprotocol/server-postgres"],
"env": {
"DATABASE_URL": "postgresql://localhost:5432/mydb"
}
}
}
}
This means you can query your database, fetch documentation, or interact with external services without leaving the Gemini session. The model calls the MCP tools as needed during code generation.
Both are terminal-native AI coding agents. Both read your codebase, generate code, and run commands. The differences come down to model characteristics and pricing.
Context window. Gemini wins here decisively. 1 million tokens vs Claude Code's 200K. For large TypeScript projects, this means fewer sessions where the model loses track of distant dependencies.
Code quality. Claude Sonnet 4.6 and Opus 4.6 produce excellent TypeScript output - strong type inference, idiomatic patterns, minimal hallucination. Gemini 2.5 Pro is competitive but tends to be more verbose in its implementations.
Tool ecosystem. Claude Code has a mature skill system, sub-agents, worktrees, and deep integration with Anthropic's model family. Gemini CLI is newer and still building out its feature set, but MCP support gives it extensibility from day one.
Price. Gemini CLI is free. Claude Code Max is $200/month. If budget is a constraint, this is not a close comparison.
The practical move: use both. Gemini CLI for large-context tasks, exploratory coding, and high-volume iteration where you would burn through a paid quota. Claude Code for precision work, complex refactors, and tasks where Anthropic's models have a quality edge. They are complementary tools, not competitors.
Three steps:
# 1. Install
npm install -g @google/gemini-cli
# 2. Authenticate
gemini
# 3. Start coding
> Scaffold a Next.js 16 app with TypeScript, Tailwind, and Convex.
Add a GEMINI.md to your project root with your conventions. Connect any MCP servers you use. Start building.
For a curated directory of CLI coding tools including Gemini CLI, Claude Code, Codex, and others, check out clis.developersdigest.tech.
Yes. The free tier runs on Gemini 2.5 Pro through Google AI Studio with no credit card required. You get 60 requests per minute and 1,000 requests per day - enough for a full workday of development. There is no trial period or degraded model version.
Gemini CLI has a larger context window (1 million tokens vs 200K) and is free, while Claude Code costs $200/month on the Max plan. Claude Code has a more mature ecosystem with skills, sub-agents, and worktrees. Many developers use both - Gemini for large-context tasks and high-volume iteration, Claude Code for precision work where Anthropic's models have a quality edge.
GEMINI.md is a project configuration file similar to CLAUDE.md for Claude Code. Place it in your project root to define coding conventions, project structure, and rules. The CLI reads it automatically on startup. It is optional but recommended for consistent output.
Yes. Configure MCP servers in .gemini/settings.json to connect databases, APIs, documentation servers, and other external tools. The CLI calls MCP tools as needed during code generation.
Yes. It reads files, writes code, runs shell commands, and iterates on errors. It will run tsc to check its own TypeScript output, fix type errors, and continue until the build passes.
TypeScript is inherently cross-referential - types flow through interfaces, generics propagate across modules, and changes ripple through many files. A 1 million token window lets the model see your entire codebase simultaneously, catching issues that smaller context windows miss entirely.
Run gemini in your terminal and follow the Google account sign-in flow. No API key setup or billing configuration required. Authentication happens through your personal Google account.
Yes. If you need higher rate limits or want to use a paid tier, you can configure your own Google AI Studio API key. The free tier limits are generous enough for most individual developers.
Technical content at the intersection of AI and development. Building with AI agents, Claude Code, and modern dev tools - then showing you exactly how it works.
Google's open-source coding CLI. Free tier with Gemini 2.5 Pro. Supports tool use, file editing, shell commands. 1M toke...
View ToolGoogle's frontier model family. Gemini 2.5 Pro has 1M token context and top-tier coding benchmarks. Gemini 3 Pro pushes...
View ToolOpen-source AI pair programming in your terminal. Works with any LLM - Claude, GPT, Gemini, local models. Git-aware ed...
View ToolAI coding assistant with deep codebase context. Indexes your entire repo graph for accurate answers. VS Code and JetBrai...
View ToolOne control panel for Claude Code, Codex, Gemini, Cursor, and 10+ AI coding harnesses. Desktop app for Mac.
Open AppAI-powered video clipping with smart moment detection.
Open AppSearchable directory of 65+ MCP servers with install commands.
Open AppClickable PR link in the footer with review state color coding.
Claude CodeInstall the dd CLI and scaffold your first AI-powered app in under a minute.
Getting StartedInstall Ollama and LM Studio, pull your first model, and run AI locally for coding, chat, and automation - with zero cloud dependency.
Getting Started
From terminal agents to cloud IDEs - these are the AI coding tools worth using for TypeScript development in 2026.

Claude Code is Anthropic's terminal-based AI agent that ships code autonomously. Complete guide: install, CLAUDE.md memo...

Complete pricing breakdown for every major AI coding tool. Claude Code, Cursor, Copilot, Windsurf, Codex, Augment, and m...

A practical guide to using Claude Code in Next.js projects. CLAUDE.md config for App Router, common workflows, sub-agent...

12 AI coding tools across 4 architecture types, compared on pricing, strengths, weaknesses, and best use cases. The defi...

Aider is open source and works with any model. Claude Code is Anthropic's commercial agent. Here is how they compare for...

New tutorials, open-source projects, and deep dives on coding agents - delivered weekly.