Skip to content
| Marketplace
Sign in
Visual Studio Code>AI>RegentNew to Visual Studio Code? Get it now.
Regent

Regent

Innocito

|
53 installs
| (7) | Free
Code with confidence. Plan, edit, and execute with project-aware AI that prioritizes accuracy over guesswork, using your own API key.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Regent: AI Coding Agent for VS Code

Version VS Code License

Regent is an autonomous, project-aware AI coding agent built directly into the Visual Studio Code sidebar. Regent inspects your codebase, formulates verifiable plans, coordinates multi-file edits, runs build and test commands, and gives build errors back to the AI to fix—and it shows you what it did and what it cost.

Bring your own API key: InnoGateway, Anthropic Claude, OpenAI, Google Gemini, or any local/hosted OpenAI-compatible endpoint.

Regent in Plan mode: structured proposal with file change breakdown and risk assessment Regent in Act mode: multi-file edits, test execution, automated build checks, and token cost tracking

Left: Plan mode creates a verifiable blueprint before modifying code. Right: Act mode autonomously applies edits, runs tests, checks the build, and tracks cost.


Table of Contents

  • Why Regent?
  • Prerequisites & System Requirements
  • Installation Guide
  • Quick Start & Setup
  • Project Knowledge (OKF) & Code Graph
  • Operating Modes: Plan & Act
  • Key Features & Capabilities
  • Safety & Guardrails
  • Supported Providers & Models
  • Cost & Context Window Management
  • Command Reference
  • Configuration Settings
  • Security, Privacy & Data Handling
  • Known Limitations
  • License & Support

Why Regent?

Regent acts as a pair programmer directly in your editor. What sets it apart is its emphasis on accuracy, safety, and project awareness:

  • Dual-Mode Workflow (Plan & Act): Look before it changes anything. Inspect and plan in Plan mode, then switch to Act mode for autonomous multi-file execution.
  • Automated Build & Fix Loop: Regent automatically compiles your project (TypeScript/npm, Go, Maven, Gradle, Python) after applying edits and feeds any errors back to the model for up to two automated correction passes.
  • Deep Codebase Graph (OKF & Code Graph): Resolves symbol definitions, references, and call hierarchies across your entire project using an on-demand Code Graph and Open Knowledge Framework (OKF) bundle.
  • Workspace Guards: File tools stay inside your workspace folder (links and junctions included), and commands that change directory out of it are refused. Git commands that throw away uncommitted work ask first. These guards stop the careless case; they are not a sandbox.
  • Secrets Masking: Secret files (.env, private keys and similar) are not read or attached, and known API keys and tokens are masked in what the AI sees and in the saved logs. Masking recognises common formats; an unusual secret can slip through.
  • Attach Files with @: Type @ or @file: in the chat box to attach project files. Secret files are not attached.

Prerequisites & System Requirements

Before installing Regent, ensure your environment meets the following requirements:

  • Editor: Visual Studio Code 1.90.0 or higher.
  • Workspace: A local project folder opened in a Trusted Workspace (Regent writes files and executes local terminal commands). Regent does not run in Restricted Mode or in virtual workspaces.
  • Operating System: Most testing so far has been on Windows.
  • AI Provider & API Key: An active API key with token balance for InnoGateway, Anthropic Claude, OpenAI, Google Gemini, or a local OpenAI-compatible endpoint.
  • Open Knowledge Framework (OKF) Requirements:
    • Local Write Permissions: Regent creates and maintains project index files in .regent/okf-bundle/ and .codegraph/.
    • Git Initialized (Recommended): Git in the project enables OKF to track commit hashes (log.md) and automatically detect when the knowledge bundle is stale.
    • Token Allowance for Background Indexing: The OKF generator runs asynchronously using a cheaper model of your provider to index your code without blocking your chat. Its cost is part of the chat's cost.

Installation Guide

You can install Regent in VS Code using any of the following methods:

Method 1: Via the VS Code Marketplace (Recommended)

  1. Open Visual Studio Code.
  2. Open the Extensions view by clicking the Extensions icon in the Activity Bar or pressing:
    • Windows / Linux: Ctrl + Shift + X
    • macOS: Cmd + Shift + X
  3. In the search bar, type "Regent" (Publisher: Innocito).
  4. Click Install.

Alternative: Open Quick Open (Ctrl + P / Cmd + P), paste the following command, and press Enter:

ext install Innocito.regent

Method 2: Via the Terminal (VS Code CLI)

Run the following command in your terminal to install the extension directly:

code --install-extension Innocito.regent

Method 3: Manual VSIX Installation (Offline / Enterprise)

  1. Download the latest regent-<version>.vsix package release.
  2. Open VS Code and open the Extensions view (Ctrl + Shift + X / Cmd + Shift + X).
  3. Click the three dots (...) in the top-right corner of the Extensions panel.
  4. Select Install from VSIX... and select the downloaded .vsix file.

Or install via terminal:

code --install-extension path/to/regent-<version>.vsix

Quick Start & Setup

Once installed, get up and running in four simple steps:

1. Open a Project Folder

Open any workspace folder in VS Code (File > Open Folder...). Ensure the workspace is marked as Trusted.

2. Configure Your API Key

  1. Click the Regent icon in the VS Code Activity Bar (sidebar).
  2. On initial launch, review and accept the terms of use.
  3. In the Settings view, select your AI provider (e.g., InnoGateway, Anthropic, OpenAI, Gemini, or OpenAI-compatible) and paste your API key.

    Tip: You can also configure keys at any time by pressing Ctrl + Shift + P (or Cmd + Shift + P) and selecting Regent: Set API Key.

3. Initialize Project Knowledge (OKF & Code Graph)

When you open a project for the first time, Regent prompts:

"Regent can build a knowledge bundle for this project. (Recommended)"

  • Click Yes to generate the Open Knowledge Framework (OKF) bundle and Code Graph index.
  • The build runs seamlessly in the background on a lightweight, cost-effective model without blocking your chat ("Knowledge Bundle is being created in the background. You can keep chatting.").
  • Regent automatically adds .regent/ and .codegraph/ to your project's .gitignore.

4. Start Collaborating

Open the Regent Chat tab, select your preferred mode (Plan or Act), and describe your task:

"Review the authentication middleware in @file:src/auth.ts and add rate limiting for failed login attempts."


Project Knowledge (OKF) & Code Graph

Regent uses a dual-engine indexing system to navigate codebases accurately:

1. Open Knowledge Framework (OKF) Bundle

  • What it is: A curated, modular knowledge representation stored in .regent/okf-bundle/. It includes an architectural index.md, topic concept breakdowns, and a log.md change log.
  • Automated & On-Demand: Regent automatically builds or refreshes the bundle when your project changes (regent.okf.autoBuild: true). It also supports on-demand concept investigations (regent.agent.okfOnDemand: true) when tasks encounter new modules.
  • Cost Efficient: The OKF generator runs on a cheaper model of your provider (customizable via regent.okf.model). Its cost is part of the chat's cost.
  • Git Staleness Tracking: Associates the knowledge bundle with your latest git commit, ensuring the AI recognizes when code modifications make documentation outdated.

2. Code Graph Index

  • Semantic Call Graphs: Traces function callers, implementations, and dependencies directly from source ASTs stored in .codegraph/.
  • Impact Analysis: Allows the AI to query "Who calls this function?" and "What will break if this signature changes?" before modifying files.

Re-indexing Tip: If you skipped knowledge creation earlier or want a fresh index, open the Command Palette (Ctrl + Shift + P / Cmd + Shift + P) and run Regent: Ask Again About the Knowledge Bundle.


Operating Modes: Plan & Act

Regent features an intuitive Plan | Act mode selector at the base of the input bar:

Feature Plan Mode Act Mode
Primary Goal Architect, analyze, and scope safely Autonomous execution and verification
File Modifications Read-only. No files are written or deleted Creates, edits, or deletes files across workspace
Terminal Execution Disabled. No shell commands are run Runs tests, linters, compilers, and tools
Deliverable Structured blueprint: goal, affected files, testable steps, and risk evaluation Applied multi-file diffs, command outputs, and build check results
Best Used For Large refactors, design reviews, unfamiliar code, and risk-sensitive changes Feature implementation, bug fixes, test creation, and boilerplate generation

Workflow Tip: Begin in Plan Mode to review proposed changes. When you are satisfied with the strategy, click Approve and continue on the plan card to immediately transition to Act Mode and execute.


Key Features & Capabilities

1. Deep Codebase Intelligence

  • Symbol & Call-Hierarchy Resolution: Understands function definitions, callers, and dependencies before modifying code.
  • Knowledge Bundle (.regent/): Generates an on-demand, indexed architectural overview of your codebase to answer structural questions without scanning every file on every turn.

2. Automated Build & Compilation Verification

  • Continuous Build Checks: After editing project files, Regent triggers your compiler or test suite (npm/TypeScript, Go, Maven, Gradle, Python).
  • Self-Healing Error Correction: If compilation fails, Regent captures compiler diagnostics and feeds the stack trace back to the model for up to two automatic repair attempts before completing the task.

3. File Attachments

  • Inline Mentions (@file:): Type @ or @file: in the chat box, or click the @ button, to search and attach project files. Secret files are not attached.
  • Web Pages: Regent asks before it reads the first page of each new site. Web search is off until you set it up.

4. Interactive Human-in-the-Loop Control

  • Clarification Form Prompts: Instead of guessing on ambiguous instructions, Regent presents interactive multiple-choice forms to confirm intent.
  • Task Stop & Resume: Halt running tasks or long-running commands anytime via the Stop button or Regent: Stop Current Task. Easily resume an interrupted task from its last completed turn.
  • Mid-Chat Model Switching: Change providers or model tiers in Settings mid-task without discarding conversation context.
  • Multi-Project Session History: Access and review past sessions across any workspace from the History tab.

Safety & Guardrails

Regent works in your project with your permissions, so it has guards. They stop the careless case; they are not a sandbox. Changes are written straight to disk with no undo, so keep your work in Git.

  • Workspace Containment: File tools are strictly bound to the workspace root. Symlinks, junctions, or commands attempting directory traversal (../) outside the repository are blocked.
  • Destructive Command Guard: Commands that discard uncommitted progress (e.g., git reset --hard, git checkout -- <file>, git clean -f) prompt for user confirmation before executing. System-wide deletions (rm -rf /) are refused outright.
  • Secret Protection & Masking: Secret files (.env, private keys, certificates, credentials) cannot be read or attached. Known API keys and credentials are automatically masked from model prompts and local logs.
  • Unsaved Buffer Protection: Refuses to overwrite files that have unsaved changes in an open editor tab, prompting you to save first.
  • Web Domain Authorization: When web search or URL reading is enabled, Regent asks before opening the first page from any new external website.

Supported Providers & Models

Regent works seamlessly with major AI providers via Bring Your Own Key (BYOK):

Provider What you need
InnoGateway (Default) Your InnoGateway API key
Anthropic Claude An Anthropic API key
OpenAI An OpenAI API key
Google Gemini A Gemini API key
OpenAI Compatible The full address of the server's chat completions endpoint, the model name, and a key

The Settings screen lists a few models for each provider; the regent.model.name setting accepts any model id the provider offers. Regent depends on the model calling tools: a server or model that cannot do that reliably will not work well.


Cost & Context Window Management

  • Live Cost Tracking: Shows running cost estimates based on real list prices per million tokens directly below the input bar and on the VS Code status bar.
  • Proactive Context Protection: Monitors context usage against an 80% ceiling (regent.agent.contextStopThreshold) to prevent unexpected provider cutoffs.
  • Conversation Condensation: Automatically condenses completed tool executions into compact summaries on subsequent turns, saving thousands of tokens across long multi-turn sessions.
  • Estimates, not bills: The cost is an estimate from list prices. It shows "no price" for a model Regent has no price for, and an OpenAI-compatible server has no price.

Command Reference

Open the Command Palette (Ctrl + Shift + P / Cmd + Shift + P) and type Regent to access:

Command Description
Regent: Open Chat Opens or focuses the Regent sidebar chat panel.
Regent: New Session Starts a fresh chat session in the active workspace.
Regent: Stop Current Task Halts the active task generation and running sub-commands.
Regent: Set API Key Prompts for and validates an API key for any supported provider.
Regent: Set Web Search Key Configures Tavily or Brave Search credentials for web browsing.
Regent: Clear Web Search Key Removes the saved web search key.
Regent: Ask Again About the Knowledge Bundle Resets previous decline choice and prompts to re-index the OKF Knowledge Bundle and Code Graph.
Regent: Show Session Log Opens the JSONL execution log for the current chat session.
Regent: Show Output Displays Regent's extension host diagnostic channel.

Configuration Settings

Customize Regent via Settings (Ctrl + ,) > Extensions > Regent:

Setting Default Description
regent.model.provider "gateway" Active AI provider (gateway, claude, openai, gemini, openai-compatible).
regent.model.name "" Model ID override. Leave empty to use the provider default.
regent.model.openaiCompatibleEndpoint "" Address of an OpenAI-compatible server. Only your own user settings can set it.
regent.agent.planFirst false When true, new chats default to Plan mode instead of Act mode.
regent.agent.maxTurns 200 Maximum agentic reasoning turns allowed per task.
regent.agent.runCommandTimeoutMs 60000 Execution timeout (in ms) for commands executed by Regent.
regent.agent.buildCheck.enabled true Automatically run build/type checks after file modifications.
regent.agent.contextStopThreshold 0.8 Fraction of model context window at which Regent safely seals the chat.
regent.okf.autoBuild true Automatically build and refresh the project OKF Knowledge Bundle in background.
regent.okf.model "" Model used for background OKF builds (empty uses provider's cheapest model).
regent.agent.okfOnDemand true Enables on-demand concept investigations for topics not yet in the bundle.
regent.agent.webAccess true Allow Regent to fetch public documentation and web resources.
regent.agent.webSearchProvider "off" brave or tavily, after Regent: Set Web Search Key. Search words leave your computer.
regent.attachments.images.enabled true Allow pictures in a prompt (the picture button). A picture goes to your provider. Only your own user settings can set it.

All Regent settings are listed under Settings, "Regent". A change to the provider or model applies from your next message; most others apply from the next task.


Security, Privacy & Data Handling

  • Your AI provider. Your prompts and the project files the AI reads are sent to the provider you choose, using your own API key. The provider's terms apply too.
  • Your API key. It is kept in VS Code's secret storage.
  • Terms and conditions. The first time you use Regent, a pop-up shows the terms and you accept them. A new version of the terms asks again. You can read them any time in Settings, About.

Known Limitations

  • Changes are written directly to your files with no approval step and no undo. Use Git.
  • Replies appear step by step, not word by word.
  • One task at a time. If several folders are open, Regent uses the first.
  • A chat closes when it reaches the stop threshold of the model's window; start a new chat. Regent does not summarise a chat to continue it.
  • A plan is kept whole in the conversation and sent with every later request, which costs tokens.
  • The build check only knows the project types listed above.
  • Command and secret guards cannot understand everything a script does. They are a safety net, not a boundary.

License & Support

Regent is proprietary software developed by Innocito.

  • License: See the LICENSE file for terms and conditions.
  • Development & Contribution: Refer to DEVELOPMENT.md for build, testing, and architecture guidelines.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
  • Your Privacy Choices
  • Consumer Health Privacy
© 2026 Microsoft