The branch
Onlook makes a git worktree in its own folder, on a new branch based on your main branch. After the author’s first request, the branch is named after the project, with a prefix from your GitHub organization or the author’s git name, likeacme/pricing-hero.
The agent, Claude Code or ChatGPT’s Codex, works only in that worktree, and Onlook refuses to run it anywhere else. The author’s own checkout is never edited.
Running your app
The agent runs your project the normal way, with your package manager and your dev command. Onlook copies the.env files your repo already ignores, so the app can run. Your .gitignore keeps them out of commits, as it does for you.
Commits and pushes
Commits are made under the author’s git identity and pushed with their GitHub account. With Claude, the author approves each push.Your agent instructions
With Claude, the agent follows your repo’sCLAUDE.md, .claude/CLAUDE.md and the rules under .claude/rules, and can use your .claude skills and commands. With ChatGPT, it reads your AGENTS.md. Onlook adds its own context on top of yours and leaves your instruction files unchanged.