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 121 codebase context extraction tools tracked. 5 score above 50 (established tier). The highest-rated is shcherbak-ai/contextgem at 67/100 with 1,810 stars. 2 of the top 10 are actively maintained.

Get all 121 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

67
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...

60
Established
4 nicepkg/ctxport

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

55
Established
5 nikolay-e/treemapper

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

51
Established
6 WecoAI/weco-cli

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

48
Emerging
7 mkorpela/kopipasta

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

46
Emerging
8 obsfx/promptscout

Enrich coding agent prompts with codebase context using a local LLM

46
Emerging
9 backnotprop/prompt-tower

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

45
Emerging
10 glue-tools-ai/repogrok

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

45
Emerging
11 puntorigen/code2prompt

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

41
Emerging
12 yzfly/awesome-context-engineering

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

40
Emerging
13 kccarlos/gitcontext

Build Perfect Context of Your Codebase for Your AI Chatbot

38
Emerging
14 WinriseF/CtxRun

A tool that contains many tools

38
Emerging
15 sserada/dfcontext

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

37
Emerging
16 rasros/lx

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

36
Emerging
17 franklinkemta/codeindexer

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

35
Emerging
18 yigitkonur/cli-repo-to-prompt

export any codebase to a single LLM-ready markdown prompt

35
Emerging
19 mgks/genctx

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

34
Emerging
20 RoncoJhon/bettercontextoai

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

34
Emerging
21 mattmireles/Flatty

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

34
Emerging
22 timschmidt/cargo-prompt

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

33
Emerging
23 nesvet/fln

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

33
Emerging
24 OpenSpace-Dev/gittomd

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

33
Emerging
25 mohsinmv/promptref

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

32
Emerging
26 pluqqy/pluqqy-terminal

Terminal-based context management for AI driven development

31
Emerging
27 GithubUserAccountAmazing/ShortScript

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

31
Emerging
28 anup4khandelwal/context-pack

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

31
Emerging
29 frogermcs/codebase-dump

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

31
Emerging
30 colthreepv/llm-context

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

30
Emerging
31 xiaoniu-578fa6bff964d005/com2fun

Transform document into function.

29
Experimental
32 ctxs-ai/ctxs.ai

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

29
Experimental
33 tigreau/catclip

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

28
Experimental
34 1broseidon/promptext

Smart code context extractor for AI assistants

28
Experimental
35 lpalbou/Contextuals

A lightweight Python library providing comprehensive contextual information...

27
Experimental
36 tito1405/cueCLI

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

26
Experimental
37 seankim658/codeprompts

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

25
Experimental
38 gordonsay/ContextDrone

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

25
Experimental
39 Ertugrulmutlu/promptledger

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

25
Experimental
40 alexferrari88/prompt-scanner

Find buried AI prompts in any codebase. Instantly⚡

25
Experimental
41 BjornMelin/code2prompt

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

24
Experimental
42 ElliotOne/nl-deterministic-context-budgeting

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

23
Experimental
43 JediRhymeTrix/PyCrust

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

23
Experimental
44 E20C1/repo-glance

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

23
Experimental
45 AbstergoSweden/RUP-Protocol

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

23
Experimental
46 TheLukCraft/AIContextPacker

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

23
Experimental
47 ManasVardhan/promptdiff

📊 Git-style diff and version control for LLM prompts

23
Experimental
48 robchrob/kontext-cli

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

22
Experimental
49 glenzli/vasmc

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

22
Experimental
50 keli-wen/gitai-cli

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

22
Experimental
51 jonathan-balderas/llm-context-project-pack

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

22
Experimental
52 flamehaven01/Dir2md

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

22
Experimental
53 Stinger05189/xcerpt-app

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

22
Experimental
54 hamzahap/LLMContextOptimizer

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

22
Experimental
55 BroTop1Gg/reports-formater

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

22
Experimental
56 jaroslawdabrowski/pojo2md

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

22
Experimental
57 Davissss2/ContextSlimAI

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

22
Experimental
58 shubhamgurunglama007-oss/vibediff

Git-native versioning layer for prompts and AI outputs

22
Experimental
59 natekali/itk

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

22
Experimental
60 JSLEEKR/prompt-vault

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

22
Experimental
61 samestrin/llm-prepare

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

22
Experimental
62 youssefLabs/promptvc

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

22
Experimental
63 Yuan-ManX/context-engineering

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

21
Experimental
64 silvesterdivas/context-engineer

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

21
Experimental
65 Yuki-Imajuku/lmctx

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

21
Experimental
66 utilarium/overcontext

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

21
Experimental
67 Projectcafetechnolgoies/RepoToPrompt

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

21
Experimental
68 ulissesflores/llm-contextizer

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

21
Experimental
69 Alexuuu123/docformat-gui

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

21
Experimental
70 Asirwad/docsmitr

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

21
Experimental
71 alextereshyt/Dir2Clip

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

21
Experimental
72 AxelDlv00/RepoToPrompt

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

21
Experimental
73 aptsalt/context-engineering-academy

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

21
Experimental
74 aryamanpathak2022/promptvault

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

21
Experimental
75 ako-kamattechan/Context_Packer

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

21
Experimental
76 lml2468/ContextOptimizer

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

21
Experimental
77 plait-dev/plait

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

21
Experimental
78 NatsuDownBad/ctxpack

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

21
Experimental
79 rostrovsky/sourceprompt

Converts your codebase into LLM prompt

20
Experimental
80 gabriel-dahan/prompt-contextify

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

20
Experimental
81 boredom1234/codebase-consolidator

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

19
Experimental
82 lucianoayres/taco

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

19
Experimental
83 timosaarinen/promptly

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

19
Experimental
84 angusgee/proompt-cat

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

19
Experimental
85 rhajizada/copycat

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

19
Experimental
86 cyberytti/CodeSqueeze

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

18
Experimental
87 nuuner/contextfind

Quickly get content of files for the LLM

18
Experimental
88 alti3/repo-to-md

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

18
Experimental
89 jbwfu/syntex

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

18
Experimental
90 DavidLMS/DescribePDF

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

18
Experimental
91 vagra/merge-src

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

17
Experimental
92 angryflaren/nexus-weaver

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

17
Experimental
93 jruot/files-to-prompt-bash

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

17
Experimental
94 franklinharvey/codebase-doc

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

17
Experimental
95 jwalsh/files-to-prompt-el

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

17
Experimental
96 JRay-Lin/ace-agents

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

17
Experimental
97 dsfaccini/filebundler

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

17
Experimental
98 HadiFrt20/promptdiff

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

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

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

15
Experimental
100 darshjme/chetana

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

15
Experimental
101 Nithish-raina/clix

AI-powered CLI command explainer and generator

14
Experimental
102 Thesirix/EatMyTXT

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

13
Experimental
103 Programming-Sai/CtxIQ

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

13
Experimental
104 NikkeTryHard/ContextCraft

A browser-based folder context generator for LLMs.

13
Experimental
105 shakeeb-sa/code-chunker1

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

13
Experimental
106 Med-Gh-TN/Crawlable

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

13
Experimental
107 rzxx/runtpl

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

13
Experimental
108 cetincevizcetoli/ai-context

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

13
Experimental
109 RoderickGrc/syntropic

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

13
Experimental
110 hasanalaniIT/llm_code_context_generator

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

13
Experimental
111 4383/inkspect

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

13
Experimental
112 kunjucompany/repo2prompt

Convert git repos to text for passing into LLMs

13
Experimental
113 roberto-mello/opencode-micromanager

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

13
Experimental
114 keyboardsmoke/promptgen

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

13
Experimental
115 DemonteiroWisc/note-to-prompt

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

13
Experimental
116 eziron/CtxPacker

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

13
Experimental
117 arthurdick/llm-formatter

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

13
Experimental
118 eumel8/ai-commit

A Git Commit Hook with AI Support

12
Experimental
119 jashdubal/essence

String processing library for advanced NLP and keyword extraction

11
Experimental
120 pdh/ctxclip

code generation context toolkit

11
Experimental
121 IRedDragonICY/contextractor

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

10
Experimental