This repository has been archived on 2026-08-07. You can view files and clone it. You cannot open issues or pull requests or push a commit.
Files
openclaw/agents/dev-assist/workspace/memory/2026-03-01.md
T

42 lines
1.3 KiB
Markdown
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
# 2026-03-01 记忆
## 对话记录
### OpenClaw + tmux + Claude 代码开发工作流查询
张青询问如何使用 OpenClaw + temux + Claude 进行代码开发。
**澄清过程:**
- 最初误以为是 "Termux"(Android 终端模拟器)
- 张青纠正为 "temux"
- 经搜索确认实际为 "tmux"(终端复用器)
**核心发现:**
1. **架构模式**:
- 用户通过飞书/Telegram/WhatsApp 发消息给 OpenClaw
- OpenClaw 通过 SSH 连接到服务器
- 服务器上用 tmux 运行 Claude Code
- tmux 保持会话持久化,即使断开连接也不丢失上下文
2. **tmux + Claude Code 优势**:
- 会话持久化:SSH 断开后 Claude 上下文不丢失
- 后台运行:长时间任务不阻塞
- 多窗格:一边跑 Claude,一边看日志、跑测试
- 远程访问:手机、办公室、家里随时接入
3. **相关资源**:
- OpenClaw 有 `tmux-agents` 技能,可管理后台 coding agents
- 安装:`clawhub install tmux-agents`
- 功能:在 tmux 会话中启动 Claude Code/Codex/Gemini CLI,检查进度,获取结果
4. **推荐配置**:
- tmux 前缀键改为 Ctrl+a
- 启用 24-bit 真彩色
- 历史记录设为 50000(Claude 输出较长)
- 使用 Catppuccin Mocha 主题
## 待办事项
- 无