跳到正文
TakoAPI
返回技能列表

claude-relay

由 artwalker 提供

CLI Utilities
389下载量由 clawskills.sh 提供
1浏览量
0 个赞登录后即可为这个技能点赞
—暂无评分
你的评分

简介

Relay operator for Claude Code via tmux across multiple projects.

描述

该技能的功能

Runs Claude Code as a persistent tmux session, letting you start, send prompts to, and monitor Claude across multiple projects from a single relay script. Session names are deterministic and tied to project paths or aliases. Designed for orchestration and session management, not code reasoning.

Persistent tmux sessions survive terminal disconnects, so Claude keeps working even after you close the window.

何时使用

  • Keeping a Claude session alive while switching terminals
  • Sending follow-up prompts to a background Claude process
  • Monitoring Claude output on a long-running task
  • Managing Claude sessions across several codebases at once
  • Restarting a hung Claude process without losing project context

示例工作流

输入

User asks: Start a Claude session for my backend project and ask it to review the auth module

智能体
  1. 1

    Runs scripts/relay.sh start backend to create a named tmux session

  2. 2

    Resolves 'backend' via projects.map or directory lookup under CLAUDE_RELAY_ROOT

  3. 3

    Sends scripts/relay.sh send backend 'Review the auth module'

  4. 4

    Waits RELAY_WAIT seconds, then runs scripts/relay.sh tail backend to read output

  5. 5

    Returns Claude's response to the user

输出

Claude's review of the auth module, read from the tmux session buffer

前置要求

  • tmux installed and available in PATH
  • Claude Code CLI installed and available in PATH (or configured via CLAUDE_BIN env var)

安装

clawhub install artwalker/claude-relay

运行 CLI 命令,或把这段提示词粘贴到 Claude Code、Cursor、Codex 或你在用的任意编程智能体里。

链接