PerryLink/dsh-github
PerryLink/dsh-github官方级 GitHub CI 集成:composite action.yml、轮询 PR 评审机器人(幂等行内评论 + status-check 门禁)以及 PR/issue 工具,所有写入走人工审批门。
Zero-config per-turn git checkpoints for DeepSeek Harness (DSH). After every completed agent turn, if the session's working directory is a git repository with uncommitted changes, TurnSnap stages everything and creates one tagged [turnsnap] commit — a rollback point you never had to ask for.
Long agent sessions rewrite many files. When a turn goes wrong you either reach for git by hand or lose the trail. TurnSnap makes the checkpoint automatic: one commit per turn, named after the turn number, file count and time:
[turnsnap] turn 12 · 7 files · 14:32:08
dsh plugin --profile <your-profile> add dsh-turnsnap
No configuration, no client half, nothing to approve: the host half hot-reloads within seconds and starts guarding every session in a git workspace.
agent/turn-stopping event.agent.session.header.cwd.git add -A && git commit -m "[turnsnap] turn N · M files · HH:MM:SS" --no-verify.| Tool | Effect |
|---|---|
turnsnap_pause | Stop auto-commits until resumed |
turnsnap_resume | Resume auto-commits |
turnsnap_status | Report enabled state, counters and the last checkpoint message |
All three take no arguments. Ask the model to "pause turnsnap" mid-session, or call them yourself from any script that can invoke harness tools.
git add -A folds anything staged-but-uncommitted into the checkpoint. If you keep a deliberate partial stage across a turn boundary, pause first.add -A respects .gitignore).--no-verify, so your pre-commit hooks do not run on checkpoints.MIT