Compact Context: a local five-file starting map for Codex #41642
mithatb
started this conversation in
Show and tell
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
I built Compact Context, an MIT-licensed, local repository router for Codex.
The idea is deliberately small: before a qualifying coding turn, it ranks local repository metadata and gives Codex up to five likely files. Codex still has normal access to the full repository and reads the authoritative source before editing.
It uses Python's standard library, makes no additional model calls, does not upload source code, and abstains when the match is weak.
Measured result
On a frozen 68-task benchmark across 10 public repositories and four ecosystems:
Important limitation: this measures the starting-map payload, not total Codex tokens or billing, and the retrieval difference is not statistically established as a quality improvement.
Try it
Repository: https://github.com/mithatb/compact-context
Benchmark and row-level data are included in the repository.
I'd especially value feedback from people using Codex on larger Python, JavaScript/TypeScript, Go, or Rust repositories:
Failures and reproducible counterexamples are very welcome.
All reactions