Skip to content
/ Lonca
Documentation contents

Orchestration

Connected assistants

Let Claude Desktop, Cursor or Claude Code follow Lonca, and with Steer hand off, pause and order tasks: the grants, proposals, the merge hold and the limits.

An assistant you already use every day, such as Claude Desktop, Cursor or Claude Code, can connect to Lonca and follow its work: the tasks, their questions, the decision log. Given more, it can also hand issues off, pause tasks and order the queue, and propose answers and messages that you accept. It reaches Lonca through a local MCP channel on your Mac, with a token of its own, and only the workspaces you give it. It is never you: what it does is recorded under its name, and nothing it says counts as your word.

Turning it on

Settings → Connected assistants. The switch, Let connected assistants read Lonca, is off by default. Turning it on asks once, and says what it means: what a connected assistant reads (reports, issue text, the decision log) goes to that assistant's model provider (see Privacy). Off, Lonca does not listen for assistants at all, and turning it off ends every open connection at once.

Adding a client

Each assistant is a client of its own. Add client asks for:

Name
How Lonca shows it, for example Claude Desktop: 1 to 40 characters, no control or invisible character.
Grant
Observe or Steer (see below).
All workspaces
Ticked, the client sees every workspace in the config, a workspace added later too. Unticked, pick the workspaces it may see.
Hand-offs a day
How many issues it may hand off in a day: 10 by default, at most 100.

Adding one needs the macOS Keychain's encryption: without it, no client can be added. Each client's card shows its grant, its workspaces, when it last connected, and its last ten calls (each tool by name, and whether it was refused). Rotate token gives it a new token, refuses the old one at once and closes its open connection; Revoke removes it and closes its connection too. The copy-ready lines stay the same after a rotation.

Connecting the assistant

The token is never shown. The client's card has copy-ready lines for Claude Desktop, Claude Code and Cursor, each naming where it goes. They name only Lonca's launcher and the client's id; the launcher reads the token from its own file. For Claude Code, the line runs in a terminal:

Terminal
claude mcp add --transport stdio --env LONCA_OPERATOR_CLIENT=<client id> lonca -- '<launcher>'

For Claude Desktop (~/Library/Application Support/Claude/claude_desktop_config.json) and Cursor (~/.cursor/mcp.json), it is an mcpServers entry named lonca with the same launcher and variable. The launcher, operator/lonca-operator in Lonca's state folder, is written again at every start of Lonca. It never starts Lonca: while Lonca is closed, the assistant reads Lonca is not running; open it to continue, and while the switch is off, Connected assistants is off in Lonca.

The two grants

The grant and the workspaces are checked at every call, not once when the assistant connects. A task outside its workspaces reads as no such task, and a task with no workspace is hidden from every client.

Observe: reading

ToolWhat it reads
list_workspacesThe workspaces it may read, with their repositories’ ids.
list_tasksEvery handed-off task: its stage, status, round, place in the queue, the tasks it waits on, its PR number and state, the cards waiting for you, and whether Lonca holds its merge.
task_statusOne task in detail: its pipeline, open question, runs, latest decisions and progress.
read_artifactOne of a task’s documents, as a lead reads it.
decision_logThe decision log of a task, a workspace, or the latest of all its workspaces.
list_decisionsThe project and workspace decisions, with their reasons; never an attached script.
list_cardsWhat waits for you: each open question with its text, and your other cards by kind only. It says which questions it may answer.
list_queriesA workspace’s saved issue queries, by label.
search_issuesThe issues of one saved query.
wait_for_eventsThe decision log’s new entries since its last read, waiting up to 50 seconds for one.
read_workspace_leadThe Workspace Lead’s replies to its own messages, never the rest of the conversation.

A PR's state is what Lonca last read; the assistant never reaches GitHub through Lonca. Text that an issue, a stage agent or you wrote reaches it marked as data, not instructions. It reads no terminal screen and no file, and nothing about variables, not even a name.

Steer: acting

PlansFreeStandardProTeamSteer needs a plan with the leads; Observe is in every plan

Steer adds these tools to the ones above. Each has the effect of your own action in Lonca, recorded under the assistant's name.

ToolWhat it does
hand_offHands an issue off: named by its key, the saved query it is in, and the repository. An issue with an earlier task, or a repository in two of its workspaces, is left to you. Its PR is held from Lonca's own merge (see below).
pausePauses one task, with why in a few words, which you read on the paused card. It moves or comments on no issue.
resumeResumes a task it paused itself. Your pause, a lead’s, another assistant’s and Pause all’s are not its to end.
pause_grantedPauses every task in its workspaces that is not done or paused already, one by one. Other workspaces keep running.
reorder_queueOrders one workspace’s queued tasks.
set_prioritySets a task's priority (with load control on, a high-priority task leads the queue).
answer_cardAnswers an open question Lonca lets it answer. A proposal unless you let it act without asking.
tell_workspace_leadWrites to a workspace’s lead, optionally about one task. A proposal unless you let it act without asking.

A task an assistant paused reads Paused by a connected assistant, muted: it does not wait on you. You can resume it yourself; Resume on several tasks at once leaves it out. The decision log, on the task's Flow tab and in the Orchestration view, names the assistant by its client name.

Proposals: what waits for you

The two tools that carry an assistant's own words, an answer and a message to a Workspace Lead, are proposals by default:

  • An answer waits on the task's Flow tab: <name>, an outside assistant, proposes this answer:, with Accept and Dismiss. The task keeps waiting meanwhile. Accept answers with it, as the assistant's word; Dismiss leaves the question yours. An Accept after the question changed answers nothing.
  • A message waits in the Workspace Lead's conversation: … wants to send the workspace lead:, with Send and Dismiss. Messages that wait are not kept across a restart of Lonca.

On a Steer client's card, Act without asking me, off by default, lets its answers and messages go through at once. Nothing else it does is a proposal: the other Steer tools act at once.

Which questions it may answer

A closed list, so a kind of question added later is yours until Lonca decides otherwise:

  • a plain question from a stage agent with nothing in it that only you settle;
  • a timeout or a retries card, with its Try again only.

Everything else stays yours: dropping or skipping a criterion, accepting criteria without their E2E check, held work, a sign-in's facts, an anomaly in the plan, a branch that exists on the remote, commits Lonca did not push, environment problems, loops at their limit, a question a lead holds, and your other cards. A stage agent and its lead read the answer as an outside assistant answered (not the user), and no decision is proposed from it.

A message to a Workspace Lead

The Workspace Lead reads it as another model's request, quoted, never as you asking and never with the assistant's name. It unlocks nothing that is yours to ask for, and does not stand over the lead's judgement the way your word does. A turn it starts may only read (the lead's read tools), escalate to you and pause; Lonca refuses every other tool in that turn. See The leads.

The merge hold

Handing a task off approves Lonca's commits and the push of its branch, never the merge. With Settings → Orchestration → Merge ready PRs on, Lonca does not merge by itself a PR whose task an assistant handed off until you confirm, even in a repository that needs no approval. The task's Flow tab shows one button: Handed off by <name>: confirm to allow auto-merge. Once you press it, the PR merges when it is ready, as any other. An assistant's answer on a task that waits at its PR sets the hold again. Merging it yourself, with Merge the PR… or on GitHub, is unchanged. See Merging the PR.

Limits

LimitPer client
Reads60 a minute
Writes10 a minute, counted apart from the reads; a burst past it makes one entry in the decision log
Hand-offsIts Hand-offs a day (10 by default), counted on your Mac’s day. Reaching it makes one entry in the decision log and a card on the client in Settings.
Messages to a Workspace Lead6 an hour, sent or proposed: each one is a paid lead turn

While the Configurator runs a turn, every write an assistant makes is refused with try again in a minute, and Settings adds, changes, rotates and revokes no client until the turn ends.

What an assistant can never do

  • Merge a PR, or confirm its own hand-off's merge.
  • Move a Jira issue or comment on it, write into a task's brief, or add extra rounds.
  • Reopen a task you shelved, start a new revision, or hand off with continue, dependencies or a stack: those are yours.
  • Pause everything with Pause all, or end a pause that is not its own.
  • Answer a question outside the list above, or any of your other cards.
  • Read a terminal screen, a file, a variable or a secret, or reach a workspace or task it was not given.
  • Change the config, Settings or your plan, delete a task, or talk to a stage agent.
  • Count as you: Lonca never takes its words for yours.

Privacy and security

  • Local only. The channel is a socket, operator.sock, in the profile's private sockets folder, listening only while the switch is on. Stage agents and the leads cannot reach it.
  • Tokens. Each client's token is a file only you can read, under operator/tokens/ in Lonca's state folder. The client records (name, grant, workspaces, limits and a hash of the token, never the token) are kept encrypted with the macOS Keychain in operator-clients.bin.
  • Masking. Every answer is masked with the secrets of every workspace the client sees. When those secrets cannot be read, the call is refused rather than answered unmasked.
  • Watched by the Configurator's guard. A Configurator run that changed operator-clients.bin or the operator/ folder fails, and nothing is saved.

See Data, privacy and security.