# Project config

`.lumpcode/project.json` is committed. It names the project, sets the primary branch, and holds team defaults every lump inherits.

`lumpcode project-setup` writes this file next to `.git`. Commit it.

```json .lumpcode/project.json
{
  "$schema": "https://lumpcode.com/schemas/projectConfig.schema.json",
  "projectName": "my-monorepo",
  "primaryBranch": "dev",
  "command": "cursor",
  "maximumNumberOfConcurrentBranches": 2
}
```

## Fields

| Field | Required | Notes |
| --- | --- | --- |
| `projectName` | yes | Letters, digits, `_`, `-` only. Daemon filenames under `~/.lumpcode/daemons/`. |
| `primaryBranch` or `primaryBranches` | yes after merge with local | Integration line. Either this file or `local.json` may supply it; local wins. Deprecated alias: `projectBaseBranch`. |
| `command` | no | Lump default. Tag only, not a `.ts` path. |
| `maximumNumberOfConcurrentBranches` | no | Lump default. |
| `keepHistory` | no | Lump default. |
| `writeTranscripts` | no | Lump default. Omit means on. |
| `refreshCommand` | no | Dedicated worker only. Shell to run after fetch on each scan branch before lumps load (submodules, codegen). Local wins. Ignored by `run` and by shared mode. |

Unknown keys fail. Do not put `mode`, `workspaceStrategy`, `disabled`, `maxParallelRun`, or `verbose` here. Those are [local](https://www.lumpcode.com/docs/config/local.md).

`project-setup` infers `projectName` from `git remote get-url origin` or the directory basename if you omit `--projectName`. `--primaryBranch` defaults to `main`.

## Merge

Shared keys present on both project and local: **local wins**. After merge, a primary source is required.

Lump defaults (`command`, `maximumNumberOfConcurrentBranches`, `keepHistory`, `writeTranscripts`): **lump > local > project**, only when the lump leaves the field undefined.

A worker process reads this merge **once** at `start`. Restart the worker after you change either file.

## What to commit

A project root is a directory that contains both `.git/` and `.lumpcode/`. Commit `project.json`, `.lumpcode/.gitignore`, and lump folders with the product code. Gitignore `local.json`.

`.lumpcode/.gitignore` ignores `local.json`, `.cache/`, `worktrees/`, `contextStatusRecord.json`, `history/`, and `transcripts/` under `.lumpcode/`. `setup` and `project-setup` write that file once.

An existing project adds the file itself. `run` and `start` do not.
