opencode

Compare original and translation side by side

🇺🇸

Original

English
🇨🇳

Translation

Chinese

OpenCode Skill

OpenCode 技能

Use helper scripts to manage your OpenCode instances.
使用辅助脚本管理你的OpenCode实例。

Helper Scripts

辅助脚本

All scripts are in the workspace skills directory. Run them with:
bash
uv run python skills/opencode/script_name.py
Note: Do not kill the opencode process.
所有脚本都位于工作区的skills目录中。运行方式如下:
bash
uv run python skills/opencode/script_name.py
注意:不要终止opencode进程。

Scripts

脚本介绍

list_sessions.py

list_sessions.py

Listing all OpenCode sessions
Example: uv run python skills/opencode/list_sessions.py
列出所有OpenCode会话
示例: uv run python skills/opencode/list_sessions.py

list_messages_of_session.py

list_messages_of_session.py

Listing latest OpenCode messages by session_id
Example: uv run python skills/opencode/list_sessions.py {session_id}
通过session_id列出OpenCode的最新消息
示例: uv run python skills/opencode/list_sessions.py {session_id}

Session Status Types

会话状态类型

  • 🟢 WAITING: Last message was from user - agent is waiting for input
  • 🔴 WORKING: Last message was from assistant - agent recently finished or may be working
  • 🟡 UNKNOWN: Cannot determine status
  • 🟢 等待中:最后一条消息来自用户 - Agent正在等待输入
  • 🔴 处理中:最后一条消息来自助手 - Agent最近已完成或可能正在处理
  • 🟡 未知:无法确定状态