dsh-atuin

by realalexandreai

1 UI 增强github收录于 08-23

把你输入 DeepSeek Harness 的每条提示词记录进 atuin shell 历史——可用 atuin search 与 shell 集成(Ctrl-R)检索

Record every prompt you type into DeepSeek Harness into your atuin shell history — searchable with atuin search and your shell integration (Ctrl-R).

安装

dsh plugin --profile web add github:realalexandreai/dsh-atuin

GitHub 源码安装:首次需按提示配置 allowBuilds 构建授权后重试

安装与环境配置指引、插件开发教程见 DSH 中文社区文档 ↗

安装即在你的机器上以你的权限运行第三方代码——它可读写文件、使用凭据、访问网络,DSH 的工具审批不会为插件代码加沙箱。「检测到 manifest」仅代表发现 dsh.bundle / dsh.plugin 清单,不构成兼容性或安全审查;安装前请审阅源码,不熟悉的插件先在不含密钥的环境试用。

README

目录

dsh-atuin

把你在 DeepSeek Harness 里输入的每一句话写进 atuin shell 历史——atuin search、shell 集成(Ctrl-R)里都能搜到。

由 pi-atuin 移植。dsh 没有终端 UI,这就是它的 atuin 桥。

English · 中文

怎么工作

监听 session/event → user/message,对每条输入执行:

atuin history start -- "<输入>"
atuin history end --exit 0 <ID>

只记录你自己输入的话——回复、工具调用、文件内容一律不记。

快速开始

dsh plugin --profile web add dsh-atuin

需要 atuin daemon 在运行(标准 atuin 安装自带)。atuin 缺失或 daemon 停了会静默跳过,不会影响会话。

配置

- id: atuin
  name: dsh-atuin
  config:
    # atuin_bin: /opt/homebrew/bin/atuin
    # deny: "^/clear$,password"
    # max_len: 2000
    # session_match: "project-x"
键 说明
atuin_bin atuin 可执行文件路径(默认 atuin)
deny 逗号分隔正则,命中的输入不记录
max_len 超长输入截断(默认 2000;0 关闭)
session_match 逗号分隔正则,只记录会话标题匹配的(空 = 全部)

隐私

  • 只记录你自己输入的话;回复、工具调用、文件内容一律不记
  • deny 可屏蔽敏感输入
  • 数据落在本地 atuin 库(~/.local/share/atuin/history.db),不出本机

开发

npm install
npm run typecheck
npm test          # 文本提取 / deny 规则 / 截断
npm run build

真实入库测试(需要 atuin daemon):

node --import tsx tests/real/real-atuin.mjs

License

MIT

原始 README: https://github.com/RealAlexandreAI/dsh-atuin/blob/main/README.zh.md ↗