claude-in-tmux

Manage Claude Code CLI in tmux sessions for background tasks and logging.

579|159|Updated Feb 22, 2026
One-click install
npx skills add https://github.com/xiaotianfotos/skills --skill claude-in-tmux
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: claude-in-tmux
Source: https://github.com/xiaotianfotos/skills/tree/main/claude-in-tmux
Command: npx skills add https://github.com/xiaotianfotos/skills --skill claude-in-tmux

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill requires Claude Code, tmux, Python, shell scripting, and includes scripts (resource) and references (resource) and assets (resource) components.

What problem does it solve?

This Skill addresses the challenge of running Claude Code CLI in tmux sessions for efficient task execution and logging.

Core Features & Use Cases

  • tmux Session Management: Manages and controls Claude Code CLI in tmux sessions.
  • Task Execution: Executes background tasks within tmux, utilizing Claude Code CLI.
  • Logging: Automates log creation and management for task sessions.
  • Session Attachment and Management: Attach to running sessions, manage them, and view session details.
  • Model Support: Integrates with various models like Kimi, MiniMax, and GLM-5 for diverse tasks.
  • Use Case: Ideal for long-running coding tasks or scenarios where multi-tasking and team collaboration are required.

Quick Start

To get started, configure the Claude Code environment, initialize a new tmux session with Claude Code CLI, and specify your prompt to initiate task execution.

Frequently Asked Questions about claude-in-tmux

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I run Claude Code CLI in the background for long coding tasks?

Run Claude Code CLI in the background by managing it within tmux sessions. This facilitates background task execution and automates log tracking, allowing you to detach from the session while long coding tasks continue running.

What is the best way to manage multiple Claude Code CLI sessions simultaneously?

Manage multiple Claude Code CLI sessions simultaneously by using tmux for session management. You can initialize, attach to, and monitor various background tasks concurrently, making it ideal for multi-tasking environments.

Do I need tmux and Python to execute background coding tasks with Claude Code?

Yes, you need tmux and Python to execute background coding tasks with Claude Code. These dependencies, along with shell scripting, are required to manage the tmux sessions and automate the logging within your container environment.

Can I use models like Kimi or GLM-5 with Claude Code in tmux?

Yes, you can use models like Kimi, MiniMax, and GLM-5 with Claude Code in tmux. The integration supports various models for diverse tasks, requiring you to configure the relevant API keys for your chosen model.

How do I track logs for background coding tasks running in tmux?

Track logs for background coding tasks running in tmux by utilizing the automated logging feature. The system manages Claude Code CLI sessions and automatically creates and manages logs for each task session for later review.