Files
Clément SAILLANT ccbeb68937 feat(mistral): introduce Mistral integration for safe patch generation and indexing
- Added new tools for generating and applying safe patches using Mistral.
- Implemented a local embedding index for repository files to facilitate search functionality.
- Created a schema for validating patch JSON structure.
- Developed various prompts for different agent roles (Architect, PM, QA, etc.) to guide Mistral's output.
- Established a set of scope allowlists to ensure safe application of patches.
- Included documentation for agents and systems correspondence.
- Added requirements for Mistral dependencies in requirements-mistral.txt.
2026-02-19 04:40:13 +01:00

840 B

Mistral integration pack

This template can use Mistral for:

  • Code: Codestral / Devstral
  • Specs/Docs: Mistral Small/Medium/Large
  • RAG: mistral-embed embeddings

Keys & endpoints

Set:

  • MISTRAL_API_KEY (required)
  • MISTRAL_API_BASE (optional)

Some setups use a different base URL for Codestral. See docs/CONTINUE_SETUP.md.

  • PM/Doc: mistral-small-latest or mistral-medium-latest
  • Architect: mistral-large-latest
  • Firmware/Implementation: codestral-latest
  • QA (tests/refactors): devstral-* or codestral-latest

Safe-output approach (critical)

This pack uses JSON-mode structured patches:

  1. generate SafePatch JSON (no repo writes)
  2. validate schema + scope allowlists
  3. apply patch (writes files only; never runs commands)

See docs/MISTRAL_AGENTIC.md.