.loopback.yml
Everything in .loopback.yml is optional: defaults are detected from the repository and the workspace settings. The onboarding pull request writes the file with the choices you made in the setup, and again whenever you change them in the settings. A change pushed to the file on the default branch applies when it restricts the workspace (share: references-only, a lower autonomy, release.merge: off, release.changelog: false) or sets the repository’s release.tag, release.prefix or release.packages; a wider setting is changed in the settings. With your own runner, the tag prefix, the monorepo packages and the strategies that create no tag (your own tags, or no version tags) stay in the settings and are not written into the file, so runners of earlier versions keep reading it; in Managed the file holds them too.
Reference
Generated from the schema the API and the runner validate the file with.
| Key | Values | Default | Description |
|---|---|---|---|
agent.mode | managed | runner | mcp | runner | Where the analysis runs. |
agent.name | claude-code | codex | opencode | builtin | cursor | windsurf | zed | kiro | antigravity | continue | cline | copilot | other | builtinOther in MCP mode | The agent that works the jobs. |
agent.auth | api-key | chatgpt | bedrock | vertex | subscription | api-key | How the agent authenticates with its model provider. |
agent.model | Any text | The provider’s default | Model of the agent, when you want a specific one. |
autonomy | copilot | approve | autopilot | approve | What happens without a click: Copilot, Approve or Autopilot. |
test | Any text | auto | The test command; auto detects it from the package manager and the manifest. |
install | Any text | auto | The dependency install before the tests, in place of the detected one; auto detects it, none installs nothing. A command, a script of several lines or a list of commands, at most 500 characters, which stops at the first command that fails; the repository’s setting comes first. |
setup | Any text | auto | A command after the install and before every test run, such as pnpm build or prisma generate. A command, a script of several lines or a list of commands, at most 500 characters, which stops at the first command that fails; auto or none runs no setup command; the repository’s setting comes first. |
suites | Any text | auto | The tests of the other languages a fix touches, when test does not run them (a Rust crate next to a Node workspace), by language: rust, go, python and the others. Detected by default; for a language, test sets the command that runs them at the repository root, none says that test already runs them, and install and setup replace that language’s own. A cargo command builds outside the checkout and without debug information, unless it sets CARGO_TARGET_DIR or the profile itself. |
before_install | Any text | auto | What the fix job runs before a language’s dependencies are installed, by language: rust, node, python and the others, each a command, a script or a list. By default the job runs the steps the repository’s GitHub Actions run before that language’s tools (a script that fetches vendored sources), leaving out actions, system packages, services and anything that uses a value only the CI has; none runs nothing, and default: none turns the CI off for the languages not named. The CI’s steps run without the registry credentials; configured ones run like setup. A configured install turns the CI off for that language. A pushed key is copied into the repository’s setting (Settings → Repositories, Before the install), which comes first; auto clears it. When neither that setting, these keys nor the CI say how to prepare a language and an install misses a path the repository ignores, the agent looks for the step in the repository’s own files (the README, CONTRIBUTING, the docs on building, other CIs, Makefile recipes, package.json scripts, the devcontainer). The job runs only a command those files write, as written, without registry credentials, and the fix’s evidence stays at E2 until the step is set in that setting or here. search: off turns that search off; like the other keys, a pushed search is copied into that setting, where the switch “Let the agent look for the step in the repository’s files” shows it. |
release.tag | semver | calver | manual | external | on_merge | semver | How a release gets its version: semver (a patch, or minor or major at approval), calver or manual, tagged on the merge commit; external, your own first version tag that contains the merge commit; on_merge, no version tag. |
release.merge | squash | merge | rebase | off | squash | Merge method after the approval; off waits for a person to merge the approved commit, then releases. |
release.changelog | true | false | true | Write the changelog in the GitHub Release. |
release.prefix | Any text | None | The tag prefix of this repository, for monorepos: web@ gives web@1.2.3. Only tags with the prefix are its versions; empty removes it. |
release.packages | A list; each entry has path, prefix | None | Monorepo packages with their own version lines: each entry names the package directory (path, such as packages/web) and its tag prefix (prefix). A fix whose files all sit in one package is released on that package’s line; any other fix on the repository’s line. |
share | snippets | references-only | snippets | references-only keeps code snippets out of diagnoses. |
Example
# .loopback.yml — everything is optional, defaults are auto-detectedagent: mode: runner name: claude-code auth: api-keyautonomy: approvetest: npm testrelease: tag: semver merge: squash changelog: trueshare: snippetsSeveral repositories
A workspace is one product, with one or more repositories. Plans include 1, 5 or unlimited repositories per workspace (pricing). You connect the others in Settings → Repositories, where each one gets its own onboarding pull request. With your runner on GitHub Actions and an API key, each repository also needs its own agent key, the LOOPBACK_AGENT_KEY secret, stored from its card: its jobs cannot run until then.
- Primary repository. The first repository you connect. A ticket works on it unless its channel or its GitHub issue points to another one; you can make another repository primary at any time.
- Channels and widget. Each channel and the widget can send their requests to a repository of their own. By default they use the primary one.
- The agent follows the cause. When the diagnosis finds the cause in another repository of the workspace, the ticket moves there and a new diagnosis runs on it. A ticket moves this way once per customer message: after that, the diagnosis names the repository and the team decides. A GitHub issue or pull request stays in its own repository.
- The team can move a ticket. On the ticket, choose another repository and the diagnosis runs again there. Not while a fix is under way, waiting for approval or waiting for its release, and not on a closed ticket. A GitHub issue or pull request stays in its own repository.
- Settings per repository. Test command, release strategy, tag prefix and component name belong to each repository. When a workspace releases more than one, the changelog and the status pages name the component next to each version.
- Monorepo packages.
release.packagesgives each package of one repository its own tag prefix and version line. A fix whose files all sit in one package is released on that package’s line; any other fix on the repository’s line. With your own runner, the setup pull request leaves the packages out of the file: set them in Settings → Repositories. A runner of an earlier release stops its jobs at keys it does not know, so writerelease.packagesinto the file yourself only when your runner is on the current release.
# .loopback.yml — everything is optional, defaults are auto-detectedagent: mode: managed name: builtin auth: api-keyautonomy: approvetest: pnpm testrelease: tag: semver packages: - path: packages/web prefix: web@ - path: packages/api prefix: api@ merge: squash changelog: trueshare: snippetsValidation
- Unknown keys are errors, also inside sections: a typo such as
nmaefails instead of being ignored. - Forbidden combinations are refused with the reason, for example a Claude subscription with
mode: runner. - With
share: references-only, diagnoses carry file and line references but no code snippets.
The workflow file
The same pull request adds the workflow that runs jobs in your GitHub Actions. It is described in GitHub Action.
# .github/workflows/loopback.ymlname: Loopbackrun-name: Loopback ${{ github.event.client_payload.job_id }}on: repository_dispatch: types: [loopback-job]permissions: contents: write pull-requests: write id-token: write # OIDC sign-in to Loopbackconcurrency: group: loopback-${{ github.event.client_payload.job_id }}jobs: run: runs-on: ubuntu-latest timeout-minutes: 75 steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: fetch-depth: 0 persist-credentials: false - uses: actions/cache/restore@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 if: ${{ github.event.repository.private }} with: path: .vexp key: loopback-index-${{ github.run_id }}-${{ github.run_attempt }} restore-keys: loopback-index- - name: Install bubblewrap run: sudo apt-get update -q && sudo apt-get install -y bubblewrap - uses: Loopback-so/action@v1 with: agent-key: ${{ secrets.LOOPBACK_AGENT_KEY }} - uses: actions/cache/save@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0 if: ${{ !cancelled() && github.event.repository.private }} with: path: .vexp key: loopback-index-${{ github.run_id }}-${{ github.run_attempt }}