Coding
Getting started with Code
Choose where code runs, give Keli a focused task, and check the resulting changes.
Use Code to investigate a codebase, change files, and run commands. Start with a small task in the environment that contains the files you want Keli to work on.
Code environments are available in your personal workspace. If you are using a team workspace, switch to your personal workspace first.
Choose where the work runs
| Environment | Use it for | What you need |
|---|---|---|
| Local workspace | Working directly in an existing folder with your local tools and Git. | The Keli desktop app and access to the folder. |
| Local sandbox | Working in a separate Docker environment on your computer. | The desktop app and a running Docker environment. |
| Cloud sandbox | Working in a hosted environment from the browser or desktop. | A sandbox and the files or repository the task needs. |
A cloud sandbox has its own files. Uploading a folder does not make it a live copy of the folder on your computer. Changes made in the sandbox do not automatically update that original folder.
Start a local task
- Open Code in the desktop app.
- Use Open folder… to choose your codebase. Confirm folder access when Keli asks.
- Check the selected folder before sending your task.
- Describe the change, any constraints, and how to verify it.
“Fix the search results race: an older request should never replace the newest results. Follow the existing patterns, add a regression test if needed, and run the relevant tests.”
For an unfamiliar codebase, start with an investigation:
“Find where sign-in errors are handled. Explain the flow and name the files before making changes.”
Start a cloud task
Choose New cloud sandbox… in Code, give it a name, and choose its Network access. The sandbox includes Python and Node. Network access controls which domains it can reach, including package registries or a repository host your task may need.
Attach the files or folder the task needs, or ask Keli to work with a repository the sandbox can access. Commands run automatically inside the cloud sandbox; it does not use the desktop’s per-action approval controls. Check the sandbox and its network access before sending work.
Use Files to inspect outputs and save the files you want to keep. Before recreating a cloud sandbox, save any work you need: recreating it replaces the environment and leaves the old filesystem behind.
Choose how local actions are approved
Local sessions offer an approval mode beside the message field:
| Mode | How to use it |
|---|---|
| Ask | Review actions that need your permission before they proceed. |
| Auto (guarded) | Let eligible actions proceed within Keli’s enforced boundaries. Actions outside those boundaries can still need approval. |
| Plan | Ask Keli to investigate and propose a plan before making changes. |
Read the destination and proposed action on an approval card. Follow Approvals for permission choices and how to stop desktop control. Use Effort when a task needs more investigation.
Check what changed
In a local session, open Changes to inspect the captured file edits. Desktop 0.4.15 or later also captures readable text-file changes around foreground terminal commands. These diffs are labelled observed: they can include edits you or another process made while the command ran. Review the diff before Undo. Snapshot Undo refuses to overwrite content changed since capture.
Snapshots skip sensitive paths, links, binaries and generated directories, and can be partial in large folders. They do not track detached or background processes. Use your repository’s Git diff for a broader view. A snapshot failure does not mean the command failed; inspect current files rather than repeating it.
In desktop 0.4.14 or later, file edits use compact diffs, while Undo and Copy load the full versions saved on the original device. If the diff says saved versions are unavailable, the edit may already have succeeded; inspect the file. Undo and Copy are disabled for that change.
Ask Keli to explain what changed and list the checks it actually ran. Try the affected behavior yourself when a test cannot cover it. A useful finishing request is:
“Show the changed files, explain the behavior change, and list the tests you ran. Tell me what remains unverified.”
Completed file-changing tasks can also receive an automatic code review. Use /review for a broader manual check, and Fix these to ask Keli to investigate automatic findings and address confirmed bugs.
Continue from another device
Remote lets you start tasks from your phone and run them in allowed Code folders on your own computer. The desktop must be open and awake, with Remote enabled. Remote is a separate way to start work on that computer; a cloud sandbox continues to use its own environment.
Scheduled tasks can repeat work in an allowed Code folder, such as running its tests and reporting failures. Select the folder when creating the schedule; the run waits for an eligible idle desktop, even if you left Keli on the Work tab.
Coding tasks, reviews, and follow-up fixes use credits. See How credits work for balances and limits.