dsh-tool-archive: Deterministic tar Archiving and Secure Unpacking for Agents

dsh-tool-archive is a DeepSeek Harness plugin maintained by yuehancn that implements ustar reading and writing with zero external dependencies, providing four tools: archive_status, archive_pack, archive_unpack, and archive_verify. Packing sorts by path and fixes metadata, producing a treeDigest and SHA-256 manifest suitable for cross-machine comparison. Unpacking rejects absolute paths, path traversal, symbolic/hard links, and device nodes; in strict mode, if any single item is rejected, no data is written to disk. It supports listOnly and verify, and allows configuration of workDir, archiveDir, extractDir, as well as size and entry limits. It is suitable for auditable and verifiable directory archiving in agent workflows; the plugin runs with DSH process permissions, so please review the source code and MIT license before enabling it.

Read More