AnswerDotAI/shell_sage
ShellSage saves sysadmins’ sanity by solving shell script snafus super swiftly
What it solves
ShellSage is an AI-powered command-line assistant designed to help users navigate complex shell operations, debug scripts, and manage systems without leaving the terminal. It eliminates the need to manually copy-paste terminal errors or context into a separate AI chat window by integrating directly with the terminal workflow.
How it works
ShellSage integrates with tmux to automatically read terminal history and multiple pane histories, providing the LLM with immediate context of the user's current session. It supports multiple LLM providers (including Claude, GPT, and Ollama) via the fastllm library. Users can interact with it via the ssage CLI, pipe command output directly into it for analysis, or reference specific tmux panes by ID. It can also view files, search code, and perform edits with user permission.
Who it’s for
It is built for developers, system administrators, and power users who spend significant time in the command line and use tmux for session management.
Highlights
- Tmux Integration: Automatically captures terminal and multi-pane history for contextual AI assistance.
- Piped Input: Allows users to pipe the output of any command directly to the AI for explanation or debugging.
- Broad Model Support: Compatible with a wide range of providers including Anthropic, OpenAI, Google, and local models via Ollama.
- Tool Use: Capable of searching the internet, viewing files, and editing code with user permission.
- Context Management: Includes a specialized
ssage_clearbinding to manage what the AI sees without destroying the user's scrollback history.
Related
- Project
- Project
- Project
- Project
- Project