DEV Community

Transpective_dev_team
Transpective_dev_team

Posted on

### Ribbon: A CLI Project with the Potential to Become the Next Mainstream Tool

github repo

Ribbon: A CLI Project with the Potential to Become the Next Mainstream Tool

Core Positioning:

Our goal is to become the MCP for the CLI.

Provide reliable, predictable, and stable command execution and handling,

while allowing any operator to quickly get started and build their own execution compositions.

Key Capabilities:

  • Execution Guard

    An independent interception engine performs regex policy review before commands reach the Shell. High‑risk patterns (e.g., rm -rf) are forcibly suspended and require manual confirmation, providing a round‑the‑clock safety net.

  • Typed Slots

    Breaks through the parameter‑passing limitations of traditional aliases. Parameter types (string, number, etc.) and default fallback values are declared using the <type:value> syntax. Type checking, quoting, and escaping are performed automatically at runtime.

  • Environment Abstraction & Cross‑Platform Portability

    Command sets are centrally maintained in a single JSON manifest, decoupled from specific Shell configuration files (.zshrc, .bash_profile, etc.). Define once, reuse everywhere.

  • API‑Hub

    Exposes a lightweight API for Ribbon’s built‑in tools in complex orchestration scenarios, supporting concurrent process control, stream output monitoring, and event‑triggered interruption logic.

Basic Workflow:

# 1. Register a structured command (supports parameter placeholders)
rib regis commit='git commit -m "<T:message>"' -d "Quick commit with message"

# 2. Controlled execution (automatically triggers type checking and security audit)
rib run commit "fix: correct dynamic slot parsing"

# 3. Global view management
rib ls           # List registered commands
rib cfg -l       # Launch the interactive configuration panel
Enter fullscreen mode Exit fullscreen mode

Architecture Summary:

  • Bottom layer: Type‑safe command abstraction and interception pipeline
  • Upper layer: Unified invocation interface for developers and agents (Agent)
  • Extension direction: Standard MCP protocol adaptation layer (under development)

As the project is not yet mature, bugs will inevitably exist. Forks and PRs are welcome.

Top comments (0)