Configuration
Forge uses YAML configuration files at two levels:
- Project:
.crucible/forge.config.yaml(in your repo) - Global:
~/.crucible/forge.config.yaml(user-wide defaults)
Project config overrides global config.
Minimal config
Section titled “Minimal config”version: '1'
assistants: - id: claude-code enabled: true - id: cursor enabled: true
sources: - name: team-skills type: git url: git@github.com:myorg/ai-skills.gitExample configuration
Section titled “Example configuration”version: '1'
project: name: my-project description: Shared resources for my project
# Coding harnesses to sync toassistants: - id: claude-code enabled: true - id: cursor enabled: true - id: windsurf enabled: false - id: copilot enabled: false - id: cline enabled: false
# Sources to fetch fromsources: - name: team-skills type: git url: git@github.com:myorg/ai-skills.git branch: main # default: main path: shared # optional subdirectory within the repository layout: auto # auto | canonical | pre-structured include: # glob patterns to include - 'skills/**' - 'rules/**' exclude: # glob patterns to exclude - '**/*.test.md' map: '' # virtual directory prefix
- name: local-rules type: local path: ~/my-rules
# Sync behavior and optional schedulersync: source_conflict_strategy: last-wins # last-wins | first-wins | error local_conflict_strategy: remote-wins # remote-wins | local-wins | error backup: true # create .bak when overwriting local changes keep_local: true # keep files removed from source schedule: '*/30 * * * *' # optional cron expression
# Telemetrytelemetry: enabled: false # opt-in anonymous usage trackingSource options
Section titled “Source options”Git source
Section titled “Git source”| Field | Required | Default | Description |
|---|---|---|---|
name |
yes | — | Identifier for this source |
type |
yes | — | Must be git |
url |
yes | — | SSH or HTTPS git URL |
branch |
no | main |
Branch to fetch |
path |
no | — | Subdirectory within the repository |
layout |
no | auto |
Layout detection mode |
include |
no | — | Glob patterns to include |
exclude |
no | — | Glob patterns to exclude |
map |
no | — | Virtual directory prefix |
Local source
Section titled “Local source”| Field | Required | Default | Description |
|---|---|---|---|
name |
yes | — | Identifier for this source |
type |
yes | — | Must be local |
path |
yes | — | Path on disk (supports ~) |
layout |
no | auto |
Layout detection mode |
include |
no | — | Glob patterns to include |
exclude |
no | — | Glob patterns to exclude |
map |
no | — | Virtual directory prefix |
Conflict resolution
Section titled “Conflict resolution”Source conflicts
Section titled “Source conflicts”When multiple sources produce the same target path:
| Strategy | Behavior |
|---|---|
last-wins |
Last source in the list wins (default) |
first-wins |
First source in the list wins |
error |
Fail the sync with an error |
Local conflicts
Section titled “Local conflicts”When a locally modified file also changed remotely:
| Strategy | Behavior |
|---|---|
remote-wins |
Overwrite local with remote (default), creates .bak if backup is on |
local-wins |
Keep local changes, skip remote update |
error |
Fail the sync with an error |