Skip to content

Configuration

LumenFlow is configured via .lumenflow.config.yaml in your project root.

version: '1.0'
lanes:
- name: Core
paths: ['src/**']
gates:
format: true
lint: true
typecheck: true
test: true
version: '1.0'
# Optional: Project name
project: my-project
# Lane definitions
lanes:
- name: Core
wip_limit: 1
paths:
- src/core/**
- src/domain/**
- name: UI
wip_limit: 2
paths:
- src/components/**
- src/pages/**
- name: Infrastructure
wip_limit: 1
paths:
- infra/**
- .github/**
# Gate configuration
gates:
format: true
lint: true
typecheck: true
test: true
# Or with custom commands:
# gates:
# format:
# command: pnpm prettier --check .
# lint:
# command: pnpm eslint src/
# typecheck:
# command: pnpm tsc --noEmit
# test:
# command: pnpm vitest run
# Directory locations
directories:
wu_specs: docs/tasks/wu
backlog: docs/tasks/backlog.md
stamps: .beacon/stamps
# Git settings
git:
main_branch: main
branch_pattern: 'lane/{lane}/{wu_id}'
# Worktree settings
worktree_pattern: 'worktrees/{lane}-{wu_id}'
# Memory layer settings
memory:
checkpoint_interval: 30 # minutes
max_checkpoints: 10
auto_checkpoint: true

Required. Config schema version.

version: '1.0'

Optional. Project name for display.

project: my-awesome-app

Required. Lane definitions.

lanes:
- name: Core # Lane name
wip_limit: 1 # Max WUs in progress (default: 1)
paths: # File paths for auto-detection
- src/core/**
FieldTypeDefaultDescription
namestringrequiredLane identifier
wip_limitnumber1Max concurrent WUs
pathsstring[][]Glob patterns for lane detection

Required. Quality gate configuration.

gates:
format: true
lint: true
typecheck: true
test: true
gates:
format:
command: pnpm prettier --check .
required: true
lint:
command: pnpm eslint src/
required: true
typecheck:
command: pnpm tsc --noEmit
required: true
test:
command: pnpm vitest run
required: true
gates:
format: true
lint: true
typecheck: true
test: true
security:
command: pnpm audit --audit-level=high
required: false # Warning only
e2e:
command: pnpm playwright test
required: true

Optional. Override default directories.

directories:
wu_specs: docs/tasks/wu # Where WU YAMLs live
backlog: docs/tasks/backlog.md # Backlog file
stamps: .beacon/stamps # Completion stamps
FieldDefaultDescription
wu_specsdocs/tasks/wuWU YAML directory
backlogdocs/tasks/backlog.mdBacklog file path
stamps.beacon/stampsStamp directory

Optional. Git configuration.

git:
main_branch: main
branch_pattern: 'lane/{lane}/{wu_id}'
FieldDefaultDescription
main_branchmainPrimary branch name
branch_patternlane/{lane}/{wu_id}Branch naming pattern

Optional. Worktree directory pattern.

worktree_pattern: 'worktrees/{lane}-{wu_id}'

Available variables:

  • {lane} – Lane name (lowercase)
  • {wu_id} – WU identifier (lowercase)

Optional. Memory layer configuration.

memory:
checkpoint_interval: 30 # Auto-checkpoint interval (minutes)
max_checkpoints: 10 # Max checkpoints per WU
auto_checkpoint: true # Enable auto-checkpointing

Config values can be overridden via environment variables:

Terminal window
LUMENFLOW_MAIN_BRANCH=develop pnpm wu:done --id WU-001
VariableOverrides
LUMENFLOW_CONFIGConfig file path
LUMENFLOW_MAIN_BRANCHgit.main_branch
LUMENFLOW_WU_SPECSdirectories.wu_specs

Validate your config:

Terminal window
pnpm exec lumenflow validate

Checks:

  • YAML syntax
  • Required fields present
  • Lane names unique
  • Paths are valid globs