codex icon indicating copy to clipboard operation
codex copied to clipboard

Feature Request: Easy Way to Add/Remove Files for Context And Specify Maximum Context Length

Open chigkim opened this issue 1 year ago • 2 comments

Apologies if this feature already exists, but I’ve been searching for it over the past few days without success. I’m testing out codex -p ollama with DevStral, and the good news is that Codex is successfully communicating with the model. However, I haven’t found a straightforward way to add or remove specific files from the context. Running codex -f seems to include everything even assets and binary files. Also, how can I configure the maximum context size? The default appears to be set at 2,000,000, which is too large for a local model. There must be simple ways for these tasks in order to make local models more usable. Thanks!

chigkim avatar May 25 '25 21:05 chigkim

There is actually a big list of default ignored file types and folders, in context_files.ts. Unfortunately, you would have to recompile any time you wanted to change the list. I'll see if I can get a system for reading from a .codexignore working.

christophkogler avatar May 29 '25 19:05 christophkogler

This feature request has been open for more than six months and hasn't received any upvotes, so I'm going to close it.

etraut-openai avatar Nov 16 '25 07:11 etraut-openai