Auren AI for Visual Studio Code
Capabilities
- Explore the repository: Searches the workspace and gathers more context as the task evolves.
- Edit, review, and revert: Applies multi-file edits and provides VS Code review and revert controls.
- Run checks and revise: Can use terminal tools to run tests, inspect failures, and iterate within the task, subject to permissions.
- Salesforce: Can use Salesforce CLI through its terminal or configured tools.
Hosted access
Install the extension, open Auren AI in the activity bar, and select Access code. Enter the eight-digit invitation from your administrator. Hosted chat connects to aiauren.com and uses the server’s models, including any available options under Select model.
With a trusted local workspace open, use Auren: Explain Current File, Auren: Review Code, or the selection command from the Command Palette. Auren previews which source will be sent to the hosted service and asks for confirmation. Hosted file review is read-only and uses bounded excerpts.
The installed release requires an access code and uses the hosted gateway. To use local repository and edit workflows from the Extension Development Host (F5), set Auren: Public Url to an empty string and start the local backend.
In local mode, chat and repository analysis
use the same project IDs and saved conversations as the web workspace. Code proposals
open as read-only snapshots in VS Code's native diff editor.
Local mode requirements
- VS Code 1.95 or newer, running locally with a trusted folder or multi-root workspace.
- Node.js 22 or newer and npm for development and packaging.
- Auren's Python/FastAPI backend on an HTTP loopback address.
- Local Ollama. Install the chat model selected in Auren and
qwen2.5-coder:14b for model-generated edit proposals.
Exact replacements use the backend without model inference.
From the Auren repository, start the backend with the existing virtual environment.
source .venv/bin/activate
python -m pip install -r requirements-workspace.txt
python -m uvicorn api.server:app --host 127.0.0.1 --port 8765 --reload
The extension connects directly to FastAPI. Vite is needed only for the web workspace
and for registering a custom folder through its Projects view.
Develop and launch with F5
- Open the
vscode-extension folder itself in VS Code.
- Run
npm ci and npm run compile in its integrated terminal.
- Press F5 using Run Auren AI. In the Extension Development Host, open a local repository already visible in the Auren Projects view and trust it if you trust its contents.
- Open Auren AI in the activity bar. Use Check connection to see the backend and selected model, or Select repository if automatic detection is ambiguous.
- If a folder is missing, register its authorized location in Auren's Projects view and retry. The extension does not register folders or expand authorization.
Chat and review
Send a message in the sidebar, use New chat to start a fresh conversation, or select
Open chat for server-saved conversations in the selected project. With a saved,
authorized active file, Auren includes that file as context. Stop interrupts the
local wait and requests server-side chat cancellation.
| Command |
Action |
| Ask About Selection |
Ask a question with saved selected text as context. |
| Explain Current File |
Explain an authorized saved source file. |
| Review Code |
Request a source-grounded review and suggested test plan. |
| Find Bug |
Request one supported finding and a proposed diff when available. |
| Propose Fix |
Request a structured Workbench proposal from local Ollama. |
| Propose Exact Replacement |
Select complete original lines and enter one replacement line or leave it empty for deletion. |
| Apply Reviewed Edit |
Confirm and apply the exact proposal ID shown in the native diff. |
| Reject Reviewed Edit |
Dismiss the local review without writing source. |
| Select Repository |
Choose an authorized workspace repository by its canonical path. |
| Check Connection |
Report backend reachability and the current chat model. |
To verify the approval flow manually, request a one-line change in a disposable file,
confirm that the native diff matches the requested edit, and reject it once. Propose
it again, approve using the sidebar or command palette, and confirm the backend
success notice and changed file. To exercise stale-file protection, save a different
edit after opening a proposal. Apply should refuse the outdated snapshot.
Source validation establishes which lines would change. Language correctness and
behavior still require tests. Auren can run approved checks and commands locally
through its terminal tools; it never runs a command without your confirmation.
Settings
auren.backendUrl defaults to http://127.0.0.1:8765. Only HTTP loopback hosts are accepted. Backend redirects are refused.
- Auren uses the open Git repository folder. In a multi-folder workspace, focus a source file in the intended folder. On first use, approve access from the VS Code prompt.
Test, package and install locally
npm test
npm run package
Use Extensions → … → Install from VSIX… and select the generated
auren-ai-0.1.0.vsix. Reload VS Code if prompted. Packaging does not publish the extension.
Limits and roadmap
- Local VS Code workspaces only. The backend has no invitation or remote authentication in this MVP. Treat other local users and processes as inside the existing backend trust boundary.
- Source context requires a saved UTF-8 file accepted by Auren. Automatic matching relies on existing repository registrations.
- Terminal execution, checks, commits, pushes, deployments, and Salesforce CLI commands run only after an explicit confirmation and only in a trusted local workspace.
- Model proposal cancellation aborts the extension wait. The backend only provides a server-side cancellation endpoint for chat, so a cancelled proposal may still finish locally. Reject dismisses the extension preview because the existing backend has no reject endpoint. Unapplied proposals expire on the server.
- v0.2 candidates include authenticated connection support, richer diff review and exact replacement input, and explicit test controls.
Project learning and response timing
Rate a saved project answer Helpful or Incorrect. An optional correction is
saved with the response ID and timestamp. Relevant corrections can guide later
answers and are treated as user guidance. To save an explicit preference or
source-backed fact, open Project lessons. A source fact must match the exact
text of one repository line. If that line changes, the fact is shown as stale and
excluded from future prompts. The same picker can view, correct, or delete lessons.
The sidebar streams retrieval, preparation, and generation status when the
backend supports it. Project answers and diffs appear after backend validation.
Verified excerpts are collapsed below the interpretation. Timing shows backend
retrieval, prompt preparation, inference, and the sidebar's Markdown and DOM
rendering time. It does not measure screen paint or network transfer.
Salesforce sandboxes
Install Salesforce CLI on the same computer as VS Code and authorize your sandbox using SFDX: Authorize an Org. Select a named sandbox alias when prompted. The installed extension also requires an active Auren access-code session.
Use Auren: Run Apex Test with Coverage, Auren: Get Apex Test Results and Coverage, or Auren: Inspect Salesforce MessagingSession from the Command Palette. The commands run locally with your Salesforce CLI authentication. Auren does not send CLI credentials or session lookup results to the hosted chat.
Open a local .agent file and use Auren: Review Agentforce Script to review its source. In hosted mode this requires confirmation before transmitting the source. Auren: Draft Apex Class or Test produces a chat draft based on the active file.
Use Auren: Run Salesforce CLI Command to run any sf command through an integrated terminal using your local Salesforce CLI authentication. Auren validates the command, asks before running it, and does not capture or transmit its output.
To improve coverage, open a saved Apex test class, use Auren: Propose Fix, review the native diff, and choose Auren: Apply Reviewed Edit. Auren saves the approved edit. Validate and Deploy Apex Class to Sandbox validates the selected class and its metadata XML in an isolated package, then asks before deploying that same package. Use Run Apex Test with Coverage to measure the deployed code. Compare Apex Class Across Sandboxes shows a read-only diff of the same unnamespaced class in two sandboxes.
Use Review and Commit Current File for an individual tracked file, then Push Confirmed Branch to GitHub. Git uses your local credentials. Auren previews the file diff before committing and displays the GitHub target and commit before pushing.
Workspace tasks
- Ask About Workspace searches supported source contents in the active workspace and follows relative imports. Choose Auren hosted or a GitHub Copilot model available through VS Code. Relevant numbered excerpts are packed within the provider’s context budget. Auren shows which files it will send and asks before transmission.
- Run Multi-file Workspace Edit asks you to approve the task scope, then validates exact replacements against the selected source, applies and saves the edits, then opens diffs showing the resulting file contents. Choose Run check to verify the saved changes.
- Run Workspace Check previews and runs any declared npm script locally. It shows bounded output and the exit result. Output remains local unless you choose to share it.
- Run Test Command and Revise validates a command you enter, then either runs it in an integrated terminal or captures its output locally. When a captured run fails, Auren can use the approved output to draft a follow-up edit, so you can iterate within the task.
- Open Draft GitHub Pull Request uses your authenticated GitHub CLI on a pushed branch. Assign GitHub Coding Agent Task requires a GitHub CLI version with
gh agent-task and Copilot coding-agent access on the repository. Both commands ask before acting.