mcpField
O
opencode

opencode

github.com/volcengineAgent workflows41.2k150 installsUpdated 1d ago
Repository

About opencode

A skill for managing OpenCode instances through helper scripts. It lists sessions, retrieves a session’s latest messages, and reports its status.

Key features

  1. 01List OpenCode sessions
  2. 02View a session’s latest messages
  3. 03Show waiting, working, or unknown status

Use cases

  1. 01Inspect OpenCode sessions
  2. 02Check the latest messages in a session
  3. 03Determine an agent session’s status

Install

Copy the command and run it in a terminal.

$npx skills add https://github.com/volcengine/openviking --skill opencode

After installing, type/opencodein Claude Code to confirm it loaded.

Bundled files

References and scripts installed along with SKILL.md.

list_sessions.py
opencode_utils.py
status.json

Details

From the project README

OpenCode Skill

Use helper scripts to manage your OpenCode instances.

Helper Scripts

All scripts are in the workspace skills directory. Run them with:

uv run python skills/opencode/script_name.py

Note: Do not kill the opencode process.

Scripts

list_sessions.py

Listing all OpenCode sessions

Example: uv run python skills/opencode/list_sessions.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 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

Comments

Markdown supported