Skip to content

Inside The project s config

Ilia edited this page Nov 9, 2026 · 1 revision

What it knows about a particular project lives in that project. The regression's parts and the commands behind them, the manuals' paths, the production host, the migrations directory and how they are promoted — all of it used to be written into the library, so the promise above was not true: a second repository would have needed the orchestrator edited rather than a file of its own.

It is now .sclaude/config.json in whichever repository sclaude is run from, and sclaude new offers to write one. Most of the answers are already in the repository — package.json's scripts, the directory layout, whatever the project keeps about its environments — so the wizard proposes and the human corrects, in prose rather than as JSON: what is being agreed to is "these commands will run against production one day", and a wall of braces is not a thing anybody reads before saying yes.

Every feature reads the main checkout's copy, key by key (project_config, project_get), not the one its worktree's branch carries: a key set by hand in the main checkout — merge: auto, committed or not — reaches each feature at once. A worktree's copy answers only a key the main checkout has none of, a feature adding it; the readers that take a whole section (the feature's database, the board) take it from there too when the main checkout has none of it (project_config_with). A regression stage's list is main's, with each part the worktree's list adds to it run too, in its place there, and named above the list when a whole stage starts (project_regression_parts, project_regression_added): a branch that added a check otherwise went through its own regression without it. A part the branch drops still runs until the merge. A command, or the local database's tool (database.local.cli), that the branch itself changed is the worktree's (project_tree_first): its code depends on it, and main's made the branch's session redo by hand what sclaude had started; one the branch left alone stays main's. One key is always the other way round: commands["e2e:server"], how the local e2e serves the run's build, comes from the worktree's copy alone (regression_serve_command), because whether a build can stand in for the dev server depends on the branch's code. A change to that file left uncommitted in the main tree stops production (prod_main_unready) until it is what origin's main holds: the settings production goes out with are the ones everybody has. The stop lists the keys where the two copies differ (config_diff.py); the person commits and pushes the edit, or takes origin's copy.

Every section is optional and nothing is defaulted. A repository with no config still gets the cycle — seven steps, a worktree, an issue, a pull request — and loses only what the config would have described: there is no regression to gate on, no manuals in front of step 1, no production to ship to, and each of those says so where it would have acted. A default would be one product's answer applied silently to another's repository, which is the failure this removes rather than a convenience it gives up. sclaude/config.example.json is the shape, with every key explained.

That includes the team's GitHub board: which column a started feature moves to, which one means ready for QA and which one QA ends in, the date fields the Gantt chart reads, the label and type of a new issue. They were one team's names written into the library; now they are board in .sclaude/config.json, the wizard reads them off the repository's project board and shows them for confirmation, and a column that is not named is a move that is not made.

The script itself holds the environment and main's dispatch; the body — the commands included — is spread across sclaude/lib/<folder>/*.sh and pulled in with source. That is not only about readability: the friction review session edits bin/sclaude while it is executing, and bash reads a script lazily, by offset — an edit in place shifts everything the process has not read yet. A module pulled in with source is read whole at that moment, and editing it is no longer dangerous to a running process.


Generated from docs/sclaude.md; edit it there, then rebuild with wiki/build.py.

Clone this wiki locally