AnswerDotAI/shell_sage

ShellSage saves sysadmins’ sanity by solving shell script snafus super swiftly

What it solves

ShellSage addresses the difficulty of managing complex command-line tasks, debugging scripts, and navigating system operations by providing an AI assistant that understands your specific terminal context.

How it works

It integrates directly into your terminal workflow using tmux. By reading your terminal history and specific tmux panes, it gains the context needed to answer questions about your current work. You can pipe command outputs or files into it for analysis, and with proper configuration, it can even execute validated shell commands, create files, or search the internet. It supports various LLM providers like Claude, GPT, and Gemini via the fastllm library.

Who it’s for

It is designed for developers and system administrators who spend significant time in the terminal and want an AI-powered assistant that can "see" their current session, debug errors in real-time, and help manage system tasks without leaving the command line.

Highlights

  • Context-aware: Automatically reads tmux history and specific pane contents to provide relevant help.
  • Flexible integration: Works with multiple LLM providers including Anthropic, OpenAI, Google Gemini, and others.
  • Safe execution: Optional safecmd integration allows the AI to run commands using a curated allow-list to prevent destructive actions.
  • Interactive: Supports piping command output directly into the assistant and extracting suggested code blocks back into your prompt.
  • Customizable: Offers configuration for themes, history management, and even a "sassy" personality mode.

Related

  • Project
  • Project
  • Project
  • Project
  • Project