# Opencode

> Monitor and manage your OpenCode tasks using helper scripts.

- Skill: `gabrielmoreira/opencode-2` (Agent Skill)
- Install (CLI): `npx skillmds@latest add gabrielmoreira/opencode-2`
- Raw SKILL.md: https://api.skillmd.com/api/skills/gabrielmoreira/opencode-2/raw
- Safety review: pending (external: skill-scanner PASS, skillspector PASS)
- Works with: Claude Code, Claude.ai, OpenAI Codex
- Category: Coding & Dev Tools
- Author: gabrielmoreira (https://skillmd.com/u/gabrielmoreira)
- Updated: 2026-09-21
- Page: https://skillmd.com/skills/gabrielmoreira/opencode-2

---


# OpenCode Skill

Use helper scripts to manage your OpenCode instances.

## 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.

## 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


