Skip to content
| Marketplace
Sign in
Visual Studio Code>Other>Ollama Agent Rajputrajat1990New to Visual Studio Code? Get it now.
Ollama Agent Rajputrajat1990

Ollama Agent Rajputrajat1990

Rajat

| (0) | Free
Prototype VS Code extension to connect to a local Ollama model and enable agentic tool-calls with approvals.
Installation
Launch VS Code Quick Open (Ctrl+P), paste the following command, and press enter.
Copied to clipboard
More Info

Ollama Agent (prototype)

This prototype VS Code extension demonstrates connecting to a locally running Ollama server and handling model "tool_calls" to perform workspace actions.

Features in this prototype:

  • Connects to local Ollama HTTP API at http://localhost:11434

  • Sends chat requests and reads tool_calls from the model response

  • Implements handlers for tools: read_file, write_file, delete_file, run_shell

  • For actions that modify the workspace or run shell commands, the extension requires a manual approval step via a file-creation command in the workspace terminal. Example:

    mkdir -p .ollama-agent/approvals && echo "" > .ollama-agent/approvals/.approve

Replace with the token shown in the extension output.

How to run:

  1. Open this folder in VS Code.
  2. Install dev dependencies: npm install
  3. Compile: npm run compile
  4. Press F5 to run the extension in the Extension Development Host.
  5. Run the command: "Agent: Start Session" from the Command Palette.

Notes:

  • This is a security-sensitive prototype. Do not enable automatic destructive actions without stricter safeguards.
  • The approval-by-file mechanism is intentionally simple and visible to the user.
  • Contact us
  • Jobs
  • Privacy
  • Manage cookies
  • Terms of use
  • Trademarks
© 2025 Microsoft