# nickjvandyke/opencode.nvim

Neovim 🤝 OpenCode in the flow that you already know.

Repository: https://github.com/nickjvandyke/opencode.nvim
Canonical: https://ross.abutalabs.com/products/opencodenvim
Language: Lua
License: MIT
License Family: permissive
Topics: ai-agents, ai-assistant, neovim, nvim, opencode, plugin, terminal, neovim-plugin, ai, lua
Last push: 2026-08-21T14:04:52+00:00

## Health v2 (maintenance only)
Score: 84/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 98, release rhythm 98, longevity 29
- inputs: {"age_days": 417, "days_push": 12, "days_rel": 13, "gap_med": 5, "n_releases_24m": 26}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 3794, forks 150 (observed 2026-08-28T04:08:18.942685+00:00)

## What it is
A Neovim plugin written in Lua that integrates the OpenCode AI coding agent into the editor via its TUI and API. It injects editor context (cursor, selection, buffer), manages prompts and commands, and handles OpenCode edit events as autocmds.

## Use cases
- ask an AI assistant about the current buffer or selection from Neovim
- send visual selections or text objects to an AI coding agent
- accept, reject, and reload AI-generated code edits inside Neovim
- run OpenCode commands and sessions without leaving the editor
- trigger AI prompts with custom keymaps and operators

## When to choose
- you use Neovim and want OpenCode integration in your existing workflow
- you prefer AI pair programming with editor context injection and Vim-style keymaps
- you want to accept/reject AI edits and react to agent events via autocmds

## When to avoid
- you don't use Neovim or OpenCode
- you want a standalone AI chat app outside the terminal
- you need an IDE plugin for VS Code or JetBrains instead

## Facets
- artifact type: plugin
- maturity: active
- function: agent-framework, chatbot, developer-tools, plugin-system, terminal-ui
- domain: developer-tools, text-editors, artificial-intelligence
- platform: windows, cross-platform
- tags: neovim-plugin, opencode, ai-assistant, lua, editor-integration, pair-programming, ai-agents, command-line, linux, macos

## Member repositories
- nickjvandyke/opencode.nvim (main) score 84

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:08:18.942685+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T18:26:58.627286+00:00, confidence not recorded.
  - readme: https://github.com/nickjvandyke/opencode.nvim (fetched 2026-08-28T04:08:18.942685+00:00, sha 767114edad80)
- Data as of 2026-08-30T08:39:29.467469+00:00.
