freshcrate
Home > MCP Servers > ralphglasses

ralphglasses

Multi-LLM agent orchestration TUI β€” parallel Claude/Gemini/Codex sessions, 126 MCP tools

Description

Multi-LLM agent orchestration TUI β€” parallel Claude/Gemini/Codex sessions, 126 MCP tools

README

ralphglasses

Go Reference Go Report Card Go License: MIT CI MCP Tools

Command-and-control TUI for parallel multi-LLM agent fleets.

Orchestrates Claude Code, Gemini CLI, and OpenAI Codex CLI sessions from a single k9s-style interface. Built with Charmbracelet (BubbleTea + Lip Gloss).

What It Does

  • Orchestrate multiple LLM providers (Claude, Gemini, Codex) with unified session management
  • Project provider-neutral fleet roles into native Codex, Claude, and Gemini agent surfaces
  • Discover ralph-enabled repos across your workspace (--scan-path)
  • Monitor live status: loop iteration, circuit breaker state, per-provider costs, model selection
  • Control ralph loops, headless sessions, and Codex planner/worker loops from TUI or MCP tools
  • Track costs across all providers in a unified cost ledger
  • Stream logs in real-time with reactive file watching (fsnotify)
  • Configure .ralphrc settings per repo from an in-TUI editor

Quick Start

go install github.com/hairglasses-studio/ralphglasses@latest

Or build from source:

git clone https://github.com/hairglasses-studio/ralphglasses.git
cd ralphglasses

# Bootstrap local tooling if needed
./scripts/bootstrap-toolchain.sh

# Build
./scripts/dev/go.sh build ./...

# Launch TUI
./scripts/dev/go.sh run . --scan-path ~/hairglasses-studio

Repo-local Codex MCP discovery is already wired in via .codex/config.toml and .mcp.json. Other MCP clients can register the same ./scripts/dev/run-mcp.sh --scan-path ~/hairglasses-studio entrypoint manually if needed.

Multi-LLM Provider Support

Launch sessions against any supported provider:

Provider CLI Default Model Install
codex (default) Codex CLI gpt-5.4 npm i -g @openai/codex-cli
claude Claude Code sonnet Pre-installed
gemini Gemini CLI gemini-3.1-pro npm i -g @google/gemini-cli

Usage via MCP

// Launch a Gemini session
{ "tool": "ralphglasses_session_launch", "arguments": {
    "repo": "my-project", "prompt": "Refactor the API layer", "provider": "gemini"
}}

// Create a multi-provider team (Codex leads, delegates to Gemini/Claude workers)
{ "tool": "ralphglasses_team_create", "arguments": {
    "repo": "my-project", "name": "refactor-team", "provider": "codex",
    "tasks": "Rewrite auth middleware\nAdd integration tests\nUpdate API docs"
}}

// List only Gemini sessions
{ "tool": "ralphglasses_session_list", "arguments": { "provider": "gemini" }}

Required Environment Variables

OPENAI_API_KEY=sk-...           # Codex CLI
GOOGLE_API_KEY=AIza...          # Gemini CLI
ANTHROPIC_API_KEY=sk-ant-...    # Claude Code (optional if using OAuth)

Fleet Role Surfaces

  • .agents/skills/ is canonical for provider-neutral workflows.
  • .agents/roles/*.json is canonical for reusable fleet roles.
  • .codex/agents/*.toml, .claude/agents/*.md, and .gemini/agents/*.md are native projections of that shared role catalog.
  • .gemini/commands/ remains a compatibility shortcut surface, not the canonical reusable-role source.
  • Gemini parity is native-first: local .gemini/agents/*.md subagents, remote A2A agents, skills, and extensions all participate in the shared fleet model.

Two Deliverables

1. ralphglasses Go Binary

Cross-platform Unix TUI that manages multi-session, multi-provider LLM loops from any terminal.

2. Bootable Linux Thin Client

Ubuntu 24.04-based, boots into i3 + ralphglasses TUI. Supports 7-monitor, dual-NVIDIA-GPU setups.

See ROADMAP.md for the full plan.

MCP Server

222 MCP tools for programmatic control across all providers:

Core Loop Management

Tool Description
ralphglasses_scan Scan for ralph-enabled repos
ralphglasses_list List all repos with status
ralphglasses_status Detailed status for a repo
ralphglasses_start Start a ralph loop
ralphglasses_stop Stop a ralph loop
ralphglasses_stop_all Stop all managed loops
ralphglasses_pause Pause/resume a loop
ralphglasses_logs Get recent log lines
ralphglasses_config Get/set .ralphrc values

Multi-Provider Session Management

Tool Description
ralphglasses_session_launch Launch a headless session (provider: codex/claude/gemini)
ralphglasses_session_list List sessions (filter by provider, repo, status)
ralphglasses_session_status Detailed session info (provider, cost, turns, model)
ralphglasses_session_resume Resume a previous session (codex/claude/gemini, if the installed CLI supports resume)
ralphglasses_session_stop Stop a running session
ralphglasses_session_budget Get/update budget for a session
ralphglasses_loop_start Create a Codex gpt-5.4 planner/worker/verifier loop
ralphglasses_loop_status Inspect persisted loop status and iteration history
ralphglasses_loop_step Run one planner/worker/verifier iteration in a git worktree
ralphglasses_loop_stop Stop a loop and block future iterations

Agent Teams

Tool Description
ralphglasses_team_create Create team with provider for lead session
ralphglasses_team_status Get team status and progress
ralphglasses_team_delegate Add a task to an existing team
ralphglasses_agent_define Create/update agent definitions
ralphglasses_agent_list List available agent definitions

Roadmap Automation

Tool Description
ralphglasses_roadmap_parse Parse ROADMAP.md into structured JSON
ralphglasses_roadmap_analyze Compare roadmap vs codebase
ralphglasses_roadmap_research Search GitHub for relevant repos/tools
ralphglasses_roadmap_expand Generate proposed roadmap expansions
ralphglasses_roadmap_export Export tasks as rdcycle/fix_plan specs or docs-ready tranche checkpoints

Repo Configuration

Tool Description
ralphglasses_repo_scaffold Create/init ralph config files for a repo
ralphglasses_repo_optimize Analyze and optimize ralph config

Architecture

main.go β†’ cmd/root.go (Cobra CLI)
β”œβ”€β”€ internal/discovery/    Scan for .ralph/ repos
β”œβ”€β”€ internal/model/        Status, progress, config parsers
β”œβ”€β”€ internal/process/      Process management, file watcher, log tailing
β”œβ”€β”€ internal/session/      Multi-provider LLM session management
β”‚   β”œβ”€β”€ providers.go       Per-provider cmd builders + event normalizers
β”‚   β”œβ”€β”€ runner.go          Session lifecycle (launch, stream, terminate)
β”‚   β”œβ”€β”€ manager.go         Session/team registry
β”‚   β”œβ”€β”€ budget.go          Per-provider cost tracking + enforcement
β”‚   └── types.go           Provider enum, Session, LaunchOptions, TeamConfig
β”œβ”€β”€ internal/mcpserver/    MCP tool handlers (222 tools: 218 grouped + 4 management, stdio)
β”œβ”€β”€ internal/roadmap/      Roadmap parsing, analysis, research, export
β”œβ”€β”€ internal/repofiles/    Ralph config scaffolding and optimization
β”œβ”€β”€ internal/tui/          BubbleTea app, keymap, commands, filter
β”‚   β”œβ”€β”€ styles/            Lip Gloss theme (k9s-inspired)
β”‚   β”œβ”€β”€ components/        Table, breadcrumb, status bar, notifications
β”‚   └── views/             Overview, repo detail, log stream, config editor, help
β”œβ”€β”€ distro/                Thin client build system
β”‚   β”œβ”€β”€ hardware/          Hardware manifests (PCI IDs, modules)
β”‚   β”œβ”€β”€ scripts/           Build and detection scripts
β”‚   β”œβ”€β”€ systemd/           Systemd service units
β”‚   └── pxe/               PXE network boot docs
β”œβ”€β”€ docs/                  Research & reference docs
└── scripts/               Shell helpers (marathon.sh)

Developer References

API & CLI Documentation

Frameworks & Libraries

Docs

Release History

VersionChangesUrgencyDate
v0.2.0## ralphglasses v0.2.0 **222 MCP tools** | **Multi-provider fleet orchestration** | **Go 1.26+** ### Highlights - Parallel Claude Code, Gemini CLI, and OpenAI Codex session management - Google Antigravity as first-class provider - Codex planner/worker loop orchestration - Event-driven cost cap enforcement with budget alerts - A2A agent card publishing and discovery - PublishLane planner for automated release workflows - k9s-style TUI with real-time session monitoring ### Install ```bash go High4/16/2026
main@2026-04-14Latest activity on main branchHigh4/14/2026
v0.1.0Latest release: v0.1.0High4/9/2026

Dependencies & License Audit

Loading dependencies...

Similar Packages

tekmetric-mcpπŸ” Ask questions about your shop data in natural language and get instant answers about appointments, customers, and repair orders with Tekmetric MCP.main@2026-04-21
devkitA deterministic development harness for Claude Code β€” MCP workflow engine, enforcement hooks, YAML workflows, and multi-agent consensus (Claude + Codex + Gemini)v2.1.29
mcp-brasilMCP Server para 41 APIs pΓΊblicas brasileirasv0.12.1
everything-claude-codeThe agent harness performance optimization system. Skills, instincts, memory, security, and research-first development for Claude Code, Codex, Opencode, Cursor and beyond.v1.10.0
Kanban-for-AI-AgentsπŸ“‹ Empower AI agents to autonomously manage projects with a filesystem-based Kanban system for efficient task tracking and documentation.main@2026-04-21