mediar-ai/skillhubz/tmux-background-agents

Claude Code and agent skill by mediar-ai/skillhubz

Trust tier 2
  • community
LLM review pending
Source check pending

Checking that the SKILL.md file is still in the repository.

Install

npx vskill@latest install mediar-ai/skillhubz/tmux-background-agents

SKILL.md

The same SKILL.md was published earlier as mediar-ai/skillhubz/tmux-background-agents.

tmux Background Agents

Manage background Claude Code sessions using tmux. Start agents, send prompts, read responses, and hand off to Terminal windows - all without interrupting your main session.

Prerequisites

  • macOS with Terminal.app
  • tmux installed (brew install tmux)
  • Claude Code CLI installed

Instructions

Start a new background Claude session
bash
# Basic - starts in specified directory
tmux new-session -d -s SESSION_NAME "cd /path/to/dir && claude --dangerously-skip-permissions"
# With initial prompt
tmux new-session -d -s SESSION_NAME "cd /path/to/dir && claude --dangerously-skip-permissions 'YOUR PROMPT HERE'"
Send a prompt to an existing session
bash
tmux send-keys -t SESSION_NAME "your prompt here" Enter

Note: Sometimes an extra Enter is needed:

bash
tmux send-keys -t SESSION_NAME Enter
Read response from a session
bash
tmux capture-pane -t SESSION_NAME -p

For full scrollback:

bash
tmux capture-pane -t SESSION_NAME -p -S -100
List all sessions
bash
tmux ls
Open a session in a Terminal window (hand off to user)
bash
osascript <<'APPLESCRIPT'
tell application "Terminal"
activate
do script "tmux attach -t SESSION_NAME"
end tell
APPLESCRIPT
Kill a session
bash
tmux kill-session -t SESSION_NAME

Workflow Example

  1. Start session:
bash
tmux new-session -d -s my-agent "cd ~/project && claude --dangerously-skip-permissions"
sleep 5
  1. Send prompt:
bash
tmux send-keys -t my-agent "Fix the bug in auth.swift" Enter
  1. Wait and read response:
bash
sleep 15
tmux capture-pane -t my-agent -p
  1. Hand off to user:
bash
osascript -e 'tell application "Terminal" to do script "tmux attach -t my-agent"'

User Request Mapping

When the user asks to:

  • "start a background agent" → create tmux session with Claude
  • "send prompt to agent X" → use tmux send-keys
  • "check agent X" → use tmux capture-pane
  • "open agent X" → open Terminal attached to tmux session
  • "list agents" → use tmux ls
  • "stop agent X" → use tmux kill-session

Tips

  • Always wait 5-8 seconds after starting a session for Claude to initialize
  • After sending a prompt, wait 10-15 seconds for response
  • Send an extra Enter if the prompt doesn't seem to submit
  • Use descriptive session names like auth-fix, ui-refactor, etc.

Security

  • Security scanPassed, 100 of 100Pattern checks on the skill's files.
  • Model reviewNot runA model review is scheduled for the next rescan.

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

Repository stars
7
Repository forks
4
7-day trend score
15

Stars and forks are for the whole GitHub repository, not this skill alone. Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/mediar-ai/skillhubz/tmux-background-agents/badge)](https://verified-skill.com/skills/mediar-ai/skillhubz/tmux-background-agents)

Something wrong with this skill or its page? Tell us.