Watchfire
Commands

watchfire init

Initialize a new Watchfire project in the current directory.

watchfire init

Initialize a new Watchfire project in the current directory.

Usage

watchfire init

Description

watchfire init sets up a new Watchfire project by creating the necessary configuration files and directory structure. It must be run from within a git repository (or it will initialize one for you).

What It Does

  1. Checks for an existing git repository — initializes one if missing
  2. Creates the .watchfire/ directory structure (including tasks/)
  3. Generates an initial project.yaml with a UUID and project name (derived from the folder name)
  4. Appends .watchfire/ to .gitignore (creates the file if missing)
  5. Commits the .gitignore change
  6. Prompts for an optional project definition
  7. Prompts for project settings

Interactive Prompts

During initialization, you'll be asked to configure:

SettingDescriptionDefault
Project definitionA description of your project for the AI agentEmpty
Auto-mergeAutomatically merge completed task branchestrue
Auto-delete branchesDelete worktree branches after mergetrue
Auto-start tasksStart an agent when a task is set to readytrue
Default branchThe branch to merge completed work intomain

Example

cd my-project
watchfire init

After running, your project directory will contain:

my-project/
├── .watchfire/
│   ├── project.yaml
│   └── tasks/
├── .gitignore          # Updated with .watchfire/
└── ...your files

On this page