Configuration
config.yaml reference
The file the Configurator writes, block by block, with the keys you are most likely to meet.
Lonca’s configuration is one YAML file, ~/.config/lonca/config.yaml. The Configurator writes it from your repositories, and Settings edits parts of it; you rarely need to open it. This page is a map of it, block by block, with the keys you are most likely to meet. Relative file paths resolve against the file’s own folder, and ~/ is your home folder.
How the file is read and saved
- No file yet: Lonca opens on the setup wizard, which writes one.
- A file that does not load (invalid YAML, or a field the schema refuses): Lonca opens on Lonca can’t read its configuration, which shows what is wrong, with Show in Finder, Open the file and Try again. The file is never changed for you. After an update whose config notes the file has not had yet, the Configurator comes first instead, whether the file loads or not.
- Every save goes through the loader. Settings and the Configurator save only a result that loads, and the previous file goes to
backups/beside it (the last 20). A Settings save writes only its own part, and keeps your comments and every block a form does not show. Anything that decides what runs or where secrets go (a new or changed command, an instructions file, the test policy, a sign-in address) is confirmed in a native dialog first. - Changes apply after a restart. Settings offers one.
- No secrets. Tokens, passwords and keys are never in this file. They are entered in Settings and kept encrypted (see Data, privacy and security).
The overall shape
issues: # one folder for everything Lonca writes about issues
workspaces: # required: groups of repositories, each with its Jira queries
agents: # the CLIs the stage agents and the leads run on
reply_language: # the language agents reply to you in
atlassian: # Jira and Confluence (optional)
ai: # Background AI: Lonca's own small jobs (optional)
orchestration: # required: how handed-off tasks are carried
setup: # files copied into a new worktree
archive: # what archiving a task deletes
trust: # reservedissues
One folder for everything Lonca writes about issues. Relative folders below it resolve under it. A new config always has it.
issues:
root: ~/.lonca/issues # absolute, or starting with ~/Jira context folders go under jira/ and each workspace’s local stories under local/. A config without issues: keeps its earlier layout; Settings → Workspaces then offers Use one issues folder, which adds it without moving a file. Changing the folder later, Save asks whether to move what is in it (Save and move, Save without moving, Cancel); a move happens at the next start.
workspaces and repos
A workspace is a named group of repositories with its own Jira queries. With two or more, a workspace menu heads the task list. See Workspaces and issues.
workspaces:
- id: sales # [a-z][a-z0-9-]*; tasks remember their workspace by it
label: Sales # its name in the workspace menu
jira_queries:
- label: My open issues # only the label reaches the UI
jql: project = SALES AND assignee = currentUser() AND statusCategory != Done
local_tasks: # Lonca's own stories, with or without Jira
prefix: SL # default: the id in capitals, hyphens dropped
root: sales # → <issues.root>/local/sales
sign_ins: # optional: sign-ins its repositories share, by name
catalog-dev:
file: prompts/sign-in/catalog-dev.mjs
secrets: [client_id, client_secret] # entered in Settings, never here
url: https://idp.dev.example.com
service: https://catalog.dev.example.com
orchestration: # optional: this workspace's own Jira targets and PR checks
jira:
on_start: In Development # unset = the global one; null = not moved here
on_pause: Blocked
non_blocking_checks:
- sonar / SonarQube Scan
repos:
- path: ~/Projects/sales-web
base: origin/main # default
branch_pattern: feature/{{issueKey}}-{{slug}} # default
run: pnpm dev # what Run App starts
run_ports:
PORT: 3000-3004 # the only place Lonca takes ports from
# env_files: [apps/web/.env, apps/web/.env.local] # its own dotenv files, when not at the root
# review_skills: [.claude/skills/code-review/SKILL.md] # its own review skills, for the reviewerWorkspace keys
id- Required and unique. Renaming it leaves its tasks without a workspace until you assign them again; a banner above the list offers this.
label- Required. The name in the workspace menu.
jira_queries- The saved queries offered in the issue picker, each a label and a JQL of at most 2000 characters.
local_tasks- Where local stories live, and their key prefix (capitals and digits, at most 20). The prefix must not be a Jira project named in the workspace’s queries, or the config does not load.
sign_ins- Optional, at most 20: sign-ins by name, each entered once for every repository that names it. See Named sign-ins. A flat
repos:list keeps them at the top level. orchestration- Optional, per workspace: the Jira status names to move to (
on_start,on_pr,on_merge,on_pause), each taken from the globalorchestration.jirawhen left out and turned off here bynull; andnon_blocking_checks, PR checks that never send the work back. Before 12.0.0 it wasorchestrator, which still loads until 13.0.
Repository keys
| Key | Default | What it does |
|---|---|---|
path | required | The repository folder. Write a folder the same way everywhere it appears. |
id | the folder name | A name within the workspace; needed when two folders share a name. |
base | origin/main | The branch a new worktree starts from. Lonca keeps the local copy of it current, by fast-forward only, and works from it. |
branch_pattern | feature/{{issueKey}}-{{slug}} | The new branch’s name. The slug is the title, lowercase, at most 48 characters. |
run | none | The command Run App starts in the worktree. A line with several processes and a cleanup trap resets its traps first (see Running the app). |
run_ports | none | A pool of ports per environment variable; each worktree takes a slot. Lonca never takes a port from a .env file. |
env_files | the root’s .env files | The repository’s own dotenv files, weakest first, for a monorepo whose app keeps them below the root. Lonca shows only their names, reads a value only into a file you export, and copies them into each worktree. |
review_skills | none | The repository’s own review skills: 1 to 4 Markdown paths below it, such as .claude/skills/code-review/SKILL.md or .claude/commands/review.md. The reviewer also reviews against their rules (see Review skills). |
sign_in | none | How Lonca signs in to the app: a block of its own, or the name of one of the workspace’s sign_ins; see below. |
services | none | The dependencies its app and scenarios reach with a sign-in of their own (at most 8); see below. |
e2e | none | Gives the repository’s tasks their E2E stage, and how Lonca’s runner starts the app; see below. |
figma | false | true for a repository with a browser UI: tasks with Figma links get a UI step. |
tests | none | What a stage agent may run as a test, and what it must never run. |
gate | none | The pre-PR gate: commands Lonca runs once before the pull request. |
jobs | none | Long commands a stage agent hands to Lonca to run. |
The same repository may sit in several workspaces, but its settings must then be the same everywhere, since they are looked up by path. Only the id may differ. A sign_in or services name is compared by name: the same name in two workspaces is two sign-ins, and a task takes its own workspace's. Variables are not in this file: see Variables and secrets. More on tests, gate and jobs: Tests, the gate and jobs.
sign_in, services and e2e
repos:
- path: ~/Projects/sales-web
sign_in:
file: prompts/sign-in/sales-web.mjs # the script, beside the config
secrets: [username, password] # the names it reads; values are entered in Settings
services:
- sign_in: catalog-dev # one of the workspace's sign_ins
direct: true # scenarios may call its service with its headers
e2e:
ready_timeout_seconds: 120
health_path: /
- path: ~/Projects/booking
sign_in: catalog-dev # signs in as the workspace's named sign-insign_innames a sign-in script underprompts/sign-in/and the 1 to 8 secret names it reads, or names one of the workspace'ssign_ins. The values are entered under Settings → Workspaces, never here. The script, its optionalurland everysign_in: <name>are confirmed when the file is saved.serviceslists the services the repository's app and scenarios reach with a named sign-in of their own, and how its token goes:direct,app_headersorapp_env. Each new or changed entry is confirmed when the file is saved. Not for an Electron app.e2egives the repository's tasks their E2E stage, run by Lonca's own runner; it ise2e: {}when every key keeps its default. Without it the E2E steps are skipped and new criteria get no E2E Check box. Before a run, Lonca starts the app and polls its port andhealth_pathuntil it answers with a status below 500, for up toready_timeout_seconds(default 120); one scenario may run forscenario_timeout_seconds(default 180).fixed_portis for an app that hard-codes its port, never besiderun_ports, andelectron:for an Electron app Lonca launches itself. Itslabel,promptandprompt_file(the E2E routine and its button) are no longer read since 11.0.0.
atlassian, jira and confluence
Optional. Without it, Jira and Confluence are off and tasks start from local stories.
atlassian:
url: https://example.atlassian.net # https only
email: you@example.com
jira:
ticket_root: jira # → <issues.root>/jira
confluence:
base_path: /wiki
max_pages: 5 # pages linked from an issue that are read, 1–50
max_page_bytes: 500000 # a longer page is cut and marked as cutThe API token is entered under Settings → Jira connection and kept encrypted. Confluence pages are read only from your own Atlassian host. Without jira:, Jira is off; without confluence:, Jira runs on its own.
reply_language
reply_language: TurkishThe language the leads and the Configurator write to you in, as a plain name; without it, your system’s language. It covers everything agents write for you: the questions put to you, the leads' replies, the reasons in the decision log and on the Acceptance tab, and the short summaries of the PR comment judge and of a reassessment after an issue or brief change. Agents write to each other in English, and so does what goes into a pull request; a reply to a PR comment is in the comment's language, English when that is unclear. Lonca's own interface texts are in English. Code, comments and commits keep the repository’s conventions.
agents and their placeholders
Each agent is a command definition that the stage agents and the leads name by id. A terminal stage agent's command runs in a tmux session in the task’s worktree. Lonca adds no flag that is not written here, except those that keep a stage agent apart from your own setup.
agents:
- id: claude-stage # the terminal stage agents
label: Claude Code (stage agent)
kind: claude
status: hook # read the state from Lonca's hooks
command: claude --permission-mode auto {{model}} {{hooks}} {{systemPrompt}} {{readDirs}}
- id: codex-stage # Codex as a terminal stage agent
label: Codex (stage agent)
kind: codex
status: hook
command: codex --sandbox danger-full-access --ask-for-approval never {{hooks}} {{model}} {{readDirs}}
- id: claude-lead # the task leads and the Workspace Leads
label: Claude Code (leads)
kind: claude
command: claude
- id: codex-lead # the leads on Codex instead
label: Codex (leads)
kind: codex
command: codex| Placeholder | Becomes |
|---|---|
{{issueKey}} | The task’s issue key, or the worktree folder’s name |
{{hooks}} | Lonca’s hook settings, for status: hook |
{{systemPrompt}} | Nothing since 11.0.0; still accepted, so an older command loads (Claude Code only). Lonca gives each stage agent its role’s system prompt itself |
{{conversation}} | Nothing since 11.0.0; still accepted, so an older command loads (Claude Code only) |
{{model}} | The model a stage agent runs on |
{{readDirs}} | The folders a stage agent reads outside its worktree: the task’s context, the parent story, pasted images |
- A placeholder left out of a command adds nothing: which command runs stays in the config.
- The agent of a terminal stage agent needs
{{model}}and{{readDirs}}(a Codex one also{{hooks}}wherever a repository hastests:), and it never resumes an earlier conversation: the config does not load with--continueor--resumethere. - The leads' agent runs
claudeorcodexand nothing else: Lonca writes every argument of their turns, and refuses any other word in its command. Before 12.0.0 it was calledclaude-advisor; the Configurator may rename it after the update. - An entry that no stage agent or lead names is run by nothing. A config from before 11.0.0 may still have one that was the task's own agent session, or a
system_prompt_fileline, which is no longer read; the Configurator tidies them after the update. kind(claude,codex) is read from the command’s program; write it for a wrapper script.- A Codex terminal stage agent needs
--sandbox danger-full-access --ask-for-approval never: Lonca cannot answer Codex’s questions, and Codex’s own sandbox cannot commit in a worktree. Trust each repository once in Codex (cd <repo> && codex, Trust and continue); its worktrees inherit it.
Usually you pick these in Settings → Agents and Settings → Orchestration rather than by hand. See Stage agents.
ai: Background AI
ai:
command: claude
args: ["-p", "{{model}}", "{{readDirs}}", "{{tools}}", "--output-format", "stream-json", "--verbose"]
timeout_ms: 120000The CLI Lonca runs for its own small jobs (extracting and checking acceptance criteria, drafting local stories) and for the headless stage agents that name no agent. It runs with an argument list, never a shell, and gets the prompt on standard input. For Codex the command is codex with exec --json, and Lonca runs it read-only. Without ai: those jobs are off, and every headless stage agent must name an agent:. It is Background AI in Settings → Agents.
orchestration
Required since 11.0.0: orchestration is always on. The Configurator writes the block from your repositories; a config from before 11.0.0 without it does not load until the agent has written it after the update. Before 12.0.0 the block was orchestrator:; that name still loads until 13.0, and a block that has both names does not load.
orchestration:
concurrency: 2 # tasks running a stage agent at once, 1–8
gate_concurrency: 1 # pre-PR gates at once, across all tasks, 1–4
block_on: minor # minor: every review finding goes back; blocking: only blocking ones
max_rounds: 3 # trips around one loop before Lonca looks
workspace_lead: # the Workspace Leads, and the task leads
agent: claude-lead
model: opus
effort: medium
task_lead: # optional: what the task leads take instead
model: sonnet
stage_agents:
planner: { model: opus } # headless
implementer: { agent: claude-stage, model: sonnet } # its own terminal
test_scenario: { model: opus }
test_runner: { agent: claude-stage, model: sonnet }
final_check: { model: opus }
reviewer: { model: opus }
jira: # Jira status names; unset = not moved
on_start: In Progress
on_pr: In Review
on_merge: Done
on_pause: On Hold # optional: offered on Pause, moved only when you tick itconcurrency- Left out: 2, or 5 with load control on. With load control on, a value written here is a ceiling.
workspace_lead- The leads: every workspace's lead, and the task leads. They run on Claude Code or Codex. Without this block, every question the rules cannot settle comes to you.
task_leadgives the task leads another model, effort or instructions. Before 12.0.0 the key wasadvisor, andmax_lead_actions_per_stagewasmax_advisor_actions_per_stage; both old names load until 13.0. stage_agents- The six stage agents, plus an optional
ui_implementerfor the Figma step. A headless one runs onai:unless it names anagent:; a terminal one names its agent.modelis that CLI’s own name;effortis optional. See Stage agents. jira- The Jira status names an issue moves to when a hand-off starts, when its PR opens and when the PR is merged.
on_pauseis only offered: Pause has a box to move the issue there and Resume one to move it back, both unticked. A workspace may override each. stage_timeout_minutes- Each stage’s ceiling. Time Lonca was off does not count, and under consultant or autopilot a stage agent still working, and not looping, gets more time.
max_runs_per_task- Stage agent runs per task, retries included (default 40); each round added buys five more.
test_concurrency- Tests at once across tasks, under load control (default 4).
How much the leads decide (assistant, consultant, autopilot) is not in this file: it is a setting in Settings → Orchestration. Nor is there a key for Jira comments: Pause and Resume ask you each time. See Handing a task off.
figma
repos:
- path: ~/Projects/sales-web
figma: truefigma: true marks a repository with a browser UI. Once a Figma token is saved under Settings → Figma, a task whose issue links a Figma selection gets a UI step before the implementer. A backend repository leaves it out. The Configurator sets it from the repository’s package.json: a UI framework and a bundler. See Figma UI step.
setup, archive and trust
setup:
include_file: .worktreeinclude # git-ignored local files copied into a new worktree
archive:
remove: [node_modules, dist] # deleted from a worktree when its task is archived
command: pnpm store prune # optional
trust:
repo_config: never # reserved; no feature reads it todaySee Worktrees and setup.
Older configs
- A flat top-level
repos:list (before 4.0.0) still opens, as one workspace calleddefault. Writing bothrepos:andworkspaces:does not load. - A top-level
jira:block (the old shape) does not load:urlandemailnow sit underatlassian:. prompt_buttons, an agent'ssystem_prompt_file, and thee2eblock'slabel,promptandprompt_fileare no longer read since 11.0.0. A file that still has them loads.- 12.0.0 renamed
orchestrator:toorchestration:,advisor:toworkspace_lead:andmax_advisor_actions_per_stagetomax_lead_actions_per_stage. The old names load until 13.0; the Configurator renames them in place after the update. - After an update, the Configurator applies what the release changed in the file; see Updates and versions.