codex-deepseek-subagent
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseCodex DeepSeek 子 Agent
Codex DeepSeek Sub-Agent
本 Skill 只维护配置,不承接日常用户任务。确定性的文件、模型目录和凭据操作交给 ;不要手动改 TOML、JSON、Agent 文件或系统凭据库。
scripts/codex_deepseek.pyThis Skill only maintains configurations and does not undertake daily user tasks. Deterministic operations on files, model directories, and credentials are handled by ; do not manually modify TOML, JSON, Agent files, or the system credential store.
scripts/codex_deepseek.py关键契约
Key Contracts
-
只使用桌面应用内置的 Codex 运行时;版本仅用于诊断,兼容性以真实派发验收为准。
-
从桌面配置读取父模型,并由管理程序应用 v1 明文派发设置;不要硬编码父模型或手改配置。技术原因见 references/compatibility.md。
-
父模型变化后必须运行,再重新验收。
repair -
DeepSeek 是纯文本 Agent,不处理图片、视频、截图或其他视觉输入。父 Agent 先识别视觉内容,再传入文字事实。
-
日常任务只能直接调用:text
spawn_agent(agent_type="DeepSeek", fork_turns="none", ...)不要为日常任务运行本 Skill、管理脚本或。codex exec -
当前工具若不认识角色,只提示用户打开新任务或重启 Codex;不得改用默认角色、脚本或
DeepSeek代做当前任务。codex exec
-
Only use the Codex runtime built into the desktop application; versions are only used for diagnosis, and compatibility shall be subject to actual dispatch acceptance.
-
Read the parent model from desktop configurations, and apply v1 plaintext dispatch settings via the management program; do not hardcode the parent model or manually modify configurations. For technical reasons, see references/compatibility.md.
-
Must runafter the parent model changes, then re-accept.
repair -
DeepSeek is a pure text Agent and does not process images, videos, screenshots, or other visual inputs. The parent Agent shall first identify visual content, then pass in textual facts.
-
For daily tasks, only call directly:text
spawn_agent(agent_type="DeepSeek", fork_turns="none", ...)Do not run this Skill, management scripts, orfor daily tasks.codex exec -
If the current tool does not recognize therole, only prompt the user to open a new task or restart Codex; do not replace it with the default role, scripts, or use
DeepSeekto perform the current task instead.codex exec
触发后的流程
Post-Trigger Process
- 运行 ,根据结构化状态继续,不靠文件名猜测。
status --json - 配置请求运行 ;父模型已变化或配置损坏时运行
setup --json。repair --json - 缺少凭据时简洁索要 API Key。收到后不要复述、回显或写入临时文件,只通过 的标准输入传递。
--api-key-stdin - 或
setup使用桌面内置运行时创建隔离验收会话。若返回test或new_task_required,提示用户重启桌面应用并打开新任务。restart_required - 验收必须检查子线程数据库 表的实际元数据,并确认子 Agent 返回口令
threads。两者缺一不可,不能以子 Agent 自述代替。NATIVE_DEEPSEEK_OK - 最终只汇报状态、实际 Provider、模型、思考程度、角色和备份位置;不要输出密钥或原始事件日志。
- Run and proceed based on structured status, do not guess by file names.
status --json - Run for configuration requests; run
setup --jsonwhen the parent model has changed or the configuration is damaged.repair --json - Concisely request the API Key when credentials are missing. After receiving it, do not repeat, echo, or write it to a temporary file; only pass it via standard input using .
--api-key-stdin - or
setupuses the desktop built-in runtime to create an isolated acceptance session. Iftestornew_task_requiredis returned, prompt the user to restart the desktop application and open a new task.restart_required - Acceptance must check the actual metadata in the table of the sub-thread database and confirm that the sub-Agent returns the password
threads. Both are required, and cannot be replaced by the sub-Agent's self-report.NATIVE_DEEPSEEK_OK - Finally, only report the status, actual Provider, model, thinking level, role, and backup location; do not output keys or raw event logs.
管理命令
Management Commands
入口。macOS 使用 ,Windows 使用 :
python3py -3text
python3 <skill-dir>/scripts/codex_deepseek.py <command> --json- :只读检查桌面内置运行时、配置、模型目录、凭据和客户端能力。
status - :写入配置并验收;缺少密钥时返回
setup。credential_missing - :通过桌面内置运行时执行一次直连测试和一次原生
test验收。spawn_agent(agent_type="DeepSeek") - :按当前父模型重新应用配置并验收。
repair - :停用本 Skill 创建的角色,保留 Provider、模型目录和凭据。
disable - :移除本 Skill 管理的配置;只有用户明确要求删除凭据时才传
uninstall。--remove-credential
默认使用当前 ;仅在用户明确指定其他 Codex Home 时传 。
CODEX_HOME--codex-homeEntry. Use for macOS, for Windows:
python3py -3text
python3 <skill-dir>/scripts/codex_deepseek.py <command> --json- : Read-only check of desktop built-in runtime, configurations, model directories, credentials, and client capabilities.
status - : Write configurations and perform acceptance; return
setupwhen keys are missing.credential_missing - : Execute a direct connection test and a native
testacceptance via the desktop built-in runtime.spawn_agent(agent_type="DeepSeek") - : Re-apply configurations and perform acceptance according to the current parent model.
repair - : Disable the role created by this Skill, retain Provider, model directories, and credentials.
disable - : Remove configurations managed by this Skill; only pass
uninstallwhen the user explicitly requests to delete credentials.--remove-credential
By default, use the current ; only pass when the user explicitly specifies another Codex Home.
CODEX_HOME--codex-home状态处理
Status Handling
- :直连、原生路由、数据库元数据和返回口令均通过。
ready - :静态配置完整,但尚未完成实时验收。
configured - :索要 API Key 后继续原流程。
credential_missing - :已有配置操作正在运行,稍后重试,不并发修改。
operation_in_progress - :报告冲突文件和字段,等待用户决定是否替换。
conflict - :报告缺少的系统能力,不按固定版本号猜测兼容性,也不手工绕过。
unsupported - :读取结构化
failed;若程序已回滚,明确说明,不再手改配置。errors
更详细的路径、版本和安全边界见 references/compatibility.md。
- : Direct connection, native routing, database metadata, and return password all pass.
ready - : Static configuration is complete, but real-time acceptance has not been completed.
configured - : Continue the original process after requesting the API Key.
credential_missing - : A configuration operation is already running, retry later, do not modify concurrently.
operation_in_progress - : Report conflicting files and fields, wait for the user to decide whether to replace.
conflict - : Report missing system capabilities, do not guess compatibility by fixed version numbers, and do not bypass manually.
unsupported - : Read structured
failed; if the program has rolled back, clearly state this and do not manually modify configurations.errors
For more detailed paths, versions, and security boundaries, see references/compatibility.md.