Overview of code2prompt capabilities
maincode2prompt is a code ingestion tool designed to transform codebases into structured, AI-optimized prompts for LLMs. It traverses directories, builds tree structures, and gathers file information to curate context windows for tasks like code analysis, generation, and refactoring.
It is available in four primary formats:
- Core: A high-performance Rust library for code ingestion.
- CLI: A human-friendly Command Line Interface.
- SDK: A Python Software Development Kit for automation and AI agents.
- MCP: A Model Context Protocol server for providing repository access to LLMs.