LaplaceYoung
dsh-of-your-own
/fuck — migrates your Claude Code & Codex habits into DeepSeek Harness. One command, parallel scan, boot-time recall.
- Stars
- 1
- Language
- TypeScript
- Created
- Aug 14, 2026
- Updated
- Aug 14, 2026
Introduction
[!IMPORTANT] Yes, the command is literally
/fuck.You spent six months teaching Claude Code that you like Chinese replies, short answers, and
rgovergrep. You trained Codex to never touchpackage-lock.jsonunprompted. You gave pi its own AGENTS.md. Then you open DeepSeek Harness, and it greets you like a stranger at a bus stop.That's when you type
/fuck. We named it after the moment.
The Problem
Every agent starts with amnesia. You re-teach the same preferences, the same tool habits, the same "please stop writing essays" — to every new harness, forever. Your conversation history is a biography nobody reads.
dsh-of-your-own reads it. All of it. In parallel. Then it moves you in — natively.
/fuck
│
├─ parallel scan ── ~/.claude/projects/** (Claude Code transcripts)
│ ~/.claude/history.jsonl (global prompt log: slash-command gold mine)
│ ~/.codex/sessions/** (Codex rollouts)
│ ~/.pi/agent/sessions/** (pi transcripts)
│ ~/.omp/agent/sessions/** (omp transcripts)
│
├─ memory files ─── ~/.claude/CLAUDE.md (your explicit rules)
│ ~/.codex/AGENTS.md (your Codex operating manual)
│ ~/.gemini/GEMINI.md (Gemini CLI context)
│ ~/.cursor/rules/*.mdc (Cursor rules, frontmatter stripped)
│ ~/.cursor/agents/*.md (Cursor agent markdown)
│
├─ analyze ───── tool habits (case-merged) · slash commands · working dirs · reply language
│
├─ synthesize ─── LLM preference summary (or a deterministic fallback — no key needed)
│
└─ migrate natively
1. Managed block → ~/.dsh/AGENTS.md ← DSH auto-loads this EVERY session. No plugin needed afterwards.
2. profile.json → ~/.dsh/of-your-own/
3. systemPrompt.context() injection ← remembered this session too
The migration is native. Your preferences land in ~/.dsh/AGENTS.md — the user-global instruction file DSH's workspace-context reads on boot, the same mechanism every other instruction file uses. Uninstall the plugin tomorrow; the memory stays.
TL;DR
| You want | Run | What happens |
|---|---|---|
| The whole thing | install, then /fuck in a DSH session | ~/.dsh/AGENTS.md managed block + profile.json + command stubs + prompt injection |
| See what it learned | ask the agent to run my_profile | the full preference section, on demand |
| Re-learn you | my_profile with { refresh: true } | fresh scan, fresh profile, upserted block — no duplicates |
| List migrated commands | ask for my_commands | every slash habit it found elsewhere |
| Find unfinished work | /sessions | numbered catalog of every session across all harnesses, newest first |
| Take over a task | /resume 3 (or id, or a title fragment) | handoff brief injected — this agent continues the foreign task |
Installation
git clone https://github.com/LaplaceYoung/dsh-of-your-own.git
cd dsh-of-your-own
pnpm install
pnpm build
Mount it in your DSH composition (cordis.yml):
- id: dsh-of-your-own
name: '@dsh-external/dsh-of-your-own'
# config:
# provider: deepseek-official # LLM preference synthesis (optional — template fallback otherwise)
# model: deepseek-v4-flash
# maxFilesPerSource: 50 # newest N transcripts scanned per harness
# agentsMdPath: ~/.dsh/AGENTS.md # native landing zone
Or apply cordis.patch.yml and call it a day.
Usage
/fuck # full migration: parallel scan → analyze → native migrate
/sessions # catalog every resumable session from all harnesses, newest first
/resume <#|id|title> # hand that foreign task over to this agent, context included
Real output from a real laptop with five harnesses of accumulated habits:
## Migration complete
Scanned claude-code (20 sessions), codex (20 sessions), pi (7 sessions), omp (20 sessions),
claude-history (1 sessions) — 423 user messages.
Read 1 native memory file(s): codex/AGENTS.md
Tool habits: read×353, bash×274, exec_command×104, agent×16, edit×15, write×14, …
Migrated commands: /model, /effort, /new, /compact, /clear, /domain-modeling, …
Profile: ~/.dsh/of-your-own/profile.json
Native: ~/.dsh/AGENTS.md (DSH auto-loads this every session)
Future sessions will remember you.
Two inspection tools (the model can call them; so can you, by asking):
| tool | does |
|---|---|
my_profile | show the learned preferences; { refresh: true } re-scans and rebuilds |
my_commands | list every slash command migrated from your other harnesses, with observation counts |
Session takeover — your unfinished work, continued here
/sessions reads every transcript directory in parallel and renders one numbered catalog:
## Resumable sessions (73)
# source title dir when msgs
1 omp Build standalone chat history plugin ~/Desktop/dsh 3h ago 4
2 claude-history /model ~/Desktop/sos/ 3h ago 3
3 codex 重构支付模块 ~/work/pay 2d ago 31
… 70 more
Run `/resume <#>` to hand that task to this agent.
/resume matches by list number, session-id prefix, or a fragment of the title. It rebuilds the
session into a handoff brief — original task, working directory, most recent direction, where it
stopped, tools used — and injects it into the system prompt, so this agent picks up the task and
continues it right away. The brief is also echoed back to you, so you can correct the course before
it runs.
Highlights
| Feature | What it does | |
|---|---|---|
| 🤬 | /fuck | One command. Five harnesses scanned in parallel. You come pre-configured. |
| 🪂 | /sessions + /resume | Catalog every foreign session, then hand one over with a full handoff brief. Unfinished work, finished here. |
| 🏠 | Native landing zone | Writes into ~/.dsh/AGENTS.md — the file DSH loads on every boot. Survives uninstall. |
| 🔁 | Idempotent upsert | Managed block between HTML markers. Re-run all you like; user content outside stays untouched. |
| 📚 | Reads your rule files | CLAUDE.md, Codex AGENTS.md, GEMINI.md, Cursor .mdc rules — your explicit words, not just stats. |
| 🔀 | Actually parallel | All sources, all files, all memory reads, concurrently. ~1.6s for 88 sessions on a laptop. |
| 🔧 | Tool habit census | Case-merged across harnesses: read×353, not read×326 + Read×27. Your biography, quantified. |
| 🪄 | Command migration | /compact used in Claude Code? It becomes a migrated stub in DSH. Your muscle memory survives. |
| 🌏 | Language detection | Writes Chinese prompts? DSH learns to reply in Chinese. Slash commands don't skew the vote. |
| 🔌 | LLM optional | No model configured? Deterministic template fallback. Works fully offline, no API key. |
| 🏗️ | Seams, not surgery | ctx.commands + ctx.tools + ctx.systemPrompt + ctx.llm + ctx.fs. Zero agent-loop edits. |
| 🔒 | Local everything | Transcripts read on your machine, profile stored on your machine. Nothing leaves the laptop. |
Reviews
"I typed
/fuckat my new agent and it already knew I hate verbose answers. Spooky." — a user, probably
"My DSH now prefers
rgovergrepand I never told it that. It learned from my mistakes." — another user, also probably
"Finally, an agent that inherits my trauma." — everyone who has re-typed their preferences into a fourth harness
Skip This README
We're past the era of reading docs. Just paste this into your agent:
Read https://raw.githubusercontent.com/LaplaceYoung/dsh-of-your-own/main/README.md
then install it and run /fuck on my machine.
The Serious Part
- Native, not bolt-on — the migration target is
$DSH_HOME/AGENTS.md, the user-global instruction file DSH's workspace-context package loads every session. No plugin mounted, memory still there. - Idempotent & respectful — the managed block is fenced by
<!-- dsh-of-your-own:begin/end -->markers; re-runs replace the block in place, and anything you wrote outside it is never touched. - Seams, not surgery — documented cordis extension points only:
ctx.commands,ctx.tools,ctx.systemPrompt.context(), optionalctx.llm/ctx.fs. No skeleton patches, no hot-path tax. - No key required — preference synthesis degrades to a deterministic template; the deterministic layer (frequencies, language, migration) never needs an LLM.
- Privacy — your transcripts are read locally and reduced to statistics + a preference summary on disk. Nothing is uploaded anywhere.
Development
pnpm test # 75 tests across 5 specs — parsers, sessions, analysis, persistence, plugin integration
pnpm typecheck # tsc --noEmit
pnpm build # tsc → lib/
src/
sources.ts # adapters: Claude Code / Codex / pi / omp transcripts, history.jsonl,
# plus native memory files (CLAUDE.md, AGENTS.md, GEMINI.md, Cursor rules)
analyze.ts # frequency stats (case-merged) + LLM preference synthesis + profile assembly
store.ts # profile persistence + ~/.dsh/AGENTS.md managed-block upsert
sessions.ts # session takeover: transcript → resumable records + handoff briefs
index.ts # plugin entry: /fuck, /sessions, /resume, my_profile, my_commands, boot-time recall
tests/ # vitest: parsers, sessions, analyze, store, plugin integration
License
MIT — see LICENSE.