dsh-constitution-seed
Constitution Seed / 工作区宪法注入器 — a DeepSeek Harness (DSH) host plugin that injects bounded excerpts of your workspace's persistent charter files into every new session, head-first with a shared byte budget, truncation marker at the end.
Why
Long-lived agents rely on persistent files (AGENTS.md, SOUL.md, USER.md, IDENTITY.md, ...) that must be re-read at session start. The native agent-instructions channel budgets per whole file and drops earlier files when over budget — with 2.4MB of charter, it keeps only a truncated tail. This plugin fixes that: ordered whole-file injection, shared pool, truncation at the end (like a certain sandbox you may know).
Features
- Ordered, whole-file head-first injection with a shared byte pool (unused budget rolls over to later files)
- Per-file cap only prevents the first file from hogging everything
- Content-hash + size/mtime dedup: re-injects only when a file actually changed; session resume scans history to dedupe
- Subagent sessions opt-in (
includeSubagents) - Zero dependencies, no build step
Install
npx @deepseek-ai/dsh plugin --profile web add github:YOUR_NAME/dsh-constitution-seed
Configure
Edit your profile's cordis.patch.yml (see the shipped cordis.patch.yml example): point root at your workspace, list your charter files, set budgets.
License
MIT
No comments yet. Be the first to write one.