← 返回
数据分析 中文

cc-connect-manager

Manage cc-connect projects: add new projects to ~/.cc-connect/config.toml, set up multi-agent relay bindings, and restart cc-connect in tmux. Use when the us...
管理 cc-connect 项目:将新项目加入 ~/.cc-connect/config.toml,配置多代理中继绑定,并在 tmux 中重启 cc-connect。适用于用户...
zgq233333
数据分析 clawhub v1.0.1 1 版本 100000 Key: 无需
★ 0
Stars
📥 747
下载
💾 10
安装
1
版本
#latest

概述

cc-connect Manager

Manage cc-connect projects by editing ~/.cc-connect/config.toml and restarting the service in tmux.

Config file

Path: ~/.cc-connect/config.toml

Add a project

Extract these from the user's request:

  • name: project name (derive from work_dir basename if not given, e.g. /path/to/my-appmy-app)
  • work_dir: absolute path to the project directory
  • platform: one of telegram, discord, feishu, dingtalk, slack, line, wecom, qq, qqbot
  • token: the bot token (varies by platform)
  • agent: default claudecode, or codex, cursor, gemini, qoder, opencode, iflow
  • mode: default default. For claudecode: acceptEdits/plan/bypassPermissions. For codex: suggest/auto-edit/full-auto/yolo

Run the add script:

python3 ~/.claude/skills/cc-connect-manager/scripts/add_project.py \
  --name <name> --work-dir <work_dir> --platform <platform> --token <token> \
  [--agent <agent>] [--mode <mode>] [--guild-id <id>]

Platform-specific token mapping:

  • telegram: --token = bot token from @BotFather
  • discord: --token = bot token, optionally --guild-id for instant slash commands
  • feishu: --app-id + --app-secret
  • dingtalk: --app-id + --app-secret
  • slack: --bot-token (xoxb-) + --app-token (xapp-)

After adding, read back ~/.cc-connect/config.toml and show the user the new project block for confirmation.

Multi-agent relay setup (bind)

To put multiple agents (e.g. Claude Code + Codex) in the same chat group:

Architecture

  • Each agent needs its own bot (separate token) as a separate [[projects]] entry
  • All bots join the same group/channel/server
  • After startup, use /bind in the chat to link them for relay communication

Step-by-step

  1. Add project A (e.g. claude-backend, agent=claudecode, platform=discord, token=bot-A-token)
  2. Add project B (e.g. codex-backend, agent=codex, platform=discord, token=bot-B-token)
  3. Both bots must use the same platform type and join the same group/channel
  4. Restart cc-connect
  5. Tell the user to send these commands in the chat group (not here):

```

@bot-A /bind claude-backend

@bot-A /bind codex-backend

```

Or for any bot that supports slash commands: /bind

  1. After binding, agents can relay messages to each other. @bot-A sends to Claude Code, @bot-B sends to Codex

Important notes

  • /bind is a runtime chat command, not a config file setting — it cannot be automated from here
  • Binding persists in ~/.cc-connect/relay_bindings.json
  • Each bot in the group needs a unique token (you cannot reuse the same bot for two projects)

Remove a project

Read ~/.cc-connect/config.toml, find the [[projects]] block with matching name, remove it and all its sub-sections ([projects.agent], [projects.agent.options], [[projects.platforms]], [projects.platforms.options]) up to the next [[projects]] or global section. Write the file back.

Restart cc-connect

cc-connect runs in a tmux session named cc-connect. To restart:

# Kill existing cc-connect process in tmux and start fresh
tmux send-keys -t cc-connect C-c && sleep 1 && tmux send-keys -t cc-connect 'cc-connect' Enter

If the tmux session doesn't exist yet:

tmux new-session -d -s cc-connect 'cc-connect'

Always restart after adding or removing a project.

Workflow

  1. Parse the user's natural language request to extract project params
  2. Run add_project.py for each project (or manually edit for removal)
  3. Show the user the updated config block
  4. Restart cc-connect in tmux
  5. Confirm success by checking tmux output: tmux capture-pane -t cc-connect -p | tail -5
  6. If multi-agent setup, remind the user to run /bind for each project in the chat group

版本历史

共 1 个版本

  • v1.0.1 当前
    2026-03-31 01:16 安全 安全

安全检测

腾讯云安全 (Keen)

安全,无风险
查看报告

腾讯云安全 (Sanbu)

安全,无风险
查看报告

🔗 相关推荐

data-analysis

A股量化 AkShare

mbpz
A股量化数据分析工具,基于AkShare库获取A股行情、财务数据、板块信息等。用于回答关于A股股票查询、行情数据、财务分析、选股等问题。
★ 162 📥 59,660
data-analysis

Data Analysis

ivangdavila
{"answer":"数据分析与可视化。查询数据库、生成报告、自动化电子表格,将原始数据转化为清晰可行的见解。适用于:(1) 您……"}
★ 198 📥 64,843
data-analysis

Excel / XLSX

ivangdavila
创建、检查和编辑 Microsoft Excel 工作簿及 XLSX 文件,支持可靠的公式、日期、类型、格式、重算及模板保留功能。
★ 366 📥 139,944