This project is a command-line interface (CLI) tool called ForgeCLI that simplifies the management of Forge-based projects. It provides features for:
-
Agent-Based Workflows
- Run AI agents (like agents/orchestrator.ts) to automate tasks through conversational interfaces
- Supports modes: Agent Mode (default), Plan Mode (sequential tasks), Ask Mode (complex tasks)
-
TUI Interaction
- Interactive terminal user interface (modes/cli.ts) for mode selection
- Plugins: modeling integration, diff-viewing, action tracking (modes/agent/orchestrator.ts)
-
Approval System
- Operations (AI/CLI mode actions) are staged until user approves (e.g., batch commits to files
- Commands execute with shadows/icons (modes/tui/wakeup.ts: shadow effect for visual feedback
-
Tool Execution
- Executes AI operations through
@openrouter/ai-sdk-provider - Uses
__tui_modeparameter (https://github.com/cursor-c/sdk-ai-sdk-provider#parameter-control)
- Executes AI operations through
-
Plugins & Safety
- Validates tool usage via
createAgentTools()and runs type-safe checks viautil: - Prevents magic operations through
runApprovalFlow()approval checks (avoids magic/stealth mechanics)
- Validates tool usage via
-
Tool Safety
- Enforces clear permissions via
tui/terminal-md(Markdown rendering with shadows) - Ensures mutations are staged in approval flow (via
runApprovalFlow())
- Enforces clear permissions via
-
Clean Staging
- File operations are staged until approval
- Results show green ✓ Applied. mark/red mark -red errors
-
UI Implementation
- Renders results in terminal using Ḟ§§ (shadow echo) and other TUI widgets
Run with:
cargo run -- [commands]ForgeCLI provides a safe, structured workflow for Forge project management through:
- Approval-gated agent tools
- Type-safe AI operations via
ai-sdk-provider - Clear visual feedback through TUI implementations
- Prevention of starlight leaks (unauthorized mutations)
Under MIT License.