awesome-repositories.com
Blog
awesome-repositories.com

Entdecke die besten Open-Source-Repositories mit KI-gestützter Suche.

EntdeckenKuratierte SuchenOpen-Source-AlternativenSelf-hosted SoftwareBlogSitemap
ProjektÜber unsRanking-MethodikPresseMCP-Server
RechtlichesDatenschutzAGB
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
mufeedvh avatar

mufeedvh/code2prompt

0
View on GitHub↗
7,145 Stars·401 Forks·Rust·mit·5 Aufrufecode2prompt.dev↗

Code2prompt

code2prompt is a codebase-to-prompt converter and LLM context generator that transforms source code and directory structures into formatted text blocks for large language models. It functions as both a utility for generating prompts and an AI agent context server that exposes codebase files and metadata to coding assistants via a standardized server protocol.

The tool distinguishes itself through git-aware capabilities, integrating commit messages and branch diffs to provide version control context for AI-generated code changes. It also utilizes the Model Context Protocol to allow external AI assistants to programmatically query project files.

The system manages context through glob-based file filtering and gitignore rule adherence to refine source file selection. It includes a token counter to ensure the aggregated codebase fits within a model's context window and employs custom templates to define the structural layout of the final output.

Features

  • Repository-to-Prompt Converters - Transforms entire directory structures and source files into formatted text blocks ready for large language model ingestion.
  • Repository-to-Prompt Converters - Transforms entire directory structures and source files into a single formatted text block for LLM context.
  • AI Coding Assistant Integrations - Exposes the codebase through a standardized server protocol for programmatic analysis by AI coding assistants.
  • AI Integration Protocols - Implements a standardized protocol to allow AI agents to programmatically access and query project files.
  • Context Preparation Utilities - Processes and formats raw source code and directory structures into structured context for language models.
  • LLM Context Preparation - Aggregates source code and directory structures into a single formatted text block for LLM prompts.
  • Model Context Protocol Servers - Provides a server-side implementation of the Model Context Protocol to expose codebase files and metadata.
  • Context Aggregators - Flattens multi-file directory structures into a single formatted text stream for efficient LLM ingestion.
  • Model Context Protocol Integrations - Exposes codebase context through the Model Context Protocol for programmatic querying by external AI assistants.
  • Token Context Limiting - Tracks token volume to ensure the processed codebase fits within the target model's maximum context window.
  • Git Repository to Prompt Converters - Extracts git commit history and diffs to provide temporal version control context within AI prompts.
  • Prompt Templates - Provides a templating system to define the structure and layout of the aggregated codebase prompt.
  • Codebase Analysis Tools - Curates specific sets of source files using templates and globs for structured AI-driven documentation.
  • Codebase Size and Token Count Reporters - Calculates the total token count of the generated text to ensure it fits within the model's context window.
  • Linting File Filters - Uses glob patterns and gitignore rules to refine and exclude specific files from the AI context.
  • Git Context Injectors - Includes commit messages and branch diffs in prompts to support automated pull request and commit generation.
  • Glob Pattern Resolvers - Uses glob patterns and gitignore rules to filter and select relevant source files for processing.
  • Prompt Templates - Employs customizable text templates to ensure consistent formatting of aggregated code and metadata in prompts.
  • Structured File Filtering Systems - Applies structured .gitignore and glob rules to filter files during the codebase ingestion process.
  • Code and Context Tools - CLI tool to convert codebases into single LLM prompts.

Star-Verlauf

Star-Verlauf für mufeedvh/code2promptStar-Verlauf für mufeedvh/code2prompt

KI-Suche

Entdecke weitere awesome Repositories

Beschreibe in einfachen Worten, was du brauchst — die KI bewertet tausende kuratierte Open-Source-Projekte nach Relevanz.

Start searching with AI

Häufig gestellte Fragen

Was macht mufeedvh/code2prompt?

code2prompt is a codebase-to-prompt converter and LLM context generator that transforms source code and directory structures into formatted text blocks for large language models. It functions as both a utility for generating prompts and an AI agent context server that exposes codebase files and metadata to coding assistants via a standardized server protocol.

Was sind die Hauptfunktionen von mufeedvh/code2prompt?

Die Hauptfunktionen von mufeedvh/code2prompt sind: Repository-to-Prompt Converters, AI Coding Assistant Integrations, AI Integration Protocols, Context Preparation Utilities, LLM Context Preparation, Model Context Protocol Servers, Context Aggregators, Model Context Protocol Integrations.

Welche Open-Source-Alternativen gibt es zu mufeedvh/code2prompt?

Open-Source-Alternativen zu mufeedvh/code2prompt sind unter anderem: cyclotruc/gitingest — Gitingest is a tool for extracting, converting, and estimating the token size of codebases to facilitate ingestion by… yamadashy/repomix — Repomix is an AI-focused development utility designed to prepare local and remote codebases for analysis, review, and… beehiveinnovations/pal-mcp-server — This project functions as a Model Context Protocol server and a multi-agent orchestration framework designed to bridge… f/prompts.chat — This platform serves as a centralized management system for organizing, refining, and versioning AI instructions and… memmachine/memmachine — MemMachine is a centralized memory management server and model-agnostic memory layer for large language models. It… safishamsi/graphify — Graphify is a knowledge retrieval system that transforms directories of source code and documentation into structured,…

Open-Source-Alternativen zu Code2prompt

Ähnliche Open-Source-Projekte, sortiert nach der Anzahl der gemeinsamen Funktionen mit Code2prompt.
  • cyclotruc/gitingestAvatar von cyclotruc

    cyclotruc/gitingest

    14,970Auf GitHub ansehen↗

    Gitingest is a tool for extracting, converting, and estimating the token size of codebases to facilitate ingestion by large language models. It transforms GitHub repositories and local directories into a single formatted text file that serves as a structured context window for model analysis. The utility includes a codebase token estimator to calculate file structure and total token counts, helping to determine the scale of the extracted content. It supports both public and private repositories through token-based authentication and respects gitignore configurations to filter out irrelevant p

    Python
    Auf GitHub ansehen↗14,970
  • yamadashy/repomixAvatar von yamadashy

    yamadashy/repomix

    26,498Auf GitHub ansehen↗

    Repomix is an AI-focused development utility designed to prepare local and remote codebases for analysis, review, and automated interaction. It functions as a codebase context bundler and a Model Context Protocol server, aggregating project files into structured documents that are optimized for ingestion by large language models. By serving as a bridge between local repositories and external intelligence agents, the tool facilitates real-time codebase inspection and automated development workflows. The system distinguishes itself through rigorous repository token management and security-consc

    TypeScriptaianthropicartificial-intelligence
    Auf GitHub ansehen↗26,498
  • beehiveinnovations/pal-mcp-serverAvatar von BeehiveInnovations

    BeehiveInnovations/pal-mcp-server

    11,605Auf GitHub ansehen↗

    This project functions as a Model Context Protocol server and a multi-agent orchestration framework designed to bridge large language models with external data sources and specialized engineering tools. It provides a structured environment for automating software development workflows, enabling models to interact directly with codebases and remote services to perform complex tasks. The system distinguishes itself through a multi-agent orchestration layer that coordinates autonomous assistants to manage shared objectives and multi-step workflows. By utilizing structured task decomposition and

    Python
    Auf GitHub ansehen↗11,605
  • f/prompts.chatAvatar von f

    f/prompts.chat

    163,814Auf GitHub ansehen↗

    This platform serves as a centralized management system for organizing, refining, and versioning AI instructions and agent skills. It functions as a repository that enables users to store, categorize, and retrieve structured prompts, ensuring consistent performance across various artificial intelligence models. By integrating with the Model Context Protocol, the system allows external AI assistants and development environments to discover and access these instruction libraries directly. The platform distinguishes itself through its focus on prompt engineering and automated refinement, utilizi

    HTMLaiartificial-intelligenceawesome-list
    Auf GitHub ansehen↗163,814
  • Alle 30 Alternativen zu Code2prompt anzeigen→