AIW - AI Workflow Orchestration Tool
Universal AI CLI Management Platform with Intelligent MCP Routing
AIW is an intelligent platform for managing AI CLI tools (Claude, Codex, Gemini) with MCP routing, process tracking, and configuration synchronization.
π― Core Features
1. AI CLI Management
- Process Tree Tracking: Monitor AI CLI processes and their children
- Provider Management: Switch between AI providers (OpenAI, Anthropic, Google, etc.)
- Capability Detection: Auto-detect installed AI CLI tools
- Wait Mode: Block until AI CLI tasks complete
# Launch AI CLI with process tracking
# Wait for all AI CLI tasks to complete
# Manage providers
5. Update (ζ΄ζ°AIWεAI CLIε·₯ε ·)
- AIW Self-Update: Update AIW itself to latest version from NPM
- AI CLI Tools Update: Update all installed AI CLI tools (claude, codex, gemini)
- Combined Update: Update both AIW and AI CLI tools in one command
# Update both AIW and all AI CLI tools
# Command will:
# 1. Check and update AIW to latest version
# 2. Check and update all installed AI CLI tools
# 3. Show detailed results for both updates
2. Intelligent MCP Routing β
Route user requests to the best MCP tool with 98% token reduction.
How it works:
- LLM ReAct Mode: Uses LLM reasoning to analyze requests
- Vector Search Mode: Semantic similarity fallback
- Dynamic Registration: Registers tools on-demand (98% token savings)
- JavaScript Orchestration: Auto-generates workflows for complex tasks
Usage:
# Start MCP server
# Configure in Claude Code (~/.config/claude-code/mcp.json)
{
}
# Available MCP tools:
# - intelligent_route: Auto-route to best tool
# - get_method_schema: Get tool schemas
# - execute_tool: Execute tools with negotiation
3. MCP Server Management
Manage external MCP servers with hot-reload support.
# Add MCP server
# List servers
# Enable/disable servers
# Hot-reload: Changes apply instantly without restart
4. Google Drive Sync (Optional)
Synchronize AI CLI configurations across devices using Google Drive.
# Push configurations to Google Drive
# Pull configurations from Google Drive
# List available backups
π Quick Start
Installation
# Install from NPM
# Or use npx directly
Initial Setup
# Verify installation
# Check available AI CLI tools
# Configure MCP servers
π Documentation
- MCP Usage Guide - Detailed MCP configuration and usage
- GitHub Repository - Full source code and issues
π οΈ Configuration
Environment Variables
# AI CLI Configuration
# claude, codex, or gemini
# Any provider from provider.json
# MCP Server Configuration
# Google Drive OAuth (optional)
Configuration Files
- MCP Servers:
~/.aiw/mcp.json(standardmcpServersschema compatible with Claude Code/Cursor) - Providers:
~/.aiw/providers.json - Google Drive Auth:
~/.aiw/auth.json
π Acknowledgments
- Claude Code: Anthropic's official CLI for Claude
- Anthropic Code Execution: Inspired by Code Execution with MCP
π License
MIT License - see LICENSE file for details.
AIW - Universal AI CLI Management Platform with MCP Routing v0.5.16
For full documentation and source code, visit: https://github.com/putao520/agentic-warden