This repository contains a VS Code extension that integrates with the Ollama AI backend to offer code suggestions, automated fixes, commenting, and an interactive chat interface.
PrivatePilot/
├── docs/ – Design documents and TODOs
├── media/ – Images used in documentation
├── private-pilot-extension/
│ ├── src/
│ │ ├── extension.ts – Main extension code
│ │ ├── prompts.ts – Prompt strings for Ollama
│ │ └── common.ts – Common functions and constants shared across the extension
│ ├── resources/ – Extension icons
│ ├── package.json – Extension metadata and commands
│ └── tsconfig.json – TypeScript configuration
└── README.md – Project overview and build instructions
- Extension Commands live in
extension.ts. These include code improvement, explanation, typo fixing, and more. Some commands currently contain placeholder comments for future Ollama integration. - Ollama Communication happens in
getOllamaTextandhandleOllamaRequest, which send HTTP requests to the configured endpoint. - Prompts in
prompts.tsdefine how requests are phrased for the AI. Any non-code feedback should be wrapped in code comments. - The
docs/folder houses the Product Requirements Document and a TODO list describing work in progress.
- Understand VS Code Extension Basics – Review activation events and commands in
package.json. Studyextension.tsto see how VS Code APIs are used. - Learn the Ollama Integration – Examine API request functions and prompts to understand how the extension communicates with the AI backend.
- Consult Documentation –
docs/PRD.MDanddocs/todo.mdgive insight into the current roadmap and features planned. - Experiment – Follow the root README build instructions (
npm install,npm run compile,vsce package) to run the extension in development mode. - Dive into VS Code APIs – Explore the official VS Code API documentation to deepen your understanding of editors, selections, and webviews.
Private Pilot is a work in progress: only some commands fully integrate with Ollama, while others still contain placeholders. Reviewing these areas offers a clear path for future contributions.