explaingit

guanhuaye/codex-tmux-scroll

Analysis updated 2026-05-18

32ShellAudience · developerComplexity · 2/5Setup · easy

TLDR

A patched build of the Codex CLI that makes mouse scrolling work correctly for reading history inside tmux.

Mindmap

mindmap
  root((codex-tmux-scroll))
    What it does
      Fixes mouse scroll
      Freezes history view
      Tracks scroll position
    Tech stack
      Shell
      Codex CLI
      tmux
    Use cases
      Scroll AI chat history
      Copy text with mouse
      Jump to latest output
    Audience
      Developers

Code map

Detail Auto

An interactive map of this repo's files and how they connect — its source is parsed live in your browser. Click Visualize to build it.

filefunction / class

What do people build with it?

USE CASE 1

Scroll the mouse wheel to read back through a Codex conversation instead of tmux command history.

USE CASE 2

Drag-select text in the conversation view to copy it to your clipboard.

USE CASE 3

Double-click near the input box to jump back to the most recent output.

USE CASE 4

Run one curl command to install without touching your existing Codex setup.

What is it built with?

ShelltmuxCodex CLI

How does it compare?

guanhuaye/codex-tmux-scrollarixworks/g-tunnelvirtudude/armada
Stars323232
LanguageShellShellShell
Setup difficultyeasyeasyhard
Complexity2/52/54/5
Audiencedevelopergeneralgeneral

Figures from each repo's GitHub metadata at analysis time.

How do you get it running?

Difficulty · easy Time to first run · 5min

Linux x86_64 only, requires an existing tmux setup.

Unknown, the explanation does not state a license.

In plain English

Codex is an AI coding assistant that runs in the terminal. When you use it inside tmux, a popular tool for managing multiple terminal sessions at once, the default mouse behavior gets in the way: scrolling the mouse wheel navigates through your command history instead of letting you read back through your AI conversation. This project fixes that problem. codex-tmux-scroll is a modified build of the Codex CLI, patched specifically for tmux users. When you scroll the mouse wheel, it moves through your Codex conversation history rather than interfering with the terminal. The history view freezes in place while you read it, so new output does not push your reading position around. A small indicator shows how far back in the conversation you are. The input box stays visible at the bottom of the screen the whole time. If you use your mouse to drag and select text in the conversation, it copies to your clipboard. Double-clicking near the input box jumps you back to the most recent output. Installation is a single curl command for Linux x86_64 systems. The installer places the binary and a wrapper script in your home directory without touching your existing codex setup. You run it as codex-tmux-scroll instead of codex, and all the normal Codex arguments work the same way. The project does not copy the entire Codex source code into this repository. Instead it keeps a small patch file that records only the tmux-specific changes. When the upstream Codex CLI releases a new version, the maintainer rebases that patch onto the new release, rebuilds the binary, and publishes a new GitHub release. Users update by running the same install command again. This is a focused tool for one specific workflow: developers who run long Codex sessions inside tmux and want their mouse to behave sensibly. If you do not use tmux, this project offers nothing over the standard Codex CLI.

Copy-paste prompts

Prompt 1
Help me install codex-tmux-scroll on Linux x86_64 with the single curl command.
Prompt 2
Explain how codex-tmux-scroll keeps the history view frozen while I read it.
Prompt 3
Show me how to update codex-tmux-scroll when a new upstream Codex release comes out.
Prompt 4
Walk me through using mouse drag-select to copy text from my Codex conversation in tmux.

Frequently asked questions

What is codex-tmux-scroll?

A patched build of the Codex CLI that makes mouse scrolling work correctly for reading history inside tmux.

What language is codex-tmux-scroll written in?

Mainly Shell. The stack also includes Shell, tmux, Codex CLI.

What license does codex-tmux-scroll use?

Unknown, the explanation does not state a license.

How hard is codex-tmux-scroll to set up?

Setup difficulty is rated easy, with roughly 5min to a first successful run.

Who is codex-tmux-scroll for?

Mainly developer.

Open on GitHub → Explain another repo

This repo across BitVibe Labs

Verify against the repo before relying on details.