Preface¶
DeepSeek Harness (DSH) offers extensibility through its plugin mechanism, but the default experience is relatively basic. moqi, packaged as a dsh profile, addresses the challenges of understanding tool call contexts, maintaining conversation continuity, and managing multitasking within a terminal environment.
What is it¶
moqi is a Terminal User Interface (TUI) designed for DeepSeek Harness. Maintained by JWE24-code, it aims to provide an immersive terminal interaction method for handling conversation history, tool calls, and system status without leaving the command line.
Core Features¶
- Inline Tool Call Rendering: Tool calls are displayed within the text stream, collapsed into single lines with spinners and status indicators. Press
ctrl+oto expand and view details. - Approval Memory: Managed via
/permissions. Supports session-scoped or persistent (project or global) authorization rules. For example,bash(git log *)will automatically approve matching calls. - Cross-Session Memory: Accessed via
/memory.# notesaves the line to a list without sending it./memory offdisables the memory feature. - Git Branch Management: Supports
/worktreeand working onmoqi/branches. Includes support for cleaning up unused branches. - Session Modes: Switch between read-only, workspace-write, or plan modes via
shift+tab. - In-flight Response Control: Use keys like
ctrl+candshift+tabto steer, queue, or interrupt ongoing responses. - Multi-Session: Supports tabs, cross-device SSH sessions, and notifications when background sessions complete.
- Usage Statistics: View provider billing limits and token usage (rolling 5-hour and 7-day windows) via
/usage. - OAuth Login: Log into providers like Claude Pro/Max, ChatGPT/Codex via local OAuth flows.
- Local Voice Dictation: Integrates whisper.cpp. Use
ctrl+vfor push-to-talk; voice data remains local. - Conversation Replay & Forking: Branch conversations at any historical prompt.
- Extensible Interface: Provides a plugin interface via
ctx.tuiHostto register hotkeys, status lines, and command palettes.
Installation & Activation¶
Prerequisites must be met:
1. dsh is installed in your PATH (npm install -g @deepseek-ai/dsh).
2. Node.js 22 or higher.
Install moqi:
npm install -g moqi-tui
Launch the terminal:
moqi
Typical Usage¶
- View Logs:
docker logs --tail 50 -f webui
- Manage Memory:
- Open list:
/memory - Disable memory:
/memory off - Save note: Add
# notein the text
- Open list:
- Git Worktree:
- Create new worktree:
/worktree
- Create new worktree:
- Control Responses:
- View tool call details:
ctrl+o - Toggle session mode:
shift+tab - Stop current response:
ctrl+c
- View tool call details:
- View Usage:
/usage
- Manage Permissions:
/permissions
Use Cases & Notes¶
Suitable for developers requiring deep interaction with DSH and management of complex contexts (Git, logs, multi-session). The plugin runs with the permissions of the current dsh process. You should review the source code and license (MIT) before installation.
Conclusion¶
moqi elevates the DSH experience to the level of a native terminal application, providing context-aware tool calls, memory management, and session control. For more information, visit the Plugin Directory or the GitHub Repository.