Browse the docs
Overview
Start here
Websites
CMS
Forms and integrations
Analytics
Experiments
Proactive improvements
SEO and AI search
Team and account
Migrating
For agents and developers
Troubleshooting

DocsFor agents and developers

How a Sherpa website is put together

Find your way around the code behind a Sherpa website.

A Sherpa website is not a locked project inside a builder. It is an Astro codebase your team owns, with pages, components, content and brand notes all in one repository. That is what lets an agent change anything, and what lets you take the site anywhere.

offbeats studios / website

Private
SherpaUpdated pricing headline
  • .sherpaUpdate brand voice
  • cmsAdd customer story
  • publicCompress hero images
  • srcUpdate pricing headline
  • astro.config.mjsAdd redirects
  • package.jsonUpgrade Astro
  • README.mdAdd setup notes

See it in action

Ask your agent this.

Give me a tour of how my website is built. What are the main pages, the components they share and the collections behind them? Keep it to what a new teammate needs.

It answers with something like this.

Your site has 14 pages built from about 30 shared components.

  • Pages. Home, pricing, about, customers, blog and nine more
  • Shared parts. The header, footer, hero and pricing table appear on most pages
  • From the CMS. Blog posts, customer stories and the team list

Give me a tour of how my website is built. What are the main pages, the components they share and the collections behind them? Keep it to what a new teammate needs.

  1. Looked through the sitelist_files
  2. Read the pageread_file
  3. Read your collectionsget_cms_schema

Your site has 14 pages built from about 30 shared components.

  • Pages. Home, pricing, about, customers, blog and nine more
  • Shared parts. The header, footer, hero and pricing table appear on most pages
  • From the CMS. Blog posts, customer stories and the team list

The stack

A Sherpa website is an Astro project hosted by Sherpa. It is custom code your team owns and can take anywhere.

Where things are

PathWhat is in it
src/pages/One file per page or route
src/components/Reusable sections and parts
src/styles/Shared styles and design tokens
src/assets/ and public/_sherpa/assets/static/Images, fonts and other files
cms/CMS collections and entries
.sherpa/knowledge/Voice, design system and company notes agents read first
.agents/skills/Workflows written for agents
AGENTS.mdThe website's guide for agents
sherpa.experiments.jsonExperiment definitions

Good to know

Changes are branches

A change is a branch of the repository. Publishing merges it and releases the new build. That is why drafts do not collide and every version can be rolled back.

What agents leave alone

Files under .github/ are managed by Sherpa and cannot be edited in a change.

Common questions

What is a Sherpa website built with?

Astro. It is custom code your team owns and can take anywhere.

Where does CMS content live?

In cms/, in the same repository as the pages and components.

Where do agents find my brand rules?

In .sherpa/knowledge/, with workflows for agents in .agents/skills/.

Example prompts

Each one works as written in Claude or ChatGPT once Sherpa is connected. Swap in your own pages and dates.

The request from the example

Give me a tour of how my website is built. What are the main pages, the components they share and the collections behind them? Keep it to what a new teammate needs.

Naming the reader keeps the tour short. You get a map, not a file listing.

The reach map

Which components are used on the most pages? Changing those changes the most.

Tells you where a small edit has a big reach.

The history lesson

What changed in the pricing page file over the last month, and who changed it?

Your agent can read a file's history, which answers most questions about why a page looks the way it does.

The spring clean

Is there anything in this website's code that looks unused or duplicated?

A tidy-up list from something that can read every file.

For agents

Sherpa MCP tools for this job, in the order they are usually called. list_files, read_file, search_files, get_file_history. Work inside a change, and only call submit_change when the person asks to publish. A person presses Publish. Every tool is described in the MCP reference.

Next

See your own site on Sherpa.

  1. TodayPick a timePick a time
  2. Before the callWe copy your site over, freeWe copy it, free
  3. On the callYou take it for a spinTry it live
You'll talk to Ethan, Sherpa's founder.

Loading times…

Open the booking page in a new tab ↗