Overview
Forge provides intelligent tab completion for commands, options, and arguments across multiple shells. The completion system includes:- Command name completion
- Option and flag completion
- Argument value suggestions
- Context-aware completions
- Agent name completion
- File path completion
Supported Shells
Forge provides native completion support for:- ZSH - Full integration with plugin
- Bash - Standard completion script
- Fish - Native Fish completions
- PowerShell - Windows PowerShell support
Installation
ZSH
Automatic Setup
The completions are automatically installed with the ZSH plugin:This includes:
- Standard Forge command completions
- Custom
:commandcompletion widget - File tagging completion with
@[file]syntax - Agent name completion
Bash
Fish
PowerShell
ZSH Advanced Completions
The Forge ZSH plugin includes enhanced completion features beyond standard command completion.Custom Completion Widget
The plugin implements a custom completion widget that handles:Implementation Details
Fromshell-plugin/lib/completion.zsh:5:
Keybindings
Fromshell-plugin/lib/bindings.zsh:31:
Available Completions
Command Completions
Option Completions
Argument Completions
Completion Configuration
ZSH Completion Styles
Customize completion behavior in your~/.zshrc:
File Completion Configuration
Customize file completion behavior:Troubleshooting
Completions not working
Completions not working
Slow completions
Slow completions
Custom completions not appearing
Custom completions not appearing
Examples
Basic Command Completion
ZSH Plugin Advanced Completion
Filtered Completion
Next Steps
ZSH Plugin
Full ZSH plugin with advanced features
ZSH Theme
Enhance your prompt with AI context
VS Code Integration
Use Forge in VS Code
Configuration
Configure Forge settings