Agent skill · nousresearch
opencode
Delegate coding to OpenCode CLI (features, PR review).
What it needs
About 4k tokens when loaded.
What this skill does
OpenCode CLI Use OpenCode as an autonomous coding worker orchestrated by Hermes terminal/process tools. OpenCode is a provider-agnostic, open-source AI coding agent with a TUI and CLI. When to Use User explicitly asks to use OpenCode You want an external coding agent to implement/refactor/review code You need long-running coding sessions with progress checks You want parallel task execution in isolated workdirs/worktrees Prerequisites OpenCode installed: npm i -g opencode-ai@latest or brew install anomalyco/tap/opencode Auth configured: opencode auth login or set provider env vars (OPENROUTERAPIKEY, etc.) Verify: opencode auth list should show at least one provider Git repository for code tasks (recommended) pty=true for interactive TUI sessions Binary Resolution (Important) Shell environments may resolve different OpenCode binaries. If behavior differs between your terminal and Hermes, check: If needed, pin an explicit binary path: One-Shot Tasks Use opencode run for bounded, non-interactive tasks: Attach context files with -f: Show model thinking with --thinking: Force a specific model: Interactive Sessions (Background) For iterative work requiring multiple exchanges, start the TUI in background: Important: Do NOT use /exit — it is not a valid OpenCode command and will open an agent selector dialog instead. Use Ctrl+C (\x03) or process(action="kill") to exit. TUI Keybindings Key Action ----- -------- Enter Submit message (press twice if needed) Tab Switch between agents (build/plan) Ctrl+P Open command palette Ctrl+X L Switch session Ctrl+X M Switch model Ctrl+X N New session Ctrl+X E Open editor Ctrl+C Exit OpenCode Resuming Sessions After exiting, OpenCode prints a session ID. …
How to use it
Reference it in AdaL, Claude Code, Cursor or any coding agent — nothing to install:
@skills nousresearch/opencode--070c17