Forge is a terminal-based launcher designed for AI programming assistants (e.g., Claude Code, Codex). It enables rapid project switching within a "Root" directory and automates the execution of startup commands.
- Effortless Navigation: No more constant
cdor path hunting. - Unified Startup: Consolidate commands and arguments for various AI tools.
- Persistent Context: Remember your default Root directory while allowing overrides.
- Smart Scanning: Automatically ignores
.git,node_modules, and other noise for a snappy UI.
brew install LittleBunVerse/tap/forgego install github.com/LittleBunVerse/forge/cmd/forge@latestRun it directly:
forgeThe first run will guide you through setting up your default scanning directory (Root).
Specify a temporary Root:
forge --root "~/Projects"
# or simply
forge "~/Projects"forge config: Display current configuration.forge config set-root <path>: Update the default scanning directory.forge root: Shorthand for updating the root.
The configuration is stored in ~/.config/forge/config.json.
{
"root": "/Users/you/Projects",
"commands": [
{ "name": "Claude Code", "command": "claude", "args": [] },
{ "name": "Codex", "command": "codex", "args": [] }
],
"projects": [
{ "name": "my-app", "path": "~/Projects/my-app" }
]
}FORGE_ROOT: Override the default root directory.FORGE_CONFIG_DIR: Specify a custom configuration directory.XDG_CONFIG_HOME: Follows XDG base directory specification.
- Depth: Scans only the first level of the root directory.
- Exclusions: Automatically ignores directories starting with
.(e.g.,.git) and common noise such asnode_modules,target,dist, andvendor.
# Run tests
go test ./...
# Local build
go build -o forge ./cmd/forge