dsh-cc-compat.en — Claude Code rule: setup and roles
dsh-cc-compat.en is a Claude Code rule that keeps DSH role switches, tool names, and Stop conversion aligned across sessions.
Apache-2.0 ★ 262 updated 2026-11-17
.claude/rules/dsh-cc-compat.en.mdWhat dsh-cc-compat.en does
The dsh-cc-compat.en rule keeps DSH compatibility behavior in run.py: role switches and tool names remain available, while Stop is converted for the target flow. It also reuses helpers for turn and busy-state metadata.
This is not a separately registered hook. Session records go through the packaged dshlog.py, with no dependency on author-local files. Its CLI needs python3, a DSH sessions directory, and a hook file: python3 dsh-cc-compat.py --sessions <DSH_HOME>/sessions <hook.py>.
What it helps with
- retain DSH role switches in
run.py - preserve tool names across the compatibility flow
- convert
Stopfor the target session format - reuse turn and busy-state metadata helpers
- process session logs through packaged
dshlog.py
Example prompts for the agent
- Keep the DSH role switches and tool names while running
run.py. - Convert
Stopand reuse the turn and busy-state metadata helpers. - Run the session CLI with
python3 dsh-cc-compat.py --sessions <DSH_HOME>/sessions <hook.py>.
How to install dsh-cc-compat.en
Manually: put the files in place
.claude/rules/dsh-cc-compat.en.mdThe paths frontmatter field limits the files
AGENTS.md
Codex reads AGENTS.md: paste the rule text there
Manually: put the files in place
.cursor/rules/dsh-cc-compat.en.mdcFrontmatter: description, globs, alwaysApply
Manually: put the files in place
.github/instructions/dsh-cc-compat.en.instructions.mdThe applyTo field sets which files it applies to
Manually: put the files in place
.devin/rules/dsh-cc-compat.en.mdManually: put the files in place
.clinerules/dsh-cc-compat.en.mdStep by step, with commands for each platform: AGENTS.md vs CLAUDE.md: what they are and which one to use
Questions about dsh-cc-compat.en
How do I install dsh-cc-compat.en in Claude Code?
Add the rule at .claude/rules/dsh-cc-compat.en.md.
What does dsh-cc-compat.en do?
It preserves DSH role switches and tool names, converts Stop, and reuses helpers for turn and busy-state metadata.
What does dsh-cc-compat.en need to run?
The CLI needs python3, a DSH sessions directory, and a hook file: python3 dsh-cc-compat.py --sessions <DSH_HOME>/sessions <hook.py>. Session logs use the packaged dshlog.py.
Source text
dsh-cc-compat.en.md · Apache-2.0
DSH compatibility helper, not a separately registered hook. run.py retains role switches, tool names and Stop conversion, and reuses turn/busy metadata helpers. Session logs use packaged dshlog.py with no author-local dependency. CLI: python3 dsh-cc-compat.py --sessions <DSH_HOME>/sessions <hook.py>.
© zuiho-kai · Apache-2.0 · zuiho-kai/bothouse