Introduction¶
DeepSeek Harness (DSH) is an “everything-is-a-plugin” agent development framework. When a developer wants to use the CodingPlan models from AtomGit AtomCode, a provider is needed to align the API to DSH’s calling convention. dsh-atomcode serves exactly that purpose: it reuses the AtomCode client’s login session, performs gateway request signing via a local loopback proxy, and allows DSH to use CodingPlan models as if they were OpenAI-compatible endpoints.
What It Is¶
dsh-atomcode is a DeepSeek Harness plugin maintained by wellsoren. It integrates AtomGit AtomCode’s CodingPlan models into DSH by registering a provider named atomcode. The model list is delivered by the server-side models-v2 endpoint and only exposes entries visible under the current subscription tier.
Core Features¶
- A single provider:
atomcode. Models are delivered by the CodingPlan server. Currently visible models includeqwen3.8-27b(262k context / 32k output / vision / low·medium·xhigh) andglm5.3-flash(512k / 16k / vision / low·high). - Login session reuse: Reads
~/.atomcode/auth.tomldirectly from the AtomCode CLI. If the CLI is not installed, you can click “Log In” in the sidebar panel; the result is written back to the same file. When a token is about to expire, it is automatically renewed viarefresh_tokenand rotated back. - Signing proxy: The AtomGit gateway requires
X-AtomCode-*request signatures (HMAC over the raw body bytes). The plugin starts a loopback proxy listening only on127.0.0.1to perform signing and forwarding. To DSH, it appears as a standard OpenAI-compatible endpoint. - Hot model updates: Fetched once at startup, then refreshed hourly. Falls back to built-in seed data if the server is unavailable, so chat is not interrupted.
- Per-model toggle: Leave
enabledModelsempty for all models enabled; fill it in to expose only the listed models. - Sidebar panel: Login status, subscription tier, 5-hour quota window, and daily/per-model usage over the last 60 days. Supports refresh, claim plan, login, and logout.
- Multimodal & reasoning levels: Models that declare
supports_visionon the server automatically enable image input;reasoning_effort_levelsare mapped as-is to DSH’s thinking effort tiers.
Installation & Enablement¶
Requirements: DSH ≥ 0.1.2-rc.1, Node ^22.19.0 || >=24.0.0. Pure JS, no build step needed.
- Obtain this repository (
git cloneor download the tarball); - In DSH, use
install_bundlefromplugin_manager, withtargetpointing to the repository directory or the packaged tarball; - Enable
dsh-atomcodeon the Plugins page; - Refresh the page once (the browser side assembles at page load; the host side does not require a DSH restart).
Two options for logging in:
atomcode login # If you already have the AtomCode CLI: the plugin reuses its auth.toml directly
Or open the AtomCode panel in the sidebar and click “Log In”, then authorize in the browser as prompted.
After modifying lib/*.js, toggle the plugin “Disable → Enable” on the Plugins page to hot-reload the host-side code.
Sidebar Panel¶
Open the AtomCode icon in the left toolbar:
| Section | Content |
|---|---|
| Account | Login status, name · @username, auth.toml path, token expiry |
| Plan | CodingPlan Lite-Trial / Pro name, claim date → expiry date, days remaining, tier |
| Current Window | calls_used / call_limit, token usage, reset countdown for the 5-hour rolling window |
| Quota Windows | Each active entry in rate_limit_windows, with reset notes |
| 60-Day Usage | Daily bar chart (hover for calls/tokens) + per-model share, call count, tokens |
| Available Models | Context, output limit, vision support, reasoning levels |
| Actions | Refresh / Claim Plan / Log In / Log Out |
Data is polled every 60 seconds; countdowns refresh every 30 seconds. All requests go only to the local loopback endpoints /api/atomcode/*.
Known Limitations¶
- Only
/chat/completionsis proxied;/responses, embeddings, and rerank are not yet integrated. - Single account: one DSH process, one login session. No multi-account rotation.
- Read-only usage: Data comes from
status-v2/usage; no local accounting. - The signing salt includes the client version: when AtomCode bumps a major version (changes the signing algorithm or paths),
clientVersionor the signing implementation must be updated accordingly. - Shared
auth.tomlwith the CLI: AtomGit’s refresh rotatesrefresh_token; both sides use the last write as authoritative. In edge cases, the other side may need to re-login. - The panel’s “Log Out” action ends the login session shared with the CLI (see Instructions.md for details).
- The panel is a browser-side component. After initial install or any
dsh.clientchanges, a page refresh is required for it to appear.
Privacy¶
- Credentials never leave the machine:
access_token/refresh_tokenexist only in~/.atomcode/auth.toml. The plugin does not store copies or send them to any third party. All outbound requests go only toacs.atomgit.com,api.gitcode.com, andllm-api.atomgit.com. - Loopback proxy: Listens only on
127.0.0.1, requiresAuthorization: Bearer <per-process random token>, and validates theHostheader./api/atomcode/*additionally verifies that the source is a loopback address. - No telemetry: The plugin does not collect or report any usage data.
- Clean repository: Contains no real tokens, user IDs, emails, or absolute paths. Tests use fixtures, and credentials for packet-capture validation are read from environment variables.
.gitignoreexcludesauth.tomland packet-capture logs.
Use Cases & Notes¶
Ideal for developers who need to build agents with DSH while also leveraging AtomCode CodingPlan models and their subscription quota.
The plugin runs with the permissions of the current DSH process. Before installing, review the source code and license. This project is a third-party plugin with no affiliation or endorsement from AtomGit, AtomCode, or DeepSeek. It is intended for personal learning and research only—do not use it for commercial resale or beyond the scope of reasonable personal use.
Closing¶
dsh-atomcode enables DSH to directly use AtomCode’s CodingPlan models, reusing the login session and subscription quota. The sidebar panel provides usage and status monitoring. At its core, it combines a signing proxy with login session reuse to transform AtomCode’s gateway protocol into an OpenAI-compatible endpoint that DSH can recognize.