Skip to content
rsePublic

About

Claude Code Extended

Resources

Stars

1 star

Watchers

0 watching

Forks

Repository files navigation

claudeX — Claude Code eXtended

This is Dr. Ralf S. Engelschall (RSE)'s opinionated Claude Code environment for macOS and Linux. It mainly provides a thin claudex (claude eXtended) wrapper command which provides the following distinct features on top of the regular Claude Code command:

  • Adjusted Theme: It uses the companion tool ansi-recolor, also from RSE, to on-the-fly re-color Claude Code's terminal UI (configured to run in regular light theme) into the RSE brown/blue color theme, without having to patch Claude Code (with tools like TweakCC, which regularly have to be updated to not fail on this task).

    Rationale: RSE is obsessed from "distraction free coding", which, for him, implies that everthing has to use his unobtrusive brown/blue color theme.

  • Terminal Multiplexing: It uses the companion tool tmux to run Claude Code and its companion tools in an opinionated virtual terminal environment, with multiple screens and multiple panes on each screen.

    Rationale: Allow one to easily run multiple Claude Code sessions in parallel with full terminal interaction.

  • Encapsulated Runtime: It optionally uses the companion tool capsula, also from RSE, for executing claude inside a cleverly established Docker container, which mimicks the host environment (filesystem layout, user/group name/id, etc) as close as possible.

    Rationale: Prevents any programs claude spawns from damaging more than the current working directory.

  • Companion Tools: It allows you to execute (visually in a modal window on top of Claude Code with the help of tmux popups) the companion tools LazyGit (for Git version control) and Bash (for Shell).

    Rationale: The most important companion tool is LazyGit, allowing the easily partial backout of changes Claude Code made to source code.

Impressions

The following is a main view of the macOS Terminal with a claudeX session running. Three Claude Code instances are running in separate panes of the screen.

screenshot

This is with LazyGit opened on top of Claude Code in a modal window:

screenshot

Installation

# initially
$ npm install -g @rse/claudex
$ claudex [-C/--capsula] install

# regularly
$ claudex [-C/--capsula] update

Usage

$ claudex
    [-C|--capsula]         # execute Claude Code inside a Capsula sandbox container")
    [-T|--tmux [session]]  # wrap Claude Code in a Tmux terminal multiplexing session (optional session name)")
    [-R|--recolor]         # wrap Claude Code with ANSI recoloing for improved theming")
    [-A|--ase]             # enable ASE-specific Claude Code statusline and ASE_* environment variables")
    [...options...]        # arbitrary Claude Code options
#   example: run Claude Code with Gemma 4 31B MTP under local Ollama
$ CLAUDE_MODEL="ollama:/gemma4:31b-coding-mtp-bf16?context=262K" claudex -T -R -A
#   example: run Claude Code with Google Gemini 3.5 Flash via remote OpenRouter
$ CLAUDE_MODEL="openrouter:google/gemini-3.5-flash?context=1000000" claudex -T -R -A
#   example: run Claude Code with a Codex model via a local proxy
$ CLAUDE_MODEL="codex:gpt-6.1-sol[1m]" claudex -T -R -A

Codex mode requires claude-code-proxy in $PATH with its Codex authentication configured. claudeX reuses a healthy proxy at http://127.0.0.1:18765, or automatically starts claude-code-proxy serve --port 18765 --no-monitor and waits for readiness. The proxy stays running after Claude Code exits so other sessions can reuse it. With -C, the proxy and its authentication must be available inside the container.

See Also

License

Copyright © 2026 Dr. Ralf S. Engelschall
Licensed under GPL 3.0

About

Claude Code Extended

Resources

Stars

1 star

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages