VS Code + Agent
Raia Reasoning Agent VS Code Extension
Raia Reasoning Agent VS Code Extension
Installation & Usage Guide
This guide explains how to install and run the Raia Reasoning Agent VS Code extension using the hardcoded configuration version.
✅ 1. Download & Extract
Download the extension ZIP file.
Extract it anywhere on your system.
You should see:
package.json
tsconfig.json
.vscode/launch.json
src/extension.ts
.gitignore
README.md
INSTALL.md✅ 2. Open the Extension Project in VS Code
Open Visual Studio Code.
Go to File → Open Folder…
Choose the extracted extension folder.
✅ 3. Install Dependencies
In the VS Code terminal, run:
This installs all required dependencies (TypeScript, VS Code types, etc.).
✅ 4. Configure Your Raia Agent API Key
Open:
At the very top, update your configuration:
Replace:
with your real Agent-Secret-Key from Raia.
Example:
No VS Code settings required — this version is fully hardcoded for reliability.
✅ 5. Build the Extension
Compile the TypeScript:
If successful, an out/ directory will be generated.
✅ 6. Run the Extension
In VS Code, press:
This launches a new window called:
Extension Development Host
Your Raia extension is now active in this sandboxed VS Code session.
✅ 7. Using the Raia Reasoning Agent Command
In the Extension Development Host window:
Open any code file.
Select the code you want to send to Raia (if nothing is selected, the whole file is used)
Press:
Run the command:
Enter an instruction for the agent, such as:
“Refactor this function.”
“Rewrite using async/await.”
“Identify potential bugs.”
“Optimize this component.”
The extension will:
Submit the request to
/external/prompts/asyncPoll
/external/prompts/{id}/response-onDisplay the final reasoning response in a new tab
🧩 Additional Notes
This extension uses hardcoded configuration for maximum reliability.
You can later upgrade it to use VS Code settings if needed.
The API endpoints used are:
POST /external/prompts/asyncGET /external/prompts/{id}/response-on
🆘 Troubleshooting
“Raia error: Failed async prompt…”
Invalid Agent Key or API URL
Double-check RAIA_AGENT_KEY
Always timing out
Reasoning taking too long
Increase MAX_WAIT_MS
Output looks like raw JSON
Agent returning structured data
Update parsing logic in waitForPromptResult()
🎉 Done!
You now have a fully working, hardcoded Raia Reasoning VS Code extension ready to help modernize your codebase.
If you want a .vsix one-click installer or a settings-based version, just let me know!
Last updated

