Back to Projects
Project Cartographer
PublishedTypeScriptNode.jsPython+3 more

Project Cartographer

A production-grade VS Code extension that uses agentic, graph-based static analysis to understand codebases and answer architectural questions.

Timeline

3 days

Role

Teamed up with Maviya Mahagami

Status
Published

Technology Stack

TypeScript
Node.js
Python
Gemini AI
HTML
VS Code API

Key Challenges

  • Implementing multi-agent orchestration for codebase analysis
  • Efficiently building and querying large-scale knowledge graphs
  • Resolving cross-file dependencies and imports statically

Key Learnings

  • VS Code Extension API and lifecycle management
  • Static analysis using AST (Abstract Syntax Trees) for Python and TypeScript
  • Agentic workflows for specialized codebase exploration tasks
  • Graph-based data structures for representing code relationships
  • Integrating LLMs (Gemini) for natural language code understanding

Project Cartographer: Agentic Codebase Intelligence

Overview

Project Cartographer is a production-grade VS Code extension designed to help developers navigate and understand complex codebases. It uses a multi-agent system and graph-based static analysis to answer deep architectural questions that traditional IDE features often miss.

Whether you're a new developer trying to understand "what should I read first?" or a senior architect assessing the "blast radius" of a change, Cartographer provides the map you need.

Core Features

  • Workspace Scanning — Recursively scans workspace folders while intelligently excluding noise (node_modules, .git).
  • Static Analysis — Extracts functions, dependencies, and complex relationships across files.
  • Knowledge Graph — Builds a persistent graph representation of your entire codebase.
  • Natural Language Queries — Ask questions in plain English like "What breaks if I change this function?"
  • Gemini AI Integration — Optional LLM-powered explanations for complex code segments.

Multi-Agent Architecture

Cartographer uses a specialized agent system to distribute the work of understanding a repository:

  • Coordinator — Orchestrates the multi-agent system and task distribution.
  • Archaeologist Agent — Maps the repository structure and identifies languages.
  • Detective Agent — Resolves complex dependencies and imports.
  • Risk Assessor — Scans for security risks and identifies technical debt.
  • Historian Agent — Analyzes Git history to find "hotspots" or frequently changed files.
  • Translator Agent — Auto-documents complex code using Gemini AI.
  • Architect Agent — Detects structural issues like circular dependencies.

Graph Queries

The extension allows you to perform advanced queries on your codebase graph:

  1. Blast Radius Analysis — "What breaks if I change this function?"
  2. Centrality Analysis — "Which functions are the most critical/central to the logic?"
  3. Importance Ranking — "What are the most important files for a new developer to read?"

Development & Deployment

The project is built primarily with TypeScript and Node.js, with Python assistance for deep AST parsing. It is published on the VS Code Marketplace, allowing developers to install it directly into their environment.

Technical Stack

  • Frontend: HTML/CSS for the dashboard UI.
  • Logic: TypeScript for the extension core and agent orchestration.
  • Parsing: Python AST helpers for language-specific analysis.
  • AI: Google Gemini API for natural language understanding.

Installation

You can install Project Cartographer directly from the VS Code Marketplace or via the command line:

Key Takeaways

  • Static analysis combined with a graph representation provides much deeper insights than text-based search.
  • Agentic workflows allow for modular and extensible codebase exploration.
  • Integrating LLMs at the right layer (explanation/documentation) adds significant value to raw static analysis data.

Built with ❤️ by Piyush Dhoka
© 2026. All rights reserved