Skip to content
/ ctx Public

📖 CLI to convert a codebase into a single markdown-formatted text file for LLM context.

License

Notifications You must be signed in to change notification settings

skidoodle/ctx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ctx

CLI to convert a directory tree and file contents into a single text file for LLM context. It respects .gitignore and comes with sensible defaults for ignoring binaries and lockfiles.

Installation

Go Install

go install github.com/skidoodle/ctx@latest

Binaries

Download pre-compiled binaries for Windows, macOS, and Linux from the Releases page.

Usage

Generate context for the current directory (outputs to ctx.txt):

ctx .

Generate context for a specific folder and save to a custom file:

ctx -o context.md ./src

Configuration

ctx ignores common artifacts (node_modules, .git, binaries) by default. To edit the global ignore list:

ctx -config

License

MIT

About

📖 CLI to convert a codebase into a single markdown-formatted text file for LLM context.

Topics

Resources

License

Stars

Watchers

Forks

Languages