跳到主要内容
    ↑↓ 选择↵ 打开esc 关闭
    中文English
    niushuai1991

    Traffic Light

    v1.0.3工具与命令
    opencode-traffic-light

    TUI plugin that adds a traffic-light status indicator to your OpenCode terminal title

    GitHub 星标

    1

    月装机量

    52

    近 7 天 11

    综合评分SCORE

    31.1

    生态多维模型

    最近提交

    1 个月前

    2026-07-09

    快速安装与配置

    opencode.json

    写入当前项目的 opencode.json,只对这个仓库生效。

    opencode.json

    {
      "$schema": "https://opencode.ai/config.json",
      "plugin": ["opencode-traffic-light@1.0.3"]
    }

    opencode 启动时会通过内嵌运行时自动加载 npm 依赖并缓存至本地目录,无需手动在全局环境执行安装。

    A TUI plugin that adds a status indicator to your terminal title bar, giving you a quick visual cue of what OpenCode is doing.

    Status Colors

    Color Meaning
    🟢 Green Idle, waiting for input, or pending permission/question
    🟡 Yellow Busy but no active tool or text output (thinking)
    🔴 Red Running tools or generating text

    demo

    Installation

    Add the plugin to your tui.json:

    {
      "plugin": ["opencode-traffic-light"]
    }
    

    That's it. OpenCode will automatically install the plugin on next run.

    Note: This is a TUI plugin, so it must be configured in ~/.config/opencode/tui.json, not opencode.json.

    Usage

    The traffic light activates automatically. The terminal title will look like:

    • 🟢 OC | My Session — idle
    • 🟡 OC | My Session — thinking
    • 🔴 OC | My Session — working

    Toggle

    Run "Toggle traffic light" from the command palette to enable or disable the traffic light. The preference is persisted across sessions.

    Environment Variable

    Set OPENCODE_DISABLE_TERMINAL_TITLE=1 to prevent the plugin from modifying the terminal title.

    License

    MIT