silver-ai-0.0.1 is not a library.
AI CLI Launcher
A terminal UI built with Ratatui to select and launch AI CLI tools (Copilot/Cursor/Codex) with session resume capability.
Features
- Orange Rectangle UI: Clean, centered selection menu in an orange bordered rectangle
- Session Persistence: Remembers your last selected tool between launches
- Keyboard Navigation: Intuitive vim-style (j/k) and arrow key navigation
- Quick Launch: Select your preferred AI tool and launch directly
- Terminal-friendly: Designed to run inside
nvim -c "terminal"for easy copy/paste and scrolling
Building
The binary will be at target/release/ai-cli
Usage
Run the CLI:
Or from inside Neovim terminal:
Keyboard Controls
- ↑ / k: Move selection up
- ↓ / j: Move selection down
- Enter: Select and launch the highlighted tool
- q / ESC: Exit without launching
How It Works
- First Launch: Shows the AI tool selection menu
- Subsequent Launches: Pre-selects your last used tool
- Tool Launch: Pressing Enter launches the selected tool directly
- Session Storage: Your selection is saved to
~/.config/ai-cli/session.json
Tools
- GitHub Copilot: AI assistant by GitHub (launches with
--resume) - Cursor: AI-first code editor
- OpenAI Codex: AI code generation engine
Project Structure
src/
├── main.rs # Main application loop and event handling
├── session.rs # Session persistence (load/save state)
├── launcher.rs # Tool definitions and launch logic
└── ui.rs # Ratatui UI rendering
Configuration
Session data is stored at: ~/.config/ai-cli/session.json
Example session file:
Dependencies
- ratatui: Terminal UI framework
- crossterm: Terminal handling
- serde/serde_json: Session serialization
- anyhow: Error handling
- chrono: Timestamp management
- dirs: Config directory detection
Future Enhancements
- Custom color themes
- Support for custom AI tool registration
- Session history (more than just last used)
- Tool status/availability checks
- Custom argument passing to tools