awesome-repositories.com
博客
awesome-repositories.com

通过 AI 驱动的搜索,发现最优秀的开源仓库。

探索精选搜索开源替代品自托管软件博客网站地图
项目关于排名机制媒体报道MCP 服务器
法律隐私政策服务条款
© 2026 Bringes Technology SRL·VAT RO45896025·hello@awesome-repositories.com
·
mufeedvh avatar

mufeedvh/code2prompt

0
View on GitHub↗
7,145 星标·401 分支·Rust·mit·5 次浏览code2prompt.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 历史

mufeedvh/code2prompt 的 Star 历史图表mufeedvh/code2prompt 的 Star 历史图表

AI 搜索

探索更多 awesome 仓库

用简单的语言描述您的需求 —— AI 将根据相关性为您从数千个精选开源项目中进行排序。

Start searching with AI

Code2prompt 的开源替代方案

相似的开源项目,按与 Code2prompt 的功能重合度排序。
  • cyclotruc/gitingestcyclotruc 的头像

    cyclotruc/gitingest

    14,970在 GitHub 上查看↗

    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
    在 GitHub 上查看↗14,970
  • yamadashy/repomixyamadashy 的头像

    yamadashy/repomix

    26,498在 GitHub 上查看↗

    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
    在 GitHub 上查看↗26,498
  • beehiveinnovations/pal-mcp-serverBeehiveInnovations 的头像

    BeehiveInnovations/pal-mcp-server

    11,605在 GitHub 上查看↗

    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
    在 GitHub 上查看↗11,605
  • f/prompts.chatf 的头像

    f/prompts.chat

    163,814在 GitHub 上查看↗

    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
    在 GitHub 上查看↗163,814
查看 Code2prompt 的所有 30 个替代方案→

常见问题解答

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.

mufeedvh/code2prompt 的主要功能有哪些?

mufeedvh/code2prompt 的主要功能包括: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。

mufeedvh/code2prompt 有哪些开源替代品?

mufeedvh/code2prompt 的开源替代品包括: 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,…