SeeSharp Indexer is a specialized tool designed to efficiently index C# codebases for AI processing and analysis. It creates optimized, token-efficient JSON representations of your code structure, making it easier for AI models to understand and work with large C# projects.
This tool uses Roslyn (the .NET compiler platform) to parse C# files and extract structural information about your codebase, including classes, interfaces, methods, properties, and relationships between them.
- Comprehensive Code Analysis: Scans C# files to extract detailed structural information
- Customizable Output: Configure exactly what gets included in your index
- Token Efficiency: Generates compact JSON optimized for AI consumption
- Modern UI: Clean, intuitive Material Design interface
- Bulk Processing: Add individual files or entire directories recursively
- Filtering Options: Include/exclude private, internal, or protected members
- Save & Load: Save generated indexes for later use or sharing
SeeSharp Indexer uses the Roslyn compiler platform to analyze your C# code at the Abstract Syntax Tree (AST) level, extracting structural information without executing your code. The tool captures:
- Files: All included C# files with their paths
- Classes: Class name, accessibility, inheritance, static/abstract status
- Interfaces: Interface name, accessibility, inheritance
- Methods: Method signature, return type, parameters, accessibility
- Properties: Property name, type, accessors, accessibility
- Fields: Field name, type, accessibility, static/readonly status
- Enums: Enum name, values, accessibility
This information is organized into a hierarchical JSON structure that's optimized for size and AI token efficiency.
- Download the latest release from the Releases page
- Extract the zip file to your preferred location
- Run
SeeSharpIndexer.exeto start the application
No installation required! The application runs as a standalone executable.
-
Add Files or Directories:
- Click the "Add Files" button to select individual C# files
- Click the "Add Directory" button to recursively add all C# files in a directory
-
Configure Index Settings:
- Click the settings icon to open the settings panel
- Choose which members to include (private, internal, protected)
- Configure output options
-
Add Codebase Information:
- Provide a name and description for your codebase (optional)
-
Generate the Index:
- Click the "Scan" button to analyze your code
- The tool will process all selected files and create an index
-
Save the Index:
- Click the "Save" button to save the generated index as a JSON file
- Choose your save location and filename
The generated index follows this JSON structure:
{
"name": "Project Name",
"description": "Project description",
"createdAt": "2023-06-15T10:30:00Z",
"totalFileCount": 42,
"totalClassCount": 86,
"totalInterfaceCount": 14,
"totalEnumCount": 8,
"files": [
{
"name": "Program.cs",
"type": "File",
"filePath": "C:/Projects/MyProject/Program.cs",
"classes": [
{
"name": "Program",
"type": "Class",
"accessibility": "public",
"isStatic": true,
"methods": [
{
"name": "Main",
"type": "Method",
"returnType": "void",
"accessibility": "public",
"isStatic": true,
"parameters": [
{
"name": "args",
"type": "string[]"
}
]
}
]
}
]
}
]
}- Windows 10 or later
- .NET 8.0 Runtime
- At least 4GB RAM (8GB recommended for large codebases)
- 100MB free disk space
-
Clone the repository:
git clone https://github.com/leonxger/SeeSharpIndexer.git -
Open the solution in Visual Studio 2022 or later
-
Build the solution (requires .NET 8.0 SDK)
- AI Training: Generate efficient representations of C# codebases for AI model training
- Codebase Analysis: Get a structured overview of your project
- Documentation Generation: Use the index as a basis for automated documentation
- AI-Assisted Development: Help AI tools better understand your codebase structure
- GitHub: leonxger
- Report issues: Issue Tracker
- Roslyn - The .NET Compiler Platform
- Material Design In XAML - UI components
- Newtonsoft.Json - JSON parsing and generation
