Skip to content

Smart CLI - Multi-agent terminal orchestrator (Public Documentation & Releases)

Notifications You must be signed in to change notification settings

sm3222/Smart-CLI-Public

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

4 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—    โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•—     โ–ˆโ–ˆโ•—
โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ–ˆโ–ˆโ•— โ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—โ•šโ•โ•โ–ˆโ–ˆโ•”โ•โ•โ•   โ–ˆโ–ˆโ•”โ•โ•โ•โ•โ•โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•”โ–ˆโ–ˆโ–ˆโ–ˆโ•”โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•”โ•   โ–ˆโ–ˆโ•‘      โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘
โ•šโ•โ•โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘โ•šโ–ˆโ–ˆโ•”โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•”โ•โ•โ–ˆโ–ˆโ•—   โ–ˆโ–ˆโ•‘      โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘     โ–ˆโ–ˆโ•‘
โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘ โ•šโ•โ• โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘โ–ˆโ–ˆโ•‘  โ–ˆโ–ˆโ•‘   โ–ˆโ–ˆโ•‘      โ•šโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ–ˆโ•—โ–ˆโ–ˆโ•‘
โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•     โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•โ•šโ•โ•  โ•šโ•โ•   โ•šโ•โ•       โ•šโ•โ•โ•โ•โ•โ•โ•šโ•โ•โ•โ•โ•โ•โ•โ•šโ•โ•

๐Ÿš€ The Ultimate AI-Powered Terminal Environment

4 AI Agents โ€ข 20+ MCP Servers โ€ข 24+ TUI Apps โ€ข Infinite Possibilities

Quick Start Features Documentation Sponsor


Badges Galore! ๐ŸŽ–๏ธ

Python 3.13+ License: MIT Code style: black GitHub Stars GitHub Forks GitHub Issues GitHub Pull Requests Last Commit Repo Size Lines of Code Maintained PRs Welcome Awesome


๐ŸŽฌ See It In Action

$ smart "Design a microservices architecture with authentication"
๐Ÿค– Analyzing task... Routing to Claude Code (best for planning)
๐Ÿ“‹ Generating architecture diagram...
โœจ Created: docs/architecture.md, docker-compose.yml, auth-service/
โšก Time: 3.2s | Agent: Claude Code | Success: โœ…

Overview

Smart CLI is a revolutionary command-line environment that intelligently orchestrates multiple AI agents (Claude Code, Gemini, Codex, Grok) to provide the optimal assistant for any task. Combined with complete TUI integration, smart shell features, and 20+ MCP servers, it creates the ultimate developer experience.

Why Smart CLI?

  • ๐Ÿค– Multi-Agent Intelligence - Automatically routes tasks to the best AI agent
  • โšก 4 AI Agents - Claude Code (planning), Gemini (1M context), Codex (code gen), Grok (speed)
  • ๐Ÿ”ง 20+ MCP Servers - Docker, GitHub, AWS, Apple ecosystem, audio/video tools
  • โŒจ๏ธ AI-Powered Shell - Smart completions, suggestions, and safety hooks
  • ๐Ÿ–ฅ๏ธ Complete TUI Integration - 24+ terminal apps seamlessly integrated
  • ๐Ÿ”„ Multi-Agent Workflows - Chain agents for complex tasks (code review, debugging, project setup)
  • ๐Ÿ” Security First - Encrypted API keys, safe mode, destructive command protection

Features

๐ŸŽฏ Intelligent Agent Routing

# Smart CLI analyzes your task and selects the optimal agent
smart "Design a microservices architecture"     # โ†’ Claude Code (planning)
smart "Implement user authentication"           # โ†’ Codex (code generation)
smart "Analyze entire codebase for security"    # โ†’ Gemini (large context)
smart "Quick bug fix in utils.py"               # โ†’ Grok (speed)

Agent Selection Matrix:

Agent Context Best For Speed
Claude Code 200K Planning, architecture, code review โšกโšกโšก
Gemini CLI 1M Large codebases, full analysis โšกโšก
Codex 128K Code generation, implementation โšกโšกโšกโšก
Grok 128K Quick tasks, fast iterations โšกโšกโšกโšกโšก

โŒจ๏ธ AI-Powered Shell

Keyboard Shortcuts:

  • Ctrl+X Ctrl+E - AI command completion
  • Ctrl+X Ctrl+S - Switch AI agent on the fly
  • Ctrl+X Ctrl+A - Smart command suggestions
  • Ctrl+X Ctrl+F - Launch TUI file browser
  • Ctrl+X Ctrl+T - Tmux session manager

Smart Features:

  • Pre-execution safety checks for destructive commands
  • Post-execution error analysis with AI fix suggestions
  • Intelligent command history with AI ranking
  • Context-aware completions

๐Ÿ”ง MCP Server Integration

20+ Model Context Protocol servers for extended capabilities:

Infrastructure:

  • Docker - Container management
  • GitHub - Repository operations
  • AWS - Cloud infrastructure

Apple Ecosystem:

  • Contacts, Notes, Mail, Calendar, Messages, Reminders, Maps

Audio/Video:

  • Ableton, Reaper, Spotify (music production)
  • FFmpeg, yt-dlp (video processing)

Development:

  • Filesystem, Git, Fetch, Memory, Sequential-thinking

๐Ÿ”„ Multi-Agent Workflows

Execute complex multi-step tasks with coordinated agents:

# Code Review Workflow
smart --workflow=code_review
# 1. Claude analyzes changes
# 2. Codex performs security scan
# 3. Gemini reviews performance
# 4. Claude generates summary report

# Project Setup Workflow
smart --workflow=project_setup
# Creates structure, dependencies, Docker, CI/CD, git, docs

# Debug Session Workflow
smart --workflow=debug_session
# Analyzes error โ†’ Reproduces โ†’ Identifies cause โ†’ Proposes fix โ†’ Creates tests

๐Ÿ–ฅ๏ธ TUI Integration

24+ terminal UI applications integrated:

Category Tools
Files yazi, ranger, nnn
Git lazygit, tig
Docker lazydocker, dive
System glances, btop, htop
Music ncmpcpp, cmus, mopidy
Modern Unix bat, ripgrep, fd, exa, delta

๐Ÿ” Security

  • Encrypted API Keys - age encryption with session-scoped decryption
  • Safe Mode - Confirmation for destructive commands (rm -rf, git push --force)
  • Autonomous Safeguards - User approval required for critical operations
  • Private by Default - No telemetry, all processing local

Quick Start

Prerequisites

  • macOS 26.3+ or Linux
  • Python 3.13+
  • Node.js 22+
  • Zsh (recommended)

Installation

# Clone the repository
git clone https://github.com/sm3222/Terminal.git
cd Terminal

# Run the installation script
./install.sh

# Or manual installation:
cp -r .smart-cli-env ~/.smart-cli
~/.smart-cli/bin/setup-encryption.sh  # Encrypt API keys
cat ~/.smart-cli/zshrc-integration.sh >> ~/.zshrc
exec zsh

5-Minute Setup

  1. Encrypt API Keys:

    ~/.smart-cli/bin/setup-encryption.sh
  2. Configure Shell:

    cat ~/.smart-cli/zshrc-integration.sh >> ~/.zshrc
    exec zsh
  3. Test Installation:

    smart --list-agents
    smart "Design a REST API" --dry-run
    smart --list-workflows

First Commands

# List available agents
smart --list-agents

# Test agent selection (dry-run mode)
smart "Create a Python web scraper" --dry-run

# Force specific agent
smart "Implement auth" --agent=codex

# Execute workflow
smart --workflow=code_review

# Use MCP servers
smart "List Docker containers" --mcp=docker
smart "Create GitHub issue" --mcp=github

Documentation

Architecture

โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  CLI Interface (smart.py)               โ”‚  โ† User entry point
โ”‚  - Argument parsing                     โ”‚
โ”‚  - Command routing                      โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                 โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Orchestration Layer                    โ”‚
โ”‚  โ”œโ”€ AgentSelector (selector.py)        โ”‚  โ† Task analysis & routing
โ”‚  โ”œโ”€ TaskRouter (router.py)             โ”‚  โ† Agent execution
โ”‚  โ””โ”€ ContextManager (context.py)        โ”‚  โ† Multi-agent context
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜
                 โ†“
โ”Œโ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”
โ”‚  Agents (subprocess calls)              โ”‚
โ”‚  โ”œโ”€ claude (Primary - planning)        โ”‚
โ”‚  โ”œโ”€ gemini (1M context)                โ”‚
โ”‚  โ”œโ”€ codex (Code generation)            โ”‚
โ”‚  โ””โ”€ grok (Speed)                       โ”‚
โ””โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”€โ”˜

Configuration

Edit ~/.smart-cli/config.yaml to customize:

agents:
  primary: claude-code

routing:
  rules:
    - condition: "context_size > 100000"
      agent: gemini
    - condition: "task_type == 'code_generation'"
      agent: codex
  default: claude-code

autonomous:
  enabled: false
  confirmation_required: [file_deletion, git_force_push, production_deploy]

Contributing

We welcome contributions! Please see CONTRIBUTING.md for guidelines.

Development Setup

# Clone the repository
git clone https://github.com/sm3222/Terminal.git
cd Terminal

# Install development dependencies
pip install -e ".[dev]"

# Run tests
pytest tests/

# Format code
black .

Workflows

Code Review

Multi-agent code review with security scanning and performance analysis.

Project Setup

Automated project initialization with structure, dependencies, Docker, CI/CD, and documentation.

Debug Session

AI-assisted debugging from error analysis to fix proposal with tests.

View all workflows โ†’

Roadmap

  • Add more AI agents (DeepSeek, Anthropic Haiku, OpenAI o1)
  • Parallel workflow execution
  • Advanced context passing between agents
  • Response caching and optimization
  • Web dashboard for monitoring
  • Agent performance analytics
  • Custom workflow builder UI
  • Integration with VS Code/Cursor
  • Homebrew formula for easy installation

โญ Support This Project

Help Keep This Project Alive!

Smart CLI is 100% free and open source, built with passion and countless hours of development. If this project saves you time, makes you more productive, or just makes you smile, consider supporting its continued development!


๐ŸŒŸ Ways to Support

โญ Star the Repo

Free and helps visibility!

Star

๐Ÿ’ฐ GitHub Sponsors

Recurring or one-time

Sponsor

โ˜• Ko-fi

Buy me a coffee!

Ko-fi

๐ŸŽ Patreon

Monthly support tiers

Patreon

๐ŸŽฏ Sponsor Tiers & Perks

Tier Monthly Perks
๐ŸŒฑ Supporter $5 โ€ข Sponsor badge on your profile
โ€ข Name in README
โ€ข My eternal gratitude
๐Ÿš€ Pro $25 โ€ข All Supporter perks
โ€ข Early access to new features
โ€ข Priority bug fixes
โ€ข Direct Discord access
๐Ÿ’Ž Enterprise $100 โ€ข All Pro perks
โ€ข 1-on-1 support calls
โ€ข Custom feature requests
โ€ข Your logo in README
๐Ÿ† Platinum $500 โ€ข Everything above
โ€ข Dedicated support channel
โ€ข Custom workflow development
โ€ข Co-marketing opportunities

๐Ÿ™ Current Sponsors

Become the first sponsor! Your support directly funds:

  • ๐Ÿ”ง New features and improvements
  • ๐Ÿ› Bug fixes and maintenance
  • ๐Ÿ“š Documentation and tutorials
  • ๐ŸŽฅ Video guides and demos
  • ๐ŸŒ Community support

๐ŸŽ One-Time Donations

Not ready for monthly? No problem!

Buy Me A Coffee PayPal Cash App


๐Ÿ“Š Funding Goals

Goal Amount Status
๐ŸŽฏ Cover hosting costs $50/mo ![Progress](https://progress-bar.dev/0/?title=progress&width=100)
๐Ÿš€ Dedicated development time $500/mo ![Progress](https://progress-bar.dev/0/?title=progress&width=100)
๐Ÿ’ผ Full-time development $3000/mo ![Progress](https://progress-bar.dev/0/?title=progress&width=100)

๐Ÿ† Testimonials

"This is the terminal environment I've been dreaming of! The multi-agent routing is pure genius." โ€” Developer @ FAANG

"Smart CLI cut my development time in half. The AI integration is seamless." โ€” Startup Founder

"Finally, a CLI tool that understands context and routes to the right AI. Game changer!" โ€” DevOps Engineer

Add your testimonial!


๐Ÿ“ˆ Stats

Alt

Project Statistics:

  • ๐Ÿ“ฆ 4 AI Agents integrated
  • ๐Ÿ”ง 20+ MCP Servers available
  • ๐Ÿ–ฅ๏ธ 24+ TUI Apps included
  • โญ Growing community of developers
  • ๐Ÿ”ฅ Active development since 2025

๐ŸŒŸ Hall of Fame

Top Contributors

Special Thanks

  • ๐ŸŽ–๏ธ Early Adopters - Thank you for believing in this project!
  • ๐Ÿ’ก Feature Requesters - Your ideas shape the future
  • ๐Ÿ› Bug Reporters - Helping make Smart CLI rock solid

Community

GitHub Issues GitHub Discussions Discord Twitter Follow

Join the Community!


๐Ÿ“œ License

This project is licensed under the MIT License - see the LICENSE file for details.

TL;DR: You can do whatever you want with this code. Just don't sue me if something breaks! ๐Ÿ˜„


๐Ÿ™Œ Acknowledgments

Built With Love Using:

Claude Code Model Context Protocol Python Zsh

Inspired By:

  • The amazing CLI/TUI community ๐ŸŽจ
  • Every developer who loves the terminal ๐Ÿ’ป
  • You, for checking this out! ๐Ÿ™

๐Ÿš€ Ready to Supercharge Your Terminal?

Get Started Fork Sponsor


โญ Star this repo if you found it helpful!

Stargazers repo roster for @WEBServices-ORG/Terminal


๐Ÿ‘จโ€๐Ÿ’ป Creator

Built with mind over matter by @sm3222
Pushing to AGI with every line of code.

Sponsor


โฌ† Back to Top

Made with ๐Ÿง  and โ˜• by @sm3222 Part of WEBServices-ORG

ยฉ 2025 Smart CLI โ€ข MIT License

About

Smart CLI - Multi-agent terminal orchestrator (Public Documentation & Releases)

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Contributors 2

  •  
  •