Preface¶
When writing code in DeepSeek Harness (DSH), the main conversation model often tries to self-check immediately after making changes: reading the same context and following the same line of thought, making it difficult to spot where its own judgment just went wrong. Switching to a different model with a separate tool loop to read the same code provides an independent judgment—this is the value of a “second opinion.”
Below is an introduction to the community workflow plugin dsh-connect-atomcode (maintainer eghrhegpe): it connects the officially downloaded, locally logged-in AtomCode binary to DSH, allowing the main model to initiate reviews via tools or slash commands, and displaying the 5-hour rolling window usage of your local AtomGit CodingPlan quota below the input box. The current npm version of the plugin is 0.6.2, licensed under MIT.
What is this¶
In one sentence: No external API key required; uses the local AtomCode daemon to provide the atomcode_ask tool, /atomcode-review command, and CodingPlan quota display within DSH.
- Directory Page: skillhub.cn Plugin Page
- Source Code & Docs: GitHub — eghrhegpe/dsh-connect-atomcode
- Category: Workflow
It consumes the free CodingPlan quota included with your account after running atomcode login locally (metered by a 5-hour rolling window). This does not count towards the current DSH session’s token bill, but once the window is full, you must wait for it to reset.
Core Features¶
The plugin README summarizes three deliverables:
| Capability | Form | Description |
|---|---|---|
atomcode_ask |
Tool callable by the main model | One message in, one complete autonomous turn out (includes its own tool loop, deciding which files to read or commands to run); underlying layer is daemon POST /chat (SSE), tokens sourced from ~/.atomcode/daemon-13459.json |
/atomcode-review |
Slash command + “Sharp Review” button below replies | Executed host-side, does not consume main model turns; suitable for bounded self-checks on known diffs, uncommitted changes, branches, or PRs |
| CodingPlan Quota | Compact label + details below input box | Locally parses quota text, e.g., atom · 4% · reset in 48m50s; no external key connected |
Boundary: The model’s tool table only contains atomcode_ask. /atomcode-review is limited to a narrow self-check centered around a specific diff; when you need to trace issues through call chains, you should let the main model call atomcode_ask. The earlier atomcode_review tool has been deprecated.
Installation and Activation¶
Prerequisites¶
- Official AtomCode Binary (v5.x) available in PATH (can also use env var
ATOMCODE_BINor patch configbinary). When launching DSH from Finder on macOS, the PATH may differ from the terminal; after automatic detection fails, the plugin will sequentially try/opt/homebrew/bin/atomcodeand/usr/local/bin/atomcode. - Logged In:
~/.atomcode/auth.tomlexists (check withatomcode status). - Default Model Available: Configured in
default_modelof~/.atomcode/config.toml, or specifyproviderduring invocation. - Daemon:
atomcode daemon --port 13459; under default config, the plugin will detached-launch it when needed (cold start takes about 1.5–4.5s). Ifauto_start: falseis set, you must start the daemon manually.
Installation Commands (Choose one)¶
Regular users installing from npm:
dsh plugin add dsh-connect-atomcode
Installing the main branch from GitHub:
dsh plugin add eghrhegpe/dsh-connect-atomcode
Local development link (example for web profile):
dsh plugin --profile web add link:<dev_directory>
The bundle includes cordis.patch.yml, so manual profile patching is generally unnecessary. Restart the DSH process after installation (patches are read at startup; if only frontend client.js is changed, simply refreshing the browser is sufficient).
Typical Usage¶
Let the Main Model Ask (Daily Main Driver)¶
Simply state your intent in the conversation, for example:
Use atomcode_ask to give a sharp review of the current code
The main model will organize the question; the returned judgment comes from AtomCode, not written by the main model itself. Use continue: true to resume the same AtomCode session; use reset_session: true to open a new line if the daemon session has expired.
Slash Command and Button¶
When the review target is known, you can input directly:
/atomcode-review <review_target>
The command is executed host-side, and the conclusion returns to the session as a card. The “Sharp Review” button below each assistant reply will fill that content as the target for /atomcode-review but will not send automatically; it executes only after you press Enter.
Working Directory¶
Both atomcode_ask and /atomcode-review require a resolvable working_dir (one of three layers: invocation parameters, patch config working_dir, or host session cwd). If none of the three layers can be retrieved, the turn will be rejected (unless the caller passes allow_unattended: true).
Configuration Points¶
Refer to the cordis.patch.yml in the repository for the semantics of complete fields. Common items include:
| Key | Default | Function |
|---|---|---|
port |
13459 |
Daemon port used for ask |
auto_start |
true |
Automatically launch if daemon is not detected |
approval_mode |
bypass |
AtomCode-side tool approval mode during ask turns (build / accept_edits / bypass / plan) |
default_provider |
'' |
Default model tier name, shared by ask and review |
ask_max_rounds |
25 |
Maximum number of tool calls (counted by SSE tool_start) |
quota_refresh_secs |
60 |
CodingPlan quota refresh interval; 0 disables quota display |
Some fields (such as approval_mode, working_dir, ask_max_rounds) can only be modified in the patch; the panel does not provide input boxes for them.
Use Cases and Notes¶
Suitable for: When changes involve core logic, concurrency, security, or data correctness, or when you are unsure about the results, spend some CodingPlan quota for an independent review; when the diff scope is clear, use /atomcode-review to save main session tokens.
Not necessary every time: For small changes like styling or copywriting, you can wait until needed to run it.
Security and Trust: The plugin runs with the current DSH process permissions, launching the local AtomCode daemon and reading/writing config and session states. Please read the source code and MIT license before installation to ensure it aligns with your local security policies. Both ask and review use local daemon tokens; no external API keys are connected.
Ecosystem Note: DSH adheres to “everything is a plugin”; community directories like skillhub.cn are independent sites and have no official affiliation with DeepSeek / High-Flyer.
Conclusion¶
dsh-connect-atomcode integrates “finish coding, then let another pair of eyes read it again” into the DSH workflow: the main model retains orchestration rights, AtomCode provides judgment from a different context, and the 5-hour window usage is displayed transparently in the interface.
- Plugin Directory: https://www.skillhub.cn/plugins/eghrhegpe/dsh-connect-atomcode
- Source Code & README: https://github.com/eghrhegpe/dsh-connect-atomcode