DSH HUB
HomePlugin StorePlugin PacksCommunityRankingsResourcesPublish Guide
Plugin source
Back to catalog

xushilianzhuren /

xushilianzhuren/dsh-constitution-seed

Verified

Constitution seed: inject bounded excerpts of persistent workspace charter files into every new DSH session (shared-budget head-first truncation). 工作区宪法注入器

★ 0 Stars0 Forks0 IssuesN/A Community rating0 Confirmed installs
View on GitHub
READMESource: main@663ad2e5

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

—/ 5

No ratings yet

Verified DSH bundle

Commit 663ad2e5c32b

Community comments

No comments yet. Be the first to write one.

DSH HUB

A community index for DSH plugins. Not an official GitHub or DeepSeek AI product.

CommunityResourcesAPIAbout