OpenViking
volcengine
Self-evolving Context Database for AI Agents. Unify Agent Memory, Knowledge RAG and Skills.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:xiaoshenming/dsh-session-surgeon
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
Repair DeepSeek Harness sessions that refuse to load.
把打不开、卡死、seq 坏掉的 DSH 会话修回来。官方以后修加载器,也救不回已经坏掉的 session.jsonl.zstd。
Compatible with
@deepseek-ai/dsh@0.1.0-rc.6.
One command, same as other DSH plugins:
dsh plugin --profile web add "github:xiaoshenming/dsh-session-surgeon#main"
Restart dsh web. Then:
Developers working in a checkout can still use dsh plugin --profile web add link:"$(pwd)".
Real crash families from official Discussions:
seq gap in committed region.tmp plaintextCost meters / memory / marketplaces are saturated. Almost nobody repairs the JSONL.
No dsh web required after the plugin (or this repo) is on disk:
npx --yes github:xiaoshenming/dsh-session-surgeon scan
npx --yes github:xiaoshenming/dsh-session-surgeon inspect <session-id>
npx --yes github:xiaoshenming/dsh-session-surgeon repair <session-id> # dry-run
npx --yes github:xiaoshenming/dsh-session-surgeon repair <session-id> --apply # writes .bak.<utc> first
Or from a clone: node bin/dsh-session-surgeon.mjs scan.
Agent tools after install: session_scan / session_inspect / session_repair (apply defaults to false).
| command | meaning |
|---|---|
scan [root] |
list sessions + header health + orphan .tmp |
inspect <id> |
decode every zstd frame, expand packed rows, report seq gaps |
repair <id> |
default --dry-run; --apply rewrites after .bak.<utc> |
compact <id> --keep-last-turns N |
keep the last N complete turns, renumber seq from 0 |
export <id> |
JSONL dump; redacts secrets unless --no-redact |
index [root] |
session / parent / goal / health table |
--format text prints a human table. Exit 0 on success, 2 on usage error, 1 on not-found / refuse.
Not a marketplace, not a token heatmap, not a memory plugin, not a Codex task store.
DSH has session id + optional same-session goal id, not a Codex-style resumable task id. See docs/LEARNING-TASKS.md.
--apply and write .bak.<utc> first.~/.dsh/sessions (they contain user text and secrets).@deepseek-ai/dsh-tools in dependencies.sk-*, PEM blocks, and home paths unless --no-redact.MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: jsonl、session。