thaning0/dsh-llm-codex-auth-native-compact-image ↗★ 1
dsh-llm-codex-auth-native-compact-image
Codex OAuth provider with native compaction and image input support for DeepSeek Harness. 适合用ChatGPT订阅并需长会话压缩的用户,需登录账号并选对应预设
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add github:thaning0/dsh-llm-codex-auth-native-compact-imageドキュメント
README 全文を読む ↗· 临时使用:把下面命令里的 dsh 换成 npx @deepseek-ai/dsh
使用
- 重启 dsh 后打开设置页,侧栏选择「Codex 订阅 (ChatGPT)」。
- 点击「登录 ChatGPT 账号」,按提示打开验证网址、输入设备码并登录;登录后该区块会显示 5 小时和 7 天窗口的剩余百分比,每分钟自动更新,也可点「刷新用量」。
- 新建会话时选择
Codex Nativeagent preset(本机配置可把它设为默认),并在 Models 设置页选择codex-oauth下的模型;已经用standard创建的旧会话不会热切换 compaction provider。 - agent 空闲且至少有两条可压缩 surface 消息时可输入
/compact;opaque checkpoint 本身约有千 token 级固定成本,短会话可能因“checkpoint 不比历史更小”而安全拒绝且不替换。正常对话达到模型 context window 的 80% 时会在 step 前自动 native compact,provider 报 context overflow 时也会尝试一次 native compact 后重试。 - 展开 GUI 的压缩条目,应看到
Provider-native Codex compaction checkpoint;折叠态“已压缩 N 条历史记录”是所有 backend 共用文案,不能单独证明 native。 /codex-usage可在对话中强制刷新并查看剩余百分比;登出可回设置页点「登出」或输入/codex-logout,/codex-status可随时查看登录状态。