Getting started
First setup
The setup wizard: the four things it asks, and what the Configurator does with them.
The first time Lonca opens without a configuration, it opens on a setup wizard. The wizard asks only what cannot be found out: the workspace, the repository folders, the Jira connection (optional) and the language. The Configurator reads your repositories and writes everything else into ~/.config/lonca/config.yaml. You review the result before anything is saved.
Two ways through the wizard
The first screen, Welcome, asks How should Lonca be configured?
| Choice | Steps | Who writes the file |
|---|---|---|
| Let Lonca configure it (recommended) | Welcome, Workspace, Jira (optional), Configure | The Configurator, from your repositories |
| Set up by hand | Welcome, Workspace, Agents & language, Jira (optional), AI (optional), Review | You, one step at a time |
The recommended path needs Claude Code or Codex on this Mac; without either, it is greyed out until you install one and press Check again. The rail on the left shows every step; you can go back to any step you have visited. Everything goes into one file, and every answer can be changed later in Settings.
Tools on this Mac
The Welcome screen lists the programs Lonca uses and whether each was found. A found tool shows its path; a missing one shows the command that installs it, with a button that copies it. Run it in a terminal, then press Check again.
| Tool | Marked | Install command shown when missing |
|---|---|---|
| Git | Required | xcode-select --install |
| tmux | Required | brew install tmux |
| Claude Code | Recommended | npm install -g @anthropic-ai/claude-code |
| Codex CLI | Recommended | npm install -g @openai/codex |
| GitHub CLI | Recommended | brew install gh |
| Node.js | Recommended | brew install node |
tmux and Node.js come with the app, so the installed app finds both inside its own bundle and you do not need to install them. You can finish setup with a required tool missing; sessions start once it is installed. See Install and requirements for what each one is for.
Your first workspace
A workspace groups the repositories of one product or team. You add more later in Settings; with two or more, a workspace menu at the head of the task list switches between them. This step asks:
- Name, shown in the workspace menu, and Id (lowercase letters, digits and hyphens), set once: tasks remember their workspace by it.
- The repositories, each in a card of its own: Add repository…, below the cards, opens a folder picker, or paste a path and press Enter. A folder inside a repository is offered its repository's root (Use that folder), and a folder that is not a git repository is refused when you continue. New project…, beside it, starts a new project instead: an empty git repository with a README and one commit (see Starting a new project).
- For each repository, its Base branch (where new task branches start) and, optionally, its Run command (what Run App starts in a worktree). A run command found in
package.jsonis offered as a suggestion. - E2E verification, per repository: it gives the repository's tasks an E2E stage, where Lonca's runner drives the app and checks the criteria. See E2E runner and sign-in.
- Local story prefix and Local stories folder, for the stories you write in Lonca itself. Leave them empty for the defaults: the workspace id in capitals (stories are numbered
PREFIX-1,-2…), andlocal/<workspace id>in the issues folder. - Issues folder: where every issue's snapshot, acceptance criteria and notes go, outside the repositories. Jira issues go under
jira/, local stories underlocal/. The default is~/.lonca/issues.
More on workspaces, repositories and local stories: Workspaces and issues.
Jira and Confluence (optional)
With Jira connected, a task starts from an issue, and Lonca brings its description, acceptance criteria and linked pages into the task's notes. Without it, you write local stories in Lonca. Turn on Connect Jira and fill in:
- Site address (
https://…atlassian.net; only https is accepted) and Account email. - API token. The Create an API token link opens Atlassian's page for it. The token is stored encrypted in the system keychain, never in the configuration file.
- Test the connection checks the three together. It is not required to go on, but it catches a wrong token now.
- Jira folder: where each Jira issue's folder goes. The default is
jirainside the issues folder. - Confluence pages: reads the Confluence pages an issue links to into the task's documents, with the same account.
- Saved Jira queries: each a name and a JQL, listed by name in the workspace's issue picker. A first query, My open issues, is filled in for you; Add query adds another.
The language
Lonca starts from your Mac's language. Agents and the leads write their questions, replies and reasons to you in it, and the Configurator writes its report and questions in it (see reply_language). Code, commits, the configuration and its prompt files stay in English or follow the repository's own conventions. On the by-hand path, Agents & language asks for it as Reply language; later, it is under Settings → Agents.
reply_language: Turkish # a language name: letters, spaces, hyphens and parenthesesLonca configures itself
The last step of the recommended path starts the Configurator. Choose what it runs on:
- Provider: Claude Code or Codex. A provider that is not installed is marked (not installed). Lonca preselects the first one it finds.
- Model: empty for the CLI's own default (CLI default), or a model name the CLI accepts.
Then press Start the Configurator. It reads your repositories (their scripts, test setup, CI and dev server) and writes the rest: the agents, how tests and the pre-PR gate run, ports, E2E, orchestration. It checks each command it writes by running a short form of it (one project, one spec), never a whole suite, and it changes nothing in your repositories. This can take a few minutes. The panel goes step by step, as it does in the app (Request, Working, Review, Done): Working shows what it is doing now, for how long, and its last steps, and Cancel at the bottom stops it. Its earlier messages fold under Conversation, above the step.
When it asks
Asking is the exception. The agent asks only when it cannot write a working configuration without an answer, for example two apps in one repository and nothing that says which to test. Where a sensible default exists it writes the default and lists the question in its report.
Its questions come as controls (a choice, a list, checkboxes, a text field, yes or no) with its own guess chosen and room for a note. You answer them together, and the same run goes on. It never asks for a password, a token or a key: those go under Settings → Workspaces and Settings → Jira connection.
Review and apply
When it is done, the panel moves to Review, and you see, before anything is saved:
- its report: what it ran to verify each command, what it could not verify, every change and why;
- Changes and New config.yaml: the file it proposes;
- Prompt files: the files it writes under
prompts/, such as a sign-in script, when there are any.
Ask for a change opens a box to correct it in your own words; send with ⌘Enter, and it continues the same conversation. Apply, pinned at the bottom, saves through the same path as Settings: the file must load, the previous version goes to backups/, and every new command, instruction file and sign-in address is shown in a system dialog first. Decline the dialog and nothing is saved; Apply again shows the commands once more. Once applied, Lonca opens on your workspace.
Setting up by hand
The by-hand path asks the same workspace and Jira questions, and three more:
- Agents & language: the CLI the stage agents run on (Claude Code or Codex; the one found on this Mac is chosen, Claude Code first), and the language they reply in. Lonca writes its entries for that CLI and a starting
orchestration:block, with the Workspace Lead on that CLI too. Settings → Orchestration can move a stage agent to the other CLI later, and Settings → Agents moves them all, the leads with them. - AI (optional): Let Lonca run Background AI, a model Lonca runs on its own to extract acceptance criteria from an issue, audit them against the diff, and draft local stories. When a CLI was found, the step starts with it switched on for that CLI; switch it off and Lonca never runs a model on its own.
- Review, Ready to start: a summary of the file (configuration path, issues folder, workspace, agents, reply language, Jira, AI) and every command Lonca will run. Start Lonca writes the file and opens the app.
The by-hand orchestration block is a starting setup. To have it written from your repositories, open the Configurator afterwards: the icon in the title bar, between the notifications bell and Settings.
To have it check a hand-written file against your repositories later, press Check my configuration in the Configurator (until plans are enforced every profile has it; see Plans). A repository you add later is offered its own set-up: see Setting up a new repository. On the Configure step, Set up by hand instead switches to the by-hand path.
If something goes wrong
- A field the file would refuse is marked, and the wizard goes back to its step: Some answers need another look; they are marked below.
- A Configurator run that fails or is cancelled marks the step where it stopped and says why; Run again starts it over.
- A
config.yamlthat later stops loading (invalid YAML, a field the schema refuses) opens Lonca on a recovery screen that shows why, with Open the file, Show in Finder and Try again. The file is never changed for you.
Afterwards
- Pick an issue or write a local story: Pick an issue (the + at the top of the task list; see Workspaces and issues).
- The task opens on its Flow tab. Hand off there; its worktree is set up as the first stage (see Handing a task off).
- Change anything later in Settings, or ask the Configurator (the icon in the title bar). Changes to the file apply after a restart, which both offer.
New to Lonca's words? How Lonca works explains them.