MiCat-S

T3 Prompt Patch — Development skill for Claude Code

Development community

让 T3 Code 里的 Claude 和 Codex 通过 nxbridge 平级协作的提示词补丁 / Prompt patch for T3 Code: Claude and Codex collaborate via nxbridge.

How to install T3 Prompt Patch

This entry records only its repository, not the path inside it, so there is no exact command to give. Open MiCat-S/t3-prompt-patch and copy the folder into ~/.claude/skills/, or the file into ~/.claude/agents/.

What T3 Prompt Patch does

让 T3 Code 里的 Claude 和 Codex 通过 nxbridge 平级协作的提示词补丁 / Prompt patch for T3 Code: Claude and Codex collaborate via nxbridge.

Alternatives in Development

  • Prompt Net Requests — I want to enhance the AsyncPlaywrightCrawlerStrategy to optionally capture network requests and console messag 85.8k ★
  • Correction Handler — Correction 处理 Prompt 24k ★
  • P9 — PUA P9 Tech Lead 模式 — 写 Prompt 管 P8 团队 19.5k ★

README

**中文** · [English](README.en.md)

T3 Prompt Patch

修改 T3 Code(Nightly)内置给 Claude 和 Codex 的提示词。改完后,在 T3 里 Claude 和 Codex 之间的协作改走 [nxbridge](https://github.com/nxbridge/nxbridge),两边是平级搭档,不再走 T3 自己的 `delegate_task`。顺带放宽两处预览和图表规则。

只改提示词文本,不改 T3 的其他代码。改之前会备份原包,随时可以恢复。

三个脚本

仓库里有三个互相独立的脚本,可以只用其中一个,也可以都用,先后顺序随意:

脚本 作用 一行运行(macOS Nightly,无需克隆仓库)
t3-prompt-patch.py 改提示词,让 Claude 和 Codex 走 nxbridge 协作(本页主要内容) (set -o pipefail; curl -fsSL https://raw.githubusercontent.com/MiCat-S/t3-prompt-patch/main/t3-prompt-patch.py | python3 - apply)
t3-idle-30min.py 空闲会话的保留时间从 2 分钟改回 30 分钟,见下文“空闲会话改回 30 分钟” (set -o pipefail; curl -fsSL https://raw.githubusercontent.com/MiCat-S/t3-prompt-patch/main/t3-idle-30min.py | python3 - apply)
t3-telemetry-off.py 关闭 T3 Code 使用统计,见下文“关闭使用统计” (set -o pipefail; curl -fsSL https://raw.githubusercontent.com/MiCat-S/t3-prompt-patch/main/t3-telemetry-off.py | python3 - apply)

三个脚本用法相同:`status` 查看状态,`apply` 备份原包并打补丁(可重复运行),`restore` 恢复原包,`--asar <路径>` 只改指定副本。`apply` 或 `restore` 之后要完全退出 T3 Code 再打开才生效。T3 更新会换掉整个包,补丁随之失效,更新后要重新运行 `apply` 并重启 T3。

三个脚本共用同一份原包备份(`~/.t3-prompt-patch/backup/<版本>/`),由先打补丁的那个脚本保存。任何一个脚本的 `restore` 都会恢复原包,所有脚本的改动一起撤销;之后想保留哪些,就重新运行对应脚本的 `apply`。

和 nxbridge 一起用

T3 里的 Claude 和 Codex 线程用的也是你的 `~/.claude`、`~/.codex` 配置,装好 nxbridge 后,这些线程也会加载它。但 T3 自带的提示词会让模型把给另一家的活交给 T3 自己的 `delegate_task`,这个补丁把它改成走 nxbridge。

  1. 照 nxbridge 的[安装说明](https://github.com/nxbridge/nxbridge#%E5%AE%89%E8%A3%85)装好它。

  2. 在系统终端里运行一次:

    nxbridge config set hosts.claude.sdk_user_prompt true

    T3 通过 Claude SDK 把你的输入交给 Claude,nxbridge 默认不把这种输入当成你本人发的。这样一来,在 T3 里中断正在跑的一轮之后(比如 Claude 干活时你又发了新消息),nxbridge 会一直扣着搭档的回信。打开这一项后,你在 T3 里发的消息算你本人的输入,中断后照常收信。代价是脚本通过 SDK 运行的 Claude(比如 `claude -p`)发的输入也会算成你本人的。这是 nxbridge 的敏感设置,要在系统终端里运行,在 Claude 里运行会被拒绝。

  3. 运行 `python3 t3-prompt-patch.py apply`,然后完全退出 T3 Code 再打开(见下文“使用”)。

  4. 在 T3 里新开一个 Claude 线程,直接说“让 Codex ……”就行,不用提 nxbridge。

没装 nxbrid