Introduction¶
When performing desktop automation or short-time inference tasks in DeepSeek Harness (DSH), a common practice is to connect a computer-use plugin directly in the Host or mount a subagent in the agent. If you have Codex CLI installed and logged in locally and prefer DSH to initiate “single task, independent process, specified model and reasoning tier” rather than replicating click and screenshot primitives inside the DSH process, you need a thin delegation bridge.
dsh-tool-codex-computer-use (maintainer wxfiveopps1102) is designed exactly for this: register a tool in DSH, launch a new codex exec on every call, hand over desktop or pure text tasks to Codex’s built-in computer-use capabilities to execute, and then transmit the text, screenshot paths, and logs back to the Host. It is categorized as “Model Inference” in the community directory; the repository uses the MIT license, and the npm package version is 0.1.0.
What is it¶
One-sentence positioning: A DSH plugin that does not implement key/mouse or screenshot primitives; it is only responsible for delegating tasks, merging model parameters, and structurally returning the results of Codex CLI.
Unlike the responsibility of DSH’s built-in subagent_codex, the two can coexist. Compared to accessibility-first or UI Automation-type computer-use plugins, this plugin relies on Codex’s visual and coordinate control; it does not have an accessibility tree or element addressing.
Core Features¶
Below are the capabilities verified in the repository README.
Dual-mode tool computer_use_codex¶
mode=desktop(default): Desktop automation or tasks with screenshot verification.mode=text: One-time text tasks, no screenshot directory is created; in this modeverifyis fixed tonone.
Each call is independent and cannot continue the same session or follow up. Measurements show that codex exec cold start takes about 3–5 seconds, and actual time varies with the task.
Model and Runtime Parameters¶
Single call or plugin configuration can override:
modelreasoningEffortserviceTier
Parsing order: Call parameters > Plugin config > Environment variables > ~/.codex/config.toml. The controls in the returned result will indicate the effective value and source.
Health Check computer_use_codex_status¶
Passing {} is sufficient; no desktop task is executed. It returns CLI and desktop versions, model directory, authentication metadata, platform information, and non-blocking warnings related to the local Codex. Data is cached in-process for about 5 minutes.
Verification and Security-related Behavior¶
verifycan bestrict(default),final, ornone, controlling the granularity of screenshot verification.- When
ephemeralistrue, pass--ephemeraltocodex execto reduce disk persistence of session files. - After a timeout, attempt graceful termination (
terminateGraceMs, default 5000 milliseconds) first, then forcefully end the process. - The default
securityModeisbypass; boundary control relies on this mode and Codex’s own control; the plugin does not provide permission scopes or approval panels.
The Host bundle is registered via ctx.tools with no additional runtime dependencies; clicking, scrolling, typing, and screenshots are handled by Codex’s computer-use plugin.
Environment Requirements¶
Continuing the prerequisites from the README:
- DSH 0.2.2 series (end-to-end acceptance documented using 0.2.2-rc.2).
- Node.js >= 20 (the repository CI uses Node.js 24).
- Codex CLI installed and logged in locally (acceptance records use 0.167.2).
- Desktop tasks: Requires computer-use/browser-related plugins and an available desktop session; macOS must be granted Accessibility, Screen Recording permissions by Codex or the host.
cwdmust point to an existing directory.
Supported platforms: README states that macOS and Windows 11 have real desktop verification (e.g., macOS Calculator, Windows Notepad).
Installation and Enablement¶
The repository root directory is the installable bundle. Please replace desktop in the command with the DSH profile you are actually using. It is recommended to read the source code and LICENSE before installing; the plugin runs under the current DSH Host process permissions.
Recommendation: npm package name¶
dsh plugin --profile desktop add dsh-tool-codex-computer-use
You can check the published version with the following command:
npm view dsh-tool-codex-computer-use version
Installation from Git Repository¶
dsh plugin --profile desktop add git+https://github.com/wxfiveopps1102/dsh-tool-codex-computer-use.git
Installation from DSH Plugin Page¶
Open Plugins → Add plugin, and fill in:
git+https://github.com/wxfiveopps1102/dsh-tool-codex-computer-use.git
After the steps above, enable the bundle in the DSH Plugins page. If replacing an installed version, you need to restart the Host process to load the new module.
Typical Usage¶
The following JSON is DSH tool parameters, not shell commands.
Desktop Task¶
First use computer_use_codex to open the calculator and verify by screenshot:
{
"task": "打开计算器,计算 7 × 8,并截图核验结果。",
"mode": "desktop",
"cwd": "/absolute/path/to/workspace",
"timeoutSeconds": 600
}
On Windows, cwd can be written as C:/path/to/workspace. Screenshots are requested to be saved as .jpg under <cwd>/.codex-cu/ by default (can be adjusted via screenshotDir or environment variable DSH_CODEX_SCREENSHOT_DIR). The prompt does not guarantee that a screenshot will be generated.
Text Task¶
{
"task": "用一句话解释 7 × 8 的含义。",
"mode": "text",
"timeoutSeconds": 600
}
Common Configuration Items¶
Set via plugin apply(ctx, config) or Host environment variables (must be passed to the Host process):
| Config | Env Var | Description |
|---|---|---|
codexBin |
DSH_CODEX_BIN |
Specify local Codex CLI path |
timeoutSeconds |
DSH_CODEX_TIMEOUT_SECONDS |
30–3600, default 600 |
screenshotDir |
DSH_CODEX_SCREENSHOT_DIR |
Default <cwd>/.codex-cu/ |
securityMode |
DSH_CODEX_SECURITY_MODE |
Default bypass |
computer_use_codex returns fields like ok, output, controls, logPath (when created successfully). ok: true only indicates the CLI exited normally, it does not guarantee the business goal was achieved; desktop tasks should be verified with screenshots or logs.
Use Cases and Considerations¶
Who is it suitable for¶
- Already maintain Codex CLI locally and want to initiate single desktop or text tasks as tools within DSH conversations.
- Need to switch models, reasoning tiers, and service tiers per call, and want the source of the effective values included in the results.
- Accept the seconds of startup overhead from an independent process per call in exchange for decoupling from DSH’s built-in Codex version (
codexBincan point to any local installation).
When not suitable or needing to choose another plugin¶
- Need widget-level precision: Consider accessibility-first fangchenghao/dsh-computer-use, or Windows UI Automation MoyuDRCC/dsh-computer-use.
- Want cross-platform in-process SDK and do not depend on a standalone Codex CLI: You can evaluate dsh-plugin-computer-use (Cua Driver).
Must-read before installation and running¶
The DSH ecosystem follows the “everything is a plugin” principle; the SkillHub Plugin Directory and the community repository on GitHub are independently listed and are not the official DeepSeek or Hui Fang app stores. Enabling the plugin means allowing it to call local codex and read/write working directories and temporary logs under Host permissions; you should review the repository code and MIT license terms yourself before installing.
Conclusion¶
dsh-tool-codex-computer-use bridges the gap between DSH and local Codex CLI into two tools: task execution and health check. If your workflow is already centered around Codex and you want to perform one-time delegation using unified JSON parameters within DSH, you can integrate it using the installation command above and first confirm that the CLI and model directory are ready using computer_use_codex_status.