CodeWeaver
CodeWeaver is a VS Code extension that converts pseudo code into real, runnable code — live, as you watch it stream into your editor. Built for technical interviews, competitive programming, and rapid prototyping, it translates your logic faithfully without fixing bugs, adding hints, or optimizing anything.
Table of Contents
Features
⚡ Live Streaming Conversion
Code streams directly into your editor token by token — no waiting for a full response. Watch your pseudo code transform in real time.
🎯 Strict Logic Preservation
CodeWeaver is not an AI code fixer. It converts exactly what you write — bugs, inefficiencies, and all. This is intentional: on interview platforms, your logic must remain yours.
💬 AI Chat Panel
An embedded chat panel (secondary sidebar) powered by Claude. Select any code in your editor, attach it as context, and ask anything — explain, debug, compare approaches. Markdown, code blocks, and syntax highlighting all rendered cleanly.
✏️ Follow-up Edits
After a conversion, apply a targeted change with a single instruction. Rename a variable, swap a loop, change a return type — only the requested change is applied.
🌐 17 Languages
Auto-detect from file extension, or pick manually:
|
|
|
|
|
| Python |
JavaScript |
TypeScript |
Java |
C++ |
| C |
Go |
Rust |
C# |
Ruby |
| Swift |
Kotlin |
PHP |
Scala |
R |
| Dart |
|
|
|
|
🖥️ Three Output Modes
- Replace — replaces the selected pseudo code with generated code
- Insert After — inserts generated code below the selection
- Clipboard — copies to clipboard without touching the editor
🤖 Three AI Models
Choose speed vs. accuracy:
- Claude Opus 4.6 — highest accuracy, best for complex logic
- Claude Sonnet 4.6 — balanced speed and quality
- Claude Haiku 4.5 — fastest, great for simple conversions
Requirements
Getting Started
- Install the extension
- Open the CodeWeaver panel from the activity bar (left sidebar)
- Paste your Anthropic API key and click Save
- The key is stored securely in VS Code's secret storage — never in plain text
The panel will collapse the API key section automatically once saved.
How to Use
Convert Pseudo Code
- Write pseudo code in any editor file
- Select the pseudo code text
- Convert it using any of these methods:
- Press
⌘⇧K (Mac) / Ctrl+Shift+K (Windows/Linux)
- Right-click → CodeWeaver: Convert Selected Pseudo Code to Code
- Click Convert to Code in the CodeWeaver sidebar
- Watch the code stream live into your editor
Example:
// pseudo code (selected)
function findMax(arr):
max = first element
for each element in arr:
if element > max:
max = element
return max
Becomes (in Python):
def findMax(arr):
max = arr[0]
for element in arr:
if element > max:
max = element
return max
Note: If your pseudo code has a bug, the generated code will too. CodeWeaver preserves your logic exactly — that's the point.
Ask AI (Chat Panel)
The chat panel opens in the secondary sidebar (right side, like GitHub Copilot).
Open it:
- Press
⌘⇧L (Mac) / Ctrl+Shift+L
- Click Ask AI in the sidebar
Attach code context:
- Select code in the editor
- Click Ask AI — the selection is automatically attached
- The context bar above the input shows the line range:
Lines 10–25 · TypeScript
- Ask your question and send with
Enter
Chat tips:
Enter → send message
Shift+Enter → new line
- Click Copy on any code block to copy it
- Click Insert on any code block to paste it into the active editor at the cursor
- Click Clear in the chat header to reset the conversation
Follow-up Edits
Enable Follow-up edits panel in Settings to show the follow-up section in the sidebar.
After a conversion:
- Type an instruction in the follow-up box, e.g.
rename variable x to result
- Click Apply Edit
- Only the requested change is applied — nothing else is touched
Settings
Access via the Settings accordion in the CodeWeaver sidebar, or through VS Code settings (CodeWeaver.*).
| Setting |
Default |
Description |
CodeWeaver.enabled |
true |
Enable or disable the extension |
CodeWeaver.model |
claude-opus-4-6 |
AI model for conversion |
CodeWeaver.language |
auto |
Target language (auto detects from file extension) |
CodeWeaver.insertMode |
replace |
How generated code is inserted |
CodeWeaver.followUpEnabled |
false |
Show the follow-up edit panel |
Keyboard Shortcuts
| Action |
Mac |
Windows / Linux |
| Convert selected pseudo code |
⌘⇧K |
Ctrl+Shift+K |
| Open AI Chat |
⌘⇧L |
Ctrl+Shift+L |
Shortcuts only trigger when the editor is focused and text is selected (for convert).
Why CodeWeaver?
Most AI coding tools are designed to help you write better code — they autocomplete, fix errors, and suggest improvements. That's great for everyday coding, but it's a problem in technical interviews.
CodeWeaver is different. It acts as a pure transcription layer:
- ✅ Writes exactly what you described in pseudo code
- ✅ Keeps your bugs intact (they're part of your logic)
- ✅ Adds no comments, docstrings, or hints
- ✅ Adds no helper functions you didn't ask for
- ✅ Does not silently complete common algorithms "correctly"
This makes it safe to use during coding assessments where the code must reflect your own reasoning.
The AI Chat panel follows a separate, less restrictive prompt — it's designed for Q&A, explanation, and debugging discussion, not for rewriting your code.
Privacy
- Your API key is stored in VS Code Secret Storage — encrypted, never written to disk in plain text, never sent anywhere except Anthropic's API
- Code you convert is sent to Anthropic's API over HTTPS — subject to Anthropic's privacy policy
- No telemetry, no analytics, no data collection by this extension
Built with the Anthropic Claude API.