dsh-agent-history-import
Manifest validImport local Codex, Pi, and Claude Code conversation histories into DSH and continue them
Agent history import
Import a conversation from Codex, Pi, or Claude Code on this computer into DSH and continue it.
Two modes:
- Continue with full context — the whole transcript, including tool calls and their results, becomes a stored DSH Session. Open it and keep chatting from where the original work stopped.
- Summarize into a new conversation — the configured default model writes a detailed handover summary, which becomes the first user message of a new DSH Session.
The import button sits beside New session in the sidebar. The dialog lists recent sessions per source, lets you pick a workspace, and imports over an owner-only local route. Nothing leaves the computer except the summary-model request in summary mode.
The same capability is available as the agent_history_import tool: action: "list" returns the local sessions, and action: "import" with source, file, and mode imports one into the current workspace. This is useful when you already know which conversation you want, or when you are driving DSH from an automated session.
Install
Requires DSH 0.2.2-rc.3 or newer.
dsh plugin --profile <your-profile> add dsh-agent-history-import
Or install the package directory directly:
dsh plugin --profile <your-profile> add /path/to/agent-history-import
Restart DSH, or hard-refresh the Web client, after installing.
Sources
| Source | Directory |
|---|---|
| Codex | ~/.codex/sessions (and archived_sessions without compressed logs) |
| Pi | ~/.pi/agent/sessions |
| Claude Code | ~/.claude/projects |
Known limits
- Codex reasoning records are encrypted and are not imported.
- Claude Code sidechains are skipped; the main conversation is imported.
- Tool output is truncated in continue mode (default 4,000 characters) to keep the context usable.
- The session list shows the latest 80 sessions per source by default (
maxSessions). - Re-importing the same session writes another DSH Session.
- Summary mode sends the transcript to the configured default model. Very long transcripts (over 1,200,000 characters) are summarized from their first part only, and the dialog warns about it.
- Cancelling an import keeps Sessions already written; it does not retry them.
See docs/DETAIL.md for the full behavior.
Comments
Loading…
Similar plugins
by Chang-Tong
Import pi / opencode / codex / claude-code sessions, chat history, and agents into DeepSeek Harness — one-click Sync button, slash commands, session-start migration prompt
★ 13
↓ 75/wk
MIT
JavaScript
Aug 25, 2026
dsh plugin --profile web add dsh-import-agentsby howtomakeaname
Import local sessions from Cursor, Codex, Claude Code, ZCode, Kimi into DeepSeek Harness.
★ 5
↓ 131/wk
MIT
JavaScript
Nov 17, 2026
dsh plugin --profile web add dsh-agent-session-importby Chang-Tong
Import pi / opencode / codex / claude-code sessions, chat history, and agents into DeepSeek Harness — one-click Sync button, slash commands, session-start migration prompt
★ 22
↓ 338/wk
MIT
JavaScript
Nov 9, 2026
dsh plugin --profile web add dsh-unified-contextby xing01l
Import Codex chat history into DeepSeek-Harness for seamless conversation continuity.
★ 0
MIT
Python
Aug 14, 2026
dsh plugin --profile web add dsh-session-import-codexby Nwflower
Import 14+ external agent chat histories (Claude Code, Codex, ChatGPT, Cursor, Gemini, Reasonix, opencode, ZCode, Grok Build, OpenClaw, Pi, Hermes, Kimi CLI, DSH) into DeepSeek Harness as resumable se
★ 321
↓ 4.7k/wk
MIT
JavaScript
Nov 18, 2026
dsh plugin --profile web add dsh-chat-importby ciskonc
Claude Code-style @path imports for DeepSeek Harness: expands @imports in AGENTS.md/CLAUDE.md and injects referenced files into context at session start
★ 6
↓ 553/wk
MIT
TypeScript
Oct 24, 2026
dsh plugin --profile web add dsh-context-imports