Terminal Optimizer for AI-Assisted Development
Optimize your terminal (iTerm2+) for AI coding with Claude Code and Gemini CLI. Manage profiles, contexts, hooks, commands, and auto-approvals from one powerful CLI.
curl -fsSL https://raw.githubusercontent.com/Data-Wise/aiterm/main/install.sh | bashbrew install data-wise/tap/aitermpip install aiterm-devuv tool install aiterm-devpipx install aiterm-devpip install git+https://github.com/Data-Wise/aiterm| Method | Command | Platform | Best For |
|---|---|---|---|
| curl | curl -fsSL .../install.sh | bash |
All | One-liner |
| Homebrew | brew install data-wise/tap/aiterm |
macOS | Mac users |
| uv | uv tool install aiterm-dev |
All | Speed |
| pipx | pipx install aiterm-dev |
All | Isolation |
| pip | pip install aiterm-dev |
All | Quick install |
| Source | pip install git+... |
All | Latest dev |
# Check your setup
ait doctor
# Detect project context
ait detect
# View Claude Code settings
ait claude settingsaiterm makes your terminal intelligent for AI-assisted development:
Supports 6 terminals with feature-specific integrations:
| Terminal | Profiles | Themes | Config | Title |
|---|---|---|---|---|
| iTerm2 | β | β | β | β |
| Ghostty | - | β (14) | β | β |
| Kitty | - | β | β | β |
| Alacritty | - | β | β | β |
| WezTerm | β | β | β | β |
| Terminal.app | - | - | - | β |
Automatically switch terminal colors and titles based on your project:
| Context | Icon | Profile | Triggered By |
|---|---|---|---|
| Production | π¨ | Red theme | */production/* path |
| AI Sessions | π€ | Purple theme | */claude-sessions/* |
| R Packages | π¦ | Blue theme | DESCRIPTION file |
| Python | π | Green theme | pyproject.toml |
| Node.js | π¦ | Dark theme | package.json |
| Quarto | π | Blue theme | _quarto.yml |
- Manage hooks (session-start, pre-commit, cost-tracker)
- Install command templates (/recap, /next, /focus)
- Configure auto-approvals (safe-reads, git-ops, dev-tools)
- Control MCP servers
Build custom status bars with:
- Project icon & name
- Git branch + dirty indicator
- API quota tracking
- Time in context
- Custom components
- Multi-Terminal Support - 6 terminals (iTerm2, Ghostty, Kitty, Alacritty, WezTerm, Terminal.app)
- Ghostty Integration - Config management, 14 themes, font settings
- Context Detection - 8 project types with auto-switching
- iTerm2 Integration - Profiles, titles, user variables
- Claude Code Settings - View, backup, manage approvals
- IDE Integrations - VS Code, Cursor, Zed, Positron, Windsurf
- Session Coordination - Track active Claude Code sessions
- Auto-Approval Presets - 8 ready-to-use presets
- Diagnostics -
aiterm doctorhealth checks
# Core commands
ait --version # Show version
ait doctor # Health check
ait detect # Detect project context
ait switch # Apply context to terminal
# Context detection
ait context detect # Show project type, git info
ait context apply # Apply to iTerm2
# Claude Code settings
ait claude settings # Show settings
ait claude backup # Backup settings
# Auto-approvals
ait claude approvals list # List permissions
ait claude approvals presets # Show 8 presets
ait claude approvals add <preset> # Add preset- Hook Management - List, install, validate hooks
- Command Templates - Browse and install command templates
- MCP Server Integration - List, test, validate MCP servers
- Documentation Helpers - Validate docs, test code examples
- OpenCode Integration - Configuration management
- Gemini CLI Support - Basic integration
- Workflow templates and recipes
- Craft plugin management
- Session-aware workflows
See IDEAS.md for full roadmap.
aiterm/
βββ Core Library # Business logic, testable
βββ CLI Layer # Typer commands
βββ Templates # Profiles, hooks, commands
- Language: Python 3.10+
- CLI: Typer (modern, type-safe)
- Output: Rich (beautiful tables, colors)
- Testing: pytest
- Distribution: uv/pipx/PyPI
- IDEAS.md - Feature brainstorm & roadmap
- ROADMAP.md - Week 1 MVP plan (day-by-day)
- ARCHITECTURE.md - Technical design
- CLAUDE.md - Guidance for Claude Code
- CHANGELOG.md - Version history
cd ~/projects/r-packages/medfit
# Terminal switches to R-Dev profile (blue)
# Title shows: π¦ medfit (main)
# Status bar shows quota usageaiterm claude approvals add-preset safe-reads
aiterm claude hooks install session-start
aiterm context history # See where you've been today# Automatic profile switching as you navigate
cd ~/production/app # β Red theme, production warnings
cd ~/claude-sessions/ # β Purple theme, AI optimized
cd ~/projects/research/ # β Default theme, research context# Clone repo
git clone https://github.com/Data-Wise/aiterm.git
cd aiterm
# Set up environment (using uv - recommended)
uv venv
source .venv/bin/activate
uv pip install -e ".[dev]"
# Or traditional pip
python3 -m venv .venv && source .venv/bin/activate
pip install -e ".[dev]"
# Run tests
pytest
# Try CLI
aiterm --helpVersion: 0.2.1 Tests: 55 passing Status: Released on Homebrew & PyPI
See CHANGELOG.md for version history.
v2.5.0 (Dec 15, 2024): aiterm
- zsh-based terminal integration
- 8 context types
- iTerm2 status bar support
- Comprehensive test suite (15 tests)
v3.0.0 (Dec 15, 2024): Pivot to aiterm
- Python CLI architecture
- Claude Code deep integration
- Multi-tool support (Gemini)
- Expandable plugin system
Not accepting external contributions yet (MVP phase). Check back at v1.0!
Target for public release:
- Multi-terminal support
- Documentation site
- PyPI + uv/pipx distribution
- Community templates
MIT License - See LICENSE for details
Built for AI-assisted development workflows with:
- Claude Code - Anthropic's CLI tool
- Gemini CLI - Google's AI CLI
- iTerm2 - macOS terminal emulator
Author: DT Project: Part of the Data-Wise development toolkit Repo: https://github.com/Data-Wise/aiterm
Status: β
v0.2.1 Released
Install: brew install data-wise/tap/aiterm or pip install aiterm-dev
Docs: https://data-wise.github.io/aiterm/