PagePilot logo PagePilot
GitHub

Smart Context-Aware Development Assistant

PagePilot is a VS Code Chat participant that automatically loads external context (documentation, APIs, README files) to provide enhanced responses.

Chat with PagePilot
โ–Œ

๐Ÿ“š Multi-Doc Management

Manage multiple documentation sources with the /docs command.

๐ŸŒ Smart Context Loading

Load documentation, APIs, and README files from any URL.

๐Ÿค– Automatic URL Pattern Detection

Automatically finds related documentation files (llms.txt, README.md, etc.).

โšก Dynamic Context Injection

Intelligently injects only the most relevant parts of the context to avoid token limits.

๐Ÿง  Enhanced RAG System

Advanced RAG with TF-IDF weighting, conservative stemming, n-grams, and optimized stopword removal for 14-99% better context retrieval.

๐Ÿ”„ Persistent Storage

Context persists between VS Code sessions using workspace state.

๐ŸŒ Multi-Language

Full support for English and Portuguese with automatic language detection.

๐Ÿงน Smart Context Management

Clear all documentation sources at once with confirmation to prevent accidental data loss.

๐Ÿ”’ Privacy & Security

Your data stays secure and private with PagePilot.

๐Ÿ’พ Local Storage

Context is stored locally in your workspace using VS Code's workspace state. Your documentation and context data never leaves your machine.

๐Ÿšซ No Telemetry

PagePilot doesn't collect or transmit usage data. No analytics, no tracking, no data collection of any kind.

๐Ÿ” Secure Requests

Uses standard HTTPS for external content requests. All network communications are encrypted and secure.

๐Ÿ  Session Isolation

Each workspace maintains its own context. Documentation and settings are isolated per project for better security and organization.

QuickStart

Get started with PagePilot in a few simple steps.

  1. Install the extension from the VS Code Marketplace
  2. Open VS Code Chat (Ctrl+Alt+I / Cmd+Alt+I)
  3. Add a documentation source:
    @pagepilot /docs add my-api https://my-api.com/docs
  4. Load context from a URL:
    @pagepilot /load https://your-docs-url.com
  5. Ask questions:
    @pagepilot How do I implement feature X?

Usage

Learn how to use PagePilot's commands.


# Managing Documentation Sources
@pagepilot /docs add my-api https://my-api.com/docs
@pagepilot /docs add another-doc https://another-doc.com/readme.md
@pagepilot /docs switch my-api
@pagepilot /docs list
@pagepilot /docs remove another-doc
@pagepilot /docs clear              # Shows confirmation
@pagepilot /docs clear confirm      # Clears all documentation

# Loading Documentation
@pagepilot /load https://raw.githubusercontent.com/microsoft/vscode/main

# Asking Contextual Questions
@pagepilot How do I create a VS Code extension?
@pagepilot What are the authentication methods for this API?

Commands

Reference for all available commands.

/docs <add|remove|switch|list|clear> - Manage documentation sources

/docs clear [confirm] - Clear all documentation sources with confirmation

/load <URL> - Load context from external URL

/status - Show current context information

/clear - Remove all loaded context

๐Ÿš€ Release Notes

Latest updates and improvements.

v0.0.8 2025-11-14
โœจ Feature: Expanded RAG retrieval to surface up to eight high-signal chunks per question, giving Copilot richer context without extra commands.
๐Ÿ”ง Enhancement: Removed the legacy fallback injection so only genuinely matching passages are included in prompts, reducing noise in answers.
๐Ÿ“ฆ Release: Published VSIX 0.0.8 with refreshed docs and marketplace metadata for the new guidance-based flow.
๐Ÿงช Testing: Full `npm test` suite executed to validate the updated chat participant pipeline.
v0.0.7 2025-11-01
๐Ÿ›ก๏ธ Security: Hardening release focused on sanitizing residual context fallbacks and tightening prompt construction to avoid leaking stale data.
โš™๏ธ Maintenance: Dependency and build tooling bumps to pick up the latest VS Code APIs and security fixes.
v0.0.6 2025-10-28
โœจ Feature: Added /docs clear command to remove all documentation sources at once
๐Ÿ”ง Enhancement: Implemented enhanced RAG system with TF-IDF, stemming, and n-grams for better context retrieval
๐ŸŽฏ Improvement: Optimized embedding generation with conservative stemming and reduced stopwords for technical content
๐ŸŒ Multilingual: Full Portuguese and English support for the new clear command
๐Ÿ›ก๏ธ Security: Added confirmation requirement for /docs clear to prevent accidental data loss
๐Ÿ“Š Performance: Enhanced system provides 14-99% better context retrieval compared to basic system
๐Ÿงช Testing: Comprehensive validation of RAG system effectiveness and context delivery to LLM
v0.0.5 2025-10-27
โ€ข Fix: Handle ZeroVectorError in embeddings
โ€ข Refactor: Replace cosine-similarity with fast-cosine-similarity for improved performance
โ€ข Fix: Correct import of cosine similarity module