Skip to content

Setup Codex sandbox#1547

Open
white238 wants to merge 15 commits intodevelopfrom
feature/white238/codex-sandbox
Open

Setup Codex sandbox#1547
white238 wants to merge 15 commits intodevelopfrom
feature/white238/codex-sandbox

Conversation

@white238
Copy link
Member

@white238 white238 commented Feb 23, 2026

This is aimed at a good base for using the Codex Sandbox on LC. I put in effort to allow it to work on non-LC machines but haven't tried it personally. For example, the compute/login node script will default to compute if not on LC and put some guardrails recommended by ChatGPT that might sandbox you outside of a sandbox.

To be very clear, these are here to help but cannot be fully trusted. Only use Agentic AI on repos that you know dont have any work you care to lose since it can still revert/commit/delete.

@btalamini btalamini added the WIP Work in progress label Feb 25, 2026
@white238 white238 force-pushed the feature/white238/codex-sandbox branch from 9705d9e to bf22c8c Compare March 2, 2026 22:49
@white238 white238 added CS Computer science and software engineering ready for review Ready for active inspection by reviewers and removed WIP Work in progress labels Mar 4, 2026
Copy link
Collaborator

@tupek2 tupek2 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If you are interested in getting into the next level of this agentic stuff (which I haven't done yet), I'd recommend you research custom /slash commands (maybe for build or testing), and also the use of LLM hooks (where, for example, you can make a hook that after the agent makes code changes, it automatically builds the code, runs the tests, makes style, etc). Just something to be aware of that I'm not sure the initial tutorial covered. I'm personally more interested in these things than skills, which are mostly ignored.

AGENTS.md Outdated
@@ -0,0 +1,9 @@
# Repository Guidelines
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Having done this stuff now for a bit, all the reading and experience I have says not to have a common AGENTS.md file for the team. The skills are fine, also the sandboxing is important of course, but I will setup my AGENTS.md to be very specific to the computer I'm on, the task I'm doing, the things I see the LLM do wrong. its an iterative process. You could look at my current AGENTS.md and see its not something that makes sense to be common or shared by the team. Every LLM session injects this into context, and its very situation specific what I want to be injecting into my sessions like this. So, my recommendation is we rename this file (claude as well, though I guess claude should probably be deleted for now) to STARTER_AGENTS.md or SUGGESTED_AGENTS.md or INITIAL_AGENTS.md. People can choose to copy that to use as their own AGENTS.md (or not) as they see fit. Otherwise I'll be dealing with merge conflicts on the file forever, and I'd argue its best for people learning this stuff to figure out how to manage their own AGENTS.md to get experience.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

we would then put agents.md, AGENTS.md, CLAUDE.md and claude.md in .gitignore

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Removed the agents file. Do you think its worth it to add an ignore if we are recommending against them?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We are not recommending against them. We are highly encouraging them. But its an individual thing, so I've added CLAUDE.md, claude.md, AGENT.md, agent.md to my local git ignore.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

done.

2) Configure (recommended wrapper around CMake):

```bash
./config-build.py -bp build -ip install -hc host-configs/<file>.cmake -bt Debug --exportcompilercommands
Copy link
Collaborator

@tupek2 tupek2 Mar 5, 2026

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is this likely to default to everyone running debug by default? Its pretty common for people to tell me: 'this or that smith problem is slow' only for me to (after a day of work) realize they were default building debug. Now my default response to these this is: just build in release (which they often still ignore). I personally rarely build, test, or debug in debug. Maybe we want a release_build skill, and a debug_build skill.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Swapped to RelWithDebInfo by default unless specifically asked for a debug build.

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Release please. I people want to debug, the should probably run in debug.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Maybe we should discuss this in the technical meeting. RelWithDebInfo is nearly as fast (-O2 vs -O3) but does get you debug symbols. I was envisioning these files are mainly for out development. Are you expecting them to be used by people outside of our team? I feel this is a healthy middle ground and if someone really cares they can put it in their agents file or just tell it to use release.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

CS Computer science and software engineering ready for review Ready for active inspection by reviewers

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants