Codebase Context Extraction Prompt Engineering Tools
Tools for automatically scanning, packaging, and formatting entire codebases into optimized context for LLMs, with features like file filtering, token counting, and structure analysis. Does NOT include prompt management, context evaluation frameworks, or general RAG systems.
There are 131 codebase context extraction tools tracked. 4 score above 50 (established tier). The highest-rated is shcherbak-ai/contextgem at 68/100 with 1,810 stars and 3,588 monthly downloads. 2 of the top 10 are actively maintained.
Get all 131 projects as JSON
curl "https://pt-edge.onrender.com/api/v1/datasets/quality?domain=prompt-engineering&subcategory=codebase-context-extraction&limit=20"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
| # | Tool | Score | Tier |
|---|---|---|---|
| 1 |
shcherbak-ai/contextgem
ContextGem: Effortless LLM extraction from documents |
|
Established |
| 2 |
mufeedvh/code2prompt
A CLI tool to convert your codebase into a single LLM prompt with source... |
|
Established |
| 3 |
ShahzaibAhmad05/gitree
An upgrade from "ls" for developers. An open-source tool to analyze folder... |
|
Established |
| 4 |
nicepkg/ctxport
Copy AI conversations as clean Markdown Context Bundles — one click from... |
|
Established |
| 5 |
mkorpela/kopipasta
`cat project | LLM | patch`. Transparent context control and interactive... |
|
Emerging |
| 6 |
glue-tools-ai/repogrok
Pack your entire codebase into a single AI-friendly file. Feed your repo to... |
|
Emerging |
| 7 |
WecoAI/weco-cli
The Platform for Self-Improving Code. Ideal for GPU kernels, ML model... |
|
Emerging |
| 8 |
obsfx/promptscout
Enrich coding agent prompts with codebase context using a local LLM |
|
Emerging |
| 9 |
puntorigen/code2prompt
NodeJS Class for transforming a given codebase directory into an LLM prompt |
|
Emerging |
| 10 |
backnotprop/prompt-tower
Context management for long-context LLMs, agents, and vibe coding. Instantly... |
|
Emerging |
| 11 |
WinriseF/CtxRun
A tool that contains many tools |
|
Emerging |
| 12 |
mohsinmv/promptref
Git-like version control for LLM prompts. Track, diff, branch, and rollback... |
|
Emerging |
| 13 |
uxname/kodu
High-performance CLI to prepare codebase for LLMs, automate reviews, and... |
|
Emerging |
| 14 |
nesvet/fln
Feed your entire codebase to any LLM in one shot. No attachment limits, no... |
|
Emerging |
| 15 |
nikolay-e/treemapper
Export your entire codebase to ChatGPT/Claude in one command. Structure +... |
|
Emerging |
| 16 |
rasros/lx
Recursively find, filter, and format code files for ChatGPT and Claude... |
|
Emerging |
| 17 |
yzfly/awesome-context-engineering
A curated collection of resources, papers, tools, and best practices for... |
|
Emerging |
| 18 |
kccarlos/gitcontext
Build Perfect Context of Your Codebase for Your AI Chatbot |
|
Emerging |
| 19 |
anup4khandelwal/context-pack
Task-specific repo context bundler for Claude Code & OpenAI Codex |
|
Emerging |
| 20 |
lguibr/CodeConcat
Prepare your code for AI. Concatenates your project into a clean,... |
|
Emerging |
| 21 |
franklinkemta/codeindexer
A lightweight CLI to index a codebase and create a context-ready prompt file |
|
Experimental |
| 22 |
yigitkonur/cli-repo-to-prompt
export any codebase to a single LLM-ready markdown prompt |
|
Experimental |
| 23 |
mgks/genctx
A node.js CLI tool to generate high-signal code context for AI agents and assistants. |
|
Experimental |
| 24 |
mattmireles/Flatty
transform an entire GitHub repo into a simple text file so that you can... |
|
Experimental |
| 25 |
OpenSpace-Dev/gittomd
🐙 Your entire GitHub repo, intelligently packaged into a single Markdown... |
|
Experimental |
| 26 |
RoncoJhon/bettercontextoai
Better Context to AI is a Visual Studio Code extension to easily share your... |
|
Experimental |
| 27 |
timschmidt/cargo-prompt
recursively minify and concatenate source code into a markdown document for... |
|
Experimental |
| 28 |
Ertugrulmutlu/promptledger
Local-first prompt version control for developers: Git-style history & diffs... |
|
Experimental |
| 29 |
tigreau/catclip
Easy-to-use, no-setup, CLI tool that finds files and folders by fuzzy name... |
|
Experimental |
| 30 |
pluqqy/pluqqy-terminal
Terminal-based context management for AI driven development |
|
Experimental |
| 31 |
frogermcs/codebase-dump
Dump your codebase into single file, so you can use it as an input to LLMs,... |
|
Experimental |
| 32 |
GithubUserAccountAmazing/ShortScript
Copy selected code and automatically remove comments, blank lines, and... |
|
Experimental |
| 33 |
ManasVardhan/promptdiff
📊 Git-style diff and version control for LLM prompts |
|
Experimental |
| 34 |
lpalbou/Contextuals
A lightweight Python library providing comprehensive contextual information... |
|
Experimental |
| 35 |
warrenth/ctxcraft
Evaluate and optimize your AI agent context. Save tokens, save money. |
|
Experimental |
| 36 |
shubhamgurunglama007-oss/vibediff
Git-native versioning layer for prompts and AI outputs |
|
Experimental |
| 37 |
Kalyanikhandare29/Agent-Skills-for-Context-Engineering
🛠️ Enhance AI agent systems with expert skills in context engineering to... |
|
Experimental |
| 38 |
tito1405/cueCLI
🛠️ Manage and reuse AI prompts from the command line with cueCLI for... |
|
Experimental |
| 39 |
robchrob/kontext-cli
Single-file Bash script for LLM context aggregation - configurable and sexy. |
|
Experimental |
| 40 |
ElliotOne/nl-deterministic-context-budgeting
Deterministic context budgeting for LLM prompts, demonstrating stable prompt... |
|
Experimental |
| 41 |
colthreepv/llm-context
A CLI tool that helps you generate context files for Large Language Models (LLMs). |
|
Experimental |
| 42 |
xiaoniu-578fa6bff964d005/com2fun
Transform document into function. |
|
Experimental |
| 43 |
seankim658/codeprompts
CLI and TUI tool for generating LLM prompts from your code. |
|
Experimental |
| 44 |
EdgeTypE/FolderToLLM
A PowerShell tool for Windows that recursively scans a directory, captures... |
|
Experimental |
| 45 |
terminus-labs-ai/sr2
Context engineering for AI Agents. Manage your LLM's context window with... |
|
Experimental |
| 46 |
NatsuDownBad/ctxpack
🧠 Manage and compress LLM conversation context windows using sliding,... |
|
Experimental |
| 47 |
aryamanpathak2022/promptvault
Version control for your LLM prompts. CLI + MCP server for Claude Code / Cursor. |
|
Experimental |
| 48 |
Davissss2/ContextSlimAI
ContextSlimAI - A powerful tool to optimize and reduce LLM context window... |
|
Experimental |
| 49 |
jaroslawdabrowski/pojo2md
Annotation-driven Java library for generating Markdown documents from POJOs.... |
|
Experimental |
| 50 |
Crystainexhaustible329/pack-my-code
Package code context into clean markdown for LLM prompts using a minimalist,... |
|
Experimental |
| 51 |
BroTop1Gg/reports-formater
A CLI tool to automate the formatting of technical documentation and... |
|
Experimental |
| 52 |
hamzahap/LLMContextOptimizer
Smart context preprocessing for LLMs — reduces tokens, improves relevance,... |
|
Experimental |
| 53 |
Stinger05189/xcerpt-app
A premium Context Staging IDE for AI workflows. Curate, compress, and stage... |
|
Experimental |
| 54 |
Projectcafetechnolgoies/RepoToPrompt
🚀 Convert your project structure into a single text file for LLMs,... |
|
Experimental |
| 55 |
Alexuuu123/docformat-gui
🛠️ Simplify Word document formatting with this tool that identifies and... |
|
Experimental |
| 56 |
ctxs-ai/ctxs.ai
an open-source, community-curated directory of contexts for use with LLMs |
|
Experimental |
| 57 |
flamehaven01/Dir2md
A CLI tool to transform a codebase into a single, LLM-optimized markdown... |
|
Experimental |
| 58 |
sserada/dfcontext
Generate optimal LLM context from pandas DataFrames within a token budget. |
|
Experimental |
| 59 |
JSLEEKR/prompt-vault
Git-native prompt version control CLI. Version, diff, test, and share LLM... |
|
Experimental |
| 60 |
gordonsay/ContextDrone
Build the context from anywhere, then bring it to any AI. |
|
Experimental |
| 61 |
E20C1/repo-glance
📁 Convert GitHub repos & local folders into a single text prompt for LLMs... |
|
Experimental |
| 62 |
1broseidon/promptext
Smart code context extractor for AI assistants |
|
Experimental |
| 63 |
AbstergoSweden/RUP-Protocol
RUP (Repository Upgrade Protocol) is something Ive worked months on. It is... |
|
Experimental |
| 64 |
natekali/itk
itk auto-detects what you're pasting and cleans it, frames it with context... |
|
Experimental |
| 65 |
glenzli/vasmc
A decentralized Markdown compiler for LLM prompts — modular imports,... |
|
Experimental |
| 66 |
youssefLabs/promptvc
Git-like version control for LLM prompts — commit, diff, checkout, and roll... |
|
Experimental |
| 67 |
jonathan-balderas/llm-context-project-pack
A "Project Pack" workflow for using an LLM like ChatGPT on real work... |
|
Experimental |
| 68 |
plait-dev/plait
Modular content composition engine — weave reusable snippets into AI... |
|
Experimental |
| 69 |
alexferrari88/prompt-scanner
Find buried AI prompts in any codebase. Instantly⚡ |
|
Experimental |
| 70 |
ako-kamattechan/Context_Packer
A deterministic tool for extracting, constraining, and packing project... |
|
Experimental |
| 71 |
aptsalt/context-engineering-academy
6 interactive academies teaching context window optimization for LLMs.... |
|
Experimental |
| 72 |
vagra/merge-src
CLI tool to merge source code into a single context file for LLMs. Features... |
|
Experimental |
| 73 |
TheLukCraft/AIContextPacker
A professional WPF app to intelligently package project files for AI... |
|
Experimental |
| 74 |
AxelDlv00/RepoToPrompt
RepoToPrompt is a tool that converts a repository into a single, structured... |
|
Experimental |
| 75 |
alextereshyt/Dir2Clip
A CLI tool to flatten directory contents to clipboard for LLM context. |
|
Experimental |
| 76 |
Yuki-Imajuku/lmctx
Context Kernel for LLM APIs — standardize before/after model calls; keep... |
|
Experimental |
| 77 |
s1korrrr/codebase-combiner
Combine a workspace or folder into a single Markdown/text file with filters... |
|
Experimental |
| 78 |
utilarium/overcontext
Overcontext provides infrastructure for defining and managing custom entity... |
|
Experimental |
| 79 |
ulissesflores/llm-contextizer
Zero-dependency Python CLI that converts entire codebases into... |
|
Experimental |
| 80 |
silvesterdivas/context-engineer
Context engineering best practices for Claude Code. Budget zones,... |
|
Experimental |
| 81 |
Asirwad/docsmitr
An AI-powered system that generates comprehensive documentation for any... |
|
Experimental |
| 82 |
BjornMelin/code2prompt
🚀 Code2Prompt transforms your codebase ZIP files into structured,... |
|
Experimental |
| 83 |
keli-wen/gitai-cli
Smart CLI for AI-driven Git commit & PR generation. |
|
Experimental |
| 84 |
Vraxo/Coalesce
A .NET CLI tool to merge your entire codebase into a single file for AI prompts |
|
Experimental |
| 85 |
sincekmori/gitingest-to-json
A high-performance web utility to convert Gitingest "Files Content" into a... |
|
Experimental |
| 86 |
JediRhymeTrix/PyCrust
PyCrust is a CLI tool that converts Python code to Rust using OpenAI's... |
|
Experimental |
| 87 |
gabriel-dahan/prompt-contextify
A tool to contextify your prompts and chats with your project structure and files. |
|
Experimental |
| 88 |
Nithish-raina/clix
AI-powered CLI command explainer and generator |
|
Experimental |
| 89 |
darshjme/chetana
Context window management for LLM agents — priority-based eviction, token... |
|
Experimental |
| 90 |
petro-byte/repo-context-exporter
Export code repositories into compact Markdown context files for LLM... |
|
Experimental |
| 91 |
dsfaccini/filebundler
File Bundler is an app to bundle project files together and use them for LLM... |
|
Experimental |
| 92 |
HadiFrt20/promptdiff
Git for prompts. Semantic diff, lint, score & Claude Code hook for LLM prompt files. |
|
Experimental |
| 93 |
samestrin/llm-prepare
Converts complex project directory structures and files into a streamlined... |
|
Experimental |
| 94 |
Yuan-ManX/context-engineering
Context Engineering - The art of providing all the context for the task to... |
|
Experimental |
| 95 |
jaywang98/flatcode
A smart CLI tool to flatten a project repository into a single,... |
|
Experimental |
| 96 |
JRay-Lin/ace-agents
Adaptive agentic context engineering framework for LLMs — generator,... |
|
Experimental |
| 97 |
angryflaren/nexus-weaver
Easily pack your entire project into a single text file for Large Language... |
|
Experimental |
| 98 |
lml2468/ContextOptimizer
Intelligent Context Engineering Assistant for Multi-Agent Systems. Analyze,... |
|
Experimental |
| 99 |
timosaarinen/promptly
Git-native desktop tool for crafting context-aware LLM prompts from local... |
|
Experimental |
| 100 |
alti3/repo-to-md
A command-line tool to generate a single Markdown file from repo, ready for... |
|
Experimental |
| 101 |
rostrovsky/sourceprompt
Converts your codebase into LLM prompt |
|
Experimental |
| 102 |
boredom1234/codebase-consolidator
A must-have tool for developers working with LLMs. It intelligently... |
|
Experimental |
| 103 |
angusgee/proompt-cat
Take your web dev project and concatenate all relevant files into one giant,... |
|
Experimental |
| 104 |
nuuner/contextfind
Quickly get content of files for the LLM |
|
Experimental |
| 105 |
cyberytti/CodeSqueeze
CodeSqueeze is a command-line tool that compress your codebase into a... |
|
Experimental |
| 106 |
shawhu/precoding
PreCoding is a command-line utility that scans a directory tree, collects... |
|
Experimental |
| 107 |
jbwfu/syntex
A CLI tool for consolidating source code into a single, context-aware file,... |
|
Experimental |
| 108 |
cmsolson75/skim
A fast, configurable CLI for generating LLM-ready code context |
|
Experimental |
| 109 |
rhajizada/copycat
CLI tool to copy your project source code as Markdown to clipboard for... |
|
Experimental |
| 110 |
IRedDragonICY/contextractor
A privacy-first tool to extract, tokenize, and optimize codebases for LLM... |
|
Experimental |
| 111 |
DavidLMS/DescribePDF
A tool to convert PDF files to detailed Markdown descriptions using VLMs |
|
Experimental |
| 112 |
lucianoayres/taco
Taco makes it easy to get your source code ready for LLMs. With just one... |
|
Experimental |
| 113 |
roberto-mello/opencode-micromanager
OpenCode plugin that intercepts the full LLM context before each request and... |
|
Experimental |
| 114 |
kunjucompany/repo2prompt
Convert git repos to text for passing into LLMs |
|
Experimental |
| 115 |
cetincevizcetoli/ai-context
TR: Yerel kaynak kodlarınızı Yapay Zeka modelleri (Claude, GPT) için tek... |
|
Experimental |
| 116 |
shakeeb-sa/code-chunker1
Paste your large code file below. Choose how you want to split it, and get... |
|
Experimental |
| 117 |
Med-Gh-TN/Crawlable
A SOTA AI-powered codebase extractor. Compress your entire repository into a... |
|
Experimental |
| 118 |
keyboardsmoke/promptgen
A prompt generator that incorporates minijinja2 and some functions to aid in... |
|
Experimental |
| 119 |
4383/inkspect
A CLI tool to streamline your LLM workflow by bringing prompt refinement and... |
|
Experimental |
| 120 |
NikkeTryHard/ContextCraft
A browser-based folder context generator for LLMs. |
|
Experimental |
| 121 |
DemonteiroWisc/note-to-prompt
A clean, client-side utility to convert Word, Google Docs, and OneNote... |
|
Experimental |
| 122 |
Programming-Sai/CtxIQ
Context and memory orchestration toolkit for building smarter AI assistants... |
|
Experimental |
| 123 |
Thesirix/EatMyTXT
Merges a whole project into one clean, readable text file. Perfect for... |
|
Experimental |
| 124 |
hasanalaniIT/llm_code_context_generator
Generate LLM-ready context packs of your codebase (tree + source) with... |
|
Experimental |
| 125 |
RoderickGrc/syntropic
Turn large codebases and documents into LLM-ready material from an optimized... |
|
Experimental |
| 126 |
eziron/CtxPacker
Herramienta CLI para condensar proyectos en un archivo Markdown estructurado... |
|
Experimental |
| 127 |
arthurdick/llm-formatter
A command-line tool to recursively format a project directory into a single,... |
|
Experimental |
| 128 |
rzxx/runtpl
A powerful command-line tool (CLI) for automating AI prompt creation, code... |
|
Experimental |
| 129 |
jruot/files-to-prompt-bash
Bash script to output directory structure and file contents for LLM prompts |
|
Experimental |
| 130 |
franklinharvey/codebase-doc
A Python tool to generate markdown documentation of your codebase by... |
|
Experimental |
| 131 |
jwalsh/files-to-prompt-el
Convert files to prompts for Large Language Models (LLMs) in Emacs. |
|
Experimental |