dsh-oh-my-claude 1.3.0 → 1.4.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +298 -0
- package/README.md +34 -2
- package/README.zh.md +172 -0
- package/icon.svg +11 -0
- package/lib/client.js +69 -56
- package/lib/server/adapter.d.ts +335 -23
- package/lib/server/adapter.js +980 -134
- package/lib/server/adapter.js.map +1 -1
- package/lib/server/context-sources.js +4 -0
- package/lib/server/context-sources.js.map +1 -1
- package/lib/server/dsh.d.ts +46 -2
- package/lib/server/events.d.ts +55 -0
- package/lib/server/events.js +112 -0
- package/lib/server/events.js.map +1 -0
- package/lib/server/locale.d.ts +115 -0
- package/lib/server/locale.js +229 -0
- package/lib/server/locale.js.map +1 -0
- package/lib/server/mcp.js +3 -0
- package/lib/server/mcp.js.map +1 -1
- package/lib/server/model-ids.d.ts +3 -1
- package/lib/server/model-ids.js +12 -2
- package/lib/server/model-ids.js.map +1 -1
- package/lib/server/process.d.ts +54 -2
- package/lib/server/process.js +90 -6
- package/lib/server/process.js.map +1 -1
- package/lib/server/rows-probe.d.ts +45 -3
- package/lib/server/rows-probe.js +91 -25
- package/lib/server/rows-probe.js.map +1 -1
- package/lib/server/session-heal.d.ts +81 -0
- package/lib/server/session-heal.js +229 -0
- package/lib/server/session-heal.js.map +1 -0
- package/lib/server/session-repair.d.ts +119 -0
- package/lib/server/session-repair.js +378 -0
- package/lib/server/session-repair.js.map +1 -0
- package/lib/server/sessions.d.ts +88 -3
- package/lib/server/sessions.js +2233 -1791
- package/lib/server/sessions.js.map +1 -1
- package/lib/server/state.d.ts +51 -1
- package/lib/server/state.js +99 -7
- package/lib/server/state.js.map +1 -1
- package/lib/server/test-dsh.d.ts +102 -0
- package/lib/server/test-dsh.js +245 -0
- package/lib/server/test-dsh.js.map +1 -0
- package/lib/server/transcript.d.ts +27 -2
- package/lib/server/transcript.js +98 -23
- package/lib/server/transcript.js.map +1 -1
- package/lib/server/translator.d.ts +16 -1
- package/lib/server/translator.js +171 -48
- package/lib/server/translator.js.map +1 -1
- package/lib/server/update.d.ts +1 -1
- package/lib/server/update.js +4 -0
- package/lib/server/update.js.map +1 -1
- package/lib/server/usage.d.ts +3 -0
- package/lib/server/usage.js +6 -6
- package/lib/server/usage.js.map +1 -1
- package/locale/en.json +4 -0
- package/locale/zh.json +4 -0
- package/package.json +16 -5
- package/src/adapter.ts +1134 -153
- package/src/client/browser.tsx +27 -19
- package/src/client/changelog.tsx +22 -5
- package/src/client/claude-updates.tsx +38 -35
- package/src/client/closing.ts +67 -0
- package/src/client/contract.ts +17 -8
- package/src/client/events.ts +248 -0
- package/src/client/i18n/browser.ts +15 -0
- package/src/client/i18n/common.ts +14 -0
- package/src/client/i18n/dsh-common.ts +16 -0
- package/src/client/i18n/main.ts +971 -0
- package/src/client/i18n/misc.ts +97 -0
- package/src/client/i18n/panel.ts +660 -0
- package/src/client/i18n/picker.ts +19 -0
- package/src/client/i18n/tune.ts +219 -0
- package/src/client/i18n/updates.ts +63 -0
- package/src/client/i18n.ts +142 -0
- package/src/client/icons.ts +119 -0
- package/src/client/index.tsx +2904 -777
- package/src/client/notices.ts +4 -3
- package/src/client/panel.tsx +1454 -764
- package/src/client/picker.tsx +217 -53
- package/src/client/report.tsx +10 -11
- package/src/client/search-field.tsx +2 -2
- package/src/client/selection.ts +157 -0
- package/src/client/settings.ts +27 -10
- package/src/client/shared.ts +166 -35
- package/src/client/theme.ts +8 -3
- package/src/client/tune.tsx +159 -224
- package/src/client/update-pill.tsx +19 -12
- package/src/context-sources.ts +3 -0
- package/src/dsh.ts +41 -3
- package/src/events.ts +138 -0
- package/src/locale.ts +255 -0
- package/src/mcp.ts +3 -0
- package/src/model-ids.ts +12 -2
- package/src/process.ts +119 -6
- package/src/rows-probe.ts +106 -26
- package/src/session-heal.ts +293 -0
- package/src/session-repair.ts +425 -0
- package/src/sessions.ts +2469 -1916
- package/src/state.ts +129 -5
- package/src/test-dsh.ts +329 -0
- package/src/transcript.ts +129 -26
- package/src/translator.ts +190 -50
- package/src/update.ts +4 -1
- package/src/usage.ts +11 -6
- package/lib/server/index.d.ts +0 -1
- package/lib/server/index.js +0 -2
- package/lib/server/index.js.map +0 -1
package/CHANGELOG.md
CHANGED
|
@@ -6,6 +6,302 @@ Versions from 1.0.0 up are on npm. Everything below 1.0.0 was released from the
|
|
|
6
6
|
|
|
7
7
|
## [Unreleased]
|
|
8
8
|
|
|
9
|
+
## [1.4.0] - 2026-09-24
|
|
10
|
+
|
|
11
|
+
dsh: runs on 0.1.5-rc.1 through 0.1.7-rc.2; built and tested on 0.1.7-rc.2.
|
|
12
|
+
|
|
13
|
+
### Added
|
|
14
|
+
|
|
15
|
+
- A Send now button on each waiting message in the steer card. It does what Claude Code's own
|
|
16
|
+
send-now key (Ctrl+Enter) does: stops what Claude is doing and sends the message as the next
|
|
17
|
+
turn instead of waiting for the current step to end. Needs dsh 0.1.7; on an older dsh the button
|
|
18
|
+
says it cannot and leaves the message waiting.
|
|
19
|
+
- Quoted lines (`> …` at the start of a line) read as a quote in your sent messages, laid out
|
|
20
|
+
like the quotes in Claude's replies (indented, with the accent bar), and dimmed in the composer
|
|
21
|
+
as you type. Fenced code and a `>` mid-line are left alone.
|
|
22
|
+
- A finished Claude turn keeps a closing line in its header instead of dsh's "Took 27s", the way
|
|
23
|
+
the terminal ends a turn: `✻ Crunched for 27s · done 3:21 AM`, in grey, with the CLI's own
|
|
24
|
+
closing verbs. A stopped turn reads `Interrupted · What should Claude do instead?`.
|
|
25
|
+
- Select text in a Claude chat and a bar docks on the composer. Quote puts the passage into your
|
|
26
|
+
message as a Markdown quote; Ask sends it as a side question whose answer appears in the aside
|
|
27
|
+
card without adding a turn, and a blank question asks Claude to explain it. Settings → Oh My
|
|
28
|
+
Claude → Selection bar turns it off. Needs dsh 0.1.7.
|
|
29
|
+
- The steer card (the "Waiting for Claude" card above the composer) has a Send all now button: with
|
|
30
|
+
more than one message waiting, it sends them all at once, next to Edit all.
|
|
31
|
+
- Claude's working line (spinner, verb, figures) repeats above the composer once the turn's own
|
|
32
|
+
header has scrolled off screen or is not drawn. dsh 0.1.7 keeps that line in the turn header,
|
|
33
|
+
which a long run of tool cards pushes out of view, and on a long turn the header sits above the
|
|
34
|
+
"Load earlier" fold and is not drawn at all. It is on by default; a switch in Settings > Oh My
|
|
35
|
+
Claude turns it off for someone who wants only dsh's header line.
|
|
36
|
+
- Chinese. Everything the plugin draws follows dsh's language setting (Settings → General →
|
|
37
|
+
Language), or the browser's language when none is picked, and switches without a reload. The
|
|
38
|
+
plan review dialog, the not logged in tag and the login message follow the stored setting. A
|
|
39
|
+
Chinese README sits beside the English one.
|
|
40
|
+
- Claude's tool headers in the chat use the words dsh puts on its own tool cards when the stored
|
|
41
|
+
language is Chinese (读取, 写入, 编辑, 网页搜索, 网页获取, 更新任务清单, with 输出 and 失败 on
|
|
42
|
+
the result rows). Bash, Grep, Glob and MCP tool names stay as dsh shows them, in English. The
|
|
43
|
+
status lines the plugin writes into the chat (compaction, retries, model fallbacks, usage limits,
|
|
44
|
+
denied tool calls, "more lines" on long output) and the `/btw` replies follow it too.
|
|
45
|
+
- The usage panel, the context breakdown and the usage report in Settings read in Chinese too,
|
|
46
|
+
including the sentences Claude Code and the usage API send in English. A sentence from a newer
|
|
47
|
+
Claude Code shows as sent until it is added.
|
|
48
|
+
- A card above the composer lists the messages you steered in while Claude works, until Claude
|
|
49
|
+
reads them, with Edit, Remove and Edit all (every waiting message as one, as Claude Code's up
|
|
50
|
+
arrow does). Nothing goes out while the editor is open. A message Claude already has is left
|
|
51
|
+
alone and the card says so. Queue mode keeps dsh's own editing.
|
|
52
|
+
- A Chinese set of working verbs for the turn status line, in the same cheeky spirit as Claude
|
|
53
|
+
Code's English ones (炼丹中, 憋大招中, 叽里咕噜中). Your own `spinnerVerbs` in Claude Code's
|
|
54
|
+
settings still apply on top of them, or replace them.
|
|
55
|
+
|
|
56
|
+
- The plugin carries its own mark and its own name into dsh's Plugins page, where dsh 0.1.7 draws a
|
|
57
|
+
card per installed plugin. Before this it took the default artwork every plugin without one gets.
|
|
58
|
+
|
|
59
|
+
### Changed
|
|
60
|
+
|
|
61
|
+
- The Node the plugin declares is 22.15, up from 20.11. Nothing changes for anyone running dsh:
|
|
62
|
+
the plugin runs in dsh's own process, and dsh's session store already reads and writes its logs
|
|
63
|
+
with `node:zlib`'s zstd, which first shipped in Node 22.15. The plugin's session repair reads
|
|
64
|
+
the same logs the same way.
|
|
65
|
+
- `tools/dsh-session-repair.ts` now imports the repair from the plugin and no longer needs the
|
|
66
|
+
`zstd` binary; node 22.15 or newer is required for `node:zlib`'s zstd, which dsh itself imports
|
|
67
|
+
(its package.json declares no engines range).
|
|
68
|
+
- The working line follows the CLI's own status line more closely: the shimmer sweeps left to
|
|
69
|
+
right while a request is out and right to left while a reply streams, and breathes in place while
|
|
70
|
+
a tool runs; the spinner glyph eases the way the CLI's does; the bracket after the verb stays away
|
|
71
|
+
for the first 16 seconds of a turn with nothing to say; the warm and stall tints drop the moment
|
|
72
|
+
their cause ends instead of fading, and a slow request after a tool no longer reads as a stall; the
|
|
73
|
+
verb list matches Claude Code 2.1.280 (`Kerfuffling`, `Transmogrifying`, American spellings); the
|
|
74
|
+
45-second thinking word is the CLI's `deep in thought`.
|
|
75
|
+
- The tab no longer asks the server on timers for the status row, the steer card, the
|
|
76
|
+
waiting-for-you notice, the idle chip, the cost line and the permission capsule. One event stream
|
|
77
|
+
per tab carries them (server-sent events on `GET /dsh-oh-my-claude/events`), so a steer card
|
|
78
|
+
appears the moment the steer is queued, a prompt opened in a background session is announced
|
|
79
|
+
even in a hidden tab, and a running session's page makes 18 requests a minute instead of 206
|
|
80
|
+
(a blank session 4 instead of 80; measured on dsh 0.1.7-alpha.2, 2026-09-23). The old timers stay on as a safety net: every 30 s while the stream is up,
|
|
81
|
+
at their old rates while it is down. A hint flipped in another browser reaches this one at once.
|
|
82
|
+
- The list rows in the ✻ panel's tabs (transcripts to restore, memory files, instructions, prompts
|
|
83
|
+
to rewind to, changed files) no longer sit in their own hairline box; like dsh's rows they are
|
|
84
|
+
bare at rest and tint under the pointer.
|
|
85
|
+
- Less work per frame and per poll. The status line no longer forces a style recalc or walks the
|
|
86
|
+
page eight times a second; the row mask for withheld context re-runs only when rows are added,
|
|
87
|
+
not on every streamed chunk; the cost pill, the send-button tint and the panel's fit-above
|
|
88
|
+
measurement search a small root instead of the whole page; a hidden tab makes no status request
|
|
89
|
+
and paints no spinner. On the server, the hints file is parsed once per change, a box's runtime
|
|
90
|
+
status is remembered for a minute (three processes, or three ssh connections per box, per ask
|
|
91
|
+
before), the three ssh probes of a box run over one connection, and the steer card's poll no
|
|
92
|
+
longer reads the whole session log each second.
|
|
93
|
+
- The Claude permission control, the Add workspace dialog with its box dropdown, and the orange
|
|
94
|
+
mark on a running Claude session's sidebar row now sit in dsh's own slots
|
|
95
|
+
(`conversation.input.permission`, the two directory-flow holes, and the session row's action
|
|
96
|
+
strip) instead of rewriting dsh's DOM. The permission menu is drawn by the plugin, so it no longer
|
|
97
|
+
depends on dsh's menu markup, and the row mark follows the session id rather than the row title.
|
|
98
|
+
The old DOM paths stay as the fallback on a dsh that refuses the slot.
|
|
99
|
+
- The Add workspace dialog with the box dropdown appears only once an SSH box is saved. With none,
|
|
100
|
+
the sidebar "+" and the hero's Add workspace open dsh's own dialog, and saving the first box
|
|
101
|
+
swaps ours in without a reload.
|
|
102
|
+
- The inline-or-rows choice for Claude's tool activity moved from the Tune tab to Settings > Oh My
|
|
103
|
+
Claude, as a Native tool rows switch. It configures the bridge, not Claude Code, which is what
|
|
104
|
+
Tune is for.
|
|
105
|
+
- Native rows are the default on dsh 0.1.7 and later. There the text streams live between dsh's
|
|
106
|
+
own tool cards and the rows survive a reload, so Claude's tool activity looks like every other
|
|
107
|
+
provider's in dsh. Inline stays the default before 0.1.7, where a step's text lands only when it
|
|
108
|
+
settles. A mode picked in Settings > Oh My Claude, or a `toolsInline` set in the config, still wins; and a dsh that
|
|
109
|
+
stops loading rows locks the switch and the plugin writes inline on its own.
|
|
110
|
+
- Remember model per workspace remembers the Claude too, not only which Claude model. dsh 0.1.7
|
|
111
|
+
makes each workspace's blank session ahead of time on the deployment default with no selection
|
|
112
|
+
of its own, so a workspace that always ran Claude opened on llama and the memory, which only
|
|
113
|
+
ever changed the model, had nothing to act on. A new session now opens on the box and model the
|
|
114
|
+
workspace last ran Claude on; a blank you have switched by hand is left as you set it. The first
|
|
115
|
+
Claude turn in a workspace after this update records the mount, and it sticks from then on.
|
|
116
|
+
### Fixed
|
|
117
|
+
|
|
118
|
+
- Ask on selected text and `/btw` work on a session whose Claude process was stopped for being
|
|
119
|
+
idle: the process starts again with the conversation and answers, instead of "send a prompt
|
|
120
|
+
first". A session with no turn since dsh started still needs one.
|
|
121
|
+
- The cost pill stays in the footer after switching back from a subagent. With no stats row on
|
|
122
|
+
screen yet it could attach itself beside the Oh My Claude button in the composer, grey, until a
|
|
123
|
+
refresh.
|
|
124
|
+
- In a Claude session, a slash command or skill typed in the composer and its `@` file chips take
|
|
125
|
+
the Claude accent instead of dsh's blue, matching the chips in sent messages.
|
|
126
|
+
- A Claude Code session restored into dsh opens on the model it last ran and the access it ran
|
|
127
|
+
under (a bypass session gets Full access), instead of dsh's default model and Workspace access.
|
|
128
|
+
A model Claude Code has since retired lands on the newest one of the same family.
|
|
129
|
+
- The Claude Code update card is about the Claude Code you picked. It followed the box a session's
|
|
130
|
+
turns run on, which in a remote workspace is that box whichever model is selected, so a session
|
|
131
|
+
deliberately set to this machine's Claude was offered the other one's update. It now reads the
|
|
132
|
+
model picker, switches with it on the next poll, and its Update button acts on the box the card
|
|
133
|
+
names. No extra request and no extra probe: the poll was already running and the server answers
|
|
134
|
+
from the updater its own half-hourly tick keeps fresh.
|
|
135
|
+
- A switch in the Tune tab reads as you set it at once; it showed off until the panel was opened
|
|
136
|
+
again.
|
|
137
|
+
- A session switched from Claude to another provider drops the Claude permission control and the
|
|
138
|
+
composer button at once; they stayed until a refresh.
|
|
139
|
+
- Opening a session from the Restore tab now folds in the turns its Claude Code transcript gained
|
|
140
|
+
since the session was last in dsh (a session driven from the terminal used to stop at the turn
|
|
141
|
+
count it had when first restored). A stored log dsh refuses for a reason the plugin cannot mend
|
|
142
|
+
gets a Reseed from transcript button on the panel's Diagnostics tab; the old log is kept as
|
|
143
|
+
`.bak`.
|
|
144
|
+
- dsh's Back-to-bottom button no longer rises when the working line above the composer appears;
|
|
145
|
+
it stays where it was, and the line leaves the button's corner free so the two never overlap.
|
|
146
|
+
- A session log dsh refuses to load for one of the three known reasons (an unadvertised tool row
|
|
147
|
+
from rows mode before 2026-09-22, a restore seeded without its system head in 1.3.1 and earlier, a Stop
|
|
148
|
+
that left a tool call open in 1.3.1 and earlier) is repaired by the plugin itself: at start, when the
|
|
149
|
+
session is opened from the Restore tab, and when a restart wakes it. The original is kept beside
|
|
150
|
+
the log as `.bak`, the panel's Runtime line says what was repaired, and a refusal the plugin does
|
|
151
|
+
not recognise is reported there instead of a silent failure to open.
|
|
152
|
+
- dsh's Session statistics for a Claude session: time to first token now runs to the first byte
|
|
153
|
+
of Claude's response, and tokens per second counts the think, where before a silent think or
|
|
154
|
+
a step ending in a tool call left dsh with no first token at all (a 23 s step read as 23 s to
|
|
155
|
+
first token and 3,980 tokens a second). The user guide says what each figure covers here.
|
|
156
|
+
- The Claude Code update card shows only in a session that runs on Claude Code; a session on
|
|
157
|
+
another provider drew it too.
|
|
158
|
+
- On a phone the permission capsule by the composer ends in an ellipsis instead of breaking into
|
|
159
|
+
a second line under its chevron.
|
|
160
|
+
- Durations past an hour read `1h 40m 42s` in the working line and the cost dialog, not
|
|
161
|
+
`100m 42s`.
|
|
162
|
+
- The dark theme's shimmer is the CLI's dark value; it used the light one on both.
|
|
163
|
+
- On a phone the working line above the composer starts where the chat text does; it began
|
|
164
|
+
32 px further left, past the composer's edge.
|
|
165
|
+
- The steer card now lists a message typed while Claude is inside a dsh tool (a subagent, a relayed
|
|
166
|
+
job or shell). Edit and Remove work there; Send now waits for the tool to end, and the card says
|
|
167
|
+
so. Before, such a message showed nowhere until the tool ended.
|
|
168
|
+
- The working verb in the turn header stays through a plugin reload. A rebuild or an upgrade
|
|
169
|
+
landing during a turn used to hand the header back to dsh's own "Deep diving…" until the next
|
|
170
|
+
turn; the working line above the composer was never affected.
|
|
171
|
+
- On dsh 0.1.7 (session format v4) the plugin's own wake, restart, reconnect and usage-limit
|
|
172
|
+
notices failed the turn they opened with *format v4 message requires a producer-owned source
|
|
173
|
+
kind*, so every session nudged after a dsh restart died on its first turn until someone typed.
|
|
174
|
+
The notice now carries the source kind v4 expects; v3 logs keep the old shape.
|
|
175
|
+
- A Stop pressed while one of Claude's own tools (Bash, Read…) was running left that tool's call
|
|
176
|
+
open in the session log, and dsh refused the whole session on the next load (*Failed to load
|
|
177
|
+
history … step/end leaves unresolved tool call*). The placeholder result now lands on every way a
|
|
178
|
+
step can end, including the Stop, and `tools/dsh-session-repair.ts` closes the open calls in a
|
|
179
|
+
log already refused for it.
|
|
180
|
+
- A session restored from a Claude Code transcript stays loadable after its first live turn. The
|
|
181
|
+
restore seeded the log without the system-prompt entry dsh keeps as the log's first line; dsh's
|
|
182
|
+
loop wrote one on the first live turn further down, and from the next reload on (a dsh-web
|
|
183
|
+
restart, a phone or second browser opening the session) dsh refused the whole log with "system/
|
|
184
|
+
message requires a protected first surface head". The seed now writes that head first, and
|
|
185
|
+
`tools/dsh-session-repair.ts --check --all` finds and mends every session restored before this
|
|
186
|
+
release, whether dsh has refused it yet or not.
|
|
187
|
+
- Opening a transcript whose session dsh already has on disk no longer fails with a 500. When the
|
|
188
|
+
running catalog had dropped a session but its log was still on disk (a load that failed once, a
|
|
189
|
+
log put back by hand), clicking it in Restore tried to recreate it and dsh answered `session "…"
|
|
190
|
+
already exists`. It now attaches and opens the stored log instead, so the session comes back
|
|
191
|
+
rather than erroring.
|
|
192
|
+
- The Restore tab reaches every transcript in a workspace. It showed eight and left the rest to
|
|
193
|
+
the search box, with nothing saying more existed; now a Show more line under the eight brings
|
|
194
|
+
twenty at a time and says how many are left. Searching starts the list short again.
|
|
195
|
+
- A running DeepSeek or llama session's sidebar glyph stays dsh's blue while a Claude session is
|
|
196
|
+
open. It went orange with the rest, since the rule reached every running glyph on the page; the
|
|
197
|
+
sidebar rows now take the orange only from the mark on a running Claude row, and turn it on and
|
|
198
|
+
off the instant the row's state flips rather than on the next one-second pass.
|
|
199
|
+
- The permission capsule shows the mode Claude is running in, not the last pick. Picking Bypass on
|
|
200
|
+
a session whose process started in another mode used to get the CLI's refusal as raw text, and a
|
|
201
|
+
later look showed Bypass while every tool call was still being denied. Bypass is now stored for
|
|
202
|
+
the next turn, which respawns the process in it, and the menu says "Bypass · full access takes
|
|
203
|
+
effect on the next turn" until then. A transcript opened from the terminal keeps the permission
|
|
204
|
+
mode it ran under instead of the workspace default. When dsh's approval prompts are switched
|
|
205
|
+
off, a denied tool call tells Claude that dsh auto-denied it and nobody was asked, instead of
|
|
206
|
+
"the user denied this action".
|
|
207
|
+
- A step that hands dsh a tool call no longer ends while one of Claude's own tools is still
|
|
208
|
+
running beside it. Claude firing Bash and a dsh tool in one message left the Bash call without
|
|
209
|
+
a result row in that step, and dsh refused the whole session log on the next load ("step/end
|
|
210
|
+
leaves unresolved tool call"). The step now waits up to ten seconds for those results and
|
|
211
|
+
closes any still running with a placeholder row, so the log always loads. The same placeholder
|
|
212
|
+
now also closes native tool calls left open when the turn ends without a dsh tool call at all,
|
|
213
|
+
including the process dying mid-step (a server restart, a crash), so that path can no longer
|
|
214
|
+
strand a call and break the log either.
|
|
215
|
+
- Buttons and rows in the ✻ panel and in Settings > Oh My Claude tint their background under the
|
|
216
|
+
pointer, the way dsh's own rows do, instead of turning their border orange. In dark mode the
|
|
217
|
+
faint hairline going orange read as a border appearing on whatever was hovered, on every tab.
|
|
218
|
+
The orange border is now the keyboard focus ring only.
|
|
219
|
+
- The permission capsule no longer catches clicks far above and below itself. Its label had a
|
|
220
|
+
line height of 260 px inside a 28 px button, so a click in the composer near it opened the menu.
|
|
221
|
+
- The status line under a turn that was stopped or failed no longer keeps going, and no longer
|
|
222
|
+
comes back with a new verb after it is taken down. dsh leaves such a turn's group open, and the
|
|
223
|
+
line was rewired on every frame; a group whose sentence has stopped changing is done and stays
|
|
224
|
+
done.
|
|
225
|
+
- Settings > General > Permission is dsh's own again. dsh 0.1.7 draws the same permission control
|
|
226
|
+
there as in the composer, and the access shield adopted it too: its six Claude rows appeared in
|
|
227
|
+
that dropdown and the row kept reading "Full access" whatever was picked. The shield now only
|
|
228
|
+
touches the control inside its own composer.
|
|
229
|
+
- An SSH box reports its own Claude Code again. Every box probe was run with this box's resolved
|
|
230
|
+
path to `claude`, which does not exist there, so a box read as "no claude", its version as
|
|
231
|
+
unknown, and the update card offered a release it could not compare against. The box is named the
|
|
232
|
+
binary as configured, the way its turns already were.
|
|
233
|
+
- A session in a remote workspace runs again when the plugin's own mount is the local one. The
|
|
234
|
+
turn carried this box's absolute path to `claude` to the far box, where it does not exist, and
|
|
235
|
+
failed with `claude exited 127`. The far box is named the binary as configured and finds its own.
|
|
236
|
+
- Picking a permission mode marks the menu at once. The pick used to sit on the old mode for the
|
|
237
|
+
second or so the change takes, which read as a click that had not landed; a change that fails
|
|
238
|
+
now puts the real mode back.
|
|
239
|
+
- The result of a tool dsh ran for Claude is read back on dsh 0.1.7, which answers it as a message
|
|
240
|
+
of its own rather than a block inside a user message. Without this the relay saw no result and
|
|
241
|
+
the turn waited on one that had already arrived.
|
|
242
|
+
- A transcript brought in through Import is readable on dsh 0.1.7. Its log was stamped version 3
|
|
243
|
+
while 0.1.7 writes and expects version 4, and that dsh refuses a file whose name and header
|
|
244
|
+
disagree. The version is read from dsh itself now.
|
|
245
|
+
- The plugin's own text follows the language setting on dsh 0.1.7 again. That release replaced the
|
|
246
|
+
settings read the server used, so every server sentence stayed English whatever the setting said.
|
|
247
|
+
- Unarchiving a session on dsh 0.1.7 uses the method that release added for it; the internals the
|
|
248
|
+
older path reached for are private there.
|
|
249
|
+
- The cost reads last in dsh's stats row again, in dsh's own pill shape. dsh 0.1.7 draws each stat
|
|
250
|
+
as a plain pill rather than a button inside an anchor, which left the cost wearing an icon's
|
|
251
|
+
style: a bordered box with the mark stacked above the figure. Switching Performance and usage
|
|
252
|
+
between Compact and Detailed rebuilds that row, and the rebuilt stats landed after the cost,
|
|
253
|
+
putting it first; it moves back to the end and re-copies dsh's pill style when that happens.
|
|
254
|
+
- The turn status line is back on dsh 0.1.7. That release moved the visible line into the button
|
|
255
|
+
heading each turn's process group and left the old row for screen readers only, so the verb,
|
|
256
|
+
spinner and figures were still being drawn, into a node one pixel tall that nobody could see.
|
|
257
|
+
The line now goes in the button beside dsh's own sentence, which is hidden while it is up and
|
|
258
|
+
comes back the moment the turn ends. The elapsed time in the bracket is read from the turn itself
|
|
259
|
+
rather than off dsh's clock, which 0.1.7 folded into that same sentence.
|
|
260
|
+
- Changes, MCP and Diagnostics no longer ask the CLI for anything in a session nobody has prompted
|
|
261
|
+
yet. There is no Claude running to answer, so the tabs say so straight away instead of firing
|
|
262
|
+
three requests that can only be refused, and the permission readout says it in words rather than
|
|
263
|
+
showing the refusal as an error.
|
|
264
|
+
- The cost card and the panel's menus are solid again on dsh 0.1.7, which made its menu fill
|
|
265
|
+
translucent and put the blur behind it. Without that blur the cards read as see-through over the
|
|
266
|
+
chat.
|
|
267
|
+
- Runs on dsh 0.1.7-alpha.1, which renamed every sized icon export in its primitives package. On
|
|
268
|
+
0.1.7 the old names arrived as undefined and React threw where they were drawn, so the composer
|
|
269
|
+
cards, the Oh My Claude panel, the directory browser and the add-workspace box list all went
|
|
270
|
+
missing at once. Each icon now resolves to whichever name the installed dsh has, and 0.1.5 and
|
|
271
|
+
0.1.6 keep working.
|
|
272
|
+
- The Claude look no longer drops off new sessions until a refresh. One passing error from dsh's
|
|
273
|
+
session list could switch off the plugin's page code for the rest of the tab's life; now only a
|
|
274
|
+
real unload does.
|
|
275
|
+
- Tool headers in the chat no longer show up now and then as a plain line with the code block
|
|
276
|
+
open under it until the tab is reloaded. A paragraph dsh reused for a header was never picked up.
|
|
277
|
+
- Runs under DSH Desktop. The plugin finds `claude` in the usual install folders when dsh starts
|
|
278
|
+
with a short PATH, as an app opened from the macOS Dock does, and the update pill no longer
|
|
279
|
+
offers a `dsh plugin` command Desktop refuses; Desktop updates plugins from its own page.
|
|
280
|
+
- On Windows the plugin starts Claude as a plain child instead of through the keeper, which needs a
|
|
281
|
+
Unix socket and `systemd-run`, so turns no longer fail there.
|
|
282
|
+
- Turns no longer fail with "keeper did not answer" on a Linux box where `systemd-run` is installed
|
|
283
|
+
but cannot reach the user session (a container, WSL, some SSH logins). The keeper now starts as a
|
|
284
|
+
detached process there.
|
|
285
|
+
|
|
286
|
+
## [1.3.1] - 2026-09-21
|
|
287
|
+
|
|
288
|
+
dsh: runs on 0.1.5-rc.1 through 0.1.6-alpha.2; built and tested on 0.1.6-alpha.2.
|
|
289
|
+
|
|
290
|
+
### Changed
|
|
291
|
+
|
|
292
|
+
- Every tab of the panel keeps the same inset on all four sides, the one dsh's slash menu uses,
|
|
293
|
+
with the same section labels, 13 px text on a steady line height, and the thin Settings rule
|
|
294
|
+
under open folds.
|
|
295
|
+
The MCP add form and the New skill form take the panel's field look.
|
|
296
|
+
- The Skills tab opens with its groups folded, so user, project and plugin skills and Skill costs
|
|
297
|
+
all show at once. A search opens them to show its matches.
|
|
298
|
+
|
|
299
|
+
### Fixed
|
|
300
|
+
|
|
301
|
+
- Scrolling to the end of a panel tab no longer scrolls the chat behind the panel.
|
|
302
|
+
- Clicking outside the panel to close it no longer sends focus back to the ✻ button, which lit up
|
|
303
|
+
its tooltip. Escape still returns focus there.
|
|
304
|
+
|
|
9
305
|
## [1.3.0] - 2026-09-21
|
|
10
306
|
|
|
11
307
|
### Added
|
|
@@ -163,6 +459,8 @@ Versions from 1.0.0 up are on npm. Everything below 1.0.0 was released from the
|
|
|
163
459
|
|
|
164
460
|
## [1.2.1] - 2026-09-18
|
|
165
461
|
|
|
462
|
+
dsh: runs on 0.1.5-rc.1 through 0.1.6-alpha.2; built and tested on 0.1.6-alpha.2.
|
|
463
|
+
|
|
166
464
|
### Added
|
|
167
465
|
|
|
168
466
|
- The update pill reads the newer release's dsh floor off the registry and stays quiet when this
|
package/README.md
CHANGED
|
@@ -1,5 +1,9 @@
|
|
|
1
1
|
<h1 align="center"><img src="https://raw.githubusercontent.com/lcestou/dsh-oh-my-claude/main/docs/media/spark.svg" alt="" width="22" height="22"> Oh My Claude</h1>
|
|
2
2
|
|
|
3
|
+
<p align="center">
|
|
4
|
+
English | <a href="README.zh.md">中文</a>
|
|
5
|
+
</p>
|
|
6
|
+
|
|
3
7
|
<p align="center">
|
|
4
8
|
<strong>Claude Code, native inside dsh</strong>
|
|
5
9
|
</p>
|
|
@@ -63,9 +67,13 @@ systemctl --user restart dsh-web.service # or restart `dsh web` however you ru
|
|
|
63
67
|
|
|
64
68
|
The package declares a dsh bundle, so `dsh plugin add` registers it in the profile by itself. After the restart, "Oh My Claude" appears in the model picker with the models your login can use. Pick one and chat.
|
|
65
69
|
|
|
70
|
+
The plugin speaks English and Chinese and follows dsh's own language setting (Settings → General → Language), switching as soon as you change it.
|
|
71
|
+
|
|
66
72
|
If the picker lists it as `Oh My Claude (not logged in)`, run `claude auth login` in a terminal on the box that runs dsh, or press Log in under Settings → Oh My Claude → Boxes.
|
|
67
73
|
|
|
68
|
-
|
|
74
|
+
**DSH Desktop** (macOS and Windows) installs and updates plugins from its own Plugins page, not the `dsh plugin` command: add `dsh-oh-my-claude` there and restart when it asks. The plugin looks for `claude` in the usual install folders, since an app started from the Dock does not see your shell's PATH. On Windows it runs Claude as a plain child of dsh, so restarting the app ends a running turn, and the parts that need a Unix shell (Log in from Settings, SSH boxes) are not available. The server half has been run under Electron on Linux the way Desktop runs it; a real Mac or Windows install has not been tried yet.
|
|
75
|
+
|
|
76
|
+
When a newer version is on npm, an orange pill with the version number appears in Settings and on the panel's Runtime line; a click copies the update command. Details, and the repairs the plugin makes on its own after a dsh upgrade, are under [Plugin updates](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#plugin-updates).
|
|
69
77
|
|
|
70
78
|
Optional, in `~/.dsh/settings.yaml`:
|
|
71
79
|
|
|
@@ -82,6 +90,16 @@ subagent-model-selection: # let dsh subagents run on Claude Code too
|
|
|
82
90
|
|
|
83
91
|
Working on the plugin itself? Start at [docs/developing.md](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/developing.md).
|
|
84
92
|
|
|
93
|
+
## Compatibility
|
|
94
|
+
|
|
95
|
+
dsh ships prereleases only and moves client APIs between them, so every release of the plugin records the dsh line it was written for and the dsh it was driven on. "Runs on" is the range the code carries branches for; "tested on" is the dsh installed on the box when the release was cut. The update pill reads the floor off the registry and never offers a release to a box whose dsh is below it.
|
|
96
|
+
|
|
97
|
+
| Plugin | Runs on dsh | Tested on dsh | npm tag |
|
|
98
|
+
| --- | --- | --- | --- |
|
|
99
|
+
| 1.4.0 | 0.1.5-rc.1 through 0.1.7-rc.2 | 0.1.7-rc.2 | `latest`, `dsh-0.1.7` |
|
|
100
|
+
| 1.3.1 | 0.1.5-rc.1 through 0.1.6-alpha.2 | 0.1.6-alpha.2 | `dsh-0.1.6` |
|
|
101
|
+
| 1.2.1 | 0.1.5-rc.1 through 0.1.6-alpha.2 | 0.1.6-alpha.2 | `dsh-0.1.5` |
|
|
102
|
+
|
|
85
103
|
## What you get
|
|
86
104
|
|
|
87
105
|
1. Any Claude model your login can use, in dsh's own picker. [Models](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#models)
|
|
@@ -105,12 +123,18 @@ Working on the plugin itself? Start at [docs/developing.md](https://github.com/l
|
|
|
105
123
|
19. Every skill the CLI can reach, grouped by scope, with add, edit and remove for your own and the project's. What each costs, from the CLI's own `/skill-doctor`, is a table you can sort, beside what else drives your usage: the MCP servers behind the most requests, and how the work was shaped. [Skills](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#skills)
|
|
106
124
|
20. A mark on the browser tab and an optional desktop notice when a session you are not looking at finishes, or stops to ask you something. [Session notices](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#session-notices)
|
|
107
125
|
21. dsh's own goal and every earlier goal of the session, beside Claude Code's goal and its scheduled tasks. [Tasks](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#tasks)
|
|
126
|
+
22. Edit or remove a message you steered in while Claude works, or all of them as one, until Claude reads it. Nothing goes out while you edit. Send now stops Claude and sends one as the next turn. [Steering](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#dsh-tools-over-mcp)
|
|
127
|
+
23. Claude's working line (spinner, verb, figures) repeats above the composer once the turn's own header has scrolled off screen, so a long run of tool cards never hides what Claude is doing. A switch in Settings turns it off. [Turn status](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#turn-status)
|
|
128
|
+
24. Select text in a reply to quote it into your message, or to ask Claude about it as a side question that leaves the conversation alone; leave the question blank and Claude explains the passage. A quote in your own message reads like one in Claude's replies, indented with the accent bar. [Asides](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#asides)
|
|
129
|
+
25. A finished turn keeps a closing line where the working verb was, the way the terminal ends one: `✻ Crunched for 27s · done 3:21 AM`. A turn you stopped reads `Interrupted · What should Claude do instead?`. [Turn status](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#turn-status)
|
|
130
|
+
26. On dsh 0.1.7, Claude's tool calls show as dsh's own tool cards, the way every other provider's do, with the text streaming between them. Inline text is a switch away in Settings. [Tool rows](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/configuration.md)
|
|
131
|
+
27. A new session in a workspace opens on the Claude box and model that workspace last ran. [Remember model per workspace](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#remember-model-per-workspace)
|
|
108
132
|
|
|
109
133
|
Defaults you never have to touch, such as secret redaction in tool results and surviving the CLI's own updates, are on [How it works](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md).
|
|
110
134
|
|
|
111
135
|
## Configure
|
|
112
136
|
|
|
113
|
-
|
|
137
|
+
Settings come in two kinds. The switches under Settings → Oh My Claude and in the panel's Tune tab apply at once and are kept on the box, so every browser sees the same ones. The keys below are install-time: they go as `config:` on the bundle row in the profile's `cordis.patch.yml` and take effect when dsh next loads the plugin, which a dsh restart does. dsh's own Plugins page lists the plugin with an on/off switch but has no form for these keys. Three keys people change first:
|
|
114
138
|
|
|
115
139
|
```yaml
|
|
116
140
|
permissionMode: dsh # follow the session's shield (default), or pin one of the CLI's six modes
|
|
@@ -124,6 +148,14 @@ Every key, with its default, is in [docs/configuration.md](https://github.com/lc
|
|
|
124
148
|
|
|
125
149
|
Mount the plugin twice with different `configDir` values for two logins. List other boxes running dsh and this plugin under Settings → Oh My Claude → Boxes and jump between them. Or give a box a name and `user@host` and drive the `claude` there over SSH, with nothing on the far side but the CLI; Tailscale and WireGuard peers appear as hosts to pick from. All of it is on [docs/remote.md](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/remote.md).
|
|
126
150
|
|
|
151
|
+
## What it touches
|
|
152
|
+
|
|
153
|
+
- **Runs** the `claude` binary you already have, on this box or on one you add over SSH.
|
|
154
|
+
- **Reads** Claude Code's login (`~/.claude/.credentials.json`, or `ANTHROPIC_API_KEY` when set) to fetch the model list and your plan usage. That token goes only to `api.anthropic.com`.
|
|
155
|
+
- **Writes** its own state under `~/.local/state/dsh-oh-my-claude/`; login tokens for SSH boxes are files only you can read. CLAUDE.md, settings.json and MCP servers change only when you edit them from the panel.
|
|
156
|
+
- **Listens** on a Unix socket for the keeper that holds Claude across a dsh restart. No TCP port: its HTTP routes live inside dsh's own server.
|
|
157
|
+
- **Calls out** to `api.anthropic.com` (models, plan usage), `status.anthropic.com`, `downloads.claude.ai` (the CLI's release pointer), `registry.npmjs.org` (plugin update check) and `api.github.com` (the repo's star count). SSH goes only to boxes you add.
|
|
158
|
+
|
|
127
159
|
## Not covered
|
|
128
160
|
|
|
129
161
|
- dsh's shell and file tools are not proxied (except `bash` for background jobs); Claude Code uses its own, under its own permission mode.
|
package/README.zh.md
ADDED
|
@@ -0,0 +1,172 @@
|
|
|
1
|
+
<h1 align="center"><img src="https://raw.githubusercontent.com/lcestou/dsh-oh-my-claude/main/docs/media/spark.svg" alt="" width="22" height="22"> Oh My Claude</h1>
|
|
2
|
+
|
|
3
|
+
<p align="center">
|
|
4
|
+
<a href="README.md">English</a> | 中文
|
|
5
|
+
</p>
|
|
6
|
+
|
|
7
|
+
<p align="center">
|
|
8
|
+
<strong>在 dsh 里原生使用 Claude Code</strong>
|
|
9
|
+
</p>
|
|
10
|
+
|
|
11
|
+
<p align="center">
|
|
12
|
+
<em>把你已登录的 Claude Code CLI 作为 dsh 的一等模型提供方:无需 API key,无需额外服务,没有运行时依赖。</em>
|
|
13
|
+
</p>
|
|
14
|
+
|
|
15
|
+
<p align="center">
|
|
16
|
+
<a href="https://www.npmjs.com/package/dsh-oh-my-claude"><img src="https://img.shields.io/npm/v/dsh-oh-my-claude?style=flat&color=cb3837&logo=npm" alt="npm 版本" /></a>
|
|
17
|
+
<img src="https://img.shields.io/badge/host-dsh-6c5ce7?style=flat" alt="dsh" />
|
|
18
|
+
<img src="https://img.shields.io/badge/drives-Claude%20Code%20CLI-d97757?style=flat" alt="Claude Code CLI" />
|
|
19
|
+
<img src="https://img.shields.io/badge/language-TypeScript-3178c6?style=flat&logo=typescript" alt="TypeScript" />
|
|
20
|
+
<img src="https://img.shields.io/badge/build-Bun-f472b6?style=flat&logo=bun" alt="Bun" />
|
|
21
|
+
<img src="https://img.shields.io/badge/runtime%20deps-zero-45cfa0?style=flat" alt="零运行时依赖" />
|
|
22
|
+
</p>
|
|
23
|
+
|
|
24
|
+
<p align="center">
|
|
25
|
+
<sub>借助 AI 构建,也欢迎更多 AI 参与。欢迎 AI 编程智能体提交贡献,请先阅读 <a href="https://github.com/lcestou/dsh-oh-my-claude/blob/main/CONTRIBUTING.md">CONTRIBUTING.md</a>。</sub>
|
|
26
|
+
</p>
|
|
27
|
+
|
|
28
|
+
---
|
|
29
|
+
|
|
30
|
+
把 Claude Code CLI 作为 [dsh](https://github.com/deepseek-ai/dsh) 的 LLM 提供方。每次请求都以 stream-json 输入输出驱动 `claude -p`,因此沿用 Claude Code 已有的登录、hooks、CLAUDE.md、MCP 服务器和速率限制。无需 API key。插件直接使用 CLI 自己的协议(Agent SDK 封装的就是它),所以没有运行时依赖。
|
|
31
|
+
|
|
32
|
+
插件界面跟随 dsh 的语言设置(设置 → 通用设置 → 语言)。详细文档目前只有英文版,下方链接均指向英文文档。
|
|
33
|
+
|
|
34
|
+
## 功能一览
|
|
35
|
+
|
|
36
|
+
<p><img src="https://raw.githubusercontent.com/lcestou/dsh-oh-my-claude/main/docs/media/shield-menu.png" width="640" alt="Claude 会话中的 dsh 访问权限菜单:计划、询问、接受编辑、自动、不再询问和绕过六项"></p>
|
|
37
|
+
|
|
38
|
+
这个盾牌是 dsh 自带的控件。在 Claude 会话里,它的各项变成 Claude 的六种权限模式,每项都标出它对应的 dsh 访问级别。
|
|
39
|
+
|
|
40
|
+
<p><img src="https://raw.githubusercontent.com/lcestou/dsh-oh-my-claude/main/docs/media/panel-tabs.gif" width="640" alt="Oh My Claude 面板在记忆、回溯、改动和旁问标签之间切换"></p>
|
|
41
|
+
|
|
42
|
+
输入框旁的一个 `✻` 按钮打开整个插件:记忆、说明、技能、回溯、改动、MCP、旁问、诊断、任务和调校;会话还是空白时另有一个恢复标签。
|
|
43
|
+
|
|
44
|
+
<p><img src="https://raw.githubusercontent.com/lcestou/dsh-oh-my-claude/main/docs/media/panel-changes.png" width="640" alt="改动标签列出工作区差异及每个文件的行数"> <img src="https://raw.githubusercontent.com/lcestou/dsh-oh-my-claude/main/docs/media/panel-asides.png" width="640" alt="旁问标签,一个问题在标签栏上方展开"> <img src="https://raw.githubusercontent.com/lcestou/dsh-oh-my-claude/main/docs/media/panel-mcp.png" width="640" alt="MCP 标签的添加服务器表单,已填好名称、命令和参数"></p>
|
|
45
|
+
|
|
46
|
+
<p><img src="https://raw.githubusercontent.com/lcestou/dsh-oh-my-claude/main/docs/media/cost-row.png" width="640" alt="dsh 底部统计行,末尾是 Claude 会话费用和缓存 token 数"></p>
|
|
47
|
+
|
|
48
|
+
费用和缓存 token 数是 dsh 自己算不出的两个数字,它们出现在 dsh 底部的统计行里。会话花费超过你设定的额度后,这个标签会变成橙色。金额按 API 价格计算;使用 Claude 订阅时不会向你收取这笔钱。
|
|
49
|
+
|
|
50
|
+
<p><img src="https://raw.githubusercontent.com/lcestou/dsh-oh-my-claude/main/docs/media/context-usage.png" width="300" alt="dsh 上下文圆环弹窗,显示 Claude 套餐用量窗口和 CLI 自己的上下文明细"> <img src="https://raw.githubusercontent.com/lcestou/dsh-oh-my-claude/main/docs/media/phone-panel.png" width="300" alt="手机上的面板,以底部弹层形式显示在输入框上方"></p>
|
|
51
|
+
|
|
52
|
+
套餐用量和 CLI 自己的上下文明细显示在 dsh 的上下文圆环弹窗里。在手机上,面板变成底部弹层。
|
|
53
|
+
|
|
54
|
+
<p><img src="https://raw.githubusercontent.com/lcestou/dsh-oh-my-claude/main/docs/media/add-workspace.png" width="640" alt="dsh 的选择工作区目录对话框,底部有主机下拉框,列出本机和一台 SSH 主机"></p>
|
|
55
|
+
|
|
56
|
+
保存一台 SSH 主机后,dsh 自带的添加工作区对话框会多出一个主机下拉框:那台主机上的文件夹可以成为这里的工作区,其中的会话在那台主机上运行 Claude Code。
|
|
57
|
+
|
|
58
|
+
<sub>截图由 <code>tools/playwright/tour.ts</code> 生成。</sub>
|
|
59
|
+
|
|
60
|
+
## 安装
|
|
61
|
+
|
|
62
|
+
需要 Claude Code CLI 在 `PATH` 上并已登录(`claude --version` 能运行,打开 `claude` 不会要求登录),以及 dsh 0.1.5-rc.1 或更新版本。别的都不需要:没有 API key,没有 Node 构建步骤。
|
|
63
|
+
|
|
64
|
+
```sh
|
|
65
|
+
dsh plugin --profile web add dsh-oh-my-claude # 从 npm 安装
|
|
66
|
+
dsh plugin --profile web add github:lcestou/dsh-oh-my-claude # 或直接从仓库安装
|
|
67
|
+
systemctl --user restart dsh-web.service # 或用你自己的方式重启 `dsh web`
|
|
68
|
+
```
|
|
69
|
+
|
|
70
|
+
这个包声明了 dsh bundle,所以 `dsh plugin add` 会自动把它登记到 profile 里。重启后,模型选择器里会出现 "Oh My Claude",列出你的登录可用的模型。选一个就能开始对话。
|
|
71
|
+
|
|
72
|
+
如果选择器里显示 `Oh My Claude (未登录)`,请在运行 dsh 的机器上打开终端运行 `claude auth login`,或在 设置 → Oh My Claude → 主机 中点击登录。
|
|
73
|
+
|
|
74
|
+
**DSH Desktop**(macOS 和 Windows)通过自己的插件页面安装和更新插件,而不是 `dsh plugin` 命令:在那里添加 `dsh-oh-my-claude`,并按提示重启。从 Dock 启动的应用看不到你 shell 的 PATH,所以插件会在常见的安装目录里查找 `claude`。在 Windows 上,插件把 Claude 作为 dsh 的普通子进程运行,因此重启应用会中断正在进行的回合,需要 Unix shell 的功能(在设置里登录、SSH 主机)也不可用。服务端已按 Desktop 的方式在 Linux 上用 Electron 运行过;真实的 Mac 或 Windows 安装还没有试过。
|
|
75
|
+
|
|
76
|
+
npm 上有新版本时,设置和面板的运行环境行会出现一个带版本号的橙色标签,点击即可复制更新命令。详情以及插件在 dsh 升级后自行完成的修复,见 [Plugin updates](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#plugin-updates)。
|
|
77
|
+
|
|
78
|
+
可选,在 `~/.dsh/settings.yaml` 中:
|
|
79
|
+
|
|
80
|
+
```yaml
|
|
81
|
+
agent-default-model: # 让新会话默认使用 Claude Code
|
|
82
|
+
provider: claude-code
|
|
83
|
+
model: claude-fable-5-1
|
|
84
|
+
subagent-model-selection: # 让 dsh 子智能体也能使用 Claude Code
|
|
85
|
+
enabled: true
|
|
86
|
+
allowedModels:
|
|
87
|
+
- provider: claude-code
|
|
88
|
+
model: claude-haiku-4-5
|
|
89
|
+
```
|
|
90
|
+
|
|
91
|
+
想参与开发插件本身?从 [docs/developing.md](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/developing.md) 开始。
|
|
92
|
+
|
|
93
|
+
## 兼容性
|
|
94
|
+
|
|
95
|
+
dsh 只发布预发行版,客户端 API 也会在版本之间变动,所以插件的每个版本都记录它面向的 dsh 范围和实际运行验证过的 dsh。"可运行于"是代码带有兼容分支的范围;"测试于"是发版时机器上安装的那个 dsh。更新提示会从 npm 读取最低 dsh 版本,低于它的机器不会收到该版本。
|
|
96
|
+
|
|
97
|
+
| 插件 | 可运行于 dsh | 测试于 dsh | npm 标签 |
|
|
98
|
+
| --- | --- | --- | --- |
|
|
99
|
+
| 1.4.0 | 0.1.5-rc.1 至 0.1.7-rc.2 | 0.1.7-rc.2 | `latest`、`dsh-0.1.7` |
|
|
100
|
+
| 1.3.1 | 0.1.5-rc.1 至 0.1.6-alpha.2 | 0.1.6-alpha.2 | `dsh-0.1.6` |
|
|
101
|
+
| 1.2.1 | 0.1.5-rc.1 至 0.1.6-alpha.2 | 0.1.6-alpha.2 | `dsh-0.1.5` |
|
|
102
|
+
|
|
103
|
+
## 你能得到什么
|
|
104
|
+
|
|
105
|
+
1. 在 dsh 自己的选择器里使用你的登录可用的任何 Claude 模型。[Models](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#models)
|
|
106
|
+
2. 每个 dsh 会话都会续接它的 Claude Code 会话(包括工具历史),终端里的 `claude /resume` 看到的是同一个会话。[Sessions](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#sessions)
|
|
107
|
+
3. 重启 dsh 不会中断正在运行的 Claude 回合。[Restarts](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#restarts)
|
|
108
|
+
4. dsh 的访问权限盾牌按会话设置 Claude 的六种权限模式。[Permission mode](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#permission-mode-per-session)
|
|
109
|
+
5. Claude 的权限请求、提问和计划审阅都变成 dsh 对话框。[Approvals](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#approvals-and-questions)
|
|
110
|
+
6. 一个 ✻ 按钮打开记忆、回溯、改动、MCP 等十余个标签,全部可以用键盘操作。[The panel](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md)
|
|
111
|
+
7. 费用和缓存 token 显示在 dsh 底部,超过设定额度时标签变橙。[Cost pill](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#cost-pill)
|
|
112
|
+
8. 套餐用量(5 小时、每周、额外用量)显示在 dsh 的上下文圆环里,接近上限时变琥珀色,达到上限时变红,并在输入框上方提示。只统计会话所用模型计入的额度,由 Anthropic 判定,所以新模型无需更新插件。[Plan usage](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#plan-usage)
|
|
113
|
+
9. 恢复或导入任何过去的 Claude 记录,无论来自 dsh 还是终端,并可在其中搜索说过的内容。[Session browser](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#session-browser)
|
|
114
|
+
10. Claude 的斜杠命令和技能以 `/claude-<name>` 出现在 dsh 的斜杠菜单里。[Command bridge](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#command-bridge)
|
|
115
|
+
11. Claude 可以通过 MCP 使用 dsh 的子智能体、后台任务、目标和网页搜索。[dsh tools over MCP](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#dsh-tools-over-mcp)
|
|
116
|
+
12. 在面板里编辑本机或远程主机上的 CLAUDE.md、settings.json 和 MCP 服务器,并登录需要登录的 MCP 服务器。[Instructions](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#instructions)、[settings.json editor](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#settingsjson-editor)、[MCP](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#mcp)
|
|
117
|
+
13. 通过 SSH 在另一台主机上运行 Claude,或挂载多个账号。[Remote boxes and accounts](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/remote.md)
|
|
118
|
+
14. 用一份已脱敏的本机报告反馈问题,可复制,也可直接提交 issue。[Report a problem](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#report-a-problem)
|
|
119
|
+
15. 所有橙色都可以按组关闭,颜色也可以自选。[Claude look](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#claude-look)
|
|
120
|
+
16. 选择 dsh 往你的提示词里添加哪些内容,每一块的大小都标在标签上。[dsh context](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#dsh-context)
|
|
121
|
+
17. 会话所在主机有新的 Claude Code 版本时会出现卡片,并可在 dsh 里直接安装;无界面的 `claude -p` 从不自动更新。每台主机的更新渠道、自动安装和历史记录都在设置里的开关下。[Claude Code updates](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#surviving-claude-code-updates)
|
|
122
|
+
18. 在设置里查看最近五个版本的变化,内容来自插件自己的更新日志。[Changelog](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#changelog)
|
|
123
|
+
19. 按范围列出 CLI 能用到的所有技能,你自己的和项目的技能可以添加、编辑和删除。每个技能的开销来自 CLI 自己的 `/skill-doctor`,是一张可排序的表格,旁边还有其他影响用量的因素:请求最多的 MCP 服务器,以及工作的构成。[Skills](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#skills)
|
|
124
|
+
20. 你没在看的会话完成或停下来问你时,浏览器标签页会有标记,还可以选择弹出桌面通知。[Session notices](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#session-notices)
|
|
125
|
+
21. dsh 自己的目标和会话以往的每个目标,与 Claude Code 的目标和定时任务并列显示。[Tasks](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#tasks)
|
|
126
|
+
22. Claude 工作时你插话发送的消息,在 Claude 读取之前可以编辑或移除,也可以合并为一条编辑。编辑期间消息不会发出。“立即发送”会打断 Claude,把这条消息作为下一轮发出。[Steering](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#dsh-tools-over-mcp)
|
|
127
|
+
23. Claude 的工作状态行(旋转图标、动词、数字)会在本轮的标题滚出屏幕后,在输入框上方重复显示,一长串工具卡片不会再遮住 Claude 正在做的事。设置中有开关可关闭。[轮次状态](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#turn-status)
|
|
128
|
+
24. 在回复中选中文本,即可将其引用到消息中,或作为旁问向 Claude 提问,不占用对话本身;问题留空时,Claude 会解释这段内容。你自己消息里的引用也会像 Claude 回复中的引用一样显示:缩进,左侧有强调色竖线。[旁问](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#asides)
|
|
129
|
+
25. 一轮结束后,标题处保留一行收尾,和终端里一样:`✻ 烘焙了 27s · 03:21 完成`。被你停止的一轮显示 `已中断 · 想让 Claude 改做什么?`。[轮次状态](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md#turn-status)
|
|
130
|
+
26. 在 dsh 0.1.7 上,Claude 的工具调用显示为 dsh 自己的工具卡片,和其他提供方一样,文字在卡片之间实时输出。也可以在设置中切换回行内文本。[工具行](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/configuration.md)
|
|
131
|
+
27. 在工作区中新建会话时,会使用该工作区上次运行的 Claude 主机和模型。[按工作区记住模型](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/panel.md#remember-model-per-workspace)
|
|
132
|
+
|
|
133
|
+
一些你永远不必动的默认行为,比如工具结果中的密钥脱敏和挺过 CLI 自身的更新,见 [How it works](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/how-it-works.md)。
|
|
134
|
+
|
|
135
|
+
## 配置
|
|
136
|
+
|
|
137
|
+
设置分两类。设置 → Oh My Claude 下和面板调校标签里的开关立即生效,并保存在本机,所以每个浏览器看到的都一样。下面这些键在安装时配置:写在 profile 的 `cordis.patch.yml` 中该 bundle 行的 `config:` 下,dsh 下次加载插件时生效,重启 dsh 即可。dsh 自己的插件页面会列出这个插件并提供开关,但没有这些键的表单。最常改的三个键:
|
|
138
|
+
|
|
139
|
+
```yaml
|
|
140
|
+
permissionMode: dsh # 跟随会话的盾牌(默认),或固定为 CLI 的六种模式之一
|
|
141
|
+
spawn: keeper # Claude 在 dsh 重启后继续运行(默认);node 或 dsh 则作为普通子进程
|
|
142
|
+
sshHost: "" # "[user@]host" 通过 ssh 驱动另一台机器上的 claude
|
|
143
|
+
```
|
|
144
|
+
|
|
145
|
+
每个键及其默认值见 [docs/configuration.md](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/configuration.md)。
|
|
146
|
+
|
|
147
|
+
## 远程主机和账号
|
|
148
|
+
|
|
149
|
+
用不同的 `configDir` 把插件挂载两次,即可使用两个登录。在 设置 → Oh My Claude → 主机 中列出其他运行 dsh 和本插件的主机,并在它们之间切换。也可以给一台主机起个名字、填上 `user@host`,通过 SSH 驱动那里的 `claude`,远端只需要安装 CLI;Tailscale 和 WireGuard 对等节点会作为可选主机出现。详见 [docs/remote.md](https://github.com/lcestou/dsh-oh-my-claude/blob/main/docs/remote.md)。
|
|
150
|
+
|
|
151
|
+
## 它会接触什么
|
|
152
|
+
|
|
153
|
+
- **运行** 你已有的 `claude` 程序,在本机或你通过 SSH 添加的主机上。
|
|
154
|
+
- **读取** Claude Code 的登录信息(`~/.claude/.credentials.json`,或已设置的 `ANTHROPIC_API_KEY`),用来获取模型列表和套餐用量。这个令牌只会发往 `api.anthropic.com`。
|
|
155
|
+
- **写入** 自己的状态到 `~/.local/state/dsh-oh-my-claude/`;SSH 主机的登录令牌保存为只有你能读取的文件。CLAUDE.md、settings.json 和 MCP 服务器只在你从面板编辑时才会改动。
|
|
156
|
+
- **监听** 一个 Unix socket,供在 dsh 重启期间托管 Claude 的 keeper 使用。不开放 TCP 端口:插件的 HTTP 路由都在 dsh 自己的服务器里。
|
|
157
|
+
- **访问** `api.anthropic.com`(模型、套餐用量)、`status.anthropic.com`、`downloads.claude.ai`(CLI 的版本指针)、`registry.npmjs.org`(插件更新检查)和 `api.github.com`(仓库的 Star 数)。SSH 只连接你添加的主机。
|
|
158
|
+
|
|
159
|
+
## 不包含的内容
|
|
160
|
+
|
|
161
|
+
- dsh 的 shell 和文件工具不经过代理(后台任务用的 `bash` 除外);Claude Code 使用自己的工具,受它自己的权限模式约束。
|
|
162
|
+
- 删除 dsh 会话时不会删除对应的 Claude Code 会话。
|
|
163
|
+
|
|
164
|
+
## 问题与反馈
|
|
165
|
+
|
|
166
|
+
发现 bug,或有读起来不对的地方?请在 [github.com/lcestou/dsh-oh-my-claude/issues](https://github.com/lcestou/dsh-oh-my-claude/issues) 提交 issue,附上 dsh 和 Claude Code 的版本(`dsh --version`、`claude --version`)以及你期望看到的结果。设置 → Oh My Claude → 报告问题 会替你写好这份报告。
|
|
167
|
+
|
|
168
|
+
## 许可证
|
|
169
|
+
|
|
170
|
+
[MIT](LICENSE)。
|
|
171
|
+
|
|
172
|
+
Claude、Claude Code 和 Claude spark 标志是 Anthropic, PBC 的商标。本项目是一个独立的 dsh 插件,驱动你已有的 Claude Code CLI;它并非由 Anthropic 制作、认可或支持。这里画出 spark 只是为了标明哪些会话和控件属于 Claude Code,方式与 CLI 自身的画法一致。
|
package/icon.svg
ADDED
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
<!-- The mark the plugin draws everywhere else (src/client/spark.tsx), as a file dsh can read
|
|
2
|
+
for the Plugin Manager card. One path, Claude orange, no CSS variable: the card renders it
|
|
3
|
+
as an <img>, where a var() would not resolve. Keep the path in step with spark.tsx. -->
|
|
4
|
+
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 100 100" width="100" height="100" role="img" aria-label="Oh My Claude">
|
|
5
|
+
<!-- The mark sits inset, at 62% of the box: dsh draws this inside a 48px tile with a border,
|
|
6
|
+
and the path alone fills that tile edge to edge, which reads as cropped beside dsh's own
|
|
7
|
+
artwork. -->
|
|
8
|
+
<g transform="translate(19 19) scale(0.62)">
|
|
9
|
+
<path fill="#D97757" d="m19.6 66.5 19.7-11 .3-1-.3-.5h-1l-3.3-.2-11.2-.3L14 53l-9.5-.5-2.4-.5L0 49l.2-1.5 2-1.3 2.9.2 6.3.5 9.5.6 6.9.4L38 49.1h1.6l.2-.7-.5-.4-.4-.4L29 41l-10.6-7-5.6-4.1-3-2-1.5-2-.6-4.2 2.7-3 3.7.3.9.2 3.7 2.9 8 6.1L37 36l1.5 1.2.6-.4.1-.3-.7-1.1L33 25l-6-10.4-2.7-4.3-.7-2.6c-.3-1-.4-2-.4-3l3-4.2L28 0l4.2.6L33.8 2l2.6 6 4.1 9.3L47 29.9l2 3.8 1 3.4.3 1h.7v-.5l.5-7.2 1-8.7 1-11.2.3-3.2 1.6-3.8 3-2L61 2.6l2 2.9-.3 1.8-1.1 7.7L59 27.1l-1.5 8.2h.9l1-1.1 4.1-5.4 6.9-8.6 3-3.5L77 13l2.3-1.8h4.3l3.1 4.7-1.4 4.9-4.4 5.6-3.7 4.7-5.3 7.1-3.2 5.7.3.4h.7l12-2.6 6.4-1.1 7.6-1.3 3.5 1.6.4 1.6-1.4 3.4-8.2 2-9.6 2-14.3 3.3-.2.1.2.3 6.4.6 2.8.2h6.8l12.6 1 3.3 2 1.9 2.7-.3 2-5.1 2.6-6.8-1.6-16-3.8-5.4-1.3h-.8v.4l4.6 4.5 8.3 7.5L89 80.1l.5 2.4-1.3 2-1.4-.2-9.2-7-3.6-3-8-6.8h-.5v.7l1.8 2.7 9.8 14.7.5 4.5-.7 1.4-2.6 1-2.7-.6-5.8-8-6-9-4.7-8.2-.5.4-2.9 30.2-1.3 1.5-3 1.2-2.5-2-1.4-3 1.4-6.2 1.6-8 1.3-6.4 1.2-7.9.7-2.6v-.2H49L43 72l-9 12.3-7.2 7.6-1.7.7-3-1.5.3-2.8L24 86l10-12.8 6-7.9 4-4.6-.1-.5h-.3L17.2 77.4l-4.7.6-2-2 .2-3 1-1 8-5.5Z"/>
|
|
10
|
+
</g>
|
|
11
|
+
</svg>
|