mirror of
https://github.com/val1813/kwcode.git
synced 2026-09-03 06:34:30 +08:00
新增ReAct循环(kaiwu/agent/react_loop.py): - 工具集: read_file/write_file/run_test/grep/list_dir/submit - 门控: retry_count≥1时触发,小模型5步/中8步/大10步 - 上下文管理: 保留system+初始user+最近6轮,早期压缩 - 安全: 写入前Python语法检查,禁写测试文件,失败恢复 Eval结果 (qwen2.5-coder:32b-instruct-q4_K_M, 50题): - 总通过率: 26/50 (53%), 对比v2.0.0的8/36(22%)提升141% - Go题: 6/9 PASS (t42/t43/t44/t46/t56/t57) - 多文件API: 3/3 全过 (t51/t52/t53) - 综合题: t10_comprehensive PASS (425s, 之前timeout) Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>