Codor AI — Autonomous Coding Agent & Codebase Guide for VS Code
Ship changes fast without losing your mental model of the codebase — with conceptual Oversight reviews, read-only Explorer walkthroughs, multi-file diffs, and native tools directly inside Visual Studio Code.
Key Features •
Oversight & Explorer •
Tools & Safety •
Slash & Models •
Configuration •
Changelog •
License
⚡ Key Features
- Oversight Mode (Conceptual Multi-File Review & Smart Gating): Stay in full architectural control while the agent works. Cohesive multi-file edits are grouped into one Oversight Review card with a conceptual flow overview, design rationale (why and before → after), contract/edge-case warnings, and clickable VS Code LSP / import affected-file chips. Hybrid importance scoring lets low-impact edits auto-apply with an undoable receipt while pausing on meaningful or sensitive changes — with inline Revise / Ask steering and zero terminal interruptions.
- Explorer Mode (
/explore — Interactive Codebase Walkthrough): Build real understanding of unfamiliar or legacy repositories step by step in a strictly read-only mode. Codor maps manifests, entrypoints, modules, and cross-file import hubs locally (inspect_codebase_map), highlights exact line ranges directly in VS Code, and lets you step through with Got it, Next, Go Deeper, Ask Question, and Continue Tour.
- Surgical Editing & Pre-Finalize Diagnostics: Targeted
edit_file replacements, native codor-diff:// side-by-side previews, rolling turn-based checkpoints, and silent pre-finalize IDE diagnostic checks (get_diagnostics).
- Model Presets, Custom Pickers & Sub-Agents: Switch between Fast, Balanced, and Deep presets or select approved main and worker models with a native Low/Medium/High thinking slider. Sub-Agents mode runs bounded read-only parallel inspections while the main agent synthesizes and edits.
- Built-In Playwright Browser Control & Native MCP: Connect official Playwright Chrome tab sharing with inline screenshots and per-action approvals, or attach local stdio and Streamable HTTP MCP servers with encrypted secret storage.
- Resilient Execution & Context Compaction: In-flight turns survive transient disconnects and resume from server checkpoints without replaying paid requests; automatic and manual compaction keeps long conversations lean.
- Multilingual RTL / LTR & Multi-Tab Sessions: Run concurrent chat tabs with smart bidirectional Persian/Arabic/English rendering and isolated LTR code blocks.
🧭 Oversight & Explorer Modes
Oversight Mode (Approval: Oversight)
Choose Oversight in the composer approval picker (alongside Autopilot and Manual HITL) when you want AI velocity without approval fatigue:
- Conceptual Briefs, Not Restated Filenames: Each proposed change explains the design decision, behavioral delta, and subtle contract or edge-case risks in your language.
- Real Impact Analysis via IDE LSP: Before writing to disk, the extension queries VS Code's language server (with a bounded import-scan fallback) to list the actual workspace callers affected by the edit — click any chip to jump directly to that line.
- Multi-File Batch Review: Related changes (e.g. DTO + service + router) arrive in one unified card with a shared conceptual flow overview, per-file checkboxes (
Apply Selected), individual Diff previews, and unified Revise / Ask feedback.
- Hybrid Importance Auto-Apply: Combines real blast radius, change kind/size, path sensitivity (
auth, billing, schema, router vs. tests, docs, css), and 3-tier model risk. Under the default balanced threshold (codor.oversightThreshold), trivial edits auto-apply with a non-blocking Auto-applied receipt (Review / Undo) while medium/high-impact changes pause for your confirmation.
- Code-Only Focus: Routine terminal checks (
pytest, npm test, builds) run automatically without interrupting your review flow.
Explorer Mode (Mode: Explorer or /explore)
Start a guided walkthrough by choosing Explorer in the mode menu or typing /explore (or /explore auth flow):
- Strictly Read-Only: File mutations and shell commands are physically excluded from the agent's toolset in Explorer mode.
- Deterministic Local Mapping:
inspect_codebase_map identifies manifests, entrypoints, orchestrators, and import hubs locally before reading code on demand.
- Live Editor Highlights: Each tour stop opens the target file and highlights the exact line range in VS Code while showing conceptual explanations, key takeaways, and connected files.
- Interactive Pacing: Click Got it, Next →, Go Deeper, Ask Question (gets a full Markdown answer in chat with a one-click Continue Tour button), or End Tour.
💬 Slash Commands & Models
Type / in the composer to access built-in commands:
/explore [topic] — Start a read-only guided walkthrough of the codebase or a specific module/flow
/grill — Challenge assumptions, uncover edge cases, and clarify requirements before coding
/spec — Draft an implementation specification before writing code
/skills — Select a project SKILL.md instruction file for the current task
/mcp — Manage connected MCP servers and browser sharing
/compact — Summarize prior conversation turns once context reaches 8,000 tokens
The composer model menu offers Fast, Balanced (default), and Deep presets, or direct selection of approved main models with a three-step Low/Medium/High thinking slider and explicit fallback consent. Sub-Agents mode reveals a separate Workers picker for scoped read-only parallel inspections.
| Tool |
Capability |
Safety & Safeguards |
read_file |
Read workspace files with optional line ranges |
Path containment, credential file blocklist |
edit_file |
Surgical find-and-replace or line-range edits |
Stale-read guard, native diff review, Oversight / HITL gate |
write_file |
Create or update workspace files |
Native diff review, rolling checkpoints, Oversight / HITL gate |
delete_file |
Remove workspace files |
Pre-deletion snapshot, always pauses in Oversight & Manual HITL |
list_files / grep_search |
Workspace file and text/regex search |
.gitignore-respecting, sensitive path exclusion |
search_codebase |
Semantic codebase search |
Scoped workspace ownership & privacy filtering |
inspect_codebase_map |
Deterministic repo map, entrypoints & import hubs |
Read-only, .gitignore-aware, bounded local scan |
present_tour_step |
Highlight code range in VS Code & guide step-by-step |
Read-only, workspace-confined, blocks sensitive files |
get_diagnostics |
Read VS Code errors/warnings on edited files |
Silent pre-finalize verification, read-only |
git_inspect |
Status, staged/unstaged diff, paged log, blame & branches |
Argument-based Git invocation; read-only |
get_environment |
Host OS, shell, executable paths & manifests |
Selected metadata only; never reads env var secrets |
run_terminal / wait_terminal / stop_terminal |
Run, poll, and stop commands in host shell |
Dangerous command blocks, file-write redirection blocks, deadlines |
web_search / fetch_url |
Search documentation and web references |
Untrusted-output isolation |
Commands run on the extension host (including Remote SSH, WSL, or containers), using PowerShell on Windows and the host shell on Unix. Running commands return a conversation-scoped process ID for polling without re-execution.
🌐 Browser Control with Playwright
Open the globe button in Codor Chat, install the official Playwright Chrome extension, approve sharing page text and screenshots, and choose Connect Chrome. On first use, Chrome asks which tabs to share. Navigation, clicks, and typing require explicit per-action approval; Stop disconnects the session. Screenshots reach the model as validated image blocks and render inline in chat with a click-to-enlarge viewer.
Requires Node.js 20+ and npm (first connection launches pinned @playwright/mcp@0.0.86). Browser tasks run in an isolated conversation that cannot access local files, terminals, or unrelated MCP services.
⚙️ Configuration
Configure preferences via VS Code Settings (Ctrl+, → search codor):
| Setting |
Type |
Default |
Description |
codor.serverUrl |
string |
https://api.codor.dev |
Codor API & WebSocket server endpoint |
codor.oversightThreshold |
string |
"balanced" |
Pause sensitivity in Oversight Mode (balanced, strict, high-only) |
codor.oversightAutoOpenDiff |
boolean |
true |
Auto-open side-by-side preview diff when an Oversight review pauses |
codor.reasoningVisibility |
string |
"collapsed" |
Reasoning block display (collapsed, expanded, hidden) |
codor.textDirection |
string |
"auto" |
Text layout direction (auto, rtl, ltr) |
codor.customInstructions |
string |
"" |
Persistent developer guidelines injected into prompts |
codor.autoApproveReadOnlyTools |
boolean |
true |
Automatically allow safe read-only operations |
codor.includeGitDiff |
boolean |
true |
Include uncommitted git diff context in prompts |
codor.mcpServers |
object |
{} |
User-level stdio or HTTP MCP server configurations |
⌨️ Keyboard Shortcuts
| Shortcut (Win / Linux) |
Shortcut (macOS) |
Command |
Ctrl+Shift+L |
Cmd+Shift+L |
Add Selected Code to Chat |
Ctrl+Shift+. |
Cmd+Shift+. |
Fix with Codor AI |
🔒 Security & Privacy
- Local Execution: File mutations, diagnostics, LSP impact checks, and terminal commands execute on the extension host with workspace path confinement and command guardrails.
- Zero-Leakage Secret Redaction: Automated client- and server-side redaction of API keys, JWTs, database URIs, and private keys.
- Sensitive File Blocklist:
.env*, *.pem, *.key, id_rsa*, and credential paths are excluded from reads, indexing, impact analysis, and guided tours.
📄 License & Contributing
Licensed under the Apache License, Version 2.0. See Contributing, Architecture, and UI development.
| |