跳过主要内容
返回插件列表
R

dsh-atuin

realalexandreai/dsh-atuin

DeepSeek Harness plugin: every user prompt you type (in the web UI) is appended to your atuin shell history, so it shows up in atuin search and shell integration.

安装

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

README

dsh-atuin — record every dsh prompt into your atuin history

dsh-atuin

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

Port of pi-atuin. dsh has no terminal UI; this is its atuin bridge.

English · 中文

How it works

The plugin listens to session/eventuser/message and runs:

atuin history start -- "<prompt>"
atuin history end --exit 0 <ID>

Only your own typed prompts are recorded — never replies, tool calls, or file contents.

Quick start

dsh plugin --profile web add dsh-atuin

Requires a running atuin daemon (standard atuin setup). A missing atuin or stopped daemon is silently skipped — sessions never break.

Config

- id: atuin
  name: dsh-atuin
  config:
    # atuin_bin: /opt/homebrew/bin/atuin
    # deny: "^/clear$,password"
    # max_len: 2000
    # session_match: "project-x"
keymeaning
atuin_binpath to the atuin binary (default atuin on PATH)
denycomma-separated regexes; matching prompts are not recorded
max_lentruncate long prompts (default 2000; 0 off)
session_matchcomma-separated regexes; only matching session titles are recorded (empty = all)

Privacy

  • Only your typed prompts; replies, tool calls, and file contents are never recorded.
  • deny suppresses sensitive prompts.
  • Entries live in your local atuin DB (~/.local/share/atuin/history.db) — nothing leaves the machine.

Development

npm install
npm run typecheck
npm test          # text extraction / deny rules / truncation
npm run build

Live test against your real atuin DB (needs the daemon):

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

License

MIT

相关插件