ForgeShell Documentation
📦 What is ForgeShell?
ForgeShell is a developer-first terminal assistant that leverages AI to help you explain, optimize, and safeguard your shell commands in real-time. Built in Rust for performance and safety, ForgeShell empowers developers with intelligent command-line insights while maintaining full transparency.
🧰 Core Functionality
ForgeShell provides intelligent assistance across your entire command-line workflow, from understanding complex commands to optimizing shell scripts and preventing dangerous operations.
😓 Addressing Shell User Pain Points
ForgeShell is designed to reduce friction and eliminate common frustrations in the CLI and shell scripting experience.
Interactive CLI Challenges
- Steep Learning Curve →
forge assist
andforge explain
provide real-time context - Lack of Visual Feedback → Command summaries and logs help visualize what's happening
- Typing/Memorization Issues →
forge build
guides you step-by-step - Finding the Right Command → Natural language queries via
forge assist
- Cryptic Errors → AI-enhanced error explanations
Shell Scripting Challenges
- Syntax Quirkiness →
forge optimize
highlights improvements - Limited Error Handling → Detects missing
set -e
patterns - Debugging Headaches →
forge trace
for execution tracing - Portability Problems → POSIX compliance suggestions
- Security Risks → Warns on unescaped input and risky patterns
⚡ 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 general questions like:
- "How do I tail a log and highlight errors?"
- "What's the best way to SCP a file from server A to B?"
- Functions as a terminal-native prompt engineer
🔧 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 you're trying to accomplish
- Receives a step-by-step breakdown of your available options
- Offers command suggestions with usage notes and safety tips
Example:
📜 AI Command History
- Shows recent commands with AI explanations
- Tags unsafe or inefficient usage
- 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