Edit a code website with Claude Code or another tool
Clone a code website's code with a link you make in Smileline, or let Claude or ChatGPT change its files through the Smileline connector, and publish when you're happy.
A code website's code can be changed outside the Smileline editor in two ways:
- A clone link. Claude Code, Cursor or any git tool clones the website's code with a link you make in Smileline. Every change pushed to the
mainbranch becomes a draft within seconds. - The Smileline connector. Claude, ChatGPT and other AI agents connected to your practice read and change the website's files one commit at a time.
Either way, each change is built and checked as a draft. Nothing goes live until someone clicks Publish. Code websites are for practices in the United Kingdom and the United States.
Who can do what
| To do this | You need |
|---|---|
| See the website's clone links | View ads, captured leads & results |
| Make a clone link, or let an agent change the code | Connect providers, manage lead forms & draft campaigns |
| Let an agent publish a build | Set campaigns live & change ad spend |
| Revoke a clone link | To have made it, or Connect providers, manage lead forms & draft campaigns |
Clone links are made and revoked by a person signed in to Smileline: AI agents, API keys and the AI assistant can't make them, list them or revoke them.
Make a clone link
Open the website in Ads → Websites and go to its Code tab. Under Edit with Claude Code or another tool, click New link.
Give the link a name you'll recognise later, such as the computer it's for. Choose Read only to clone the code, or Read and write to push changes too, and how long it lasts: 1, 7, 30, 90 or 365 days.
Click Make link. Copy the Clone command and the Password. The password is shown only once: Smileline keeps no copy of it.
Then, in a terminal on your computer:
git clone -c credential.useHttpPath=true https://smileline@<your website's address>.gitWhen git asks for a password, paste the link's password. Your computer's git credential store keeps it for this website's address only, never for other sites. On a Mac, git uses the Keychain by default. On Linux, turn a store on first:
git config --global credential.helper cacheThe password is never put in the command, a configuration file or your shell history.
Anyone holding the password can clone the website's code, and a Read and write link can also push to any branch, until it expires or is revoked. Treat it like a password.
Push a change
Commit and push to main as usual. Within seconds the push appears in the Code tab as a new build, labelled with the commit's author. Open its draft link to check it, then click Publish when you're happy. Pushes to other branches are kept in the code but never built.
The live website is never changed by a push: it changes only when someone publishes a build. Automatic updates (new practice details, articles and reviews) keep publishing the version that is live.
Revoke a link
Click Revoke beside the link, then Revoke again. The next clone or push with it is refused. Copies already cloned stay on the computers they were cloned to.
A link also ends by itself:
- when it expires;
- when the website is archived;
- when the person who made it leaves the practice, is suspended, or no longer has Connect providers, manage lead forms & draft campaigns.
You can see your links and revoke one even when the practice's subscription has lapsed, code websites are switched off, or the website's code is waiting for someone to look at it. New link appears only when the code is ready and you may change the website.
Change the code with Claude or ChatGPT
Once your practice is connected to an AI agent, ask it to change the website, for example "add a 4-question quiz above the contact form on the home page". The agent reads the website's files and saves its changes as new commits, each built as a draft.
Connections you already have can do this straight away, without reconnecting: you still confirm the sensitive changes below. If the agent says it needs you to reconnect (a connection that can only read, for example), remove the Smileline connector in the AI app and add it again.
You confirm the sensitive changes
The agent asks you first, in a Smileline prompt, before it:
- deletes a file;
- changes a file that instructs AI tools, such as
AGENTS.md,CLAUDE.md,.claude/or.mcp.json, or that runs on a computer when the project is installed, opened or built, such aspackage.json,.envrcorastro.config.mjs; - publishes a build.
The prompt shows the practice, the website and exactly what will change: each file with its size and fingerprint, and the full new text of every file that instructs AI tools or runs on a computer. A publish prompt shows every website warning the build's check found: accepting it is your "I've checked these" tick. Read it before you accept. A change too long to show in the prompt is refused there: make it in Smileline or in a clone. A build that isn't ready yet, or whose check couldn't read all of its text, is published in Smileline, where you see all of it.
If you decline, nothing is changed and Smileline keeps nothing of the change.
What the agent can't do
The agent can't read credential files such as .env, convert a website to code, make clone links or draft links, or see the website's patient stories. Files larger than 1 MiB are changed in a clone.
Agencies
An agency connected to Smileline can change the code of a practice it is linked to, with the same confirmations, under the role its member holds in that practice. Each prompt names the practice.