
Security News
PHP Foundation Says Chainguard Broke Security Embargo Ahead of Emergency Patches
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.
dsh-codex-shell
Advanced tools
Exclusive Codex-style exec_command and write_stdin shell tools for DeepSeek Harness
dsh-codex-shell is a DeepSeek Harness npm bundle that provides the
Codex-compatible exec_command and write_stdin tools.
The plugin starts a fresh shell process for every exec_command call and keeps
that process available for later write_stdin calls while it is running. PTY
transport is the default. If PTY allocation fails, the configured ptyFallback
policy can use an explicit-argv pipe backend or fail the call.
Install it into a DSH profile:
dsh plugin --profile web add dsh-codex-shell
The package contains a DSH bundle patch that disables the legacy
tool-bash, tool-pwsh, and tool-jobs rows, then registers this plugin as
codex-shell and selects codex-whale as the agent-preset default. Restart
the profile after installation.
For a local checkout:
- insert:
- id: codex-shell
name: '/absolute/path/to/dsh-plugins/codex-shell/lib/index.js'
The npm bundle follows the same dsh.bundle.patch pattern used by the
dsh-web-ui plugin: the package
ships a cordis.patch.yml and declares it in package.json.
The DSH checkout in this repository includes the Codex Whale preset with ID
codex-whale. It is the recommended preset for this plugin and exposes the
Codex shell exclusively. The preset must be shipped by the DSH application
under apps/cli/config/agent-presets/codex-whale; the current stock CLI does
not discover preset directories from an npm bundle.
The preset is intentionally separate from the legacy standard, code, and
minimal presets so installing this bundle does not silently break existing
profiles. Selecting one of those legacy presets can still expose its original
shell tools.
On POSIX hosts, commands run through the resolved POSIX shell ($SHELL, then
/bin/sh). On Windows, the adapter uses PowerShell. exec_command starts a
fresh shell process; a running process returns an opaque session ID for
write_stdin.
The model-visible schemas intentionally contain only cmd, workdir,
yield_time_ms, max_output_tokens, session_id, and chars. Shell choice,
PTY selection, execution policy, and process cleanup are deployment-level
configuration.
When exec_command leaves a process running, its rendered text includes a
[session_id: N] marker so the model can pass that ID to write_stdin.
PTY output is also normalized for model visibility: ANSI/VT control sequences such as Windows ConPTY startup and terminal-title codes are removed while printable text, line endings, Unicode, and interactive input remain intact.
On Windows, windowsPtyStartupGraceMs controls the startup grace before the
first PTY input; it defaults to 2000 and may be set to 0 when the host does
not need the PowerShell/ConPTY startup guard. This is deployment configuration,
not part of either model-visible tool schema.
The default configuration is trusted execution with a pipe fallback.
executionMode: host-policy is intentionally fail-closed and currently
unsupported until this plugin is given an explicit DHS policy adapter; it does
not silently grant host access or claim to provide confinement.
FAQs
Exclusive Codex-style exec_command and write_stdin shell tools for DeepSeek Harness
The npm package dsh-codex-shell receives a total of 7 weekly downloads. As such, dsh-codex-shell popularity was classified as not popular.
We found that dsh-codex-shell demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.

Security News
The PHP Foundation says Chainguard broke a security embargo ahead of critical RCE patches, as leaks disrupted the coordinated release.

Security News
PHP releases emergency patches for two critical RCE vulnerabilities as agencies urge organizations to take unpatched sites offline.

Threat Research
/Security News
A supply chain attack compromised LiteLLM 1.107.0 on PyPI and Docker, spreading malware that steals cloud credentials, developer secrets, and AI provider keys.