KS
Killer-Skills

tui — how to use tui how to use tui, tui alternative, tui setup guide, what is tui, tui vs Codex CLI, tui install, real-time token usage tracking, Gemini CLI token usage, Claude Code token usage monitor

v1.0.0
GitHub

About this Skill

Perfect for CLI-focused Agents needing real-time token usage tracking and cross-platform compatibility. tui is a terminal UI-based token usage tracker that offers live updates and incremental re-parsing on file changes.

Features

Provides a terminal UI with live updates using Splitrail
Watches analyzer data directories for changes using the notify crate
Triggers incremental re-parsing on file changes and updates TUI via channels
Supports Gemini CLI, Claude Code, Codex CLI, and other compatible platforms
Offers real-time monitoring and cost tracking for token usage
Includes a file watching implementation using src/watcher.rs

# Core Topics

Piebald-AI Piebald-AI
[0]
[0]
Updated: 3/7/2026

Quality Score

Top 5%
26
Excellent
Based on code quality & docs
Installation
SYS Universal Install (Auto-Detect)
Cursor IDE Windsurf IDE VS Code IDE
> npx killer-skills add Piebald-AI/splitrail/tui

Agent Capability Analysis

The tui MCP Server by Piebald-AI is an open-source Categories.community integration for Claude and other AI agents, enabling seamless task automation and capability expansion. Optimized for how to use tui, tui alternative, tui setup guide.

Ideal Agent Persona

Perfect for CLI-focused Agents needing real-time token usage tracking and cross-platform compatibility.

Core Value

Empowers agents to monitor and analyze token usage in real-time, utilizing the notify crate for file watching and incremental re-parsing, and providing live updates via a terminal UI.

Capabilities Granted for tui MCP Server

Monitoring token usage for Gemini CLI and Claude Code
Debugging issues with real-time file watching
Tracking changes in analyzer data directories

! Prerequisites & Limits

  • Requires compatible CLI tools
  • Dependent on notify crate for file system events
Project
SKILL.md
1.2 KB
.cursorrules
1.2 KB
package.json
240 B
Ready
UTF-8

# Tags

[No tags]
SKILL.md
Readonly

Real-Time Monitoring & TUI

Splitrail provides a terminal UI with live updates when analyzer data files change.

Source Files

  • src/tui.rs - TUI entry point and rendering
  • src/tui/logic.rs - TUI state management and input handling
  • src/watcher.rs - File watching implementation

Components

FileWatcher (src/watcher.rs)

Watches analyzer data directories for changes using the notify crate. Triggers incremental re-parsing on file changes and updates TUI via channels.

RealtimeStatsManager

Coordinates real-time updates: background file watching, auto-upload to Splitrail Cloud (if configured), and stats updates to TUI via tokio::sync::watch.

TUI (src/tui.rs, src/tui/logic.rs)

Terminal interface using ratatui:

  • Daily stats view with date navigation
  • Session view with lazy message loading
  • Real-time stats refresh

Key Patterns

  • Channel-based updates - Stats flow through tokio::sync::watch channels
  • Lazy message loading - Messages loaded on-demand for session view to reduce memory

Adding Watch Support to an Analyzer

Implement get_watch_directories() in your analyzer to return root directories for file watching. See src/analyzer.rs for the trait definition.

Related Skills

Looking for an alternative to tui or building a Categories.community AI Agent? Explore these related open-source MCP Servers.

View All

widget-generator

Logo of f
f

widget-generator is an open-source AI agent skill for creating widget plugins that are injected into prompt feeds on prompts.chat. It supports two rendering modes: standard prompt widgets using default PromptCard styling and custom render widgets built as full React components.

149.6k
0
Design

chat-sdk

Logo of lobehub
lobehub

chat-sdk is a unified TypeScript SDK for building chat bots across multiple platforms, providing a single interface for deploying bot logic.

73.0k
0
Communication

zustand

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication

data-fetching

Logo of lobehub
lobehub

The ultimate space for work and life — to find, build, and collaborate with agent teammates that grow with you. We are taking agent harness to the next level — enabling multi-agent collaboration, effortless agent team design, and introducing agents as the unit of work interaction.

72.8k
0
Communication