---
name: interactive-terminal-pair-programming
description: "Reviews code selections and file buffers sent from an editor session, generates targeted code edits, fixes, or explanations, and presents complete diffs for manual review. Use when a developer wants interactive pair programming in the terminal before applying changes."
license: CC-BY-4.0
compatibility: "Needs access to: Terminal, Chat."
metadata:
  author: "BotBento Editorial"
  version: "2026-10-16"
  source: "https://botbento.com/usecases/interactive-terminal-pair-programming/"
  kind: skill
  hermes:
    tags: ["programming", "developer", "pairprogramming", "refactoring"]
    category: coding
    requires_toolsets: ["terminal"]
---
# Interactive terminal pair programming

Receive buffer selections, generate targeted code edits, and review changes interactively

## When to use

Receive targeted code snippets, file buffers, and cursor positions from your text editor environment. The bot analyzes the context against your programming instructions, generates code suggestions or bug fixes, and presents diffs for manual review before applying edits to your project.

## Inputs

- `code_snippet`: Code selection, file buffer, or snippet sent from the editor session.
- `task_instruction`: Programming task or instruction describing the desired change, fix, or explanation.
- `cursor_position` (optional): Cursor position or selection range within the file buffer.
- `file_context` (optional): Additional file buffer context from the editor session.

## Steps

1. When you ask: Receive code snippet and task (User sends a code selection, file buffer, or cursor context from their editor with a programming task or question.)
2. Generate diff and explanation
3. Review and approve file edits

## Instructions

When code selections or buffer context are sent from the editor session, examine the context and the requested task. Explain the proposed modifications clearly and present complete diffs. Do not apply, overwrite, or delete any source files without explicit confirmation from the user.

## Approvals

- Applying proposed code edits to source files requires explicit user confirmation.
- Overwriting existing source files requires explicit user confirmation.
- Deleting source files requires explicit user confirmation.

## Output

Markdown response containing proposed code diffs and clear explanations for manual review. (format: markdown)

## Source

Summarized in our own words from [opencode.nvim: Neovim 🤝 OpenCode in the flow that you already know.](https://github.com/nickjvandyke/opencode.nvim) (GitHub, checked 2026-10-16). Any results described there are the authors’ own.

From the BotBento use-case directory: https://botbento.com/usecases/interactive-terminal-pair-programming/. Licence: [CC BY 4.0](https://creativecommons.org/licenses/by/4.0/).
