Docs

Get started

About five minutes per machine. You need macOS, Cursor or VS Code, and a terminal.

1. Install

Until the first release is published, build lc from source. You need Go and just.

$ git clone https://github.com/0xdps/code-chat-sync.git
$ cd code-chat-sync
$ just build-agent
$ ./dist/lc install
$ export PATH="$HOME/.lc/bin:$PATH"   # add to your shell profile

lc install copies lc to ~/.lc/bin, registers hooks with Cursor and VS Code and starts the background agent at login. From now on, new chats are saved on this machine. Run lc status after your next chat to see them.

Chats you had before installing are picked up too: the agent copies the editors’ own chat records every few minutes. Run lc capture to do it now.

On your first computer:

$ lc link
To link this machine, open:

    https://letscontinue.app/link?code=K7QM-4XPB

Open the link, sign in and check that the code matches, then approve. Back in the terminal, lc shows your recovery key. Write it down somewhere safe, such as a password manager. You need it to link your other machines, and nobody, including us, can recover it for you.

On each other computer, install lc and run lc link again. After you approve it, it asks for the recovery key. A wrong key is rejected, so you can’t end up with chats nobody can read.

Lost the key but still have a linked machine? Run lc key show there.

3. Continue a chat

Linked machines sync every 30 seconds in the background. To continue a chat on this machine, quit the editor first, then:

$ lc continue                 # pick from a list
$ lc continue refunds         # or match words in the title
$ lc continue 3e1467ec        # or use its ID

Reopen the editor. The chat is in the chat list of the same project, found by its git remote. Use --into ~/code/api to choose the folder yourself, and --dry-run to check everything without writing.

A continued chat is always a new chat. If you change your mind, lc restore undo <id> removes it again.

4. Keep projects local

Rules live in ~/.lc/config.json and match the project’s git remote, so they apply wherever the project is cloned. * matches one level and /** any depth. A folder without a remote is matched as dir:<folder name>.

{
  "localOnlyProjects": ["github.com/acme/*"],
  "excludeProjects": ["github.com/acme/secret-client/**"]
}
  • localOnlyProjects: captured and searchable on this machine, never uploaded.
  • excludeProjects: not captured at all.

Use lc policy to see which rule applies to each project, and lc projects to list them.

5. Manage machines

See and revoke machines on your account page, or from any linked machine with lc devices and lc devices revoke <id>. A revoked machine stops syncing at once. lc unlink stops syncing the machine you are on and keeps its local chats.

All commands

CommandWhat it does
lc statusWhat was captured, what is held back, and sync state
lc sessions, lc show, lc searchBrowse and search chats on this machine
lc link, lc unlinkStart or stop syncing this machine
lc sync, lc push, lc pullSync now instead of waiting for the agent
lc continue [chat]Put a chat from any of your machines into this editor
lc restore undo <id>Remove a chat that was continued here
lc devicesList or revoke your machines
lc key showShow the recovery key
lc delete <chat>Delete a chat here and in the cloud
lc export <dir>Write all your data to plain files
lc policy, lc projectsProject rules and the projects seen on this machine
lc capture, lc artifactsCopy the editors’ chat records now, or list them

Uninstall

lc uninstall removes the hooks and the background agent and leaves your chats in ~/.lc. Delete that folder to remove them too. To remove your chats from the cloud, use lc delete before unlinking, or email hello@letscontinue.app to delete your account.