mgks/genctx
A node.js CLI tool to generate high-signal code context for AI agents and assistants.
When working with AI coding assistants or large language models (LLMs) like ChatGPT, you often need to feed them your codebase so they understand your project. This tool helps developers create a concise, relevant Markdown file from their project's source code, optimized for LLMs. It takes your code files and outputs a clean text summary, ensuring the AI gets the most important context without unnecessary 'noise' like comments or build artifacts.
Available on npm.
Use this if you are a software developer who regularly uses AI assistants to help with coding tasks and want to provide them with the best possible context from your project.
Not ideal if you need a tool to analyze or clean raw code snippets rather than entire file systems, or if you are not interacting with AI code assistants.
Stars
8
Forks
—
Language
JavaScript
License
MIT
Category
Last pushed
Jan 04, 2026
Commits (30d)
0
Dependencies
3
Get this data via API
curl "https://pt-edge.onrender.com/api/v1/quality/prompt-engineering/mgks/genctx"
Open to everyone — 100 requests/day, no key needed. Get a free key for 1,000/day.
Higher-rated alternatives
shcherbak-ai/contextgem
ContextGem: Effortless LLM extraction from documents
mufeedvh/code2prompt
A CLI tool to convert your codebase into a single LLM prompt with source tree, prompt...
ShahzaibAhmad05/gitree
An upgrade from "ls" for developers. An open-source tool to analyze folder structures and to...
nicepkg/ctxport
Copy AI conversations as clean Markdown Context Bundles — one click from ChatGPT, Claude,...
nikolay-e/treemapper
Export your entire codebase to ChatGPT/Claude in one command. Structure + contents in YAML/JSON...