Set up Cully
New in the next release
This page describes the target behaviour of the guided Setup page and the interactive cully setup wizard. They are being built; the flags and screens below may change before release.
Setup connects your agents, picks a mode and writes one shared dev-workflow rules skill. You can finish it in the browser or in the terminal. Both do the same thing.
1. Install and start
Install the CLI as described in the quickstart, then start the browser UI:
cully uiIf setup is not done yet, the UI sends you to its Setup page. Prefer the terminal? Run cully setup instead.
2. The Setup page
- Welcome and check. Cully looks for the agents you have installed and for an existing configuration.
- Mode. Choose self mode (one machine: a SQLite file, no servers) or hosted mode (many machines: the MCP service, the Cully service, Postgres and Mem0). See One machine or many?.
- Rules interview. Cully asks a few questions about how you work. Answer or skip each one. Answers are prefilled from an analysis of your sessions.
- Review and approve. Cully shows the rules it will write as a diff. Nothing is written until you approve.
- Suggestions. Cully shows your session count, time and token use, and suggests agents and background jobs you could add.
- Done.
3. The terminal route
cully setupOn a terminal this runs an interactive wizard with the same steps. The existing flags still work: --all (local stack), --mcp-url URL (connect to a deployment), --local (self mode: registers cully mcp serve over stdio in each agent, with memory in ~/.cully/memory.db; no Docker, no servers) and --yes (apply without a prompt). Two flags are new: --no-interview skips the rules questions, and --answers FILE takes the answers from a file. See installer options for the rest.
Cursor sandbox on Linux VMs
Cursor browser edit tasks run with its sandbox enabled. On Linux hosts where AppArmor restricts unprivileged user namespaces, setup reports when no matching Cully AppArmor profile was found. This is separate from signing in to the Cully MCP server.
cully setup --cursor-sandboxThis prepares a profile in ~/.local/share/cully/apparmor/ for the installed Cursor sandbox helper, including installations outside /home. It does not change agent configuration, memory mode, terminal preferences, kernel settings or loaded policy. Review the profile and have an administrator run the printed validation, backed-up installation and load commands. AppArmor 4 and its parser are required. A user-local installation cannot load kernel policy.
The profile applies only to the current helper path. Regenerate and reload it if a Cursor update moves that helper. A profile file on disk does not prove the kernel loaded it; verify by starting a fresh Cursor task. Keep global namespace restrictions enabled. See Ubuntu's explanation of restricted user namespaces.
For MCP tools that report an authentication failure, sign in separately with cully cursor mcp login cully.
What each mode registers
| Mode | Command | Entry written in each agent's config |
|---|---|---|
| Self | cully setup --local | command = <path to cully>, args = ["mcp", "serve"] (stdio). The agent starts it when it needs it. |
| Self, with a local stack | cully setup --all | url of the Docker stack's MCP |
| Hosted | cully setup --mcp-url URL | url of your deployment (OAuth if it asks for it) |
Setup keeps your own settings, never overwrites a different cully entry (it stops and tells you to edit it), and is safe to run twice. cully uninstall removes only the entry it created; cully uninstall --purge-data also deletes memory.db. Run cully start afterwards for the browser UI; in self mode it embeds the same service. The design is in Memory store.
Where things live
The rules skill has a single source, ~/.cully/skills/dev-workflow-rules/SKILL.md. Setup links it into the skills folder of each harness you use: ~/.claude/skills, ~/.codex/skills and Cursor's skills folder. Edit the one file and every harness sees the change.
Approval and rollback
Nothing is written until you approve a diff. Every change is recorded in the history of changes, where you can roll it back.
What the session analysis uses
The analysis uses counts, hours and tokens, and session titles. No transcripts leave your machine. See privacy.
Suggestions need history
Suggestions of agents and background jobs need at least 20 analysed sessions. With fewer, Setup skips them and says so. See agents and scheduled jobs.
Setting up a new machine
In MCP mode a machine you have not used before can pick up where your other machines left off. Connect the MCP, open Setup, and use the step "Sync from your Cully memory" (also a Sync card on the Dashboard). This machine gets a random id, kept in ~/.cully, and a name you can edit (the hostname by default). The id, not the name, tells machines apart.
What syncs:
- Session records: title, a one-sentence summary, harness, folder name (the last part of the path only), repo remote (host/owner/name, no credentials), branch, task goal, times and counts. Tasks go with the records of their sessions.
- Agent definitions: name, role, instructions, tool groups, mode, schedule, folder name and remote.
- Your workflow rules text and your tool policy (rules longer than 7000 characters are not synced).
What does not sync: transcripts, files, absolute paths, agent notes and run history, secrets. A session's own file stays on the machine that made it, so a past session from another machine is continued from its stored summary ("Continue here" starts a new task in a folder you choose), not resumed in place. Sessions that are not summarised yet wait until they are.
"Bring them here" reads your memory and keeps the other machines' sessions in a separate, read-only list (the Sessions page has a filter: all, this machine, other machines; you search them there. They are not put into a task's automatic recall, because text written on another machine should not reach a model without a person reading it first). Found agents open the review form, or "Restore as draft": a restored agent is a draft and nothing runs until you approve it. Rules show the before and after and are written only when you approve. Your tool policy is approved separately and only ever gets stricter (block rules are added and risky-command questions are turned on; nothing is loosened). "Continue here" shows you the first message before the task starts, with what the other machine wrote fenced as untrusted notes; the change is in the ledger and can be rolled back. "Share this machine's sessions" sends this machine's new records. Both are incremental, resumable and capped at 10 calls per run, because each call is a short model call that costs tokens; the page shows the estimate (about 17 calls and ten minutes for 200 sessions). After your first press, Cully shares new sessions on its own, at most every 30 minutes, and never while new work is paused. In local mode none of this runs and nothing leaves the machine.