noodle
Compare original and translation side by side
🇺🇸
Original
English🇨🇳
Translation
ChineseNoodle
Noodle
Skills that run themselves. Write skills with a field describing when they should run. Noodle's scheduler agent reads those descriptions, writes orders, and the loop spawns agents in isolated worktrees to do the work.
schedule:可自主运行的Skill。你可以为Skill编写字段来描述其运行条件。Noodle的调度Agent会读取这些描述,生成orders,并在循环中于隔离的worktree内启动Agent执行任务。
schedule:How the Loop Works
循环工作原理
- Brief — Noodle gathers project state into (backlog, active agents, history, capacity, registered skills)
.noodle/mise.json - Schedule — the scheduler agent reads mise, writes
.noodle/orders-next.json - Dispatch — Noodle promotes orders and spawns agent sessions
- Execute — each agent runs in its own worktree with the assigned skill
- Merge — completed work merges back to main
- 概要(Brief) — Noodle将项目状态汇总到中(包含待办队列、活跃Agent、历史记录、容量、已注册Skill)
.noodle/mise.json - 调度(Schedule) — 调度Agent读取mise信息,生成
.noodle/orders-next.json - 分发(Dispatch) — Noodle提升orders优先级并启动Agent会话
- 执行(Execute) — 每个Agent在分配给它的worktree中运行对应的Skill
- 合并(Merge) — 完成的工作会合并回主分支
Skills
Skill
A skill is a directory with a . The body is the agent's instructions. The frontmatter is metadata.
SKILL.mdGeneral skills (no ) are invoked directly by agents. Examples: , .
schedule:commitdebuggingScheduled skills (with ) run autonomously. The scheduler reads the value as prose and uses judgment to decide when conditions are met.
schedule:schedule:yaml
---
name: quality
description: Post-cook quality gate.
schedule: "Follow-up stage after execute. Cross-provider review preferred."
---Skills live in by default. Paths in are searched in order; first match wins.
.agents/skills/skills.pathsFor the full guide on writing skills, orders, and schedule fields, see references/skill-authoring.md.
一个Skill就是包含文件的目录。文件正文是Agent的执行指令,frontmatter是元数据。
SKILL.md通用Skill(无字段)由Agent直接调用。例如:、。
schedule:commitdebugging定时Skill(带有字段)可自主运行。调度器会将的值作为自然语言描述读取,并通过判断决定何时满足运行条件。
schedule:schedule:yaml
---
name: quality
description: Post-cook quality gate.
schedule: "Follow-up stage after execute. Cross-provider review preferred."
---Skill默认存放在目录下。系统会按顺序搜索中配置的路径,以第一个匹配结果为准。
.agents/skills/skills.paths关于编写Skill、orders和schedule字段的完整指南,请参阅references/skill-authoring.md。
Configuration
配置
Noodle reads at project root. Scaffolded on first . Most projects only need:
.noodle.tomlnoodle starttoml
mode = "supervised" # auto | supervised | manual
[routing.defaults]
provider = "claude"
model = "claude-opus-4-6"
[skills]
paths = [".agents/skills"]Full config reference: references/configuration.md
Noodle会读取项目根目录下的文件,该文件会在首次执行时自动生成。大多数项目只需要以下配置:
.noodle.tomlnoodle starttoml
mode = "supervised" # auto | supervised | manual
[routing.defaults]
provider = "claude"
model = "claude-opus-4-6"
[skills]
paths = [".agents/skills"]完整配置参考:references/configuration.md
CLI
CLI
All commands accept (default: current directory, env: ).
--project-dirNOODLE_PROJECT_DIR所有命令都支持参数(默认值:当前目录,环境变量:)。
--project-dirNOODLE_PROJECT_DIRCore
核心命令
| Command | Description |
|---|---|
| Start the noodle loop |
| Run one scheduling cycle and exit |
| Show runtime status (active agents, queue depth, loop state) |
| Clear all runtime state (refuses if loop is running) |
| Command | Description |
|---|---|
| 启动noodle循环 |
| 运行一次调度周期后退出 |
| 显示运行时状态(活跃Agent、队列深度、循环状态) |
| 清除所有运行时状态(循环运行时会拒绝执行) |
Skills & Schemas
Skill与Schema
| Command | Description |
|---|---|
| List resolved skills |
| List all resolved skills |
| Print schema docs for a target |
| List available schema targets ( |
| Command | Description |
|---|---|
| 列出已解析的Skill |
| 列出所有已解析的Skill |
| 打印指定目标的schema文档 |
| 列出可用的schema目标( |
Worktrees
Worktree
| Command | Description |
|---|---|
| Create a new linked worktree |
| Create from a specific branch or commit |
| Run a command inside a worktree (CWD-safe) |
| Merge a worktree branch into integration branch |
| Merge into a specific target branch |
| List all worktrees with merge status |
| Remove merged and patch-equivalent worktrees |
| Remove a worktree without merging |
| Remove even with unmerged commits |
| Run worktree session hook (used internally) |
| Command | Description |
|---|---|
| 创建一个新的关联worktree |
| 从指定分支或提交创建worktree |
| 在worktree内运行命令(CWD安全) |
| 将worktree分支合并到集成分支 |
| 合并到指定的目标分支 |
| 列出所有worktree及其合并状态 |
| 移除已合并和补丁等效的worktree |
| 移除worktree但不合并 |
| 强制移除,即使存在未合并的提交 |
| 运行worktree会话钩子(内部使用) |
Events
事件
| Command | Description |
|---|---|
| Emit an external event into the loop |
| Emit with a JSON payload |
| Emit to a specific session's event log |
Full CLI reference: https://poteto.github.io/noodle/reference/cli
| Command | Description |
|---|---|
| 向循环中发送外部事件 |
| 发送携带JSON payload的事件 |
| 发送到指定会话的事件日志中 |
Troubleshooting
故障排除
- "fatal config diagnostics prevent start" — Check against
.noodle.toml.noodle schema - Missing adapter scripts — Create scripts or update paths in config.
- Stale worktrees — , then
noodle worktree list.noodle worktree prune
- “fatal config diagnostics prevent start”(致命配置诊断错误导致无法启动) — 对照检查
noodle schema文件。.noodle.toml - 缺少adapter脚本 — 创建脚本或更新配置中的路径。
- Worktree过期 — 先运行,再执行
noodle worktree list。noodle worktree prune
References
参考资料
- references/skill-authoring.md — writing skills: pipeline, orders schema, schedule fields, stage composition, full examples
- references/configuration.md — full .noodle.toml config reference
- https://poteto.github.io/noodle/concepts/adapters — adapter setup, script contracts, provider examples
- https://poteto.github.io/noodle/concepts/scheduling — how the loop schedules and dispatches work
- https://poteto.github.io/noodle/concepts/skills — skill discovery, composition, scheduled vs general
- https://poteto.github.io/noodle/concepts/runtimes — process, sprites, and runtime routing
- references/skill-authoring.md — Skill编写:流水线、orders schema、schedule字段、阶段组合、完整示例
- references/configuration.md — 完整的.noodle.toml配置参考
- https://poteto.github.io/noodle/concepts/adapters — adapter配置、脚本约定、provider示例
- https://poteto.github.io/noodle/concepts/scheduling — 循环如何调度和分发任务
- https://poteto.github.io/noodle/concepts/skills — Skill发现、组合、定时Skill与通用Skill的区别
- https://poteto.github.io/noodle/concepts/runtimes — 进程、sprite与运行时路由