Grafy News
Try Grafy free

Mistral launches Vibe, a coding agent for large codebases

Mistral has renamed Le Chat to Vibe, a coding agent for long-horizon work in large codebases. See how its example session patched an SSRF flaw.

Illustration for the news story: Mistral launches Vibe, a coding agent for large codebasesSource: Hacker News — front page

Mistral has turned Le Chat into Vibe, a coding agent presented for large, complex codebases and long-running tasks, according to Mistral's product page. The example Mistral uses to demonstrate Vibe matters beyond the branding because it shows an agent moving from explaining a security flaw to editing code, running tests and opening a pull request. That workflow, rather than a single chat answer, is the product claim readers should test against their own repositories.

What is Mistral Vibe?

According to Mistral, Vibe was formerly Le Chat and is now positioned as an AI chat and coding agent. Mistral describes it as an agent for long-horizon tasks that is fluent in a user's knowledge and tools, and its headline targets what it calls chonky codebases. The page presents Mistral Large 4 in the product interface and lists Terminal, Web, iOS, Android, VS Code and Slack among the places Vibe is available. It also lists downloads for macOS, iOS and Android, with Windows and Linux marked as coming soon. The pitch is brief-driven: describe the outcome in one conversation, and Vibe is presented as handling drafting, code, tests and deployment.

How does the example session work?

Mistral's demonstration starts with a document-preview service running on EC2 that fetches user-supplied URLs to render thumbnails. A red team report says attackers used that fetcher to obtain the service's IAM role credentials, and the user asks Vibe for the likely attack chain, how to confirm it in logs and what to fix first. In the example, Vibe searches the web for current AWS guidance on IMDSv2, SSRF prevention and MITRE ATT&CK technique T1552.005 before answering.

The answer Mistral shows lays out four steps: entry through the preview fetcher, bypass of the egress allowlist, reading of the instance role credentials, and use of those credentials from outside the VPC. The allowlist failed, in this account, because metadata traffic to 169.254.169.254 is link-local and does not cross the network interface, and because DNS rebinding can change a hostname's answer between check time and fetch time. If IMDSv1 remained allowed, a single unauthenticated request to the metadata path for the role name would return the access key, secret key and session token, according to the example.

To confirm the incident, the example points to CloudTrail records for sessions assumed through the preview role from outside the VPC, and to preview-service logs for fetches that connected to an address in 169.254.0.0/16. Its fix order puts IMDSv2 enforcement with a hop limit of 1 first, followed by invalidating and rotating the exposed sessions, patching the fetcher, and shrinking the IAM role.

What fix did Vibe produce in the example?

The user then asks Vibe to fix the service in the repository under services/preview, block metadata and internal networks including through redirects, add regression tests, run the suite and open a pull request referencing SEC-1042. According to the example, Vibe took seven actions, beginning with a search for outbound HTTP calls in that service. It found one main fetch path in services/preview/src/fetcher.ts plus two call sites, and confirmed the original code followed redirects without hostname or IP checks.

The new code adds a check that resolves each hostname and rejects loopback, RFC 1918, link-local and IPv6 equivalent ranges before connecting. Redirects are handled manually, with every hop revalidated, and the connection is pinned to the validated IP address so a rebinding DNS answer cannot swap the target between validation and connection.

The example says Vibe wrote eight regression tests covering a direct metadata request, localhost, private ranges, IPv6, redirects into link-local and private addresses, a double-resolution rebinding attempt and an allowed public URL. It reports 61 tests passing with a clean typecheck after running the suite in services/preview. The resulting pull request, #481 on branch fix/ssrf-metadata-protection, is shown as three files changed with 104 insertions and 12 deletions.

The pull request description in the example also separates what the code change does from wider remediation. IMDSv2 enforcement across the fleet is tracked separately as SEC-1043, and scoping down the preview IAM role is tracked as SEC-1044.

What should developers take from this example?

For developers, the useful test is not whether an agent can explain SSRF in isolation, but whether it can keep context across search, repository inspection, editing, testing and pull-request creation. It also shows a limit worth copying: the agent is shown fixing the service-side path, while fleet-wide IMDSv2 enforcement and role scoping are left as separate security tickets. Teams considering a similar tool should therefore ask for the same evidence trail — files changed, tests run, failures blocked and follow-ups named — before treating an automated patch as complete.

How can readers try a similar workflow in Grafy?

Readers who want to rehearse the same pattern can use Grafy Code, Grafy's AI coding studio, to work in a repository-style task: inspect a fetcher, propose a patch, add tests and review the diff before applying anything in production. The Grafy coding studio guide describes a studio that installs packages and runs code, which fits the test-and-verify part of Mistral's example. Grafy Chat can compare model explanations side by side, but a code change should be tested and reviewed in a coding environment.

Frequently asked questions

What was Mistral Vibe formerly called?

According to Mistral, Vibe was formerly Le Chat. Mistral now presents Vibe as an AI chat and coding agent for long-horizon tasks and large codebases, available through surfaces including Terminal, Web, VS Code and Slack. Its product page also lists downloads for macOS, iOS and Android, with Windows and Linux marked as coming soon.

What did the example Vibe session fix?

In Mistral's example, Vibe patched a document-preview fetcher that followed redirects without checking resolved IP addresses, allowing an SSRF path to cloud metadata. The fix resolves and validates each hostname, rejects loopback, private, link-local and IPv6 equivalent ranges, revalidates every redirect hop and pins the connection to the validated IP.

How was the example fix tested?

Mistral shows Vibe writing eight regression tests for direct metadata access, localhost, private ranges, IPv6, redirects into internal networks, DNS rebinding and an allowed public URL. The example reports 61 tests passing and a clean typecheck in services/preview, followed by pull request 481 with three files changed.


Source: Hacker News — front page — Mistral Vibe: The coding agent for chonky codebases