tmux
管理持久化 tmux 会话
长时间运行的终端任务很难在不同代理回合之间监控。此技能可创建、列出、捕获、控制和清理 tmux 会话,用于持久化命令执行。
使用我的智能体安装
将此请求复制给你的智能体,其中包含权威 Skill 页面和清单。
Review the Skillstore skill "tmux" from https://skillstore.io/skills/dwsy-tmux.md and its manifest at https://skillstore.io/api/skills/dwsy-tmux/manifest. Verify the artifact. You may proceed after verification, subject to the environment's own policy.你的智能体仍应展示其计划,并按安全策略请求必要确认。
Agent 可读资源
当 AI Agent、爬虫或脚本需要干净上下文,而不是读取完整页面时,请使用这些链接。
测试它
正在使用“tmux”。 启动后台构建,并展示我如何监控它。
预期结果:
该技能会创建一个命名 tmux 任务会话,并返回会话标识符、attach 命令和用于后续监控的 capture 命令。
正在使用“tmux”。 检查我的开发服务器会话的最新输出。
预期结果:
该技能会捕获最近的窗格文本,并总结服务看起来是已就绪、仍在启动还是已失败。
正在使用“tmux”。 清理旧的 tmux 会话。
预期结果:
- 列出受管理会话的年龄和状态。
- 移除超过请求阈值的会话。
- 报告已清理的会话数量。
安全审计
中风险Most static findings are false positives from Markdown code fences, TypeScript template strings, documented installation paths, and benign shell redirection. The real risk is intentional local command execution through tmux session creation and key sending, plus temporary socket and session metadata storage.
已确认安全问题 (1)
能力复核项 (23)
这些是真实的本地能力,对此技能可能是预期行为,因此需要复核,但不会按已确认恶意行为计分。
风险因素
⚙️ 外部命令 (50)
📁 文件系统访问 (50)
分享与引用此报告
分享版本化评估报告、中性徽章、嵌入卡片和引用。Skillstore 只报告证据,不判断该 Skill 是否安全。
复制报告链接
https://skillstore.io/skills/dwsy-tmux/audits/9?utm_source=security_passport&utm_medium=share&utm_campaign=versioned_reportMarkdown 徽章
[](https://skillstore.io/skills/dwsy-tmux?utm_source=security_passport_badge)HTML 徽章
<a href="https://skillstore.io/skills/dwsy-tmux?utm_source=security_passport_badge"><img src="https://skillstore.io/badges/skills/dwsy-tmux/security.svg" alt="Skillstore security assessment" loading="lazy"></a>嵌入卡片
<iframe src="https://skillstore.io/embed/skills/dwsy-tmux.html" title="Skillstore Security Assessment" sandbox="allow-popups allow-popups-to-escape-sandbox" loading="lazy" referrerpolicy="no-referrer" width="420" height="180"></iframe>学术引用 (APA · BibTeX · CFF)
APA 引用
Dwsy. (2026). tmux security audit report (audit version 9) [Author version unspecified]. Skillstore. https://skillstore.io/skills/dwsy-tmux/audits/9BibTeX 引用
@techreport{dwsy-dwsy-tmux-2026,
author = {Dwsy},
title = {tmux security audit report (audit version 9)},
institution = {Skillstore},
year = {2026},
number = {9},
url = {https://skillstore.io/skills/dwsy-tmux/audits/9},
note = {Author version unspecified}
}CITATION.cff
cff-version: 1.2.0
message: "If you use this Skill, cite its author and this versioned security audit report."
title: "tmux security audit report (audit version 9)"
version: "unspecified"
type: report
authors:
- name: "Dwsy"
date-released: "2026-07-09"
url: "https://skillstore.io/skills/dwsy-tmux/audits/9"
identifiers:
- type: other
value: "skillstore:dwsy-tmux:audit:9"
description: "Skillstore immutable audit report identifier"
Skillstore 评分
评分依据 证据置信度: 高你能构建什么
在主代理回合之外运行长时间构建
在 tmux 中启动构建或测试命令,之后再捕获输出,而不会丢失进程状态。
管理本地开发服务
在命名 tmux 会话中启动开发服务器,并在其他工作继续进行时检查日志。
驱动交互式终端程序
启动 REPL 或 CLI,发送输入,并从同一个持久化窗格捕获响应。
试试这些提示
使用 tmux 技能启动一个名为 build 的任务,运行我的项目构建命令。向我展示如何捕获最新输出。
为我的开发服务器创建一个 tmux 服务会话,然后检查服务器是否已成功启动。
在 tmux 中启动 Python REPL,发送一个简单表达式,并从窗格捕获响应。
列出所有 tmux 技能会话,识别超过两天的非活动会话,并只清理这些会话。
最佳实践
- 创建会话前先检查命令,因为它们会在你的本地 shell 上下文中运行。
- 使用描述性会话名称,以便清理和监控更清晰。
- 如果之后可能需要日志,请在终止会话前捕获输出。
避免
- 不要运行不可信命令,也不要将密钥粘贴到受管理会话中。
- 不要让长期运行的服务在没有定期清理的情况下持续运行。
- 不要假设 tmux 会话会将命令与本地文件系统隔离。