# Multi-Agent Starter – Gemini + Claude + Cloudflare (No Local Setup)
This project lets you build a web app using:
- **Gemini 3.0 (AI Studio)** for fast UI building.
- **Claude Code** (and optionally ChatGPT Codex) for deeper code changes.
- **Cloudflare Pages** for hosting and automatic deployments.
- A simple file layout so multiple AI “agents” don’t trip over each other.
You do **not** need to install anything locally to start.
---
## 0. Accounts you need
Make sure you have:
1. **GitHub** account
2. **Cloudflare** account
3. **Google** account with **Gemini 3 / AI Studio** access
4. **Claude** account (Pro or higher if possible)
Once those exist, follow the steps below in order.
---
## 1. Create your own repo from this template
You are starting from this public template repo:
> `CodingCossack/project-000`
1. Open this URL in your browser:
`https://github.com/CodingCossack/project-000`
2. At the top right, click the green button **“Use this template”**.
3. Choose **“Create a new repository”**.
4. Fill the form:
- **Owner**: your GitHub account
- **Repository name**: e.g. `my-ai-project`
- **Description**: anything
- **Privacy**: choose **Private**
5. Click **“Create repository from template”**.
Now you have your **own copy** under your account.
### 1.1 Check the folder structure
On your new repo’s main page you should see:
```text
AGENTS.md
orchestration/
models.yaml
policies.md
sessions/
INDEX.md
AGENTS.md
tasks/
TASKS.md
AGENTS.md
skills/
(empty for now)Don’t worry what these files say yet. The AIs will use them.
Goal: every time main branch changes, Cloudflare builds and hosts your site.
-
Log in to Cloudflare in your browser.
-
Top navigation bar: click “Workers & Pages”.
-
Left sidebar: click “Pages”.
-
Click the button “Create application”.
-
Under the Pages section, click “Connect to Git”.
-
If Cloudflare asks to connect GitHub:
- Click “Connect GitHub account”.
- Authorise GitHub when prompted.
-
In the list of repos, find and select your new repo (e.g.
my-ai-project). -
Click “Begin setup”.
On the setup screen:
-
Project name: keep the default or rename.
-
Production branch: select
main. -
Framework preset:
- If you later use Next.js, set this to “Next.js”.
- For now, if the project is empty, you can leave the preset as “None” – we’ll fix later when Gemini creates the app.
-
Build command: leave as default for now.
-
Build output directory: leave as default for now.
Scroll down and click “Save and Deploy”.
If the first build fails (because nothing exists yet), ignore it. Once Gemini builds a proper app, the build will succeed.
- Go to your new Pages project in Cloudflare.
- Click the “Settings” tab.
- In the left sidebar, click “Builds & deployments”.
- Find “Preview deployments” and make sure it is enabled for all branches / pull requests.
You now have:
- A Production URL like
https://your-project.pages.devfor themainbranch. - Automatic Preview URLs for other branches (e.g.
feature/something).
Gemini AI Studio lets you edit code and instantly see UI changes inside the browser. For startups and prototypes, you will do most of the early work here.
- Open AI Studio in your browser (Gemini).
- Go to the “Apps” section (in the top or side navigation).
- Click “New app” (or similar).
- When asked for a source, choose “Connect GitHub repo”.
- Authorise access to GitHub if asked.
- Select your new repo (e.g.
my-ai-project). - Choose branch:
main. - Turn on “Auto-deploy on push” or similar option so every push to
mainredeploys the app. - Confirm / create the app.
-
You open your app in AI Studio.
-
There will be a code view and a UI preview panel.
-
When you or the AI change the code and save/commit:
- It pushes to your
mainbranch on GitHub. - Cloudflare rebuilds and updates your production site.
- The same site is visible in the AI Studio preview.
- It pushes to your
Use Gemini for:
- Page layouts
- Styling
- Simple logic
- Fast experiments
Claude Code will be used for bigger refactors, background jobs, and more complex work. It won’t show you a live UI, so we keep Claude on branches, not directly on main.
- Open Claude in your browser.
- Go to Settings (click your profile icon).
- Find the section called “Cloud Environments” (or similar wording).
- Click “New environment”.
- Name it something like:
my-project-cloud-env.
-
In the new environment, for Network:
- Select “Custom network”.
- Tick “Include default allowed domains”.
-
In the Allowed domains area, add these (one per line):
github.comdeveloper.mozilla.orgtypescriptlang.orgtc39.esreact.devreactjs.orgnextjs.orgvercel.comprisma.ioneon.techpostgresql.orgsupabase.comdevelopers.cloudflare.comcloudflare.comnodejs.orgtailwindcss.comshadcn.comradix-ui.comtanstack.comzod.devtrpc.iovitest.devjestjs.ioplaywright.devtesting-library.comeslint.orgtypescript-eslint.iodevelopers.google.comsearch.google.com
-
Save the environment.
In the same Cloud Environment, there will be a place to set environment variables.
Typical examples (you can add later when needed):
CLOUDFLARE_API_TOKENDATABASE_URLOPENAI_API_KEYANTHROPIC_API_KEY
Claude Code will read these. You don’t need a .env file for this setup.
- Open AI Studio.
- Use the UI to ask Gemini to build pages and components.
- When you like a change, let Gemini commit to
main. - Production site updates automatically via Cloudflare.
This is where you’ll spend most of your time at the beginning.
Whenever a change feels risky (deep refactor, new backend logic, etc.):
- Go to your repo on GitHub.
- Click the branch selector (usually shows
main). - Type a new branch name, e.g.
feature-auth-system, and press Enter to create it. - In Claude Code, open your repo and switch to this feature branch.
- Let Claude work there.
Cloudflare will:
- Build a preview URL for that branch.
- Example:
https://feature-auth-system.your-project.pages.dev
You can open that URL to check the branch.
If it looks good:
- Go to GitHub.
- Click “Compare & pull request” for that branch.
- Create a Pull Request into
main. - Optionally, ask Claude or another AI to review the PR.
- When you’re happy, click “Merge”.
After merging:
- Cloudflare redeploys production from
main.
You don’t need to edit these perfectly on day 1. Just know the purpose.
-
Explains what different AI agents are allowed to do.
-
Example roles:
- “Planner” – breaks ideas into tasks.
- “Executor” – writes code.
- “Reviewer” – checks code.
- “Session logger” – writes summaries of what happened.
-
When you prompt an AI, you can say:
- “Read
AGENTS.mdfirst. Act as the appropriate agent for this task.”
- “Read
-
models.yamldecides which AI model is used for which job. -
policies.mdcontains rules like:- “Always work on a branch, not on
main.” - “Don’t edit task files and session files at the same time” etc.
- “Always work on a branch, not on
Most people don’t need to change these early on.
-
sessions/AGENTS.mdtells an AI how to behave as a session recorder:- what to log
- where to store logs
- how to name session files
-
sessions/INDEX.mdis a table of contents for past sessions:- each time you finish a big chunk of work, the logger agent can append a short summary and a link to the new session file.
-
tasks/TASKS.mdis your main task list:- backlog
- in-progress
- done
-
tasks/AGENTS.mdtells an AI how to behave as a task manager:- how to add tasks
- how to mark them done
- how to assign a task to a specific agent / model
- This folder will hold reusable skills.
- Example: a skill that explains “How to work with Next.js and Cloudflare Pages”, or “How to structure React components”.
- Each skill can be a folder with its own
SKILL.mdand extra notes.
When you later ask an AI for help, you can say:
“Load the relevant skill from
skills/if it exists.”
Once all connections are set:
-
In AI Studio:
-
Open your app.
-
Ask Gemini to:
- create a minimal Next.js app (or other framework) in this repo,
- wire it so it builds correctly on Cloudflare Pages.
-
-
Wait for the first successful deploy to Cloudflare.
-
Open your production URL (
https://your-project.pages.dev) to confirm the app works. -
From then on:
- Use Gemini for day-to-day UI and simple logic.
- Use Claude / Codex on separate branches for heavy changes.
- Use
tasks/andsessions/to keep track of what’s happening.
If something breaks:
-
Ask an AI:
- “Read
README.md,AGENTS.md,orchestration/policies.md, and the latest files. I’m stuck on X. Walk me through fixing it step-by-step.”
- “Read
That’s enough to get you from zero to a working multi-agent, cloud-hosted project without touching local dev tools.