CodeContext AI

A simple program to convert code into markdown

Problem Statement

For a better understanding of AI agents, we should use .md files rather than having the agent read the actual program files. Therefore, I want a VS Code extension that explains the function, input, output, and security vulnerabilities of each program file and converts them into .md format so that the agents can gain an efficient and clear understanding of the code.

Project Video

Techstack

Vscode
NodeJs
OpenRouter

Backend

  • Engineered an LLM-powered code-context generation pipeline that transforms arbitrary source files into structured Markdown blueprints optimized for downstream AI coding agents.
  • Designed a context-window management strategy using scope detection and chunked processing to reliably analyze large source files without silent truncation.
  • Integrated multiple LLM providers through a configurable provider/model architecture, decoupling the extension from any single AI vendor.
  • mplemented secure credential management with VS Code SecretStorage, ensuring API credentials never enter configuration files or logs.
  • Added security-oriented handling for source analysis, including heuristic detection and user warnings for files potentially containing secrets or sensitive information