casualjim / dsh-caveman
Caveman compressed-output skills, commands, and cavecrew delegation personas as a DeepSeek Harness bundle
About this plugin
Written by the registry from verified metadata, not from the README.
dsh-caveman is a DSH plugin published from the dsh-caveman package in the casualjim/dsh-plugins repository.
Capabilities and topics
dsh-caveman
DeepSeek Harness port of JuliusBrussee/caveman: ultra-compressed agent output ("why use many token when few do trick") plus the cavecrew delegation personas.
Two upstream products exist; this bundle ports the skill/output side. The BSL-licensed proxy/engine (input-token compression runtime) is a separate product and is not ported.
Install
dsh plugin --profile web add <path-or-package>
Optional row config in the profile composition:
- id: dsh-caveman
name: dsh-caveman
config:
alwaysOn: true # inject core caveman rule every session + every subagent (default true; upstream SessionStart hook analog)
defaultMode: full # lite | full | ultra | wenyan-lite | wenyan-full | wenyan-ultra
provider: spawn # ctx.subagents provider for cavecrew (spawn | fork)
enableCavecrew: true
alwaysOn defaults to true, matching upstream caveman which is active on every session at full. Set it false to mount the skills and commands without auto-activation (the caveman skill still triggers on its phrases and /caveman switches mode explicitly). The section is registered on the shared systemPrompt service, so it rides through to spawned subagents — a child's persona shadows the global prompt layer, never replaces it.
Skills
Registers six skills on ctx.skills (source bundled, resource base per skill directory):
| Skill | What it does |
|---|---|
caveman | Core compressed-output mode: intensity levels, persistence, auto-clarity |
caveman-commit | Terse Conventional-Commits message generator |
caveman-review | One-line code-review comments (L42: 🔴 bug: ...) |
caveman-help | Quick-reference card for modes, skills, cavecrew tools |
caveman-compress | Compress natural-language memory files; out-of-tree .original.md backup |
cavecrew | Decision guide: when to delegate to which cavecrew tool |
Commands
Registers five slash commands on ctx.commands (from prompts/*.md; {{args}} interpolates raw input):
/caveman [lite|full|ultra|wenyan-lite|wenyan-full|wenyan-ultra|off]
/caveman-commit
/caveman-review
/caveman-help
/caveman-compress <filepath>
/caveman falls back to the configured defaultMode when no level is given.
Cavecrew delegation personas
The three upstream agents/cavecrew-*.md personas ship as agents/*.md (dsh-adapted) and are mounted at apply time as three @deepseek-ai/dsh-tool-subagent child fibers:
| Tool | Persona | Tool allowlist |
|---|---|---|
cavecrew_investigator | Read-only code locator, file:line table output | read grep glob bash |
cavecrew_builder | Surgical ≤2-file edit, diff receipt, refuses 3+ | read edit write grep glob |
cavecrew_reviewer | Severity-tagged one-line diff findings | read grep glob bash |
The child gets the persona text (shadowing deployment:persona) and a toolFilter.allow allowlist — the allowlist also removes every other tool, including the delegation tools, so cavecrew children cannot spawn grandchildren. Background mode is one-shot: foreground by default, run_in_background: true returns a job id.
The subagents registry and its providers stay host-side; this bundle only mounts the delegation tool rows (same plane as the shipped preset's tool-subagent rows).
Not ported
caveman-stats— upstream is computed by a Claude Code hook reading the session log (decision: "block"injection). No dsh analog; a real port needs the session-query/token-accounting seam.caveman-init— writes per-repo IDE rule files for other agents (src/tools/caveman-init.js); not dsh-facing.- CLI-suite skills (
caveman-discover,-explore,-learn,-manage,-optimize,-evidence-review) and workflow packs (investigate-first,lean-build,safe-refactor,surgical-patch,verify-and-stop,migration) — delivered by the@caveman-ai/cliecosystem, not the Claude plugin surface this port mirrors. Candidates for later ports. - Proxy / engine / cacheengine / rewriter / shrink — the BSL input-compression product.
- Upstream persona
model: haikupinning — model routing is deployment-specific in dsh; add anagentOptionsrow config if you want it.
Port notes
- Upstream's Claude Code
SessionStartauto-activation hook maps to the optionalalwaysOnrow config, which registers asystemPromptsection (order1, right after the deployment persona) carrying the core rule. Off by default; thecavemanskill's trigger phrases and/cavemancover activation without it. - Codex/Gemini TOML command stubs (
commands/*.toml) map toprompts/*.md:descriptionfrontmatter becomes the command description,argument-hintthe input hint, and the TOMLpromptbody the handler's user message with{{args}}interpolated. caveman-compressupstream runs Python scripts that call the Claude API. Here the agent is the compressor: the skill carries the same remove/preserve/compress rules, backup location, validation checklist, and 2-retry bound.- Cavecrew personas are adapted, not mirrored: Claude tool names (
Read/Grep/Glob/Edit/Write/Bash) become dsh names in both the allowlists and the body text,model:pins drop, and refusal routing names thecavecrew_buildertool. Persona text must contain no{{…}}(strict per-child interpolation). - Tool descriptions of the three cavecrew tools stay the generic delegation wording (
dsh-tool-subagentderives them from the provider); thecavecrewskill carries the routing knowledge and output contracts, mirroring upstream where the skill is the decision guide.
Badge
Listed here? Link back with this badge — paste the snippet into your repository README.
[](https://dsh-plugin.com/plugins/casualjim/dsh-plugins/dsh-caveman)