Coding assistant and agent for VSCodium/VS Code, powered by Mistral Codestral.
Codestral Agent is a coding assistant project powered by Mistral/Codestral. It includes a static demo website and, most importantly, a VSCodium/VS Code extension with chat, conversation history, model selection, token usage, and a multi-file agent mode.
The goal is to provide an open alternative to a modern coding agent: read a project, understand a task, create or edit files, show diffs, apply changes, run validations, and fix errors after a failed run.
GitHub source:
https://github.com/AnARCHIS12/Codestral-Agent
| Path | Purpose |
|---|---|
web/ |
Static HTML/CSS demo website |
docs/ |
GitHub Pages version of the website |
codestral-vscode-extension/ |
Main VSCodium/VS Code extension |
codestral-vscode-extension/README.md |
Marketplace listing page for the extension |
codestral-vscode-extension/codestral-ai-0.1.7.vsix |
Locally installable extension package |
Main features:
- Codestral panel in the activity bar.
- Local chat with conversation history.
- Agent mode that can create, edit, and delete multiple files.
- Visible plan, diffs, controlled apply flow, and revert.
- Tests, diagnostics, and correction loop.
- Active file detection and workspace reading.
- Local project index and memory in
.codestral/. - Mistral/Codestral model selector.
- Token usage counter.
- Interface and response language settings.
- One-time privilege elevation request through the terminal when a command fails because of permissions.
For official Visual Studio Code, install from the Microsoft Marketplace:
code --install-extension CodestralAgent.codestral-aiMarketplace page:
https://marketplace.visualstudio.com/items?itemName=CodestralAgent.codestral-ai
For VSCodium and editors using Open VSX:
codium --install-extension CodestralAgent.codestral-aiIf you use the Flatpak version of VSCodium:
flatpak run com.vscodium.codium --install-extension CodestralAgent.codestral-aiIf you run this from inside the VSCodium Flatpak terminal:
flatpak-spawn --host flatpak run com.vscodium.codium --install-extension CodestralAgent.codestral-aiOpen VSX page:
https://open-vsx.org/extension/CodestralAgent/codestral-ai
From this folder:
cd /home/anar/Libre_Ai_agents/codestral-vscode-extension
npm install
npm run package:vsixThen install the .vsix file in VSCodium/VS Code:
code --install-extension /home/anar/Libre_Ai_agents/codestral-vscode-extension/codestral-ai-0.1.7.vsixFor VSCodium Flatpak:
flatpak run com.vscodium.codium --install-extension /home/anar/Libre_Ai_agents/codestral-vscode-extension/codestral-ai-0.1.7.vsixIn VSCodium:
- Open the Extensions view.
- Click the
...menu. - Choose
Install from VSIX.... - Select
codestral-ai-0.1.7.vsix. - Reload the window with
Developer: Reload Window.
Inside the extension:
- Open the Codestral icon in the left activity bar.
- Click
API. - Choose
Open Mistral ConsoleorEnter API Key. - Click
Modto select an available model.
Mistral Console:
https://console.mistral.ai/codestral
The Marketplace listing page is located at:
codestral-vscode-extension/README.md
To publish:
cd /home/anar/Libre_Ai_agents/codestral-vscode-extension
npx @vscode/vsce login CodestralAgent
npx @vscode/vsce publishYou need a Visual Studio Marketplace publisher account and an Azure DevOps token with the Marketplace: Manage permission.
The static site prepared for GitHub Pages is located in:
docs/
It contains:
docs/index.htmldocs/styles.cssdocs/assets/codestral-icon.pngdocs/downloads/codestral-ai-0.1.7.vsixdocs/.nojekyll
To enable it on GitHub:
- Go to
https://github.com/AnARCHIS12/Codestral-Agent. - Open
Settings. - Open
Pages. - Under
Build and deployment, chooseDeploy from a branch. - Select the
mainbranch. - Select the
/docsfolder. - Click
Save.
The public URL should be:
https://anarchis12.github.io/Codestral-Agent/
After pushing changes, GitHub can take a few minutes before the site appears.
Never commit a real API key to Git. Use the extension secure storage in VSCodium/VS Code.
The API key is only used to call the Mistral/Codestral API.