Skip to content

mold init

Add AI config to an existing project.

Usage

mold init [flags]

Description

Adds kit files (CLAUDE.md, settings.json, etc.) to the current working directory. Unlike mold new, this command does not create a new directory, initialize git, or create an initial commit.

Flags

Flag Default Description
--beads false Use the Beads kit
--kit <name> config default Kit to use: original, beads, forge, or a custom kit name
--no-beads false Disable beads issue tracking (forge kit)
--stack <name> bare Tech stack template (go, rust, next, bare)
--tools <list> claude Comma-separated AI tools, or all
--force false Overwrite existing config files
--dry-run false Preview without writing files

Examples

Add Original kit to current directory:

mold init

Add Beads kit with extra AI tool files:

mold init --beads --tools copilot,gemini

Add Forge kit for product lifecycle:

mold init --kit forge

Overwrite existing config files:

mold init --force

Preview changes:

mold init --dry-run

Behavior

  1. Scans the current directory for conflicting files
  2. If conflicts exist and --force is not set, lists them and exits
  3. Renders kit, stack, and tool template files into the current directory
  4. Does not run git init or create commits

See also

  • mold new -- create a brand new project