DASH

oh-my-pi 的 TUI 使用逻辑 · DeepSeek Harness 的完整 agent 内核 · 跑在终端里
license kernel lang
dash — 120x36
 DASH  Deepseek Agentic Service Harness  opencode-go/deepseek-v4-flash · 重要的会话标题   ● idle
DASH v0.2.0 — oh-my-pi usage · DSH kernel · opencode-go/deepseek-v4-flash · /help

┃ 写一个 markdown 表格和代码块,说明 DASH 的架构。
● DASH 由两层构成:
  ## 内核
  ctx.agents.create() · agent.followup() · session/event 事件流 — 全部官方 DSH API
  | 层 | 内容 |
  | --- | --- |
  | 使用逻辑 | oh-my-pi 键位/编辑器/转录/状态栏/命令 |
  | 内核 | DSH agent loop · llm · sessions · tools · skills |
  · 02:26:02 · 3s · opencode-go/deepseek-v4-flash
  in 287 · out 42

Reply with exactly the word DASHY and nothing else.
██████████░░░░░░░░░░░░░░░▕ ctx 329/1.0M 0.0% ▁█ 17400 tok/s · 缓存 98%
✓ 0 tools · 4s  in 287 · out 42  /help  git:main · tmp/dashb5 · 重要…

为什么是 DASH

oh-my-pi 一样全键盘操作的终端 TUI, 但内核完全是 DeepSeek Harness: 真实 DSH Agent(工具/技能/持久化/compaction)、官方 provider 注册表与模型路由、 session/event 流式渲染——不重新发明轮子,只换一副 omp 的手感。

功能一览

⌨ 键位

oh-my-pi 全量 action 表,~/.dash/keybindings.yml 重映射,/hotkeys 查看

✏ 编辑器

多行(kitty 协议 Shift+Enter)、词/行编辑、kill-ring、undo、Ctrl+G 外部编辑器、历史检索、命令菜单、@ 文件补全

📜 转录

Markdown 渲染(表格/代码高亮)、thinking 流式、工具卡片、置顶提示词栏、未读 pill、双击 Esc 时间回溯

📊 状态栏

上下文分段进度条、TPS sparkline、缓存命中率、⏵ 模型自述、回合统计、git/cwd/标题

🧠 模型

角色体系(default/smol/plan/task + effort)、三栏选择器、Ctrl+P 循环、Alt+P 临时

💬 会话

/resume 选择器(恢复+重放+删除)、/rename/new、持久化到 ~/.dsh/sessions

🛠 进阶

Agent Hub(Alt+A)、TTSR 流规则、advisor 第二模型、回合 bell、/skills/init 注入 AGENTS.md

🎨 主题

dark/light 双色板、/theme/settings 面板、配置持久化

安装

# 前置:官方 dsh CLI
npm install -g @deepseek-ai/dsh

git clone https://github.com/songqikong/dash.git
cd dash
sh install.sh          # 创建 ~/.dsh/profiles/dash + ~/.local/bin/dash
dash                   # 启动(等价于 dsh --profile dash)

文档

明确排除

依赖 oh-my-pi 私有原生栈、DSH 内核不提供的项不在实现范围内: 60+ provider 生态、LSP/DAP 工具、/collab 中继、STT/语音、图像协议、原生 in-process ripgrep/brush。 逐一说明见 FEATURES.md