Vibe Code Workflow

The Vibe Code Workflow is a remote coding agent that runs in a cloud sandbox, works on one of your GitHub repositories, and persists between devices. You launch a session, walk away, and come back to a draft pull request.

The agent is the same Mistral Vibe harness (the software loop that gives the model access to tools, manages working memory, and runs steps until the task is done) that runs in your terminal. The sandbox lives in the cloud, so you don't need a local install, your laptop doesn't have to stay open, and you can follow the session from Le Chat on web or mobile.

There are three ways to start a session:

  • From Le Chat: pick the Vibe Code workflow on the homepage, or use the New Code Session shortcut in the sidebar.
  • From the Mistral Vibe CLI: prefix any prompt with & to send it to a cloud session.
  • From an active local Vibe session: run /teleport to move the conversation to the cloud.
i
Information

The Vibe Code Workflow is in Preview. Access is rolling out across the Pro and Teams plans. Capabilities, limits, and the interface can change before general availability.

When to use it

When to use it

The Vibe Code Workflow is designed for iterating on an existing GitHub repository. It works best when:

  • You already have a GitHub repo. The agent clones your repository into the sandbox. It cannot create new repositories from scratch.
  • The project uses a standard toolchain. Sandboxes provide a Linux environment with common runtimes such as Node.js, Python, and Go. Projects that depend on local hardware, GPUs, or proprietary services might not run as expected.
  • The task is well-scoped. Fixing a bug, adding a feature to an existing module, refactoring a file, or repairing failing tests produces the most reliable results.
tip

For one-off Python execution inside a chat (data analysis, charts, file conversions), use Code Interpreter instead. For local, terminal-based coding, use the Mistral Vibe CLI.

Prerequisites

Prerequisites

Before you start, connect your GitHub account to Le Chat:

  1. Open Le ChatIntelligenceConnectors.
  2. Connect your GitHub account.
  3. Authorize the requested permissions for the repositories you want the agent to work on.

The connector grants the sandbox access to the repositories you select. See GitHub permissions for the full list.

Start a session from Le Chat

Start a session from Le Chat

  1. From the Le Chat homepage, run the Vibe Code workflow, or use the New Code Session shortcut in the sidebar (equivalent to chat.mistral.ai/code_session).
  2. Enter a prompt describing what you want the agent to do (e.g, "fix the failing tests in my repo").
  3. The session starts. You see the harness working in real time.
  4. Respond to any clarifying prompts as the agent runs. You can also steer it mid-task with follow-up messages.
  5. When the session finishes, review the result. The output is typically a draft pull request opened on the target repository.
tip

Keep your initial prompt focused. Smaller, well-scoped tasks complete faster and produce more reliable results.

Teleport from the Mistral Vibe CLI

Teleport from the Mistral Vibe CLI

If you already use the Mistral Vibe CLI locally, you can move work to a cloud session and follow it from Le Chat.

Setup

Upgrade to the latest CLI:

uv tool upgrade mistral-vibe

Send a new prompt to the cloud

From inside a Git repository, run vibe and prefix your prompt with &:

vibe
& fix the tests

The task runs in a cloud sandbox. The CLI returns a Le Chat URL where you can follow the session.

Move an in-progress local session to the cloud

Inside an active local session, run:

/teleport

The session continues in Le Chat and you can monitor it from any device.

note

Teleport only works from inside a Git repository. Running it from a non-code directory fails. Teleport is one-way today: after a session moves to the cloud, you cannot pull it back into your local CLI. Continue interacting with it from Le Chat instead.

Session lifecycle

Session lifecycle

Each session goes through the same phases:

  1. Sandbox creation. A fresh cloud sandbox is provisioned and your repository is cloned into it.
  2. Agent execution. The agent analyzes your prompt and starts working: reading files, running commands, and editing code.
  3. Real-time feedback. You see the harness activity stream into Le Chat as it happens.
  4. Interactive prompts. When the agent needs clarification, it asks you directly in the session.
  5. Completion. The agent finishes its work and presents the result, usually a draft pull request on your repository.

A session can end in several ways:

  • Completed. The agent finished the task.
  • Stopped. You stopped it manually.
  • Timed out. The session exceeded the duration limit, or you didn't respond to a question within the inactivity window.
  • Error. An unexpected error occurred.

When a session ends, any commits and pull requests pushed during the run remain on GitHub. The cloud sandbox is deleted.

Limits

Limits

LimitValue
Maximum session duration24 hours
Inactivity timeout (waiting for your reply)3 hours
Individual command timeout30 seconds
Concurrent sessions per userPlan-dependent

Sessions that exceed the duration limit are ended automatically. The clean-up runs even if you close your browser.

GitHub permissions

GitHub permissions

When you connect GitHub, the Vibe Code Workflow requests the following scopes:

PermissionWhy it's needed
repoRead and write access to your repositories: clone, commit, push, and create pull requests.
read:orgList repositories available across your organizations.
write:orgManage organization-level project access.
workflowUpdate GitHub Actions workflows when a task involves CI changes.
read:userRead your GitHub profile.
user:emailAttribute commits to your email address.

You can review or revoke these permissions at any time from your GitHub application settings.

Inside a session, the agent can:

  • Clone your repository into the sandbox.
  • Read all files in the repository.
  • Create branches and edit code.
  • Commit and push changes to your repository.
  • Open draft pull requests.

It cannot:

  • Access your local machine or filesystem.
  • Create new repositories.
  • Touch repositories you haven't authorized.
Data handling

Data handling

  • Sandbox. Each session runs in an isolated, ephemeral cloud sandbox. The sandbox is deleted automatically when the session ends. No code or files remain on Mistral's infrastructure.
  • GitHub changes persist. Commits, branches, and draft PRs the agent creates stay in your repository. You manage them like any other branch or PR.
  • Model. The Vibe Code Workflow is powered by Mistral Medium 3.5.
Troubleshooting

Troubleshooting

My session looks stuck.

  • Check IntelligenceConnectors to confirm GitHub is connected.
  • Verify the repository exists and the connector has access to it.
  • If the session has run for a long time, the sandbox might have timed out. Start a new session with a more focused prompt.

Cloning is slow or fails.

Repository cloning has a generous timeout (up to 10 minutes) and is retried on failure. Very large repositories might take longer to set up. If cloning fails, the session ends with a clear error message. Try again or scope the work to a smaller repository.

The agent can't run my project.

The sandbox is a standard Linux environment. Projects that require macOS- or Windows-specific tooling, GPU access, or connections to local services do not work. Adjust your prompt to focus on parts of the codebase that don't require those dependencies.

  • Mistral Vibe: the same coding agent, running locally in your terminal.
  • Code Interpreter: run Python directly inside a Le Chat conversation for data analysis and quick scripts.
  • Connectors: manage the GitHub connection and other integrations.