Repository navigation
feat(autoresearch): 注册 autoresearch v0.1.0 自主实验循环插件 - #1
luochang212 wants to merge 12 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. |
- 解决 assets/icon-sources.json 末尾追加冲突:上游新插件批次在前,autoresearch 条目收尾,合计 302 条(并集核对无丢失/重复) - 顺手修正 autoresearch 条目 sha256:d990bd2 换正式 logo 后未同步清单,按现役 assets/autoresearch/icon.png 重算(1375e751…)
|
❌ Internal validation failed: Please fix it and push again; the check re-runs automatically. 🤖 Copy this prompt into Claude Code / Codex to fix it |
- 遵循仓库目录约定:外部/社区新增插件放 external_plugins/<name>/(发布器据此生成 publisherType: community),存量插件才保留 plugins/ - marketplace.json source 同步改为 ./external_plugins/autoresearch - 本地验证:validate.py 通过(46 插件);autoresearch zip 打包正常;插件 node --test 96 用例全过;test_mimosa_plugin 8 例失败为 main 历史遗留(干净 HEAD 复现),与迁移无关
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
- marketplace.json:author.url(GitHub 主页)、examplePrompts / examplePrompts_i18n(对齐已合并外部插件 zcode-context 的展示字段模式) - external_plugins/autoresearch/LICENSE:MIT 许可证文件(README 已声明 MIT,与 zcode-context 同样在插件目录内附 LICENSE)
|
✅ Internal validation passed. A ZCode maintainer will review the change next; after acceptance, release checks run separately and this PR is closed automatically. |
Plugin type (required) / 插件类型(必填)
Affected plugin name(s) / 涉及的插件名称:
autoresearch说明:本插件无任何 MCP Apps 声明(无
ui.surfaces、无_meta.ui.resourceUri);dashboard 是由 MCP 工具启动、绑定127.0.0.1的本地 HTTP 页面,不属于 MCP Apps 交互页面。插件已按仓库目录约定放置于external_plugins/autoresearch/。What / 改动内容
新增 autoresearch v0.1.0:ZCode 的自主实验循环插件——设定目标与机械度量,让 coding agent 自主迭代「改代码 → 跑基准 → keep / discard → 循环」,并内置防作弊护栏。机制参考 karpathy/autoresearch 与 pi-autoresearch(README 已注明),为 ZCode 原生实现。
用户可见行为与测试方式
init_experiment/run_experiment/log_experiment/export_dashboard/clear_experimentsautoresearchskill(循环规程)node --test单测(96 用例全过);python3 scripts/validate.py通过(46 插件)版本与市场注册
.zcode-plugin/plugin.json与根marketplace.json一致:nameautoresearch、version0.1.0、description /description_i18n(en + zh-CN)source: ./external_plugins/autoresearch;categorydeveloper-tools;authorluochang212assets/icon-sources.json,sha256 与现役assets/autoresearch/icon.png一致依赖、网络、权限与副作用
.auto/measure.sh)与正确性门禁(.auto/checks.sh);自动 git 操作(keep 提交、非 keep 回滚,.auto/豁免);export_dashboard启动仅绑定本机回环的 HTTP 服务;写入项目目录下.auto/会话状态第三方来源与许可证
zcode-autoresearch的assets/icon.svg)Self-check / 自查清单
external_plugins/<name>/; existing fixes retain ownership / 插件名唯一且 kebab-case,外部新增插件位于external_plugins/<name>/,已有插件修复保留原归属categoryis set independently of publisher ownership / 用途分类category已填写,与维护归属分开versionbumped in BOTHplugin.jsonandmarketplace.json(artifacts are immutable) /plugin.json与marketplace.json两处版本号已同步升级(制品不可变)README.md(EN) andREADME_CN.md(中文) both updated and equivalent / 中英文 README 均已更新且语义一致description_i18nhas bothenandzh-CN/description_i18n包含en与zh-CNpython3 scripts/validate.pyandpython3 scripts/build_dist.pypass locally / 本地校验与构建均通过