Reference
Data, privacy and security
Where Lonca keeps what, how secrets are stored, and what agents can and cannot see.
Lonca keeps everything on your Mac: its configuration, its database, the task context it writes, the stage agents’ sessions. There is no Lonca server and no account. This page lists where each thing lives, how secrets are kept, what Lonca connects to, and what the agents it runs can and cannot see.
Where data lives
| Path | Contents |
|---|---|
~/.config/lonca/config.yaml | Configuration; the previous versions in backups/, prompt files and sign-in scripts in prompts/ |
~/.config/lonca/state.json | App settings you change in the app: the vocabulary, autonomy, load control, the usage measurement and connected assistants switches |
~/.config/lonca/lonca.db | SQLite store: tasks, worktrees, sessions, pipelines and their decision logs, project and workspace decisions, variables (a secret encrypted), usage measurement |
~/.config/lonca/logs/lonca.log | The app log |
~/.config/lonca/sessions/ | Signed-in sessions, one per repository (or per app port) or named sign-in |
~/.config/lonca/browser-profiles/ | The browser profiles sign-ins run on |
~/.config/lonca/state/ | The Configurator’s state and conversation, the record of migrations |
~/.config/lonca/*.bin | Secrets and approvals, encrypted (see below) |
~/.config/lonca/license.lonca | Your license, when you add one; the trial and the version mark beside it (plan-state.json, version-mark.json) |
~/.local/state/lonca/ | The agent hook script, stage agents’ settings, the leads’ conversations, hand-off briefs, Lonca’s Figma state and preview kits; the connected assistants’ launcher and tokens (operator/) and their socket (orchestrator/operator.sock) |
<repo parent>/worktrees/<repo>/ | Worktrees, next to the main checkout, never inside it |
<context directory>/ | The issue snapshot, ac.md, attachments, pasted images, pipeline results and the orchestration log (pipeline/progress.md) |
The context directory sits under the issues folder (by default ~/.lonca/issues/), outside the repository, so issue documents never end up in commit history. See Task context.
Appearance preferences (color scheme, interface scale, terminal font size, list width, how sessions show) are kept in the app’s own browser storage, not in a file you edit.
How secrets are kept
No secret is ever in config.yaml, which is plain text and can end up in version control. Each is entered in Settings and saved beside the config, encrypted with the macOS Keychain (Electron’s safeStorage), never as plain text:
| Secret | Entered in | Kept in |
|---|---|---|
| The Jira API token | Settings → Jira connection | credentials.bin |
| A repository’s or a named sign-in’s credentials | Settings → Workspaces | sign-in-credentials.bin |
| A secret variable | A task's Variables tab, or a repository's in Settings → Workspaces | lonca.db |
| The Figma personal access token | Settings → Figma | figma-credentials.bin |
Two more files are encrypted the same way: your approvals of a repository's preview command (figma-approvals.bin) and the key that seals Lonca's Figma state (figma-state-key.bin). The Configurator's guard watches all of them: a change during its run fails the run.
A connected assistant's token is a file of its own under operator/tokens/ in the state folder, readable by you alone, for the launcher to read; Settings never shows it. The client records (name, grant, workspaces, limits and a hash of the token, never the token) are encrypted the same way in operator-clients.bin. The Configurator's guard watches both.
- A secret field starts empty and says only whether a value is saved; it never shows the value again. Only a sign-in value whose name says who signs in (a username, an email) comes back to the screen.
- The Jira token never appears in a log, a backup or a screen.
- The Figma token is read only by Lonca itself to fetch designs: never an environment variable, a prompt, an argument or a file an agent can read.
- A sign-in script gets its values on its standard input, never in an environment variable or an argument, and Lonca masks every value in what it prints. A value in the resulting session that holds a credential, as it is or encoded, is dropped. The Configurator that writes the script never sees the credentials.
- A secret variable reaches a process only as its environment. The leads see its name, never its value, and it is masked wherever Lonca relays text (see Variables and secrets). It leaves Lonca as plain text only when you take it out: its Copy, which puts it on the clipboard, or a file you export with Include secret values ticked, readable by you alone (see Exporting the table).
Text from Jira is data, never instructions
Issue titles and descriptions, comments, Confluence pages and attachments are written by other people. Lonca treats them accordingly:
- External text never enters a command. Titles, paths and input are passed as argument arrays or files, never embedded in a shell string.
- It reaches an agent as data. The files Lonca hands a stage agent in its prompt are quoted as data: nothing in them changes the agent’s instructions.
- Links are checked. Confluence pages are fetched only from your own Atlassian host, over https, by a numeric page ID Lonca builds the address from. A link to another host never produces a request.
- Queries stay in the app. A saved Jira query’s JQL stays in Lonca’s main process; only its label reaches the window.
A repository’s review skills (review_skills) are treated the same way. Lonca reads them from the task’s worktree and gives them to the reviewer as the repository’s data: they add rules to review against, never tools. A file that holds an invisible character, or leads outside the repository, is skipped (see Review skills).
What agents can and cannot see
Stage agents and the leads
- Without your own setup. Stage agents, the leads, the Configurator, the PR comment judge and the issue reassessment start without your Claude Code setup: your plugins, hooks, skills and MCP servers stay out. The repository’s own setup (its
.claude/settings.json, and for the implementer, the UI implementer and the E2E runner agent its.mcp.json) stays. How you reach the API is kept. A stage agent on Claude Code starts with only the built-in tools its role uses (see What a stage agent brings with it). - In the task’s worktree. Each task has its own git worktree; stage agents read outside it only the folders Lonca names: the task’s context, the parent story, pasted images.
- Permissions of their own. The implementer and the UI implementer may run
git status,diff,log,addandcommitwithout a prompt; any other git command, a reset among them, still asks. A push is refused to every stage agent: only Lonca pushes. The E2E runner agent may not read the worktree’s source files or its history. The terminal stage agents may not use Claude in Chrome, which acts in your own browser with your sign-ins; E2E scenarios run in a browser Lonca ships, driven by Lonca’s runner. - Headless runs are read-only. A headless Codex run gets
--sandbox read-onlyunless its arguments name a sandbox; Lonca writes what it answers. The final check starts without a shell. - Anomalies come to you. At every autonomy level, sudo, a force push, secrets and deleting outside the worktree come to you.
The Configurator
It has no editing tool; Lonca writes the files from its reply. After every turn Lonca checks each repository’s git status and fingerprints Lonca’s own files, the encrypted credentials among them; any change fails the run and nothing is saved. See what it may and may not change.
Connected assistants
An assistant outside Lonca that you connect (Claude Desktop, Cursor, Claude Code) reaches Lonca only through operator.sock, a local socket in the profile's private sockets folder that listens only while Settings → Connected assistants is on. Stage agents and the leads cannot reach it. Each client sees only the workspaces you gave it: tasks, open questions, the decision log, decisions, saved queries and their issues. It reads no terminal screen, no file and nothing about variables, and every answer is masked with the secrets of every workspace it sees; when they cannot be read, the call is refused. What it reads goes to its own model provider. See Connected assistants.
Codex
Lonca does not isolate a Codex stage agent from your own ~/.codex, and does not write to it.
A lead on Codex runs read-only, with your own Codex MCP servers switched off and no shell or file tool of its own. It reads only through Lonca, within the folders a lead on Claude Code may read; .env files, keys, .ssh, git's own folder and Lonca's tokens are refused. See The leads on Codex.
What stays yours
- Handing a task off approves Lonca’s commits in that task’s worktree and the push of its branch. Nothing else is pushed.
- Your local base branch moves only forward. Lonca keeps the local copy of each repository's base current (
developfororigin/develop), by fast-forward only. A local branch with commits the remote does not have, one checked out with uncommitted changes, or one that tracks another branch is left as it is; the task then works from the remote ref. - Merging and deleting are yours. Lonca opens the pull request and merges it only behind your confirmation, or by itself with Settings → Orchestration → Merge ready PRs on (off by default), once it is approved where the repository requires it, its checks passed and no comment is open. A task a connected assistant handed off waits for your confirmation even then (see The merge hold).
- Destructive operations are confirmed, saying exactly what will happen.
- Commands are confirmed. A new or changed command, instructions file, test policy, sign-in script or sign-in address is confirmed in a native macOS dialog before it is saved.
What Lonca connects to
Nothing is sent to a Lonca server: there is none. Lonca itself talks to:
- your Atlassian site, for Jira and Confluence, when you connect it;
- GitHub, through your
ghandgit, for pull requests, their checks and comments, and your repositories’ remotes; - Figma’s API, to read designs, when a token is saved;
- your apps’ sign-in addresses, when a repository’s sign-in script runs;
- a document a lead reads for a stage agent that cannot (a plain GET with nothing of yours sent, never to this Mac or a cloud metadata address, at most 20 per hand-off, each address in the task’s decision log);
- GitHub releases, to check for and download updates;
- Anthropic’s and OpenAI’s public pricing pages, about once a week, to price runs on a task’s Token tab.
The agents’ CLIs (Claude Code, Codex) talk to their providers on your own account, as they do outside Lonca. A license is checked on your Mac, and usage measurement, when you switch it on, stays on your Mac until you export it yourself. There is no telemetry. An assistant you connect sends what it reads to its own model provider, as it does with anything else you show it. The privacy policy says what reaches Cuukit: only what you send.
No secret scanner
What the log holds
~/.config/lonca/logs/lonca.log holds failures and their detail, at most 512 KB with one older file beside it. The Jira and Figma tokens never reach it. When you send it to someone, read it first.
One profile, one copy
Only one copy of Lonca runs per profile: opening a second brings the first one’s window forward. A profile a newer release has opened cannot be opened by an older one; see Updates and versions.