Getting started
How Lonca works
Workspaces, tasks, worktrees, sessions, stage agents, orchestration and the leads: the words the rest of these pages use.
Lonca takes an issue to a merge-ready pull request. It gathers the issue's context, sets up an isolated worktree, runs coding agents in it, checks the result against the acceptance criteria, and keeps the issue and the pull request in step. You hand a task off and answer only what its rules and its leads cannot settle. This page names the parts; every term links to the page that explains it.
The loop
Jira issue → context + worktree → plan → implement → test → review → gate → pull request → Jira statusAn IDE assumes a person writes the code. Once agents write most of it, the questions move: which task, with what context, in which working directory, how many agents at once, and by what criteria the work is accepted. Lonca answers those, and leaves the code to the agents and the decisions that matter to you.
How you work on a task
- Who drives
- Orchestration, stage by stage, with stage agents.
- What you do
- Tell it what the issue does not say (the brief), answer what it cannot settle, pause it to clarify something, and watch.
- Commits and push
- The hand-off approves commits in the worktree and the push of its branch.
- Jira
- Moves at the points your config names; a hold move or a comment only when you approve it.
Every task is handed off: there is no second way of working without orchestration. You can still watch any stage agent's terminal, or take one over for a while. Merging and deleting are yours, unless you let Lonca merge ready pull requests (see Merging the PR).
Where the work lives
- Workspace
- A named group of repositories with its own Jira queries, such as the services of one product area. You switch between them in the task list's header, or with ⌘1…⌘9. See Workspaces and issues.
- Issue
- What a task is about: a Jira issue, read through a saved query, or a local story, a Markdown file you write in Lonca with no tracker behind it.
- Task
- One issue being worked on, in one repository. It has a row in the task list (by default under Needs you, In progress or Done) and a screen of five tabs (Flow, AC, Documents, Variables, Token) that opens on Flow. See Tasks.
- Revision
- A new round of an issue that was worked on before: a task of its own, marked
REV1,REV2…, with its own branch (-rev1) and setup. - Context folder
- The folder outside the repository where Lonca writes everything it knows about the issue: the snapshot, attachments, Confluence pages,
ac.md, the orchestration log. It never ends up in commit history. See Task context. - Worktree
- A separate git working copy of the repository for one task, on its own branch, next to the main checkout. Set up by a resumable pipeline. See Worktrees and setup.
- Variables
- Values a task's app, tests and agents get as their environment: the repository's own
.envfiles, project variables and task variables, the later one winning. A secret is entered only by you, and masked. See Variables and secrets. - Agent brief
- The file Lonca writes into the worktree (
CLAUDE.local.mdfor Claude Code,AGENTS.override.mdfor Codex) that points every agent at the task's context. Kept out of git.
Who does the work
- Session
- A terminal running a stage agent, the task's app, or your own shell (the task's Terminal), in the task's worktree, on Lonca's own tmux server. Sessions keep running when Lonca is closed. See Sessions and agents.
- Agent
- A command definition in the config that a stage agent or a lead runs: Claude Code or Codex. Lonca shows when a stage agent's terminal is working, idle or waiting for permission.
- Orchestration
- What carries a handed-off task from a plan to a merge-ready pull request. Its core is plain rules, not a model: every step, every trip back and every push follows them. See Handing a task off.
- Stage agent
- One run of a coding agent for one stage: the planner, the implementer (and the UI implementer for Figma designs), the test scenario writer, the test runner, the final check and the reviewer. Each runs on Claude Code or Codex with its own model and effort. See Stage agents.
- Task lead
- A conversation per task that settles what the rules cannot, before it reaches you. You talk to it about the task, and tell it what the issue does not say. See The leads.
- Workspace Lead
- One conversation per workspace, over that workspace's queue; it reaches only its own workspace's tasks. A task lead hands it what it cannot settle, and the two decide as a pair before a question reaches you; it approves a task lead's move past a review or gate that has not passed, and records decisions. You reach the current workspace's lead from the conversation button beside the Orchestration chip in the title bar, or ⌘K with no task selected.
- Autonomy
- How much the leads decide before a question comes to you: assistant, consultant or autopilot. See Autonomy and decisions.
- Configurator
- The agent that writes
config.yamlfrom your repositories, and only that: Lonca's configuration agent, the icon in the title bar. See The Configurator.
How work is checked
- Acceptance criteria
- The list in
ac.md, read from the issue or extracted with AI. A ticked criterion needs an evidence line. See Acceptance criteria. - E2E runner
- How a repository's app is driven to check the criteria. Lonca's own runner starts the app on the task's port, signs in through the repository's sign-in script or a named sign-in of its workspace, and runs the scenarios the scenario writer wrote. See E2E runner and sign-in.
- Scoped tests and the gate
- Stage agents run tests for their own change; the full suite runs once, as the pre-PR gate, before the pull request. See Tests, the gate and jobs.
- Hand-off brief
- What the issue does not say (a method, a constraint, a screenshot), saved for the task; every stage reads it. See The hand-off brief.
- Decisions
- A question settled once that later tasks follow: a project decision every later task of its repository, a workspace decision every later task of the workspace. See Project and workspace decisions.
The stages of a handed-off task
| Stage | What happens |
|---|---|
| Setup | The worktree is set up, if it is not yet. |
| Plan | The planner writes the plan and settles open contracts before any code is written. |
| Implement | The implementer codes it, test-first. A task with Figma designs goes to the UI implementer first. |
| Test | In a repository with E2E, the scenario writer writes the scenarios and the test runner runs them; the final check then holds the result against the criteria. |
| Review | The reviewer judges clean code, structure and security. |
| Gate | Lonca runs the full checks once and records the result as it is. |
| Publish | Lonca pushes the branch, opens the pull request, and moves the Jira issue if your config names a status for it. |
| PR | Lonca watches the CI checks and review comments until the pull request is merged. |
Details: Handing a task off, Figma UI step, Pull requests, CI and comments, When the issue changes and Load control and concurrency.
What stays yours
- Sessions do not depend on Lonca. Agents run in tmux; the work goes on if the app closes or crashes.
- Lonca suggests; you decide. A task you hand off is driven without asking, Jira moves at the points your config names included. A move to a hold status, or a comment in Jira, waits for your approval each time.
- Merging and deleting are yours. No agent merges a pull request: you merge behind a confirmation, or Lonca's own rules do with Merge ready PRs on. Destructive operations are confirmed with what exactly will happen.
- Text from Jira is data. It reaches an agent as something to read, never as instructions, and never inside a shell command.
- Nothing fails silently. A failure states its reason and where to look, and Lonca's own errors offer a button to the place that fixes them.
Every page
| Section | Pages |
|---|---|
| Getting started | Install and requirements · First setup |
| Working with tasks | Workspaces and issues · Tasks · Task context · Worktrees and setup · Variables and secrets · Sessions and agents · Acceptance criteria |
| Orchestration | Handing a task off · Stage agents · The leads · Autonomy and decisions · The hand-off brief · Tests, the gate and jobs · E2E runner and sign-in · Figma UI step · Pull requests, CI and comments · When the issue changes · Load control and concurrency |
| Configuration | The Configurator · config.yaml reference · Settings |
| Reference | Plans · Data, privacy and security · Keyboard shortcuts · Updates and versions · Troubleshooting and FAQ |