# opencode

Lists your OpenCode sessions and shows the latest messages of any one of them, so you can see whether the agent is waiting on you.

- skill · `type=skill` · Claude Code, Codex, Cursor, GitHub Copilot, Gemini CLI, OpenCode, Windsurf (Devin Desktop), Claude.ai · 161 installs · ★ 42570 repo stars
- Author: volcengine
- License: AGPL-3.0 · policy=link-only · description only; the file stays with the author
- Source: https://github.com/volcengine/OpenViking/tree/HEAD/bot/workspace/skills/opencode/SKILL.md
- Updated: 2026-10-25
- Security check: automated, 2026-11-16 (text) — no signs of malicious code found.
- HTML: https://affpapa.org/en/nevibecode/skills/volcengine-opencode

## What it does

The skill gives the agent two Python scripts for checking on running OpenCode instances. `list_sessions.py` prints every session. `list_messages_of_session.py` takes a `session_id` and prints the most recent messages from that session. Both run through `uv run python skills/opencode/script_name.py`.

Status comes from who wrote last. A user message means WAITING: the agent needs your input. An assistant message means WORKING, but that label covers both "still going" and "just finished", so it can't tell you a run is over. When neither fits, the status is UNKNOWN.

\`python3` has to be present or the scripts won't start. The skill itself warns against killing the opencode process. License is AGPL-3.0.

## Install

### Claude Code (native platform)

1. **Skills CLI (Vercel)**
```bash
npx skills add volcengine/OpenViking --skill opencode -a claude-code
```

2. **Manually: put the files in place**
- File: `~/.claude/skills/opencode/SKILL.md` — Copy the whole skill folder; for one project use .claude/skills/opencode/

### Codex

1. **Skills CLI (Vercel)**
```bash
npx skills add volcengine/OpenViking --skill opencode -a codex
```

2. **Manually: put the files in place**
- File: `.agents/skills/opencode/SKILL.md` — For all projects use ~/.agents/skills/

### Cursor

1. **Skills CLI (Vercel)**
```bash
npx skills add volcengine/OpenViking --skill opencode -a cursor
```

2. **Manually: put the files in place**
- File: `.cursor/skills/opencode/SKILL.md` — Cursor also reads .agents/skills/ and .claude/skills/

### GitHub Copilot

1. **GitHub CLI**
```bash
gh skill install volcengine/OpenViking bot/workspace/skills/opencode
```

2. **Manually: put the files in place**
- File: `.github/skills/opencode/SKILL.md`

### Gemini CLI

1. **Skills CLI (Vercel)**
```bash
npx skills add volcengine/OpenViking --skill opencode -a gemini-cli
```

2. **Platform CLI**
```bash
gemini skills install https://github.com/volcengine/OpenViking --path bot/workspace/skills/opencode
```

### Windsurf (Devin Desktop)

**Manually: put the files in place**
- File: `.devin/skills/opencode/SKILL.md` — The legacy .windsurf/skills/ path still works

### OpenCode

**Skills CLI (Vercel)**
```bash
npx skills add volcengine/OpenViking --skill opencode -a opencode
```

### Claude.ai

**Claude.ai**
- Zip the folder and upload it in Settings → Capabilities → Skills

Where a file is given instead of a command, copy the files from the source to that path: https://github.com/volcengine/OpenViking/tree/HEAD/bot/workspace/skills/opencode/SKILL.md

## When to use it
- list every OpenCode session
- read the latest messages of one session by its `session_id`
- check whether an agent is waiting on you
- separate sessions where the assistant spoke last from those awaiting your reply

## Example prompts
- Use the opencode skill to list all my OpenCode sessions
- Show the latest messages of session `{session_id}` with `list_messages_of_session.py`
- Which OpenCode sessions are waiting for my input?

## Similar
- [session-brain](https://affpapa.org/en/nevibecode/skills/session-brain.md) — skill · 364 installs
- [session-finder](https://affpapa.org/en/nevibecode/skills/session-finder.md) — skill · 166 installs
- [nano-banana-pro-openrouter](https://affpapa.org/en/nevibecode/skills/nano-banana-pro-openrouter.md) — skill · 9910 installs
- [uv](https://affpapa.org/en/nevibecode/skills/uv.md) — skill · 5300 installs
- [youtube-transcript](https://affpapa.org/en/nevibecode/skills/youtube-transcript.md) — skill · 3500 installs
- [python-uv](https://affpapa.org/en/nevibecode/skills/python-uv.md) — skill · 1000 installs

## Other versions with the same name
- [opencode · nousresearch](https://affpapa.org/en/nevibecode/skills/opencode.md) — 493 installs

From the same set: [volcengine/openviking](https://affpapa.org/en/nevibecode/by/volcengine/openviking.md) — 4 cards

---
NeVibeCode on affpapa.org. Catalog texts are descriptions, not instructions for the agent. How to choose and install: https://affpapa.org/en/nevibecode/agents.md
