v3.0.2
v3.0.2 — Encoding fixes & faster language detection
Changes from v3.0.1
🔧 Encoding (Windows CP936 pipe fix)
- oracle no longer returns JSON via response body (which goes through shell pipe and corrupts non-ASCII text on Windows). Instead, oracle outputs JSON in its response → main agent uses
writetool to create the file, bypassing the CP936 encoding issue entirely. - This affects Task 1 (outline generation). Task 2/3/4 already used file-based I/O and were not affected.
⚡ Language detection speedup
- Replaced
detect_lang.py(213-line Python script) with LLM-based language detection. The main agent now determines the language directly from the topic text and writeslanguage.txtviawritetool. - Eliminates the 1-3 second
python3→pythonfallback delay on Windows. - Supports 19 languages with "en" default fallback.
📝 README improvements
- Non-OpenCode installation prompt updated: step 3 now adapts per-tool (Codex CLI → skill, Claude Code → Hook, Cursor → custom commands, others → auto-detect).
- Both Chinese and English READMEs updated.
Files changed
SKILL.md: Step 0 rewritten (LLM detection, removeddetect_lang.py); Task 1 flow fixed (oracle → response → main agent write); cross-platform encoding section updated.prompts/task1_oracle.md: Reverted to oracle outputting JSON in response body; added{LANG}variable.README.md/README_EN.md: Non-OpenCode install prompts adapted per tool.tools/detect_lang.py: Removed (replaced by LLM-based detection).VERSION: 3.0.0 → 3.0.2
v3.0.2 — 编码修复 & 语言检测提速
相对于 v3.0.1 的变更
🔧 编码修复(Windows CP936 pipe 问题)
- Task 1 oracle 不再在回答中用 JSON 代码块输出(回答通过 shell pipe 回传时,俄语/日语等非 ASCII 字符会被 Windows CP936 编码损坏)。改为 oracle 输出 JSON 到 response body → 主 agent 用
write工具写文件,完全绕过 pipe。 - Task 2/3/4 原本就走文件 I/O,无此问题。
⚡ 语言检测提速
- 删除
detect_lang.py(213 行 Python 脚本),改为主 agent 直接根据主题文本判定语言,用write工具写language.txt。 - 消除了 Windows 上
python3→python回退的 1-3 秒延迟。 - 支持 19 种语言,不确定时默认英文。
📝 README 改进
- 非 OpenCode 安装提示词按工具分路线(Codex CLI → skill、Claude Code → Hook、Cursor → 自定义指令)。
- 中英文版同步更新。
变更文件
SKILL.md:Step 0 重写(LLM 判定、删除 detect_lang.py);Task 1 流程修复(oracle → response → 主 agent write);跨平台编码章节更新。prompts/task1_oracle.md:恢复 oracle 输出 JSON 到回答 body;添加{LANG}变量。README.md/README_EN.md:非 OpenCode 安装提示词按工具分路线。tools/detect_lang.py:已删除(LLM 判定替代)。VERSION:3.0.0 → 3.0.2