txy-ucas/dsh-workspace-snapshot1

dsh-workspace-snapshot

适用于 DeepSeek Harness 的受限只读 Git 工作区状态工具插件。

AI 分析

核心用途是为 DSH 提供安全的只读 Git 工作区状态查询,限制输出大小以防上下文撑爆。适合在代码仓库中运行 Agent、需要安全获取 Git 状态的开发者。

套件
dsh-workspace-snapshot
版本
0.1.0
授權
MIT
最近更新
2026年8月16日

安裝

$npx -p @deepseek-ai/dsh dsh plugin --profile web add github:txy-ucas/dsh-workspace-snapshot

Configuration

The installable bundle inserts the plugin with defaults. Override the complete row configuration in the profile's later cordis.patch.yml layer when needed:

- id: workspace-snapshot
  config:
    timeoutMs: 5000
    maxGitStdoutBytes: 262144
    maxPathRecords: 500
    maxResultBytes: 131072
FieldDefaultContract
timeoutMs5000Shared deadline for executable lookup and status, from 100 to 120000 ms.
maxGitStdoutBytes262144Retained Git stdout limit, from 1024 to 4000000. Exceeding it returns OUTPUT_LIMIT; partial output is never parsed.
maxPathRecords500Maximum path records initially retained in entries, from 1 to 10000. All records in bounded stdout still contribute to complete counts.
maxResultBytes131072UTF-8 byte limit for the complete canonical JSON result, from 1024 to 4000000. Entries are removed whole until it fits; JSON is never cut.

Configuration is intentionally flat. Invalid limits fail plugin loading.