rat is an experiment in composing shell commands to build interactive, text-based interfaces—think “tig-style” navigation with as little custom UI logic as possible. Rather than reimplementing features, it delegates work to existing tools: a shell command generates output, a pager displays it, and “annotators” attach actions to recognized patterns. For example, a mode might run git log --graph and annotate commit hashes so hitting a key can open a diff, check out a branch, or run a follow-up command. Another mode could list files or search results and let you act on selected lines, chaining shell operations together. The design encourages small, composable behaviors that feel like browsing within structured terminal output, while retaining the power of the underlying CLI. It’s a hacker-friendly approach to interactive workflows: leverage the ecosystem of commands you already trust, add a thin layer of annotations, and turn static listings into a navigable, actionable interface.

Features

  • Modes: you can define “modes” composed of annotators + keybindings for specific behavior in a pager view
  • Annotators: types include match, regex, or external, to identify ranges in command output to mark as clickable/interactive parts
  • Keybindings: able to map keys to actions operating on those annotated lines (like open file, delete, preview etc.)
  • Composition: can chain or combine shell commands, feed their output, etc.
  • Configuration is via a ratrc file (in ~/.config/rat by default) to customize modes, annotators, keybindings etc.
  • Experimental, evolving; output displayed via pagers; emphasizes delegating much of functionality to existing shell commands rather than re-writing functionality internally

Project Samples

Project Activity

See All Activity >

Categories

System

License

MIT License

Follow Rat

Rat Web Site

Other Useful Business Software
Paessler: Easy to Use With Enterprise Power. Free Trial Icon
Paessler: Easy to Use With Enterprise Power. Free Trial

A low-code dashboard makes monitoring intuitive for any admin, while scripting and custom sensors give experts full control.

You shouldn't have to choose between a monitoring tool that's easy to use and one that's powerful enough for a complex environment. PRTG's low-code interface lets any admin build dashboards, set alerts and monitor devices without scripting, while custom sensors and full API access are there when your team needs deeper control. One platform, no compromise. Download a free 30-day trial now.
Get Free Download
Rate This Project
Login To Rate This Project

User Reviews

Be the first to post a review of Rat!

Additional Project Details

Operating Systems

Linux, Mac

Programming Language

Go

Related Categories

Go System Software

Registered

2025-09-19