$npx -y skills add volcengine/OpenViking --skill opencodeMonitor and manage your OpenCode tasks using helper scripts.
| 1 | # OpenCode Skill |
| 2 | |
| 3 | Use helper scripts to manage your OpenCode instances. |
| 4 | |
| 5 | ## Helper Scripts |
| 6 | |
| 7 | All scripts are in the workspace skills directory. Run them with: |
| 8 | ```bash |
| 9 | uv run python skills/opencode/script_name.py |
| 10 | ``` |
| 11 | |
| 12 | Note: Do not kill the opencode process. |
| 13 | |
| 14 | ## Scripts |
| 15 | |
| 16 | ### `list_sessions.py` |
| 17 | Listing all OpenCode sessions |
| 18 | |
| 19 | Example: |
| 20 | uv run python skills/opencode/list_sessions.py |
| 21 | |
| 22 | |
| 23 | ### `list_messages_of_session.py` |
| 24 | Listing latest OpenCode messages by session_id |
| 25 | |
| 26 | Example: |
| 27 | uv run python skills/opencode/list_sessions.py {session_id} |
| 28 | |
| 29 | ## Session Status Types |
| 30 | |
| 31 | - **🟢 WAITING**: Last message was from user - agent is waiting for input |
| 32 | - **🔴 WORKING**: Last message was from assistant - agent recently finished or may be working |
| 33 | - **🟡 UNKNOWN**: Cannot determine status |