Codor AI — Autonomous Coding Agent for VS Code
An autonomous software engineering agent and architect directly inside Visual Studio Code.
Key Features •
Architecture •
Tools & Safety •
Configuration •
Shortcuts •
License
⚡ Key Features
- Sub-Second Intent Routing: Fast classification engine for quick responses to casual questions and codebase Q&A.
- Autonomous Engineering Engine: Multi-phase agent pipeline for strategic planning, code generation, and automated self-verification.
- Codebase Exploration: Safe, non-mutating exploration tools (
list_files, read_file, search_codebase) for semantic search.
- Context Compaction: Condenses preceding turns into structured summaries to preserve context tokens while keeping chat history visible.
- Multi-Tab Sessions: Open and switch between concurrent chat sessions seamlessly.
- Human-in-the-Loop (HITL): Choose between Autopilot Mode or Manual Approval for file mutations and shell commands.
- Native Visual Diffs: Side-by-side diff reviews using VS Code's native diff editor.
- Environment-Aware Commands: Run build scripts, tests, and linters using the reported host shell, with command deadlines and process polling.
🏗️ Architecture
The architecture consists of a VS Code Client Extension (Webview Sidebar Panel and Extension Host) communicating securely via WebSocket with the Codor Cloud Engine, which handles intent routing, autonomous engineering, and context management.
| Tool |
Capability |
Safety & Safeguards |
read_file |
Read workspace files |
Path containment, credential file blocklist |
write_file |
Create or update files |
Native diff review, manual approval gate |
delete_file |
Remove files |
Pre-deletion snapshot, confirmation prompt |
list_files |
Search workspace directory |
.gitignore-respecting, depth limits |
search_codebase |
Semantic vector search |
Privacy filtering |
run_terminal |
Run tests and scripts |
Dangerous command blocks |
get_environment |
Inspect execution host, shell, executable paths and project manifests |
Reports selected metadata, not environment variable contents |
git_inspect |
Read status, staged/unstaged diff, paged commit ranges, blame and branches |
Argument-based Git invocation; no mutation actions |
wait_terminal |
Await an existing command and read unread output |
Conversation-scoped process IDs, bounded output |
stop_terminal |
Stop a running command |
Stops only commands owned by the conversation |
web_search |
Search online documentation |
Security sandboxing |
Commands run on the extension host (including Remote SSH, WSL or containers), using PowerShell on Windows and the host's shell on Unix. Each command starts a fresh shell; cwd selects a workspace-relative subdirectory. The default deadline is two minutes, configurable per call up to one hour. A running command returns a process ID for polling rather than requiring a second execution. Output is bounded and explicitly marked when truncated. Terminal execution uses the host user's permissions; it is not an operating-system sandbox.
The extension advertises additional tool capabilities to the API. Older clients retain the original tools, and older servers receive completion-only command results. Git context includes the branch and working-tree status; staged changes are inspected separately. Git inspection also works before the first commit. Repository writes, commits and pushes remain explicit agent/user operations, not automatic behavior of the inspection tools.
git_inspect is a convenience for common read operations, not a restriction on repository analysis. Use run_terminal for other Git queries such as log -S/-G, line-scoped blame or branch comparisons. A multiline command runs as a single script with shared variables; a commands array starts separate shells and reports entries that have not started yet. Write code and reports through the file tools. Local Git tools require an accessible repository; GitHub API features and remote authentication are separate integrations.
The API retains complete returned tool observations in checkpoint history while projecting bounded tool text into subsequent model requests. Long history, diffs or test output are marked when shortened, so the agent can request a narrower observation. Shell warnings on stderr do not by themselves imply failure when the tool explicitly reports exit code zero.
The composer model menu offers Codor Fast, Balanced (default for new installs) and Deep presets, or a specific approved main model. Choosing a model keeps Codor's context, tools and execution controls. Reasoning depth and permission to switch models after a failure live inside that menu; fallback is off by default for custom choices. Selecting a preset resets custom main/worker choices.
Sub-Agents mode reveals a separate Workers picker. Managed workers use Gemini 3.8 Flash; custom workers can use Flash or Neon. They perform scoped read-only inspections, with the main agent combining results. Normal mode hides and omits the worker choice. Usage is charged for the actual models used. Custom selection requires a backend advertising model_selection_version=1; older servers can still use presets. Paused executions resume with their checkpointed selection and reasoning depth.
⚙️ Configuration
Configure preferences via VS Code Settings (Ctrl+, $\rightarrow$ search codor):
| Setting |
Type |
Default |
Description |
codor.serverUrl |
string |
https://api.codor.dev |
Codor API & WebSocket server endpoint |
codor.customInstructions |
string |
"" |
Persistent system instructions |
codor.autoApproveReadOnlyTools |
boolean |
true |
Automatically approve safe read operations |
codor.includeGitDiff |
boolean |
true |
Include uncommitted git diff status in context |
codor.textDirection |
string |
"auto" |
Text layout direction (auto, rtl, ltr) |
⌨️ Keyboard Shortcuts
| Shortcut (Win / Linux) |
Shortcut (macOS) |
Command |
Ctrl+Alt+C |
Cmd+Alt+C |
Open / Focus Codor AI Chat |
Ctrl+Alt+N |
Cmd+Alt+N |
Start a New Chat Session |
Ctrl+Alt+A |
Cmd+Alt+A |
Attach Selected Code to Chat |
Ctrl+Alt+K |
Cmd+Alt+K |
Compact / Summarize Conversation |
🔒 Security & Privacy
- Local Execution: File modifications and terminal commands execute on the extension host with path checks and command guardrails.
- Secret Sanitization: Automated redaction of JWTs, API keys, and private keys.
- Blocked Sensitive Paths: Access to
.env*, *.pem, *.key, and SSH keys is prevented.
📄 License
This extension is licensed under the Apache License, Version 2.0.
Browser control with Playwright
Open the globe button in Codor Chat, install the official Playwright Chrome
extension, allow sharing page text and screenshots, then choose Connect browser.
On first use, Chrome asks which tabs to share. Ask Codor to inspect a page or work
through a browser task. Navigation, clicks and typing require approval; Stop
disconnects the session. Screenshots reach the model as images, not encoded text.
The editor needs Node.js 20+ and npm. First connection downloads the pinned
@playwright/mcp@0.0.86 runtime from npm. The Codor backend must advertise browser
image support; an older backend keeps this connection disabled. Use a separate
conversation for browser work: it cannot access local files, terminals or unrelated
MCP services.
This uses Microsoft's Playwright MCP
and official extension.
Playwright is not a security sandbox. Codor exposes a limited tool list; arbitrary
browser scripts, cookie/storage APIs, uploads and caller-selected file paths are
not exposed by the built-in adapter. Chrome's own permission dialog still applies.
Contributing
See Contributing and UI development.