engineError()
Create a typed engine error result with pino logging and correct exit code.
View in API reference
engineSuccess()
Create an engine success result.
View in API reference
taskShow()
Get a single task by ID.
View in API reference
taskList()
List tasks with optional filters.
View in API reference
taskFind()
Fuzzy search tasks by title/description/ID.
View in API reference
taskExists()
Check if a task exists.
View in API reference
taskCreate()
Create a new task.
View in API reference
taskUpdate()
Update a task’s fields.
View in API reference
taskComplete()
Complete a task (set status to done).
View in API reference
taskDelete()
Delete a task.
View in API reference
taskArchive()
Archive completed tasks. Moves done/cancelled tasks from active task data to archive.
View in API reference
taskNext()
Suggest next task to work on based on priority, phase alignment, age, and dependency readiness.
View in API reference
taskBlockers()
Show blocked tasks and analyze blocking chains.
View in API reference
taskTree()
Build hierarchy tree.
View in API reference
taskDeps()
Show dependencies for a task - both what it depends on and what depends on it.
View in API reference
taskRelates()
Show task relations (existing relates entries).
View in API reference
taskRelatesAdd()
Add a relation between two tasks.
View in API reference
taskAnalyze()
Analyze a task for description quality, missing fields, and dependency health.
View in API reference
taskImpact()
Predict downstream impact of a free-text change description. Delegates to predictImpact from the intelligence module. Uses keyword matching against task titles/descriptions, then traces the reverse dependency graph for transitive effects.
View in API reference
taskRestore()
Restore a cancelled task back to pending.
View in API reference
taskUnarchive()
Move an archived task back to active task data with status ‘done’ (or specified status).
View in API reference
taskReorder()
Change task position within its sibling group.
View in API reference
taskReparent()
Move task under a different parent.
View in API reference
taskPromote()
Promote a subtask to task or task to root (remove parent).
View in API reference
taskReopen()
Reopen a completed task (set status back to pending).
View in API reference
taskCancel()
Cancel a task (soft terminal state — reversible via restore).
View in API reference
taskComplexityEstimate()
Deterministic complexity scoring from task metadata.
View in API reference
sessionStatus()
Get current session status.
View in API reference
sessionList()
List sessions with budget enforcement. When a limit is applied (explicit or default), the response includes _meta.truncated and _meta.total so agents know the result set was capped.
View in API reference
sessionFind()
Lightweight session discovery — returns minimal session records.
View in API reference
sessionShow()
Show a specific session by ID.
View in API reference
compose()
Composes an array of Middleware functions into a single Middleware function. Execution flows through the array from first to last, and returns bubble back up from last to first.
View in API reference
mapCodebase()
Analyze a codebase and return structured mapping. When storeToBrain is true, findings are persisted to brain.db.
View in API reference
systemDash()
Project dashboard: task counts by status, active session info, current focus, recent completions.
View in API reference
parseIssueTemplates()
Parse all templates from the repo’s .github/ISSUE_TEMPLATE/ directory.
View in API reference
getTemplateForSubcommand()
Get template config for a specific subcommand (bug/feature/help).
View in API reference
generateTemplateConfig()
Generate and cache the config as .cleo/issue-templates.json.
View in API reference
validateLabels()
Validate that labels exist on a GitHub repo.
View in API reference
createRateLimiter()
Creates a rate limiting middleware for the dispatch pipeline.
View in API reference
createSanitizer()
Creates a middleware that sanitizes incoming request parameters. Uses the canonical sanitization logic from security.ts to handle Task IDs, paths, string lengths, and enum validation.
View in API reference
registerBackfillCommand()
Register the cleo backfill CLI command.
View in API reference
registerBrainCommand()
Register the cleo brain command group. Registers a brain parent command and a maintenance subcommand that combines temporal decay, memory consolidation, and embedding backfill into one idempotent pass.
View in API reference
registerExistsCommand()
Register the exists command.
View in API reference
registerReasonCommand()
Register the cleo reason command group and its subcommands.
View in API reference