Skip to main content

Terminal optimizer CLI for AI-assisted development with Claude Code and Gemini CLI

Project description

aiterm

PyPI CI Python License

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 doctor health 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


๐ŸŽฏ 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:


๐Ÿ“ง 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


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

aiterm_dev-0.6.3.tar.gz (5.5 MB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

aiterm_dev-0.6.3-py3-none-any.whl (143.4 kB view details)

Uploaded Python 3

File details

Details for the file aiterm_dev-0.6.3.tar.gz.

File metadata

  • Download URL: aiterm_dev-0.6.3.tar.gz
  • Upload date:
  • Size: 5.5 MB
  • Tags: Source
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aiterm_dev-0.6.3.tar.gz
Algorithm Hash digest
SHA256 5cec390ed79d5d6e1c23625337f2e049c3a434775b49e68519a8b53540ed6939
MD5 4feb75884b5284272a84ec37f0e99a9c
BLAKE2b-256 c714349bb881db64c5b3757016fcbcbd87bc00ade4732387295a15313c220ecf

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiterm_dev-0.6.3.tar.gz:

Publisher: pypi-release.yml on Data-Wise/aiterm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

File details

Details for the file aiterm_dev-0.6.3-py3-none-any.whl.

File metadata

  • Download URL: aiterm_dev-0.6.3-py3-none-any.whl
  • Upload date:
  • Size: 143.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? Yes
  • Uploaded via: twine/6.1.0 CPython/3.13.7

File hashes

Hashes for aiterm_dev-0.6.3-py3-none-any.whl
Algorithm Hash digest
SHA256 f49f3adeaca2f1d2212b2a0ac44d8f427d09cc410b9e254f8e4b1a394ecc6108
MD5 fe6d84f9f812f1940481483fdc6f7b04
BLAKE2b-256 d87151cc0f7b4692931099d78a190fb3428f65d2f1b97b66d2ca9dae396dd9c5

See more details on using hashes here.

Provenance

The following attestation bundles were made for aiterm_dev-0.6.3-py3-none-any.whl:

Publisher: pypi-release.yml on Data-Wise/aiterm

Attestations: Values shown here reflect the state when the release was signed and may no longer be current.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page