rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
INSTALL REFERENCE
dsh plugin --profile web add github:Magica-Chen/dsh-preset-codex-claude
该命令指向仓库当前默认分支;尚无绑定当前 commit 的完整验证结果。
PROJECT README
A DeepSeek Harness agent preset that offers Codex and Claude Code as delegation subagents, each with an unattended native-policy tier and an explicit full-access tier. One session can use either worker or dispatch both on independent tasks.
subagent_codex Codex bypass approvals and sandbox
subagent_codex_readonly Codex never ask; native sandbox configuration
subagent_claude_code Claude Code bypass permission checks
subagent_claude_readonly Claude Code dontAsk; native authorization rules
The _readonly tool names are historical labels, not security guarantees. Neither tier is a
DSH-enforced read-only sandbox. See Permission tiers.
The preset uses the official @deepseek-ai/dsh-subagent-codex and
@deepseek-ai/dsh-subagent-claude-code providers — no reimplementation. Codex runs over its own
app-server protocol; Claude Code runs over the official Agent SDK.
0.2.1-rc.3, delegation returns a child id promptly;
the runtime delivers the result in a completion notice. There is no run_in_background argument.subagent and subagent_fork.It is a declarative bundle: four Host provider registrations and four preset-scoped product tools, plus the standard coding tools. It does not wrap or fork either product.
The provider packages are dependencies of this bundle, both declared as ^0.2.1-rc.3. These
ranges can select newer prereleases whose DSH requirements differ from your installed host.
For the tested DSH 0.2.1-rc.3 baseline, first install matching provider bundles:
dsh plugin --profile web add @deepseek-ai/dsh-subagent-codex@0.2.1-rc.3
dsh plugin --profile web add @deepseek-ai/dsh-subagent-claude-code@0.2.1-rc.3
Then install this preset into the same Web profile:
dsh plugin --profile web add github:Magica-Chen/dsh-preset-codex-claude
DSH composes its runtime package resolution from the installation and selected bundles' dependency
graphs. You do not need to copy these providers into the global DSH installation or run
npm install --prefix there. Installation-provided packages take precedence in DSH's runtime table;
other selected bundles can also affect which package is selected.
If you already have a checkout, the local-directory alternative is:
dsh plugin --profile web add file:/path/to/dsh-preset-codex-claude
Follow any restart requirement reported by DSH. When replacing an installed version, use the Plugins page or the supported remove/add operations rather than overwriting its runtime files. Create a new session and select “Codex + Claude Code” to validate the current preset revision.
Optionally run the static preflight from the installed copy:
node "${DSH_HOME:-$HOME/.dsh}/profiles/web/node_modules/dsh-preset-codex-claude/bin/doctor.mjs"
Adjust the profile name or installation location as appropriate. Passing preflight does not prove that the live preset mounted or that a product can authenticate and execute a task.
0.2.1-rc.3.A separate codex or claude executable on PATH is not the runtime requirement. The providers
ship pinned product runtimes and do not fall back to a host CLI. A host CLI can be useful for managing
native login/settings, but its presence, version, or login status does not verify the bundled worker.
Native user/project settings remain authoritative. Credential-shaped ambient environment variables
are scrubbed before child startup; an API key intended for a worker must be supplied through that
provider's explicit env configuration. Do not commit credentials to this bundle or its generated
patch. The preflight neither reads credentials nor attempts authentication.
Pick “Codex + Claude Code” for a new session, then ask the parent agent to delegate. For example, the product tools accept self-contained prompts:
subagent_codex(
description="Fix parser tests",
prompt="Run the parser tests, investigate the two failures, and make the smallest fix."
)
subagent_claude_readonly(
description="Review parser changes",
prompt="Review the parser diff for correctness. Do not edit files or run mutating commands."
)
The second prompt is a task instruction, not an enforcement boundary. Check the worker's native settings or use an independently enforced sandbox when non-modification is mandatory.
Each product worker starts fresh without your conversation. Calls return child ids; the parent
receives completion notices and can continue independent work in the meantime. Pairing is offered,
not mandated. Codex/Claude executions are one-shot and do not accept send_message follow-ups.
| Tool | Native mode | What is enforced by the provider |
|---|---|---|
subagent_claude_code |
bypassPermissions |
Explicitly bypasses native permission checks |
subagent_claude_readonly |
dontAsk |
Denies operations that are not already authorized, rather than prompting |
subagent_codex |
dangerously-bypass-approvals-and-sandbox |
Sets approvalPolicy: never and sandbox: danger-full-access |
subagent_codex_readonly |
never |
Sets approvalPolicy: never; sends no sandbox override |
never is not read-only. Its sandbox comes from native Codex configuration. Disabling
approval prompts does not itself forbid writes or commands.dontAsk is not a blanket denylist for Write/Edit/Bash. Native settings and existing
authorization still apply. The unattended callback denies permission requests; that alone does
not prove that every side-effecting tool must request permission.codex-claude.maxDepth: provider-managed leaves nested product behavior to the native runtime.The bundle declares four namespaced provider instances as Host rows, separate from the agent preset's scoped tool rows. This avoids re-registering process-wide provider names for every retained preset revision. Tool names remain short and stable.
cordis.patch.yml is generated. generate-patch.py holds the canonical rows and persona; edit the generator and regenerate instead of editing the patch by hand:
npm run build # python3 generate-patch.py
bin/doctor.mjs performs static structural and dependency checks without loading provider code or starting a model:
DSH_PRESET_CC_INSTALL directory.plan-mode row's non-empty config.section.!!js scalars as inert data; it does not evaluate them.This deliberately limited lookup does not reproduce the active profile's complete resolution table, compatibility admission, native payload loading, or live activation. A provider found on disk is not proof that the running profile selected it. Authentication, native settings, effective permissions, and delegation remain unverified. A different observed version is a diagnostic, not an automatic proof of compatibility or incompatibility.
Exit 0 means the static checks passed, possibly with warnings. Exit 1 means a static check failed.
Use --help for the installation and baseline overrides. Do not treat either the doctor or the
repository's structural tests as an end-to-end product test.
dsh plugin --profile web remove dsh-preset-codex-claude
This removes the preset bundle through DSH's package management. Separately installed official provider bundles remain separate installations; remove those through DSH if they are no longer wanted. Do not manually uninstall packages from DSH's global installation for this preset.
The target baseline is DSH 0.2.1-rc.3, with both provider dependencies declared as
^0.2.1-rc.3. These are caret ranges, not exact pins: a later dependency resolution can select
another satisfying release. Provider compatibility is governed by its declared engines.dsh or
DSH peer requirements, which DSH checks at composition boundaries. For example, providers
0.2.1-rc.4 satisfy the caret range but declare exact rc.4 DSH peers; they must not be assumed compatible
with an rc.3 host. The baseline installation commands above explicitly select the rc.3 provider
bundles. Updating the host or dependencies still requires reviewing the selected versions and
checking actual activation; do not bypass a compatibility refusal just to make the preset load.
Upstream contracts for this baseline:
MIT
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: deepseek-harness。