Trick for better context with Codex

Here’s a quick trick I developed when working with Codex.

I have multiple GitHub repos used to build a set of micro-services. To help Codex understand other projects and my coding guidelines, I maintain a copy of my latest code for each repo when they run a CI/CD to Azure Blob Storage.

In each repo, i am using the AGENTS.md to tell codex that in /workspace/code i’ll have my other projects as well as code examples there.

In the envrionment script, i download batch my whole blob storage container to /workspace/code. This forces me to have a SAS key for the download (my containers are not public for obvious reasons) but still exposes some challenges.

This way, i can refer to other projects as example, currate code examples and refer to other code depedencies that are private.

Anybody has a cleaner version ?

2 Likes