AIterLab 是一个新的开源工具,专门用于 AI 迭代实验的实时展示、结果沉淀与 AI note 管理。
它面向的不是单次实验控制台,而是 AI 在反复尝试、修改参数、运行实验、观察结果、写下判断、继续下一轮时,需要的“实时实验工作台”。
AIterLab = AI + Iteration + Lab。
推荐包名和命令名:
- GitHub repo:
aiterlab - npm package scope:
@aiterlab/* - CLI command:
aiterlab - Product name:
AIterLab
- 实时显示 AI 实验迭代过程
- 管理每轮实验的计划、运行状态、结果与日志
- 记录 AI note:假设、观察、失败原因、下一步推理
- 让 AI 可以直接读写结构化实验数据和界面布局
- 让人类可以用图表、波形、历史记录快速理解实验进展
- 以文件夹为核心保存历史实验,便于开源协作、迁移和复现
- 用 AI 自动迭代算法、模型、设备实验的人
- 需要长期追踪实验结果与实验笔记的研究者
- 需要把 AI agent 实验过程可视化的开发者
- 希望将实验过程、结果、AI 思考记录开源化管理的团队
- AI plan:当前运行、已完成、未来计划、时间戳、运行时长
- AI note:每轮实验的假设、观察、结论、下一步
- 实时结果:日志流、指标流、曲线图、波形图
- 历史实验:按文件夹访问、索引、搜索、回放
- AI 可编辑 UI:组件添加、删除、位置、大小、数据源、布局版本
- 后台执行器:避免实验脚本弹出 Python 窗口并阻塞命令
项目已经有第一版零依赖本地 demo。它可以创建模拟 AI 迭代实验,实时推送事件,并写入 logs、metrics、AI note 和历史实验目录。
当前接口层包括:
- Core API:本地服务、Web/Desktop 和外部脚本使用。
- SSE:实时事件流与历史回放。
- CLI:终端、CI、多进程实验和外部 Python 使用。
- MCP Server:Codex、Claude Code、Claude Desktop、Cursor 等 Agent 原生调用。
- 只读 Web 看板:人类观察实验状态和 Agent 协作过程。
创建实验 -> 自动迭代 -> ABCD 评分 -> 达到 A -> 写入 AI note -> 保存历史结果
pnpm startThen open:
http://localhost:4317
Available endpoints:
GET /api/health
GET /api/experiments
POST /api/demo/start
POST /api/agent/sessions
POST /api/agent/events
GET /api/events/stream
The demo writes experiment history into:
data/experiments/
pnpm run verifyThe automated integration test starts AIterLab, runs the demo loop, and verifies that the ABCD evaluator reaches A.
pnpm cli demo auto --port 4317 --timeout 60000
pnpm cli agent demo --port 4317
pnpm mcpThe CLI prints JSON and is designed for Codex, Claude Code, CI, and other agents.
AIterLab includes a local stdio MCP server:
pnpm mcpIt exposes tools such as:
aiterlab.create_agent_session
aiterlab.emit_agent_event
aiterlab.get_experiment_summary
aiterlab.start_scan_dry_run
This lets Agent clients report their current phase, commands, file changes, blockers, metrics, and experiment results into the same realtime dashboard.
GPL-3.0-only. See LICENSE.