Skip to content

CLI Commands

Every subcommand exposed by np-tools.cjs, mirrored from bin/np-tools/_commands.cjs (the canonical registry). Categories match the workflow grouping.

Two dispatch layers exist:

  • init <workflow> — orchestrator workflows. Either calls a registered handler in bin/np-tools/<name>.cjs (plan-phase, discuss-phase, execute-phase, new-project, …) or composes a default phase payload via composeInit().
  • Top-level commands — utility/leaf commands (commit-task, checkpoint, metrics, doctor, dispatch, …).

Output is JSON; payloads above 16 KB are spilled to .nubos-pilot/.tmp/init-<workflow>-<pid>-<rand>.json and the path emitted as @file:<path>.

Utility

CommandDescription
nextPrint the next actionable step
progressReport % complete across phases and plans
statePrint the current project state snapshot
helpList available commands
initDispatcher init payload for workflows
resolve-modelResolve agent/tier to model alias or id
metricsRecord JSONL metrics entry (record / now / start-timestamp / end-timestamp)
askuserCapability-layer prompt wrapper
commitAtomic git commit wrapper with gitignore-guard (D-21)
config-getRead value from .nubos-pilot/config.json by dotted key path
generate-slugSlugify text via lib/phase.cjs.phaseSlug
phasePhase utilities (next-decimal <base>)
statsAggregated project stats (roadmap + STATE + git + metrics JSON shape)
threadCross-session thread CRUD under .nubos-pilot/threads/
session-reportGenerate session report from metrics since .last-session pointer
cleanupArchive completed milestones + collapse ROADMAP <details> block

Planning

CommandDescription
discuss-phaseAdaptive phase-context interview (writes CONTEXT.md)
discuss-phase-powerBulk gray-area question file-UI (power mode)
research-phaseOptional phase-level research (WebFetch + MCP; offline fallback)
plan-phaseCreates PLAN.md with plan-checker verification loop
new-projectGreenfield project init (PROJECT + REQUIREMENTS + roadmap)
new-milestoneAppend milestone + first phase to an existing project
plan-milestone-gapsCreate corrective phases from audit gaps
agent-skillsPrint agent_skills config for a given subagent
plan-diffRender two-part PLAN.md diff (semantic + git)
ai-integration-phaseAI-SPEC generator with framework-selector + eval-planner
ui-phaseUI-SPEC generator with researcher + checker revision loop

Execution

CommandDescription
execute-phaseWave-based phase execution; emits per-task executor-spawn payloads
execute-planSingle-plan execution (sub-case of execute-phase)
commit-taskAtomic per-task git commit via lib/git.cjs (D-03/D-25 enforced)
checkpointPer-task checkpoint CRUD (start / transition / touch / show)
autonomousIn-session gate snapshot for auto-advance loop (ADR-0001)
verify-workTwo-pass goal-backward verification (D-21/D-22 VERIFICATION.md render/record)
add-testsPersist VERIFICATION Pass-cases as node:test UAT (Sentinel-preserving)
pause-workStamp STATE.session.stopped_at + resume_file for explicit handoff
resume-workClassify session state (resume | orphan | clean)
undoRevert all task commits of a phase or plan via git revert
undo-taskRevert a single task commit and reset task status to pending
reset-sliceRestore working-tree files of the in-flight task; clear current_task
skipMark task status skipped
parkMark task status parked
unparkReturn a parked task to pending

Review

CommandDescription
code-reviewSource-file review via np-code-reviewer — writes REVIEW.md sidecar
code-review-fixAuto-fix REVIEW.md findings via np-code-fixer (atomic commit per finding)
reviewCross-AI peer review via 7-CLI fan-out
secure-phaseThreat-mitigation audit via np-security-auditor
validate-phaseNyquist validation gap-fill via np-nyquist-auditor
ui-review6-pillar retroactive UI audit
eval-reviewRetroactive eval-coverage audit

Capture

CommandDescription
add-todoCapture pending todo to .nubos-pilot/todos/pending/ + bump STATE count
noteCapture free-form note (--global writes to ~/.nubos-pilot/notes/)
add-backlogAppend backlog item 999.x to ROADMAP.md + scaffold phase dir

Install

CommandDescription
doctor5-check install-integrity scan (--fix for auto-safe fixes)
dispatchState-router: compute next action and delegate via Skill()
queueUnified queue across todos / backlog / UAT / unplanned phases
triageInteractive per-item triage loop (promote / keep / drop)