Agentic-Warden
Universal AI CLI Management Platform with Google Drive Sync
Agentic-Warden is an intelligent platform for managing AI CLI tools (Claude, Codex, Gemini) with MCP routing, process tracking, and Google Drive configuration synchronization.
๐ฏ Features
1. AI CLI Management (REQ-001, REQ-002, REQ-006, REQ-011)
- 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
- Update Management: Install and update AI CLI tools
Usage:
# Launch AI CLI with process tracking
# Wait for all AI CLI tasks to complete
# Manage providers
2. Google Drive Sync (REQ-003)
Synchronize AI CLI configurations across devices using Google Drive.
Setup OAuth:
Commands:
# Push AI CLI configurations to Google Drive
# Example: aiw push claude
# Example: aiw push codex
# Example: aiw push gemini
# Pull configurations from Google Drive
# List available backups on Google Drive
Note: Currently supports only 3 predefined AI CLI directories:
~/.claude~/.codex~/.gemini
OAuth Flow:
- Uses OAuth 2.0 Device Flow (RFC 8628)
- Authentication tokens stored in
~/.aiw/auth.json - Detailed setup instructions printed during first use
3. Intelligent MCP Routing (REQ-012, REQ-013)
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
4. MCP Server Management (REQ-007)
Manage external MCP servers with hot-reload support.
Commands:
# Add MCP server
# List servers
# Enable/disable servers
# Edit configuration
# Hot-reload: Changes apply instantly without restart
Configuration File: ~/.aiw/.mcp.json
๐ Quick Start
Installation
# Clone and build
# Install binary
Initial Setup
# Verify installation
# Check available AI CLI tools
# Configure MCP servers (optional)
# Set up Google Drive sync (optional)
๐ Feature Matrix
| Feature | REQ-ID | Status | Description |
|---|---|---|---|
| Process Tree Tracking | 001 | โ | Monitor AI CLI processes |
| Provider Management | 002 | โ | Switch AI providers |
| Google Drive Sync | 003 | โ | Backup/sync configurations |
| Wait Mode | 005 | โ | Block until tasks complete |
| Tool Detection | 006 | โ | Auto-detect AI CLI tools |
| MCP Servers | 007 | โ | External MCP integration |
| Intelligent Routing | 012 | โ | LLM-based tool routing |
| JS Orchestration | 013 | โ | Auto-generate workflows |
| AI CLI Updates | 011 | โ | Install/update tools |
| Role System | 014 | โ | AI persona management |
Overall Status: โ All core features implemented and tested
๐ ๏ธ Configuration
Environment Variables
# AI CLI Configuration
# claude, codex, or gemini
# Any provider from provider.json
# MCP Server Configuration
# Google Drive OAuth
# LLM Routing (optional)
# For Ollama/local LLM mode
Configuration Files
- MCP Servers:
~/.aiw/.mcp.json - Providers:
~/.aiw/providers.json - AI CLI Auth:
~/.claude/config.toml,~/.codex/config.json, etc. - Google Drive Auth:
~/.aiw/auth.json
๐งช Testing
# Run all tests
# Run specific test module
# Build and check
Test Coverage: 131/131 unit tests passing
๐ Documentation
- Requirements: SPEC/01-REQUIREMENTS.md
- Architecture: SPEC/02-ARCHITECTURE.md
- API Design: SPEC/04-API-DESIGN.md
- Testing Strategy: SPEC/06-TESTING-STRATEGY.md
๐ค Contributing
Contributions welcome! Please:
- Check GitHub Issues
- Follow existing code style
- Add tests for new features
- Update documentation
๐ License
MIT License - see LICENSE file for details.
๐ Acknowledgments
- MCP Protocol: modelcontextprotocol.io
- Claude Code: Anthropic's official CLI for Claude
- Anthropic Code Execution: Inspired by Code Execution with MCP
Agentic-Warden - Universal AI CLI Management Platform v6.0.1