Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>Cortex AgentNew to Visual Studio Code? Get it now.
Cortex Agent

Cortex Agent

cortex-labs

| (0) | Free
Cursor-like OpenCode IDE layer with local codebase context.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Cortex Agent

Documentation: daniquir.github.io/cortex

VS Code extension that sits on top of OpenCode and adds a local codebase context layer — the piece that makes Cursor/Windsurf feel sharp.

OpenCode = agent runtime · Cortex = retrieval + IDE UX

Installation

VS Code Marketplace

Install from the Marketplace or run:

code --install-extension cortex-labs.cortex-agent

Or search Cortex Agent in the Extensions panel.

Open VSX (Cursor / Windsurf / VSCodium / forks)

Open VSX — cortex-labs.cortex-agent

ovsx install cortex-labs.cortex-agent

Requirements

  • VS Code 1.100+ (or a compatible fork)
  • OpenCode CLI on your PATH (or set cortex.opencodeBinary)
  • A configured OpenCode provider (opencode auth login / /connect)

Features

  • Sidebar chat with streaming replies via OpenCode
  • Local workspace indexing with smart retrieval (lexical + optional embeddings)
  • Context preview before the agent runs
  • Session history, undo turn, and per-file Keep / Undo / Review diffs
  • Permission and question approval UI
  • Ghost-text autocomplete and Inline Edit
  • @-mentions and /slash commands

Full docs: Installation · Configuration · Architecture

Beta

Early-access builds expire after a limited period (typically ~30 days from release). Near the end you get a warning; after expiration the extension asks you to update from the Marketplace or Open VSX.

Settings

Setting Default Meaning
cortex.opencodeBinary opencode Path to the OpenCode CLI
cortex.opencodePort 4096 Port for opencode serve
cortex.context.topK 8 Chunks injected per prompt
cortex.context.maxChars 12000 Context budget
cortex.context.embeddings hash hash (offline) or minilm
cortex.context.chunkMode symbols symbols or lines
cortex.agent build OpenCode agent for chat
cortex.autocomplete.enabled true Ghost-text autocomplete
cortex.autocomplete.debounceMs 350 Pause before a suggestion

See the configuration docs for the full list.

Support

  • Docs: daniquir.github.io/cortex
  • Issues: github.com/daniquir/cortex/issues

License

Cortex Agent is proprietary software. Source code is not open source and is not licensed for public redistribution. Use of the packaged extension is subject to the terms of the VS Code Marketplace / Open VSX listing and the LICENSE file.

OpenCode is a separate project under its own license. Cortex Agent is an independent product.

  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2026 Microsoft