rea
morluto
Reverse engineer anything with agents, from app behavior down to native binaries.
PROJECT TOPICS
PROJECT README
English | 简体中文
A third-party plugin for DeepSeek Harness (DSH) that adapts GPT models and reuses your existing Codex environment. Read Codex instructions, skills, enabled plugin resources, and MCP server configurations without moving or rewriting the original files.
low, medium, high, xhigh, max, and ultra.Reasoning levels, speed tiers, and context limits depend on the configured model gateway. Local presets do not increase upstream capabilities.
Plugin UI text, context presets, configuration descriptions, and plugin-owned validation errors follow DSH's native language setting, with Simplified Chinese and English dictionaries. Other native languages fall back to English. Switching languages preserves editor drafts. Model/skill names, custom labels, protocol identifiers, and upstream error text remain verbatim.
Requires Node.js >=24.9.0, Cordis 4.1.0, and DSH 0.2.2-rc.1, 0.2.2-rc.2, or 0.2.2-rc.3.
Install the npm package in your DSH web profile:
dsh plugin --profile web add dsh-gpt-adapter@0.2.13
Restart DSH after installing or upgrading. Replace web with your profile name when using a different profile.
To install a local build from source, you also need pnpm:
git clone https://github.com/oh-dsh-plugins/dsh-gpt-adapter.git
cd dsh-gpt-adapter
pnpm install --frozen-lockfile
mkdir -p artifacts
pnpm pack --pack-destination artifacts
dsh plugin --profile web add ./artifacts/dsh-gpt-adapter-0.2.13.tgz
Fast requests the upstream priority tier. Upstream model metadata controls automatic Ultrafast availability. Allow manual Ultrafast is a separate Responses provider setting, independent of model and subscription plan. It is off by default; turning it on only exposes manual selection in the chat toolbar and does not change the current speed or grant access. Select Ultrafast to send service_tier: "ultrafast"; if an automatic option has the same name, only one entry is shown. Enabling the switch does not change saved automatic selections or their configured request values. The plugin passes the manual protocol parameter through, and whether it is accepted depends on the upstream and your account. Speed selections are saved per session.
Upgrading from v0.2.11: Older sessions saved automatic and manual Ultrafast under the same identifier. To avoid sending the manual tier unintentionally, the plugin does not restore that identifier as a manual selection. If you previously selected Ultrafast manually, choose Ultrafast again after upgrading.
Use Sync now on the provider card to refresh the model list. Models no longer listed upstream are retained until you choose to remove them. You can also configure the sync interval, an optional capability catalog URL, and model capability overrides on that card. Explicit capability overrides take precedence over upstream metadata, external catalogs, and presets, except that an upstream Ultrafast denial is retained for automatic capability resolution. The separate manual-selection switch does not assert upstream support.
Open Settings → Models → Custom settings → Model catalog and use the model's Context window field:
| Choice | Behavior |
|---|---|
| Default | Restore automatic resolution from provider defaults, model metadata, capability catalogs, and built-in presets. |
| 516K | Set 516000 tokens. |
| 1M | Set 1000000 tokens. |
| Custom | Enter a token count or a decimal K/M value, such as 750K or 1.2M. |
Only Custom shows an input. Apply changes with the native Save button. Existing explicit capacities remain effective until you change them. Settings for the same model ID on different providers are independent.
Context capacity must exceed the output-token budget plus DSH's compaction reserve. Maximum output and automatic compaction remain controlled by DSH. Changing the local window does not change the upstream limit; changes apply to the next prepared request.
Codex compatibility is enabled by default. The plugin uses codexHome when configured, otherwise CODEX_HOME, then ~/.codex.
| Resource | Supported behavior |
|---|---|
config.toml |
Read user configuration and trusted project .codex/config.toml layers. |
| Global instructions | Use the first nonempty AGENTS.override.md, otherwise AGENTS.md. |
| Project instructions | Read from repository root to the current DSH working directory, including configured fallback filenames. |
| Shared instructions | Retain DSH/shared instructions and applicable local instruction overlays. |
| Skills | Load Codex skills/, skills/.system/, enabled plugin skills, and native shared/project skills. Honor configured skill enablement and original resource paths. |
| Enabled plugins | Read supported local plugin manifests and their skill/MCP resources. Disabled plugins remain disabled. |
| MCP servers | Import enabled mcp_servers and enabled plugin MCP declarations. |
Instruction changes apply at the next model step. The plugin reads instruction files; it does not import Codex's built-in system prompt. Existing conversation history remains when the plugin is removed.
Plugin resources must already exist in a configured local marketplace or the Codex plugin cache. The adapter does not download them. Plugin skills and servers receive a plugin prefix where needed to avoid name conflicts.
Supported transports are stdio and Streamable HTTP. Existing server configuration can supply commands, arguments, working directories, environment variables, headers, bearer-token environment variables, timeouts, and enabled/disabled tool lists.
MCP connections start before an Agent's first model step. Each Agent owns its connections, and trusted project overrides apply within that Agent's scope. Stdio servers use the Agent's working directory unless an explicit cwd is configured. Idle Agents release their connections after one minute and reconnect before the next step. With watching enabled, active Agents update their connections automatically; idle Agents apply configuration changes when they resume.
Set mcpIdleTimeoutMs to change the idle retention period, or 0 to keep connections until the Agent is disposed. Reconnecting can reset server state held only in memory; use 0 for servers that need to preserve that state between turns.
Authentication variables must be available in the DSH host environment. Servers that depend on Codex App authentication, browser extensions, or other local services still require those services to be available. The adapter does not reproduce Codex OAuth/keychain sessions, App IPC services, hooks, proprietary commands, or permission policies. DSH retains its own approvals and sandbox behavior.
The existing gpt-adapter plugin settings expose these options:
codexCompatibility:
enabled: true
# codexHome: /path/to/existing/codex-home
importInstructions: true
importSkills: true
importMcpServers: true
importPluginResources: true
watch: true
mcpIdleTimeoutMs: 60000
pollIntervalMs: 2000
mcpAllowlist: []
An empty mcpAllowlist imports all enabled declared servers. A nonempty list filters by the original server name. Set individual import options to false to disable those resource types; set enabled: false to disable Codex compatibility.
Model snapshots and saved speed choices are stored under $DSH_HOME/storages/gpt-adapter. Codex source files and imported MCP credentials are not copied there.
Disabling GPT adaptation restores native reasoning-level controls. Context window presets remain available and save through DSH's native settings. Disabling or removing the plugin withdraws its runtime registrations without changing Codex source files or deleting DSH conversation history.
MIT. See third-party notices. This project is independently maintained and is not affiliated with DeepSeek or OpenAI.
CLASSIFICATION EVIDENCE
系统优先读取 GitHub Topics,再与站内分类词典和词根规则比对。当前命中: mcp、llm、openai、deepseek-harness、deepseek-harness-plugin。