ForgeShell Documentation
π¦ What is ForgeShell?
ForgeShell is an operations-first terminal assistant for the people who carry the pager. It leverages AI to help operators, SREs, and platform engineers explain, simulate, and safeguard production commands in real time. Built in Rust for performance and safety, ForgeShell keeps incident responders fast while maintaining full transparency and control.
π§° Core Functionality
ForgeShell backs every phase of an on-call workflowβfrom understanding complex remediation steps to optimizing runbooks and intercepting dangerous operations before they reach production.
π Eliminating On-Call Shell Pain Points
ForgeShell removes friction for incident responders working in high-pressure terminals, covering both live CLI fixes and scripted automations.
Interactive CLI Challenges Under Pressure
- Steep Learning Curve for new responders β
forge assistandforge explainprovide runbook-ready context - Lack of Visual Feedback β Command summaries and logs clarify what will happen before you press enter
- Typing/Memorization Issues β
forge buildguides responders step-by-step - Finding the Right Command β Natural language queries via
forge assisttranslate incident intent into action - Cryptic Errors β AI-enhanced error explanations speed up incident triage
Shell Scripting Challenges in Production
- Syntax Quirkiness β
forge optimizehardens scripts before they ship to production - Limited Error Handling β Detects missing
set -epatterns and escalation paths - Debugging Headaches β
forge traceprovides incident-ready execution tracing - Portability Problems β POSIX compliance suggestions keep shared runbooks consistent
- Security Risks β Warns on unescaped input and risky patterns before change windows open
β‘ Core Commands
π Explain Command
- Uses AI to break down unfamiliar shell commands
- Highlights potential risks
- Suggests safer alternatives when applicable
Example:
π Optimize Script
- Scans shell scripts for redundant loops, unsafe calls, and poor performance
- Suggests rewrites using best practices
- Highlights lines that could be simplified or parallelized
β οΈ Risk Detection
- Warns before executing high-risk operations (e.g.,
rm -rf,kill -9,chmod 777,curl | sh) - Adds confirmation prompts for flagged actions
π§ Contextual Assistant
Responds to real-time on-call questions like:
- "How do I tail a log and highlight errors during an incident?"
- "What's the safest way to SCP a hotfix from server A to B?"
- Functions as a terminal-native prompt engineer for ops teams
π§ Command Builder
- Walks you through filling in parameters for common commands
- Builds correct syntax based on prompts (e.g., hostname, port, key path)
- Optionally outputs a ready-to-use shell script or alias
Example:
π§ Task-Oriented Guidance
- Tell ForgeShell what on-call task you're trying to accomplish
- Receives a step-by-step breakdown of safe options and rollback paths
- Offers command suggestions with usage notes, safety tips, and simulation advice
Example:
π AI Command History
- Shows recent commands with AI explanations for post-incident reviews
- Tags unsafe or inefficient usage to feed back into runbooks
- Optional local-only history with privacy-respecting settings
π Privacy & Security
- β ForgeShell does not transmit shell history unless explicitly opted-in
- β Local-only mode using Ollama or llama.cpp supported
- β API key vault for OpenAI / Anthropic / other LLMs with .env support
π Installation
Option 1: Rust (Cargo)
Option 2: Binary Installer
Option 3: Homebrew (Coming Soon)
Option 4: Debian-based (.deb)
Requires: Ubuntu, Debian, or compatible distribution
Option 5: RPM-based (.rpm)
Requires: RHEL, Fedora, CentOS, or compatible distribution
π Release Plan
Alpha
Explain, Optimize, Risk Warnings, Local Logging
Enhanced Features
Plugin support, prompt packs, community workflows
Advanced Platform
Visual workflow builder, team logging, full agentic CLI