Skip to main content

What you can set up

The project bot (the optional cl-orchestration plugin, which runs in Orca) does only what cedarloom.json allows. The file sits at the root of your repository, and the bot reads it from the default branch, so a change reaches the bot only when you merge it. This page gives three combinations of settings and then what the bot can run on its own. Every setting, both modes and every automation: Settings reference.

Without the file the bot starts nothing, and without merge.allowed it merges nothing.

Three combinations​

Each combination is a set of cedarloom.json settings. Every one starts with $schema, which lets your editor check the file, and schemaVersion. The settings every combination leaves to you are startLabel, merge.requiredChecks, closeIssue, deleteMergedBranch and trustedAuthors.

CarefulBalancedHands-off
The bot landsnothingroutine changesroutine and elevated changes
You landevery pull requestelevated and critical changes, owner-only files, releasescritical changes, owner-only files, releases
How workers runsupervisedsupervisedautomatic
Needs review.reviewernoyesyes

No setting lets the bot land a critical change, touch an owner-only file, release, tag or change repository settings, except that merging a pull request releases where a workflow of your repository publishes or tags on every push to the default branch (Releases). Hands-off is the ceiling: everything the policy allows, with workers in automatic mode.

Three things sit outside the file in every combination:

  • Releases are yours. There is no setting for them. See Releases. The exception is a workflow of your repository that publishes or tags on a push to the default branch (a release tool other than release-please, or a deploy kept as part of a normal merge): there merging an ordinary pull request releases, so setup names each such workflow and recommends Careful.
  • Worker limits live in host.json, a file of the computer that you write yourself, not in cedarloom.json: host.json. A repository cannot know which computer runs it.
  • Model choices go in your user file, ~/.config/cedarloom/cedarloom.json, by default. Setup asks whether to change the model roles, recommending the defaults, and gives you the models block to write there. The file holds $schema and models only and applies to every project on that computer. A models block in the repository's file binds every contributor's runs and wins over the user file, except that it cannot lower a risk row below the defaults and the user file, so setup adds one only when you ask.

There is no setting for notifications. A question for you reaches you as an issue labeled cl:needs-human, or in a local list when the repository has issues turned off.

/cl-repo:setup asks which combination to write, or Custom, recommending Careful. Balanced and Hands-off need review.reviewer and a required check: setup asks for both, and until you name them it writes Careful. To move an existing cedarloom.json to a combination, run it again: setup asks whether to move the file, recommending to keep it, and opens a pull request from the chore/agent-policy branch with the change, and you merge it, since the file is owner-only. A run that finds that pull request already open proposes nothing.

Careful: nothing lands automatically​

The bot plans, builds, reviews and fixes. Each pull request waits for you to merge it.

{
"$schema": "https://cedarloom.github.io/cedarloom/schema/cedarloom.json",
"schemaVersion": 3,
"startLabel": "cl:ready-for-agent",
"review": {
"sensitiveDepth": "xhigh"
}
}
  • No merge.allowed: the bot never merges. It marks a pull request ready when its review is clean and its checks are green. A review login is not needed.
  • No mode: workers run supervised, the default. Each worker runs in auto mode, and any question it has is yours.
  • review.sensitiveDepth xhigh: a sensitive change gets the deepest review level.

Careful also keeps the computer to one worker per project. That setting is the machine's, so it goes in the host.json you write (projects.<project>.maxWorkers), not in cedarloom.json:

{
"projects": {
"<project>": { "maxWorkers": 1 }
}
}

Balanced: routine changes land, you keep the rest​

A reviewed pull request of routine risk lands once its required checks are green. An elevated or critical change, a pull request that touches an owner-only file and every release pull request stay open for you (Releases names the one case where a merge releases).

{
"$schema": "https://cedarloom.github.io/cedarloom/schema/cedarloom.json",
"schemaVersion": 3,
"minPlugin": "0.5.0",
"startLabel": "cl:ready-for-agent",
"review": {
"reviewer": "<GitHub login the project bot runs under>"
},
"merge": {
"allowed": true,
"requiredChecks": ["<a check that runs on pull requests>"],
"autoMergeMax": "routine"
}
}
  • merge.allowed true with merge.autoMergeMax routine lets the bot merge routine changes only.
  • merge.requiredChecks: the checks that must be green, named as GitHub shows them. List only checks that run on pull requests.
  • review.reviewer: the GitHub login the project bot runs under. The bot posts its approval of a reviewed commit from it and merges only a commit this login approved, so without it nothing merges. Leave GitHub's required approving reviews off on the default branch: GitHub lets no author approve their own pull request. Lifecycle shows where the review sits.
  • minPlugin: setup writes 0.5.0 where the file sets mode, riskyPaths, merge.autoMergeMax, review.reviewer or models, the first plugin version whose review.reviewer is the login the project bot approves its own pull requests under, and never lowers or removes it. An older plugin refuses the file.
  • Workers run supervised, as in Careful.

Hands-off: everything the policy allows, automatic mode​

Balanced with elevated changes landing too, and workers in automatic mode.

{
"$schema": "https://cedarloom.github.io/cedarloom/schema/cedarloom.json",
"schemaVersion": 3,
"minPlugin": "0.5.0",
"startLabel": "cl:ready-for-agent",
"mode": "automatic",
"review": {
"reviewer": "<GitHub login the project bot runs under>"
},
"merge": {
"allowed": true,
"requiredChecks": ["<a check that runs on pull requests>"],
"autoMergeMax": "elevated"
}
}
  • merge.autoMergeMax elevated: the bot also merges elevated changes. Critical ones stay yours.
  • mode automatic: each worker starts with a settings file that bounds it, and only owner-only questions reach you. Run it only in an isolated environment: Modes. Setup asks whether the bots run in one, and on no recommends Balanced.
  • The rest is as in Balanced.

Custom​

Custom starts from a combination (Careful is recommended) or, on an existing file, from that file. It asks every setting of the settings reference in five groups:

  • start: startLabel, trustedAuthors, mode.
  • review: every review.* setting and riskyPaths.
  • merge: every merge.* setting and deleteMergedBranch.
  • issues: every issues.* setting, issuesPerWorker and closeIssue.
  • others: every remaining setting. models is asked as one setting, and an existing models block stays unless you change it.

Each group first offers to keep its start values as they are. Otherwise each setting gets one short question: what it does, its default and what each allowed value means, with the start value recommended. $schema, schemaVersion, minPlugin and // comments are not asked and stay. Settings the schema marks as deprecated are removed.

Custom keeps the rules of the combinations:

  • A file that turns merging on needs review.reviewer, at least one merge.requiredChecks entry and merge.autoMergeMax. Until you name the login and a check, the proposed file leaves merge.allowed out.
  • A merge.ownerOnlyPaths entry is never removed. The merge group asks only for further files or folders to add, never patterns.
  • minPlugin is never lowered or removed.
  • Automatic mode is offered only after setup asks whether the bots run in an isolated environment; on no, it recommends supervised.

Before it writes anything, setup shows the resulting file and, on an existing file, its diff against the file on the default branch, with the line of what lands without you worked out from merge.allowed and merge.autoMergeMax. On an existing file the change goes into the chore/agent-policy pull request described above.

What stays yours​

Whatever you set, the bot leaves these to you:

  • Critical changes. A change that touches login, permissions, secrets, input checks, production data or deploy settings, or cannot be undone, is never merged by the bot. Its design also waits for your approval before work starts.
  • Releases, tags and repository settings. A guard refuses them in every session. See Releases.
  • Owner-only files. A pull request that touches one stays open. Built in: .github, CODEOWNERS, cedarloom.json, docs/agents, orca.yaml, and at any depth AGENTS.md, CLAUDE.md, .claude, .claude-plugin, .codex, .cursor, .vscode, .husky, .githooks, .pre-commit-config.yaml, .devcontainer, .devcontainer.json, .mcp.json and .cedarloom. merge.ownerOnlyPaths adds to the list and never shortens it.
  • Owner-only questions: spend, legal questions, anything public, hard-to-undo deletes, secrets and access, and accepting a security risk. The bot files each as an issue labeled cl:needs-human, or in a local list, and holds only that issue.

What it can set up for you​

Self-landing project bots​

One project bot per project (a project is one or more repositories). You label an issue; the bot plans it, builds it in a session of its own, has fresh sessions review the pull request and fixes what they find, then lands it through its own script where your settings allow. Lifecycle follows one issue from label to merge.

Weekly maintenance​

Once a week per repository, the bot runs a maintenance pass over the default branch: dead code, duplicates, unused options and dependencies, dependency updates with their changelogs, docs that no longer match the code, and the instruction files. It changes nothing on its own. Its findings reach you as one question. In a private repository each one you approve is filed as an issue without the start label: add the label to the ones the bot should build. Elsewhere the approved ones are listed for you. A finding that names a security weakness appears only in the run's report, not in the question, so follow it up yourself. You choose the weekday and time in setup. The same pass runs on request as /cl-repo:maintain.

Each week the bot also proposes a batch of open issues to close (duplicates, issues a newer decision overruled, work that is done but still open, follow-ups untouched for 4 weeks). It closes them, with a link, only after you answer.

Security alerts​

A new Dependabot alert on a private repository starts a check. When the alert has a patched version, the bot files a fix issue that it builds like any other; otherwise it reports the alert to you. It never dismisses an alert. A public repository gets a report instead of an issue, because an issue would show the weakness.

Releases​

Releases and tags are yours: no agent merges a release pull request, creates a tag or publishes. A release pull request, for example one from release-please, stays open for you. When you merge it, a workflow of your repository tags the commit, creates the GitHub Release and publishes from that release. The project bot only builds and lands ordinary pull requests. Keep the workflow files under .github, which is owner-only, so the bot cannot change how your releases run. A workflow that publishes or tags on every push to the default branch (a release tool other than release-please, or a deploy kept as part of a normal merge) releases at any merge, including one the bot lands. Setup names each such workflow and recommends Careful.

The other automations​

The bot also catches up on work an earlier event missed, reacts when the default branch fails (it tells you, starts a fix and holds every merge), compares its records with GitHub every day, and tidies finished workspaces and merged branches on the computer. Each one, when it runs and which settings it reads: Automations. /cl-orchestration:coordinate . shows where everything stands, and /cl-orchestration:digest sums up what the bot did and what waits for you. Each bot and its limits: Bots.