Skip to main content

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

macOS (Recommended)

# Install from Homebrew tap
brew install data-wise/tap/aiterm

# Update to latest version
brew upgrade aiterm

All Platforms (uv - fastest)

# Install uv first (if needed)
curl -LsSf https://astral.sh/uv/install.sh | sh

# Install aiterm globally
uv tool install aiterm                    # from PyPI (after publish)
uv tool install git+https://github.com/Data-Wise/aiterm

Alternative: pipx

# Install pipx first (if needed)
brew install pipx && pipx ensurepath

# Install aiterm globally
pipx install aiterm                       # from PyPI (after publish)
pipx install git+https://github.com/Data-Wise/aiterm

From source (development)

git clone https://github.com/Data-Wise/aiterm.git
cd aiterm
uv tool install .                         # or: pip install -e .

Installation Methods Comparison

Method Platform Speed Updates Best For
Homebrew macOS Fast brew upgrade Mac users (recommended)
uv All Fastest uv tool upgrade All platforms
pipx All Fast pipx upgrade Python developers
Source All Slow git pull Contributors

🎯 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:

🎨 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.1.0-dev)

  • Context Detection - 8 project types with auto-switching
  • iTerm2 Integration - Profiles, titles, user variables
  • Claude Code Settings - View, backup, manage approvals
  • Auto-Approval Presets - 8 ready-to-use presets
  • Diagnostics - aiterm doctor health checks
  • Short Aliases - ait for quick access

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

Coming Soon (v0.2+)

  • Hook management system
  • Command template library
  • MCP server integration
  • Gemini CLI support

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.1.0-dev (95% complete) Tests: 51 passing, 83% coverage Status: Active development

See ROADMAP.md for current progress.


📜 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: 🚧 Active Development (95% complete) Tests: 51 passing, 83% coverage See: ROADMAP.md for current tasks

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.2.1.tar.gz (661.9 kB 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.2.1-py3-none-any.whl (41.4 kB view details)

Uploaded Python 3

File details

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

File metadata

  • Download URL: aiterm_dev-0.2.1.tar.gz
  • Upload date:
  • Size: 661.9 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for aiterm_dev-0.2.1.tar.gz
Algorithm Hash digest
SHA256 fafdb07408118930ee303f6c8e4c164d24f1fab94a281cf5f17eee83392e925e
MD5 8711cd13ea25339e26125c8e51ecfe15
BLAKE2b-256 a7096251b93f6dea5e5c3a9818ff2b0f6ca6b15652627d7d08df412bb91469c1

See more details on using hashes here.

File details

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

File metadata

  • Download URL: aiterm_dev-0.2.1-py3-none-any.whl
  • Upload date:
  • Size: 41.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.2

File hashes

Hashes for aiterm_dev-0.2.1-py3-none-any.whl
Algorithm Hash digest
SHA256 d23d6f338a19b2478c7f0b74f9f0e75634c4e97bf78530dbc18ea2e4587c0d9a
MD5 c6c354242db0918018f5a929c79fc845
BLAKE2b-256 514b967ff5b33b50e97578d72dffc05447148c25df957537a70d7e0770903e8c

See more details on using hashes here.

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