Quick edit
Select code, press ⌘K, say what you want. The change lands in place. Try it here.
function total(items) {
let sum = 0;
for (let i = 0; i < items.length; i++) {
sum += items[i].price;
}
return sum;
}Describe what you want. Cairn lays the first stones, then you shape the rest in a live editor with an assistant that edits right beside you.
Guests get one project with a live preview and the AI assistant. Sign in to save and use GitHub.
Write what you want in plain language. A sentence is enough to start.
The assistant creates folders and files in your project and explains what it did.
Open any file in the editor. Accept ghost-text suggestions, or select code and press ⌘K to rewrite it.
The preview runs your code in the browser, so every edit shows up as you type.
Sign in to save projects, then import from or export to GitHub when you're ready.
Select code, press ⌘K, say what you want. The change lands in place. Try it here.
function total(items) {
let sum = 0;
for (let i = 0; i < items.length; i++) {
sum += items[i].price;
}
return sum;
}Completions appear as faint text at your cursor. Tab accepts, keep typing to ignore.
Run your project in the browser with a built-in terminal. No setup, no local install.
Import a repository to start from existing code, or export your project to a new repo.
Files save automatically and sync instantly, so a second tab always shows the latest.