Skip to main content

Tasks

Nightshift includes 20+ built-in tasks organized by category.

Browse Tasks

# List all tasks
nightshift task list

# Filter by category
nightshift task list --category pr
nightshift task list --category analysis

# Filter by cost tier
nightshift task list --cost low
nightshift task list --cost medium

# Show task details
nightshift task show lint-fix
nightshift task show lint-fix --prompt-only

Categories

CategoryDescription
prCreates PRs with code changes
analysisProduces analysis reports without code changes
optionsSuggests improvements for human review
safeLow-risk automated fixes
mapCodebase mapping and documentation
emergencyCritical issues (security vulnerabilities)

Cost Tiers

TierToken UsageExamples
lowMinimallint-fix, dead-imports
mediumModeratedocs-backfill, dead-code
highSignificantbug-finder, security-audit
veryhighLargefull-refactor, test-generation

Run a Single Task

# Dry run first
nightshift task run lint-fix --provider claude --dry-run

# Execute
nightshift task run lint-fix --provider claude

Custom Tasks

Define custom tasks in your config:

tasks:
custom:
- name: check-migrations
category: analysis
cost: low
prompt: "Review all database migrations for potential issues..."
interval: "168h"

Task Cooldowns

Each task has a default cooldown per project. After running lint-fix on ~/code/sidecar, it won't run again on that project for 24 hours. Override with tasks.intervals in config.