Skip to main content
1

Launch Mains

Open the app. During onboarding, choose the agent runtime you want — Claude Code, OpenAI Codex, GitHub Copilot, or Cursor — and continue. You land on that agent’s workspace, ready to start working. Switch to another runtime from the sidebar anytime.
2

Import a repository

Click Add Repository and import a repository — paste a remote URL or select a local path. Mains creates an isolated Git worktree for the workspace automatically.
3

Run an agent task

Open your workspace and type a goal in the agent input — for example, “Fix the login bug”. The agent will read files in the repository, write code, and run commands to accomplish the task.
4

Review diffs

After the agent finishes its run, open the Changes tab in the workspace sidebar. You will see a diff view of every file the agent modified, so you can review changes before committing.
5

Request code review

You can ask the agent to explain its changes or provide a code review. Just use agent skill /code-review in the chat input, and the agent will generate a review based on the diffs and the conversation history.
6

Create a pull request

If you’re happy with the changes, you can create a pull request directly from the workspace. Use the /create-pr skill in the agent chat input, and Mains will guide you through the PR creation process.