An open API service indexing awesome lists of open source software.

https://github.com/coding-hui/ai-terminal

AI-Terminal is an advanced AI-powered CLI that enhances terminal workflows through AI-driven automation and optimization.
https://github.com/coding-hui/ai-terminal

agent ai go gpt gpt-cli llm terminal

Last synced: 8 months ago
JSON representation

AI-Terminal is an advanced AI-powered CLI that enhances terminal workflows through AI-driven automation and optimization.

Awesome Lists containing this project

README

          

# AI-Terminal

[πŸ‡ΊπŸ‡Έ English](./README.md) | [πŸ‡¨πŸ‡³ δΈ­ζ–‡](./README_zh.md) | [πŸ‡―πŸ‡΅ ζ—₯本θͺž](./README_ja.md)

AI-Terminal is an AI-powered command-line interface that enhances terminal workflows through intelligent automation and optimization.

## Features

- **Smart Assistance:** Context-aware command suggestions and completions
- **Task Automation:** Automate repetitive tasks with AI-generated shortcuts
- **Intelligent Search:** Advanced file and content search capabilities
- **Error Handling:** Command correction and alternative suggestions
- **Extensible:** Plugin system for custom integrations

## Quick Start

### Prerequisites

- Go 1.22.0 or later

### Installation

**Homebrew:**
```bash
brew install coding-hui/tap/ai-terminal
```

**Download:**
- [Packages][releases] (Debian/RPM formats)
- [Binaries][releases] (Linux/macOS/Windows)

[releases]: https://github.com/coding-hui/ai-terminal/releases

**From Source:**
```bash
make build
```

**Initialize:**
```bash
ai configure
```

### Shell Completions

Completion files are included for Bash, ZSH, Fish, and PowerShell. Generate manually with:
```bash
ai completion [bash|zsh|fish|powershell] -h
```

## Usage Examples

### Chat & Assistance
```bash
ai ask "How to optimize Docker performance?"
ai ask --file prompt.txt
echo "code content" | ai ask "analyze this code"
```

### Code Generation
```bash
# Interactive mode
ai coder

# Batch processing
ai ctx load context.txt
ai coder -c session_id -p "add error handling"
```

### Code Review
```bash
ai review --exclude-list "*.md,*.txt"
```

### Command Execution
```bash
ai exec "find large files from last week"
ai exec --yes "docker ps -a"
ai exec --interactive
```

### Commit Messages
```bash
ai commit --diff-unified 3 --lang en
```

## Contributing

See [CONTRIBUTING.md](CONTRIBUTING.md) for guidelines.

**Changelog:** [CHANGELOG.md](CHANGELOG.md)
**License:** [MIT](LICENSE) Β© 2024 coding-hui