Skip to content

CLI Reference

All commands accept the global --project-dir flag. When omitted, Noodle uses the current directory (or the NOODLE_PROJECT_DIR environment variable).

Global flags

FlagTypeDefaultDescription
--project-dirstringcurrent directoryProject directory. Also settable via NOODLE_PROJECT_DIR

noodle start

Start the noodle loop. Spawns agent sessions and manages the full lifecycle.

Auto-starts a web server on port 3000 (configurable via [server]). Opens a browser unless NOODLE_NO_BROWSER=1 is set.

noodle start [flags]
FlagTypeDefaultDescription
--onceboolfalseRun one scheduling cycle and exit

noodle status

Show compact runtime status. Prints active agent count, orders queue depth, and noodle loop state (running, paused, draining, or idle).

noodle status

noodle skills

List resolved skills.

noodle skills

noodle skills list

List all resolved skills.

noodle skills list

noodle schema

Print generated schema docs for Noodle runtime contracts. Takes an optional target argument.

noodle schema [target]

noodle schema list

List available schema targets.

noodle schema list

noodle worktree

Manage linked git worktrees. Noodle uses worktrees to isolate concurrent agent sessions so they don't conflict on the working tree.

noodle worktree create

Create a new linked worktree.

noodle worktree create <name> [flags]
FlagTypeDefaultDescription
--fromstringHEADBranch or commit to base the new worktree on

noodle worktree exec

Run a command inside a worktree. Sets the working directory to the worktree path before executing.

noodle worktree exec <name> <command...>

noodle worktree merge

Merge a worktree branch into a target branch.

noodle worktree merge <name> [flags]
FlagTypeDefaultDescription
--intostringintegration branchTarget branch to merge into

noodle worktree cleanup

Remove a worktree without merging.

noodle worktree cleanup <name> [flags]
FlagTypeDefaultDescription
--forceboolfalseRemove even when unmerged commits exist

noodle worktree list

List all worktrees with merge status.

noodle worktree list

noodle worktree prune

Remove merged and patch-equivalent worktrees.

noodle worktree prune

noodle worktree hook

Run worktree session hook. Used internally by agent sessions.

noodle worktree hook

noodle event

Manage noodle loop events.

noodle event emit

Emit an external event into the noodle loop or a specific session.

noodle event emit <type> [flags]
FlagTypeDefaultDescription
--payloadstringEvent payload as JSON
--sessionstringSession ID. When set, writes to the session event log instead of the noodle loop event log

noodle reset

Clear all runtime state. Removes and recreates the runtime directory.

Refuses to run if Noodle is currently running (checks the lock file).

noodle reset