A sidebar extension that adds Chat and Agent interfaces inside Visual Studio Code and routes requests to the Cortex backend (https://cortex.mindifyai.dev by default).
Features
Activity Bar view named Cortex.
First-run welcome screen that prompts users to connect the extension to the Cortex API.
Two request modes:
Chat mode (default endpoint: /api/chat)
Agent mode (default endpoint: /api/agent/ai)
Conversation history stored in-memory while VS Code is running.
Refined sidebar UI with connection metadata, richer message cards, and quick-start prompts.
Use Selection action that inserts the active editor selection into the composer as fenced context.
Use Repo action that inserts a local workspace repo map, key files, and the active file snapshot into the composer.
Browser-based sign-in flow that returns to VS Code, stores the Cortex session token in secret storage, and refreshes it automatically.
Optional local Agent mode powered by LangChain Deep Agents when mindifyCortex.anthropicApiKey is configured.
Configurable backend URL, endpoints, and request timeout.
Tip: advanced users can still set mindifyCortex.authToken or mindifyCortex.apiKey manually in settings, but the default flow is browser sign-in.
Usage notes
On first open, the extension shows a connection screen instead of the chat UI until Cortex sign-in completes.
The welcome screen opens Cortex sign-in in your browser and returns to VS Code automatically when authentication finishes.
Press Enter to send and Shift+Enter for a newline.
Use the Settings action in the sidebar to jump directly to mindifyCortex.* configuration.
Use the Connection action in the sidebar header to update the saved Cortex credential.
Use Use Selection to pull the current editor selection into the prompt before sending it to Cortex.
Use Use Repo when you want Cortex to reason about the local codebase structure without manually pasting files.
Set mindifyCortex.anthropicApiKey to run Agent mode locally through LangChain Deep Agents with workspace file access and approval prompts for file writes and edits.
Local development
Install dependencies in the extension folder.
Compile TypeScript.
Press F5 in VS Code to launch an Extension Development Host.
cd vscode-extension
npm install
npm run compile
Packaging (optional)
Use vsce:
npm i -g @vscode/vsce
cd vscode-extension
vsce package