Observed since 20 Oct, 16:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
Multi-modal AI assistant for translation, explanation, coding, writing, and shell automation
aii (AI Intelligence) is a powerful multi-modal AI assistant that serves as your intelligent companion for translation, explanation, coding, writing, and shell automation - all powered by Google Gemini AI.
🚀 Stay tuned! We're actively developing new features and capabilities. Follow this project for updates on upcoming enhancements.
aii translate "hello" to SpanishGenerate and execute shell commands with OS and shell-specific optimizations.
# Auto-detect environment and generate commands
aii install docker
aii list all python files
aii compress this folder
# Override detection
aii --os mac install nginx # Force macOS
aii --shell fish find large files # Force fish syntax
aii -m -s zsh copy file # macOS + zsh combo
Natural, culturally appropriate translations that avoid machine-translate awkwardness.
# Natural language detection
aii translate "Hello world" to Spanish
aii translate "I'm running late" to French
# Explicit target language
aii translate "Good morning" --to Japanese
aii trans "Bonjour" to English # Short form
Clear, comprehensive explanations of complex topics with examples and analogies.
# Get detailed explanations
aii explain "How does Docker work?"
aii explain "Machine learning algorithms"
aii exp "Why is the sky blue?" # Short form
Generate, review, and debug code with best practices and security considerations.
# Code generation
aii code "Python function to sort a list"
aii code "React component for user login"
aii coding "Fix this JavaScript bug" # Alternative form
Create well-structured, purpose-driven content for various contexts.
# Content generation
aii write "Professional email declining meeting"
aii write "Blog post intro about AI trends"
aii writing "Cover letter for developer role" # Alternative form
Audit codebases, summarize folder structures, and surface risks before diving into details.
# Generate a top-level summary (defaults to current directory)
aii analyze ./ --summary
# Target a specific directory and request issues plus suggestions
aii analyze ./src --issues --suggestions
# Focus on architecture mapping across services
aii analyze --path ./services --architecture
💡 Combine
--summary,--issues,--suggestions, and--architectureflags to shape the report; use--pathwhen analyzing directories beyond the working tree.
Leverage repository context for Conventional Commits, PR scaffolding, and diff reviews.
# Generate a Conventional Commit message for staged changes
aii commit --generate-message "note any context for reviewers"
# Draft a PR title and description comparing HEAD against a base
aii pr --title --description --base origin/main
# Review a diff (defaults to HEAD~1..HEAD)
aii review --changes HEAD~2
ℹ️ Must be executed inside a git repository. Commit mode requires staged changes; PR mode compares the current branch to a base; review mode accepts revision ranges (e.g.
HEAD~1,feature..main).
# Install with uv
uv pip install aii
# Or install from source
git clone <repository-url>
cd aii
uv pip install .
Get your Google Gemini API key from AI Studio
Set the environment variable:
# For Fish shell
set -x GEMINI_API_KEY your_api_key_here
# For Bash/Zsh
export GEMINI_API_KEY=your_api_key_here
# Fish
echo "set -x GEMINI_API_KEY your_api_key_here" >> ~/.config/fish/config.fish
# Bash
echo "export GEMINI_API_KEY=your_api_key_here" >> ~/.bashrc
# Zsh
echo "export GEMINI_API_KEY=your_api_key_here" >> ~/.zshrc
# Shell commands (default mode)
aii install docker
aii find files larger than 100MB
# Translation (natural syntax)
aii translate "Hello world" to Spanish
aii trans "Bonjour" to English
# Explanations (natural syntax)
aii explain "quantum computing"
aii exp "how does GPS work"
# Code generation (natural syntax)
aii code "Python web scraper"
aii coding "React todo component"
# Content writing (natural syntax)
aii write "resignation letter"
aii writing "product launch announcement"
# Mode selection
aii --mode translate "Hello" --to Spanish
aii --translate "Good morning" --to French # Shortcut
aii -t "Hola" to English # Short form
# Shell-specific options (for shell mode)
aii --os mac install nginx # Force macOS
aii --shell fish list files # Force fish shell
aii -m -s zsh compress folder # Combine options
# Get help
aii --help
aii --version
open, pbcopy, pbpaste, mdfindlaunchctlsystemctlxclip/wl-clipboardset var value syntax, and/or logic$ aii translate "I'm really excited about this project" to Spanish
🌐 Translation Logic: Converting informal English expression to Spanish, maintaining enthusiasm and colloquial tone...
🌐 Translation:
Estoy muy emocionado/a por este proyecto
🎯 Confidence: 95%
$ aii explain "Docker containers"
🎓 Explanation Structure: I'll explain Docker containers using the shipping analogy, then cover technical details...
🎓 Explanation:
Docker containers are like standardized shipping containers for software applications. Just as shipping containers allow goods to be transported consistently across different ships, trucks, and trains, Docker containers package applications with all their dependencies so they run consistently across different computing environments...
[Detailed explanation continues]
🎯 Confidence: 92%
$ aii code "Python function to validate email addresses"
💻 Code Planning: I'll create a robust email validation function using regex with proper error handling...
💻 Generated Code:
```python
import re
from typing import bool
def validate_email(email: str) -> bool:
"""
Validate email address using RFC 5322 compliant regex.
Args:
email: Email address to validate
Returns:
True if email is valid, False otherwise
"""
pattern = r'^[a-zA-Z0-9._%+-]+@[a-zA-Z0-9.-]+\.[a-zA-Z]{2,}$'
return bool(re.match(pattern, email.strip()))
# Example usage
if __name__ == "__main__":
test_emails = ["user@example.com", "invalid.email", "test@domain.co.uk"]
for email in test_emails:
print(f"{email}: {validate_email(email)}")
🎯 Confidence: 88%
## Debugging
Enable debug mode to troubleshoot issues:
```bash
# Show detailed debug information
AII_DEBUG=true aii explain "quantum physics"
Debug mode shows:
❌ Error: GEMINI_API_KEY environment variable is required.
💡 Setup: export GEMINI_API_KEY=your_api_key_here
🔗 Get key: https://aistudio.google.com/apikey
Solution: Follow the setup instructions above to configure your API key.
If the wrong mode is detected, use explicit mode selection:
# Instead of: aii explain something
# Use: aii --mode explain something
Override detection when working on remote systems:
aii --os linux --shell bash your_command
--mode shell or default - Shell command generation--mode translate or -t - Translation mode--mode explain or -e - Explanation mode--mode code or -c - Code generation mode--mode write or -w - Writing modeaii translate ... - Auto-detected translationaii explain ... - Auto-detected explanationaii code ... - Auto-detected code generationaii write ... - Auto-detected writing--os mac or -m - Force macOS mode--os linux or -l - Force Linux mode--shell SHELL or -s - Override shell detectionContributions are welcome! Please feel free to submit a Pull Request.
Apache License 2.0 - see LICENSE file for details.
Made with ❤️ for developers who want AI-powered assistance across all their tasks
Download counts and popularity will appear here as the collector receives them.
| Version | Published | Direct dependencies | Open version |
|---|---|---|---|
| 0.2.3 | 17 Sept 2025 | 10 |
This describes our collected data; it is not a security assessment.
Observed since 20 Oct, 16:34 UTC
No superseded metadata states collected. Unchanged observations do not create new revisions.
package:d5bbbfa89916dde776f201dae7821cb2246df2561ab09010c6dc32de2c4897a8