Skip to main content

Configuration

Loom is configured via loom.yaml in your project directory.

Configuration File

Run loom config init to create a default configuration:
# Beads integration
beads:
  path: bd
  timeout: 30s

# Scoring weights
scoring:
  blocking_multiplier: 3
  priority_boost: 2
  staleness_days: 3
  staleness_bonus: 1
  failure_penalty: 1

# Hook configuration
hooks:
  enabled: true
  pre_prompt:
    - name: inject-context
      builtin: context-injector
  pre_tool_call:
    - name: safety-check
      builtin: safety-guard
  post_tool_call:
    - name: truncate-output
      builtin: output-truncator
  post_response:
    - name: create-followups
      builtin: followup-creator
  on_error:
    - name: log-failure
      builtin: error-logger

# Safety configuration
safety:
  block_destructive: true
  require_confirmation:
    - git push
    - npm publish
    - docker push
  allowed_without_confirmation:
    - git status
    - git diff
    - cat
    - ls

# Memory management
memory:
  compact_threshold: 0.70
  retention:
    high_dependency: 90
    failed_tasks: 80
    retrospectives: 100

# Coordination
coordination:
  enabled: true
  lock_timeout: 1h
  conflict_detection: true

# Learning
learning:
  enabled: true
  retro_count: 3
  patterns_file: ~/.beads-global/patterns.json

Configuration Sections

Beads

Configure the Beads CLI integration:
OptionTypeDefaultDescription
pathstringbdPath to the Beads CLI executable
timeoutduration30sCommand timeout duration

Scoring

Configure task prioritization weights:
OptionTypeDefaultDescription
blocking_multiplierint3Multiplier for each blocked task
priority_boostint2Bonus for P0/P1 tasks
staleness_daysint3Days before staleness bonus applies
staleness_bonusint1Bonus for stale tasks
failure_penaltyint1Penalty for previously failed tasks

Hooks

Configure lifecycle hooks:
OptionTypeDefaultDescription
enabledbooltrueEnable/disable hook execution
pre_prompt[]HookDef-Hooks before prompt processing
pre_tool_call[]HookDef-Hooks before tool execution
post_tool_call[]HookDef-Hooks after tool execution
post_response[]HookDef-Hooks after agent response
on_error[]HookDef-Hooks on task failure
on_claim[]HookDef-Hooks on task claim
pre_close[]HookDef-Hooks before task close
on_block[]HookDef-Hooks when task becomes blocked

Safety

Configure safety guards:
OptionTypeDefaultDescription
block_destructivebooltrueBlock destructive commands
require_confirmation[]string-Commands requiring confirmation
allowed_without_confirmation[]string-Commands always allowed

Memory

Configure memory management:
OptionTypeDefaultDescription
compact_thresholdfloat0.70Context usage threshold for compaction
retention.high_dependencyint90Retain % of high-dependency task details
retention.failed_tasksint80Retain % of failed task details
retention.retrospectivesint100Retain % of retrospective details

Coordination

Configure multi-agent coordination:
OptionTypeDefaultDescription
enabledbooltrueEnable coordination features
lock_timeoutduration1hFile lock expiration time
conflict_detectionbooltrueEnable conflict detection

Learning

Configure the learning system:
OptionTypeDefaultDescription
enabledbooltrueEnable learning features
retro_countint3Number of retrospectives to keep
patterns_filestring~/.beads-global/patterns.jsonPath to patterns file

View Current Configuration

loom config show

Next Steps

Hooks Guide

Learn about lifecycle hooks

CLI Reference

Explore all commands