ExecutionMode enum

Defines how tasks should be executed in Spectra.

This allows users to use Spectra purely for planning and task management, without requiring AI-generated code implementation.

Inheritance
Available extensions

Values

automatic → const ExecutionMode

Tasks are automatically implemented by AI.

When this mode is active:

  • spectra execute generates code using LLM
  • spectra start spawns workers that generate code
  • Files are automatically written
  • Git commits are automatic

Best for:

  • Rapid prototyping
  • Greenfield projects
  • Autonomous development
manual → const ExecutionMode

Tasks are planned by AI but implemented manually by the user.

When this mode is active:

  • spectra plan generates task breakdown (AI)
  • spectra execute shows tasks but doesn't generate code
  • User implements tasks manually
  • User commits when ready

Best for:

  • Developers who want AI planning but manual control
  • Code review before implementation
  • Learning from AI suggestions
  • Complex tasks requiring human judgment
interactive → const ExecutionMode

Interactive mode: AI generates code, user reviews before applying.

When this mode is active:

  • AI generates code suggestions
  • User reviews each file before writing
  • User can edit suggestions
  • User approves commits

Best for:

  • Production code
  • Critical systems
  • Learning from AI
  • Hybrid workflow

Properties

automationLevel String
Returns the level of AI automation in this mode.
no setter
description String
Returns a human-readable description of this execution mode.
no setter
generatesCode bool
Whether this mode generates code automatically.
no setter
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
name String

Available on Enum, provided by the EnumName extension

The name of the enum value.
no setter
requiresApproval bool
Whether this mode requires user approval.
no setter
runtimeType Type
A representation of the runtime type of the object.
no setterinherited
useCases List<String>
Returns examples of when to use this mode.
no setter

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
inherited

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<ExecutionMode>
A constant List of the values in this enum, in order of their declaration.