feat(autoresearch): 注册 autoresearch v0.1.0 自主实验循环插件 - #1
luochang212 wants to merge 9 commits into
Conversation
- plugins/autoresearch/: 完整插件(MCP server + hooks + skills + commands,Node 标准库零依赖) - marketplace.json: 注册条目(category developer-tools,author luochang212) - assets/autoresearch/icon.png + icon-sources.json: 原创图标(源 SVG 见贡献者仓库 assets/icon.svg)
- 全部 .mjs → .ts:MCP server、lib(含新增 types.ts 领域类型)、hooks、测试 - 运行时零依赖不变:Node 原生剥离类型,无构建步骤 - README 同步更新(Node ≥24、目录结构、测试命令)
|
写给 zcode 的 autoresearch 插件 调研了市面上比较流行的 autoresearch 插件(主要是 pi、codex、claude code),分析它们的原理和生效机制,并让 AI(主要是 glm-5.3 和 deepseek-v4-flash)通过 spec-driven 的方式,开发新功能。为了保证开发出的能力适配 zcode,在开发之前还对 zcode 提供的能力做了调研,并实际调用 zcode 进行验证。目前 zcode-autoresearch 的版本是 v0.1.0。对于这一版,我用多个 AI 验核,确认已经实现主流 autoresearch 提供的功能。后续版本会根据在真实的环境中使用获得的反馈,持续提升 autoresearch 的效率和稳定性。 开源方式:MIT GitHub: https://github.com/luochang212/zcode-autoresearch |
…shboard 打磨(网格刻度/滚动保持)、docs 更新
…、MCP 报错与钩子提示去破折号,句式重写)
|
❌ Internal validation failed: Please fix it and push again; the check re-runs automatically. 🤖 Copy this prompt into Claude Code / Codex to fix it |
d8fc9db 的去 AI 味文案同步修改了 plugin.json 的 description 与 description_i18n,但遗漏了 marketplace.json 中的 autoresearch 条目。 内部校验(scripts/validate.py)要求两者 description_i18n 完全相等, 故校验失败。本提交将 marketplace 条目的 description 与 description_i18n 一并同步为 plugin.json 当前文案。 不涉及插件包内文件,版本保持 0.1.0。
|
✅ Internal validation passed. A ZCode maintainer will review the change next; once merged it is published to the marketplace and this PR is closed automatically. |
与上游 luochang212/zcode-autoresearch main 同步(96/96 测试绿): - log_experiment 新增 revisit_nudge 与 asi.revisits_run 透传, dashboard 行渲染 ↻ Revisiting #N(有依据的重访可辨识) - confidence 单源快照入账本 run 行(记录时刻可回溯) - 记忆注入新增「弃用方向与理由」聚合行(旧 discard 的假设可复核) - 无人值守有界续跑:unattended 规程、Stop hook 提示句、 off/clear/finalize 清理步骤、README 边界改双层描述 (无限 auto-resume 仍平台不可行;需用户明确授权) - 测试 96/96;本地已跑 scripts/validate.py 通过(17 plugins)
|
已同步实现更新(1 commit,18 files):
版本号保持 0.1.0(首次上架,无已发布的旧版本需要区分)。 |
|
✅ Internal validation passed. A ZCode maintainer will review the change next; once merged it is published to the marketplace and this PR is closed automatically. |
|
✅ Internal validation passed. A ZCode maintainer will review the change next; once merged it is published to the marketplace and this PR is closed automatically. |
注册 autoresearch v0.1.0 — ZCode 自主实验循环插件
解决的用户问题
ZCode 缺少「自主实验循环」能力:让 coding agent 在固定机械度量上自主迭代优化(改代码 → 跑基准 → keep / discard → 循环),并内置防作弊护栏。本插件基于 karpathy/autoresearch 与 pi-autoresearch 的调研(见插件 README 与研究记录)做了 ZCode 原生实现。
用户可见行为与测试方式
init_experiment/run_experiment/log_experiment/export_dashboard/clear_experiments)、5 个命令、5 个 hooks 与autoresearchskillnode --test单测(60 个用例全过);本仓库 CI 的validate.py+build_dist.py+ unittest 套件均已通过版本与市场注册
autoresearchv0.1.0,.zcode-plugin/plugin.json与根marketplace.json条目(name / version / description)一致developer-tools;author:luochang212依赖、网络、权限与副作用
.auto/measure.sh)与正确性门禁(.auto/checks.sh);自动 git 操作(keep 提交、非 keep 回滚,.auto/豁免);安装 5 个 ZCode hooks(Stop 续跑、PreToolUse 写保护、PermissionRequest 门禁、UserPromptSubmit/SessionStart 记忆注入);export_dashboard起本地 127.0.0.1 HTTP 服务;写入项目目录下的.auto/会话状态第三方来源与许可证
assets/icon.svg),已登记于assets/icon-sources.json(附 sha256)