Terminal optimizer CLI for AI-assisted development with Claude Code and Gemini CLI
Project description
aiterm
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.
๐ Installation
Quick Install (Auto-detects best method)
curl -fsSL https://raw.githubusercontent.com/Data-Wise/aiterm/main/install.sh | bash
macOS (Homebrew - Recommended)
brew install data-wise/tap/aiterm
Cross-Platform (PyPI)
pip install aiterm-dev
Using uv (fastest)
uv tool install aiterm-dev
Using pipx
pipx install aiterm-dev
From Source
pip install git+https://github.com/Data-Wise/aiterm
Installation Methods Comparison
| 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 |
๐ฏ Quick Start
# Check your setup
ait doctor
# Detect project context
ait detect
# View Claude Code settings
ait claude settings
โจ What It Does
aiterm makes your terminal intelligent for AI-assisted development:
๐ฅ๏ธ Multi-Terminal Support (NEW in v0.3.9)
Supports 6 terminals with feature-specific integrations:
| Terminal | Profiles | Themes | Config | Title |
|---|---|---|---|---|
| iTerm2 | โ | โ | โ | โ |
| Ghostty | - | โ (14) | โ | โ |
| Kitty | - | โ | โ | โ |
| Alacritty | - | โ | โ | โ |
| WezTerm | โ | โ | โ | โ |
| Terminal.app | - | - | - | โ |
๐จ Context-Aware Profiles
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 |
๐ ๏ธ Claude Code Integration
- 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
๐ Status Bar Customization
Build custom status bars with:
- Project icon & name
- Git branch + dirty indicator
- API quota tracking
- Time in context
- Custom components
๐ก Features
Implemented (v0.3.9)
- 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
CLI Commands
# 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
Also Available
- 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
Coming Soon (v0.4+)
- Workflow templates and recipes
- Craft plugin management
- Session-aware workflows
See IDEAS.md for full roadmap.
๐๏ธ Architecture
CLI-First Design
aiterm/
โโโ Core Library # Business logic, testable
โโโ CLI Layer # Typer commands
โโโ Templates # Profiles, hooks, commands
Tech Stack
- Language: Python 3.10+
- CLI: Typer (modern, type-safe)
- Output: Rich (beautiful tables, colors)
- Testing: pytest
- Distribution: uv/pipx/PyPI
๐ Documentation
- 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
๐ฏ Use Cases
For R Developers
cd ~/projects/r-packages/medfit
# Terminal switches to R-Dev profile (blue)
# Title shows: ๐ฆ medfit (main)
# Status bar shows quota usage
For AI Power Users
aiterm claude approvals add-preset safe-reads
aiterm claude hooks install session-start
aiterm context history # See where you've been today
For Multi-Project Workflows
# 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
๐ง Development
Setup
# 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 --help
Project Status
Version: 0.2.1 Tests: 55 passing Status: Released on Homebrew & PyPI
See CHANGELOG.md for version history.
๐ 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
๐ค Contributing
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
๐ License
MIT License - See LICENSE for details
๐ Acknowledgments
Built for AI-assisted development workflows with:
- Claude Code - Anthropic's CLI tool
- Gemini CLI - Google's AI CLI
- iTerm2 - macOS terminal emulator
๐ง Contact
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/
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file aiterm_dev-0.3.11.tar.gz.
File metadata
- Download URL: aiterm_dev-0.3.11.tar.gz
- Upload date:
- Size: 910.6 kB
- Tags: Source
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
bd9c836565d5bc91ba5ba04acfff1ec58ee58670fed0d3c77a4375bc7ac23594
|
|
| MD5 |
f435f45d8af5768f0d0c1caa18ffbf08
|
|
| BLAKE2b-256 |
192759dd238eda313b0221b6d5d8054d6a31aff89f309e94980b033bb96e087f
|
Provenance
The following attestation bundles were made for aiterm_dev-0.3.11.tar.gz:
Publisher:
workflow.yml on Data-Wise/aiterm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiterm_dev-0.3.11.tar.gz -
Subject digest:
bd9c836565d5bc91ba5ba04acfff1ec58ee58670fed0d3c77a4375bc7ac23594 - Sigstore transparency entry: 782039720
- Sigstore integration time:
-
Permalink:
Data-Wise/aiterm@ef2b953b1e89da6e4cd0030341380b6f6c537c30 -
Branch / Tag:
refs/tags/v0.3.11 - Owner: https://github.com/Data-Wise
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@ef2b953b1e89da6e4cd0030341380b6f6c537c30 -
Trigger Event:
release
-
Statement type:
File details
Details for the file aiterm_dev-0.3.11-py3-none-any.whl.
File metadata
- Download URL: aiterm_dev-0.3.11-py3-none-any.whl
- Upload date:
- Size: 103.8 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? Yes
- Uploaded via: twine/6.1.0 CPython/3.13.7
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
5159174bf1ce17281d330ff52b18cd57f03f0a6dbce3ade9a7137c6b0e3793ec
|
|
| MD5 |
d80b79147098b6ea90a221ca6efa443d
|
|
| BLAKE2b-256 |
3c9761dc3e766d1aadb837652e2f3a4bf5de5ce9b26789d620618660bc119973
|
Provenance
The following attestation bundles were made for aiterm_dev-0.3.11-py3-none-any.whl:
Publisher:
workflow.yml on Data-Wise/aiterm
-
Statement:
-
Statement type:
https://in-toto.io/Statement/v1 -
Predicate type:
https://docs.pypi.org/attestations/publish/v1 -
Subject name:
aiterm_dev-0.3.11-py3-none-any.whl -
Subject digest:
5159174bf1ce17281d330ff52b18cd57f03f0a6dbce3ade9a7137c6b0e3793ec - Sigstore transparency entry: 782039721
- Sigstore integration time:
-
Permalink:
Data-Wise/aiterm@ef2b953b1e89da6e4cd0030341380b6f6c537c30 -
Branch / Tag:
refs/tags/v0.3.11 - Owner: https://github.com/Data-Wise
-
Access:
public
-
Token Issuer:
https://token.actions.githubusercontent.com -
Runner Environment:
github-hosted -
Publication workflow:
workflow.yml@ef2b953b1e89da6e4cd0030341380b6f6c537c30 -
Trigger Event:
release
-
Statement type: