You can edit the code of a site in the App, or in any tool you like. The App watches the site folder. A change from your IDE, a terminal or Claude Code shows in the App at once.
The Code editor
The Code editor shows the source of the open page, with syntax colours for HTML and CSS. It edits the same file as the Design panel. It is a second view, not a second copy.
Open the Code editor

- Open a page in the Design panel.
- In the top bar, click Code editor (the code icon).
- Click a tab.
To go back, click Designer (the frame icon) in the top bar.
| Tab | What it edits |
|---|---|
| Html | The page file, for example pages/about.html. Hold the pointer on the tab to see the file name. |
| CSS | styles/site.css |
| Global Head | Site-wide code that goes before </head> on every page |
| Global Footer | Site-wide code that goes before </body> on every page |
When you edit a component, the Code editor shows one tab, Html, with the component file.
How your code is applied
- The App applies your code 0.5 seconds after you stop typing, or when you leave the editor.
- The Design panel and the file on disk then show your change.
- The Html tab shows the file as it is on disk. A component shows as its stub, not as its full markup.
- The App keeps the
<head>as you typed it: comments, order, quotes and spaces. - Page settings reads the SEO tags you type in the head.
When the file changes on disk
If the file changes on disk while you have code that is not applied yet, the editor shows This file changed on disk. Click Reload to show the version on disk.
Open the site in a browser
The App can serve the site on your computer, built as it will ship.
- In the top bar, click Open in browser (the globe icon).
- Click Open in browser.
The site opens in your browser at an address on 127.0.0.1. To share the address with another browser on this computer, click Copy link. To stop the server, click Stop.
When a file changes, the App builds the site again. The browser tab then shows A new version is ready. with Reload. The tab never reloads by itself.
Edit files with other tools
Open the site folder in your IDE, or run Claude Code or another agent in the folder. To find the folder, right-click the site card on the Home screen and click Reveal in Finder (macOS) or Reveal in File Explorer (Windows). For what is inside, see Site structure.
The App watches these files:
pages/,styles/,components/,content/andpublic/splitleaf.config.json
When a file changes outside the App:
- The Design panel, Pages, the Content panel and the Assets panel show the change.
- A new HTML file in
pages/is a new page in Pages. - History gets a version with the label Changed outside Splitleaf.
- The change shows on the Publish screen as one of Your changes.
Changes from another tool do not wait for review. Only the changes that the agent makes from the Agent panel wait for review.
When you also edit in the App
The App merges an outside change with your edits that are not saved yet.
| File | How the App merges |
|---|---|
| A page | By part: the head, the <body> tag and each top-level block of the body |
styles/site.css, styles/variables.css | Rule by rule |
splitleaf.config.json | Key by key. A setting you did not change takes the value on disk. |
| A component | By part |
| A content item | Field by field |
When both sides changed the same part, the App asks:
- This page changed on disk. for a page
- Site CSS changed on disk. for the stylesheets
- This item changed on disk. for a content item
| Button | What it does |
|---|---|
| Keep mine | Writes your version. The version on disk goes to Removed. |
| Use disk | Drops your edits and shows the version on disk |
A component: the App keeps your version. The version on disk goes to Removed, and a message says so.
Note: For a large change to many files, for example a search and replace over the whole site, quit the App first. Open the site again when the change is complete.
Rules for agents
Two Markdown files hold rules for agents. The Splitleaf agent reads them when it works on the site. Other agent tools that read these formats can use the same files.
| File | Scope | Edit it in the App |
|---|---|---|
AGENTS.md at the site root | The whole site | Site settings > Agent instructions |
content/<collection>/SKILL.md | One collection | The Content panel > Edit collection > Skill |
AGENTS.md follows the agents.md convention: plain Markdown, no front matter.
SKILL.md follows the Agent Skills format. The App writes the front matter. You write the body.
---
name: blog
description: Sets how Blog items are written, with rules for format, structure, tone of voice and words to avoid. Use when writing, editing, translating or reviewing items in the Blog collection (content/blog/).
---
- Write in short paragraphs.
- Name the farm and the country of each coffee.
- Never use exclamation marks.
nameis always the folder name of the collection.- If you change the description on disk, the App keeps your text.
- Neither file is on the live site. The build does not read them.
- Every publish sends both files to GitHub, so your team gets them.
For how the agent uses the rules, see Rules and memory. For the steps to write collection rules in the App, see Write rules for the agent.