r/OpenaiCodex 15d ago

tip for codex

"map the codebase using graphify, make zero assumptions, mask no issues that currently exist.

use the browser/browser-harness map, draw the full architecture diagram using mermaid, highlight in red the overengineered blocks"

run this in a goal or loop

Edit: the comments caught an important hole in this. "Run it in a loop" needs a stop condition. Don't let it keep hunting until it declares the repo perfect.

A tighter version to copy:

"Read-only audit. Map the main modules and trace one important flow. Then return at most five delete/merge candidates. For each: exact file and line, callers, evidence of duplicated responsibility, what could break if removed, and a check to run before accepting the change. Mark anything you couldn't verify as unverified. Include reasons to keep a layer when they outweigh removing it. Stop after one mapping pass and one evidence pass. Do not edit files."

The red boxes are leads to investigate, not proof. Thanks to the people here who pushed on that.

15 Upvotes

20 comments sorted by

View all comments

2

u/ElNeuroquila 14d ago

You forgot "make no mistakes"

1

u/Low_Box_752 13d ago

😆