Skip to main content

Level 1: Ultra-Lightweight Workflows

Complexity: Low | Artifacts: None | State: Stateless | Iteration: Via AskUser

The simplest workflow for immediate simple tasks - minimal overhead, direct execution.

Overview

Level 1 workflows are designed for quick, straightforward tasks that don't require planning, documentation, or persistent state. They execute directly from input to completion.

Included Workflow: lite-lite-lite

Command

/workflow:lite-lite-lite
# Or CCW auto-selects for simple tasks

Flow Diagram

Characteristics

PropertyValue
ComplexityLow
ArtifactsNone (no intermediate files)
StateStateless
CLI SelectionAuto-analyze task type
IterationVia AskUser interaction

Process Phases

  1. Input Analysis

    • Parse user input for task intent
    • Detect complexity level
    • Identify required CLI tools
  2. Optional Clarification (if clarity_score < 2)

    • Goal: Create/Fix/Optimize/Analyze
    • Scope: Single file/Module/Cross-module
    • Constraints: Backward compat/Skip tests/Urgent hotfix
  3. CLI Auto-Selection

    • Task type -> CLI tool mapping
    • Parallel analysis across multiple tools
    • Aggregated result presentation
  4. Direct Execution

    • Execute changes immediately
    • No intermediate artifacts
    • Optional iteration via AskUser

CLI Selection Logic

function selectCLI(task) {
const patterns = {
'gemini': /analyze|review|understand|explore/,
'codex': /implement|generate|create|write code/,
'claude': /debug|fix|optimize|refactor/,
'qwen': /consult|discuss|compare/
};

for (const [cli, pattern] of Object.entries(patterns)) {
if (pattern.test(task)) return cli;
}
return 'gemini'; // Default
}

Use Cases

When to Use

  • Quick fixes (simple typos, minor adjustments)
  • Simple feature additions (single function, small utility)
  • Configuration adjustments (environment variables, config files)
  • Small-scope renaming (variable names, function names)
  • Documentation updates (readme, comments)

When NOT to Use

  • Multi-module changes (use Level 2+)
  • Need persistent records (use Level 3+)
  • Complex refactoring (use Level 3-4)
  • Test-driven development (use Level 3 TDD)
  • Architecture design (use Level 4-5)

Examples

Example 1: Quick Fix

/workflow:lite-lite-lite "Fix typo in function name: getUserData"

Flow:

  1. Detect: Simple typo fix
  2. Select: Codex for refactoring
  3. Execute: Direct rename across files
  4. Complete: No artifacts generated

Example 2: Simple Feature

/workflow:lite-lite-lite "Add logging to user login function"

Flow:

  1. Detect: Single-module feature
  2. Select: Claude for implementation
  3. Clarify: Log level? Output destination?
  4. Execute: Add log statements
  5. Complete: Working code

Example 3: Config Adjustment

/workflow:lite-lite-lite "Update API timeout to 30 seconds"

Flow:

  1. Detect: Config change
  2. Select: Gemini for analysis
  3. Analysis: Find all timeout configs
  4. Execute: Update values
  5. Complete: Configuration updated

Pros & Cons

Pros

BenefitDescription
SpeedFastest workflow, zero overhead
SimplicityNo planning or documentation
DirectInput -> Execute -> Complete
No ArtifactsClean workspace, no file clutter
Low Cognitive LoadSimple, straightforward execution

Cons

LimitationDescription
No TraceNo record of changes made
No PlanningCan't handle complex tasks
No ReviewNo built-in code review
Limited ScopeSingle-module only
No RollbackChanges are immediate

Comparison with Other Levels

AspectLevel 1Level 2Level 3
PlanningNoneIn-memoryPersistent
ArtifactsNoneMemory filesSession files
ComplexityLowLow-MediumMedium-High
TraceabilityNoPartialFull
ReviewNoOptionalBuilt-in

When to Graduate to Higher Levels

Signs you need Level 2+:

  • Task involves multiple modules
  • Need to track progress
  • Requirements need clarification
  • Want code review
  • Need test generation

Migration path: