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

68
Established
2 mufeedvh/code2prompt

A CLI tool to convert your codebase into a single LLM prompt with source...

61
Established
3 ShahzaibAhmad05/gitree

An upgrade from "ls" for developers. An open-source tool to analyze folder...

61
Established
4 nicepkg/ctxport

Copy AI conversations as clean Markdown Context Bundles — one click from...

53
Established
5 mkorpela/kopipasta

`cat project | LLM | patch`. Transparent context control and interactive...

46
Emerging
6 glue-tools-ai/repogrok

Pack your entire codebase into a single AI-friendly file. Feed your repo to...

45
Emerging
7 WecoAI/weco-cli

The Platform for Self-Improving Code. Ideal for GPU kernels, ML model...

44
Emerging
8 obsfx/promptscout

Enrich coding agent prompts with codebase context using a local LLM

44
Emerging
9 puntorigen/code2prompt

NodeJS Class for transforming a given codebase directory into an LLM prompt

42
Emerging
10 backnotprop/prompt-tower

Context management for long-context LLMs, agents, and vibe coding. Instantly...

38
Emerging
11 WinriseF/CtxRun

A tool that contains many tools

37
Emerging
12 mohsinmv/promptref

Git-like version control for LLM prompts. Track, diff, branch, and rollback...

37
Emerging
13 uxname/kodu

High-performance CLI to prepare codebase for LLMs, automate reviews, and...

37
Emerging
14 nesvet/fln

Feed your entire codebase to any LLM in one shot. No attachment limits, no...

35
Emerging
15 nikolay-e/treemapper

Export your entire codebase to ChatGPT/Claude in one command. Structure +...

35
Emerging
16 rasros/lx

Recursively find, filter, and format code files for ChatGPT and Claude...

35
Emerging
17 yzfly/awesome-context-engineering

A curated collection of resources, papers, tools, and best practices for...

34
Emerging
18 kccarlos/gitcontext

Build Perfect Context of Your Codebase for Your AI Chatbot

32
Emerging
19 anup4khandelwal/context-pack

Task-specific repo context bundler for Claude Code & OpenAI Codex

31
Emerging
20 lguibr/CodeConcat

Prepare your code for AI. Concatenates your project into a clean,...

31
Emerging
21 franklinkemta/codeindexer

A lightweight CLI to index a codebase and create a context-ready prompt file

28
Experimental
22 yigitkonur/cli-repo-to-prompt

export any codebase to a single LLM-ready markdown prompt

28
Experimental
23 mgks/genctx

A node.js CLI tool to generate high-signal code context for AI agents and assistants.

28
Experimental
24 mattmireles/Flatty

transform an entire GitHub repo into a simple text file so that you can...

27
Experimental
25 OpenSpace-Dev/gittomd

🐙 Your entire GitHub repo, intelligently packaged into a single Markdown...

27
Experimental
26 RoncoJhon/bettercontextoai

Better Context to AI is a Visual Studio Code extension to easily share your...

27
Experimental
27 timschmidt/cargo-prompt

recursively minify and concatenate source code into a markdown document for...

26
Experimental
28 Ertugrulmutlu/promptledger

Local-first prompt version control for developers: Git-style history & diffs...

26
Experimental
29 tigreau/catclip

Easy-to-use, no-setup, CLI tool that finds files and folders by fuzzy name...

25
Experimental
30 pluqqy/pluqqy-terminal

Terminal-based context management for AI driven development

25
Experimental
31 frogermcs/codebase-dump

Dump your codebase into single file, so you can use it as an input to LLMs,...

24
Experimental
32 GithubUserAccountAmazing/ShortScript

Copy selected code and automatically remove comments, blank lines, and...

24
Experimental
33 ManasVardhan/promptdiff

📊 Git-style diff and version control for LLM prompts

24
Experimental
34 lpalbou/Contextuals

A lightweight Python library providing comprehensive contextual information...

24
Experimental
35 warrenth/ctxcraft

Evaluate and optimize your AI agent context. Save tokens, save money.

24
Experimental
36 shubhamgurunglama007-oss/vibediff

Git-native versioning layer for prompts and AI outputs

23
Experimental
37 Kalyanikhandare29/Agent-Skills-for-Context-Engineering

🛠️ Enhance AI agent systems with expert skills in context engineering to...

23
Experimental
38 tito1405/cueCLI

🛠️ Manage and reuse AI prompts from the command line with cueCLI for...

23
Experimental
39 robchrob/kontext-cli

Single-file Bash script for LLM context aggregation - configurable and sexy.

23
Experimental
40 ElliotOne/nl-deterministic-context-budgeting

Deterministic context budgeting for LLM prompts, demonstrating stable prompt...

23
Experimental
41 colthreepv/llm-context

A CLI tool that helps you generate context files for Large Language Models (LLMs).

23
Experimental
42 xiaoniu-578fa6bff964d005/com2fun

Transform document into function.

22
Experimental
43 seankim658/codeprompts

CLI and TUI tool for generating LLM prompts from your code.

22
Experimental
44 EdgeTypE/FolderToLLM

A PowerShell tool for Windows that recursively scans a directory, captures...

22
Experimental
45 terminus-labs-ai/sr2

Context engineering for AI Agents. Manage your LLM's context window with...

22
Experimental
46 NatsuDownBad/ctxpack

🧠 Manage and compress LLM conversation context windows using sliding,...

22
Experimental
47 aryamanpathak2022/promptvault

Version control for your LLM prompts. CLI + MCP server for Claude Code / Cursor.

22
Experimental
48 Davissss2/ContextSlimAI

ContextSlimAI - A powerful tool to optimize and reduce LLM context window...

22
Experimental
49 jaroslawdabrowski/pojo2md

Annotation-driven Java library for generating Markdown documents from POJOs....

22
Experimental
50 Crystainexhaustible329/pack-my-code

Package code context into clean markdown for LLM prompts using a minimalist,...

22
Experimental
51 BroTop1Gg/reports-formater

A CLI tool to automate the formatting of technical documentation and...

22
Experimental
52 hamzahap/LLMContextOptimizer

Smart context preprocessing for LLMs — reduces tokens, improves relevance,...

22
Experimental
53 Stinger05189/xcerpt-app

A premium Context Staging IDE for AI workflows. Curate, compress, and stage...

22
Experimental
54 Projectcafetechnolgoies/RepoToPrompt

🚀 Convert your project structure into a single text file for LLMs,...

22
Experimental
55 Alexuuu123/docformat-gui

🛠️ Simplify Word document formatting with this tool that identifies and...

22
Experimental
56 ctxs-ai/ctxs.ai

an open-source, community-curated directory of contexts for use with LLMs

22
Experimental
57 flamehaven01/Dir2md

A CLI tool to transform a codebase into a single, LLM-optimized markdown...

22
Experimental
58 sserada/dfcontext

Generate optimal LLM context from pandas DataFrames within a token budget.

22
Experimental
59 JSLEEKR/prompt-vault

Git-native prompt version control CLI. Version, diff, test, and share LLM...

22
Experimental
60 gordonsay/ContextDrone

Build the context from anywhere, then bring it to any AI.

21
Experimental
61 E20C1/repo-glance

📁 Convert GitHub repos & local folders into a single text prompt for LLMs...

21
Experimental
62 1broseidon/promptext

Smart code context extractor for AI assistants

21
Experimental
63 AbstergoSweden/RUP-Protocol

RUP (Repository Upgrade Protocol) is something Ive worked months on. It is...

21
Experimental
64 natekali/itk

itk auto-detects what you're pasting and cleans it, frames it with context...

20
Experimental
65 glenzli/vasmc

A decentralized Markdown compiler for LLM prompts — modular imports,...

20
Experimental
66 youssefLabs/promptvc

Git-like version control for LLM prompts — commit, diff, checkout, and roll...

20
Experimental
67 jonathan-balderas/llm-context-project-pack

A "Project Pack" workflow for using an LLM like ChatGPT on real work...

20
Experimental
68 plait-dev/plait

Modular content composition engine — weave reusable snippets into AI...

19
Experimental
69 alexferrari88/prompt-scanner

Find buried AI prompts in any codebase. Instantly⚡

19
Experimental
70 ako-kamattechan/Context_Packer

A deterministic tool for extracting, constraining, and packing project...

19
Experimental
71 aptsalt/context-engineering-academy

6 interactive academies teaching context window optimization for LLMs....

19
Experimental
72 vagra/merge-src

CLI tool to merge source code into a single context file for LLMs. Features...

19
Experimental
73 TheLukCraft/AIContextPacker

A professional WPF app to intelligently package project files for AI...

19
Experimental
74 AxelDlv00/RepoToPrompt

RepoToPrompt is a tool that converts a repository into a single, structured...

19
Experimental
75 alextereshyt/Dir2Clip

A CLI tool to flatten directory contents to clipboard for LLM context.

19
Experimental
76 Yuki-Imajuku/lmctx

Context Kernel for LLM APIs — standardize before/after model calls; keep...

19
Experimental
77 s1korrrr/codebase-combiner

Combine a workspace or folder into a single Markdown/text file with filters...

19
Experimental
78 utilarium/overcontext

Overcontext provides infrastructure for defining and managing custom entity...

19
Experimental
79 ulissesflores/llm-contextizer

Zero-dependency Python CLI that converts entire codebases into...

19
Experimental
80 silvesterdivas/context-engineer

Context engineering best practices for Claude Code. Budget zones,...

19
Experimental
81 Asirwad/docsmitr

An AI-powered system that generates comprehensive documentation for any...

19
Experimental
82 BjornMelin/code2prompt

🚀 Code2Prompt transforms your codebase ZIP files into structured,...

17
Experimental
83 keli-wen/gitai-cli

Smart CLI for AI-driven Git commit & PR generation.

16
Experimental
84 Vraxo/Coalesce

A .NET CLI tool to merge your entire codebase into a single file for AI prompts

16
Experimental
85 sincekmori/gitingest-to-json

A high-performance web utility to convert Gitingest "Files Content" into a...

16
Experimental
86 JediRhymeTrix/PyCrust

PyCrust is a CLI tool that converts Python code to Rust using OpenAI's...

16
Experimental
87 gabriel-dahan/prompt-contextify

A tool to contextify your prompts and chats with your project structure and files.

16
Experimental
88 Nithish-raina/clix

AI-powered CLI command explainer and generator

15
Experimental
89 darshjme/chetana

Context window management for LLM agents — priority-based eviction, token...

15
Experimental
90 petro-byte/repo-context-exporter

Export code repositories into compact Markdown context files for LLM...

15
Experimental
91 dsfaccini/filebundler

File Bundler is an app to bundle project files together and use them for LLM...

15
Experimental
92 HadiFrt20/promptdiff

Git for prompts. Semantic diff, lint, score & Claude Code hook for LLM prompt files.

15
Experimental
93 samestrin/llm-prepare

Converts complex project directory structures and files into a streamlined...

15
Experimental
94 Yuan-ManX/context-engineering

Context Engineering - The art of providing all the context for the task to...

15
Experimental
95 jaywang98/flatcode

A smart CLI tool to flatten a project repository into a single,...

15
Experimental
96 JRay-Lin/ace-agents

Adaptive agentic context engineering framework for LLMs — generator,...

15
Experimental
97 angryflaren/nexus-weaver

Easily pack your entire project into a single text file for Large Language...

15
Experimental
98 lml2468/ContextOptimizer

Intelligent Context Engineering Assistant for Multi-Agent Systems. Analyze,...

15
Experimental
99 timosaarinen/promptly

Git-native desktop tool for crafting context-aware LLM prompts from local...

13
Experimental
100 alti3/repo-to-md

A command-line tool to generate a single Markdown file from repo, ready for...

13
Experimental
101 rostrovsky/sourceprompt

Converts your codebase into LLM prompt

13
Experimental
102 boredom1234/codebase-consolidator

A must-have tool for developers working with LLMs. It intelligently...

13
Experimental
103 angusgee/proompt-cat

Take your web dev project and concatenate all relevant files into one giant,...

12
Experimental
104 nuuner/contextfind

Quickly get content of files for the LLM

12
Experimental
105 cyberytti/CodeSqueeze

CodeSqueeze is a command-line tool that compress your codebase into a...

12
Experimental
106 shawhu/precoding

PreCoding is a command-line utility that scans a directory tree, collects...

12
Experimental
107 jbwfu/syntex

A CLI tool for consolidating source code into a single, context-aware file,...

12
Experimental
108 cmsolson75/skim

A fast, configurable CLI for generating LLM-ready code context

12
Experimental
109 rhajizada/copycat

CLI tool to copy your project source code as Markdown to clipboard for...

12
Experimental
110 IRedDragonICY/contextractor

A privacy-first tool to extract, tokenize, and optimize codebases for LLM...

12
Experimental
111 DavidLMS/DescribePDF

A tool to convert PDF files to detailed Markdown descriptions using VLMs

12
Experimental
112 lucianoayres/taco

Taco makes it easy to get your source code ready for LLMs. With just one...

12
Experimental
113 roberto-mello/opencode-micromanager

OpenCode plugin that intercepts the full LLM context before each request and...

11
Experimental
114 kunjucompany/repo2prompt

Convert git repos to text for passing into LLMs

11
Experimental
115 cetincevizcetoli/ai-context

TR: Yerel kaynak kodlarınızı Yapay Zeka modelleri (Claude, GPT) için tek...

11
Experimental
116 shakeeb-sa/code-chunker1

Paste your large code file below. Choose how you want to split it, and get...

11
Experimental
117 Med-Gh-TN/Crawlable

A SOTA AI-powered codebase extractor. Compress your entire repository into a...

11
Experimental
118 keyboardsmoke/promptgen

A prompt generator that incorporates minijinja2 and some functions to aid in...

11
Experimental
119 4383/inkspect

A CLI tool to streamline your LLM workflow by bringing prompt refinement and...

11
Experimental
120 NikkeTryHard/ContextCraft

A browser-based folder context generator for LLMs.

11
Experimental
121 DemonteiroWisc/note-to-prompt

A clean, client-side utility to convert Word, Google Docs, and OneNote...

11
Experimental
122 Programming-Sai/CtxIQ

Context and memory orchestration toolkit for building smarter AI assistants...

11
Experimental
123 Thesirix/EatMyTXT

Merges a whole project into one clean, readable text file. Perfect for...

11
Experimental
124 hasanalaniIT/llm_code_context_generator

Generate LLM-ready context packs of your codebase (tree + source) with...

11
Experimental
125 RoderickGrc/syntropic

Turn large codebases and documents into LLM-ready material from an optimized...

11
Experimental
126 eziron/CtxPacker

Herramienta CLI para condensar proyectos en un archivo Markdown estructurado...

11
Experimental
127 arthurdick/llm-formatter

A command-line tool to recursively format a project directory into a single,...

11
Experimental
128 rzxx/runtpl

A powerful command-line tool (CLI) for automating AI prompt creation, code...

11
Experimental
129 jruot/files-to-prompt-bash

Bash script to output directory structure and file contents for LLM prompts

10
Experimental
130 franklinharvey/codebase-doc

A Python tool to generate markdown documentation of your codebase by...

10
Experimental
131 jwalsh/files-to-prompt-el

Convert files to prompts for Large Language Models (LLMs) in Emacs.

10
Experimental