CodeSelect
Tool · Free
A small Python utility for selecting files and packaging source code into one LLM document. Adds the project tree and import map to retain connected context in an ordinary chat.
What you can use for free
The local program is free and requires no inference or cloud APIs.
Access and limitations
The local program is free and requires no inference or cloud APIs. Requires Python 3.9+; native Windows also requires windows-curses and a clipboard tool.
Use cases
- Send a selected project section to an ordinary chat
- Assemble a document with the file tree and imports
Example workflow
A possible workflow; this is not a report of hands-on testing.
Example workflow with CodeSelect: Send a selected project section to an ordinary chat.
Before you start
- A question about the code and the files relevant to its cause.
- The context size limit and information that must not be sent to an external model.
Steps
- For the task “Send a selected project section to an ordinary chat”: select the smallest connected set of files: implementation, call sites, and relevant settings.
- Exclude secrets and unrelated material, then provide the context with a precise question.
- Check the answer against the original files; if information is missing, add only the necessary section.
Check your result
- The context includes the required dependencies; the answer refers to existing symbols and real files.
- Check selected files and transmission volume before contacting an external model.
Choosing CodeSelect
Send a selected project section to an ordinary chat
Choose this when
- Send a selected project section to an ordinary chat
- Assemble a document with the file tree and imports
Requirements
- Python 3.9+; native Windows requires windows-curses and an available clipboard tool.
Things to consider
- Access terms: The local program is free and requires no inference or cloud APIs. Requires Python 3.9+; native Windows also requires windows-curses and a clipboard tool.
- Terms of use: GPL-3.0.
- The import map uses regular expressions and name matching, so false matches are possible. Nested .gitignore files are not read; root .gitignore, optional .projectignore, and global ignore files are respected.
- Export includes the absolute project path.
- There is no token count or file size limit. In llm format, analysis reads every file in the remaining tree, including unselected files; this may be slow in large repositories.
- All files are initially selected. Export may contain information about imported but unselected files; inspect the whole document before sending it to chat.
Frequently asked questions
What can you use for free in CodeSelect?
The local program is free and requires no inference or cloud APIs.
What are the access terms for CodeSelect?
The local program is free and requires no inference or cloud APIs. Requires Python 3.9+; native Windows also requires windows-curses and a clipboard tool.
What terms of use matter for CodeSelect?
GPL-3.0.
Which environment can you use CodeSelect in?
Tech stack: Python.
How do you get started with CodeSelect?
For the task “Send a selected project section to an ordinary chat”: select the smallest connected set of files: implementation, call sites, and relevant settings. Exclude secrets and unrelated material, then provide the context with a precise question. Check the answer against the original files; if information is missing, add only the necessary section.
What should you consider when choosing CodeSelect?
The author explicitly notes that Codex and other agents already read repositories themselves. More useful for ordinary chat and strict context selection than as a mandatory Codex extension.
What should be considered when exporting a project?
Imports are identified by regular expressions, rather than a full parser. Root .gitignore, .projectignore, and global ignore files are respected, but nested .gitignore files are not. Export includes the absolute project path; llm format also includes a dependency map for unselected files. There is no built-in size limit or token count.
Can context be saved to a file without clipboard copying?
Yes: --no-clipboard disables copying, -o specifies a file, and --format chooses llm, md, or txt. The import map is included in llm; md and txt format the tree and selected sources differently. --skip-selection includes all nonignored files, so retain the selection interface for precise selection.
Tech stack
- Python
License
GPL-3.0.
GPL 3.0 — open-source code with copyleft
You can run, modify, and sell the program. When distributing a GPL program or a derivative product based on it, recipients must receive the corresponding source code and GPL rights; GPL-covered code cannot be made closed-source. Ordinary use of a tool does not make your project or the independent outputs it creates subject to GPL.
License termsUsage details
The author explicitly notes that Codex and other agents already read repositories themselves. More useful for ordinary chat and strict context selection than as a mandatory Codex extension.
Technologies and topics
- Python