Lessons for engineering teams
Make technical work easier to explain, review and hand over. Use lessons on systems, problem-solving and collaboration to improve the next design discussion or written decision.
Lesson previews
Codex cannot ignore the sandbox, so you should not ignore it either. Sandboxing changes the solution space In the CLI, the agent works inside explicit filesystem, network, and approval boundaries. Those limits are not merely security features. They determine which technical paths are feasible. A migration that needs a remote database, a codegen step that writes outside the workspace, or a test suite that downloads assets may all be impossible in one run and routine in another. When you treat the sandbox as design input, the agent plans differently. It prefers local evidence, reads more before it edits, chooses commands…
5 minSort: Low-Risk vs High-Risk Codex CommandsPlace each command in the bucket that best reflects its likely blast radius during a Codex task. Low-risk evidence gathering Higher-risk branch changing Run rg "checkoutSession" src/ to trace a symbol before editing. Open the failing spec and the helper it imports before proposing a patch. Rerun the one failing Playwright spec after the patch lands. Run a repo-wide formatter on a dirty branch before the bug is localized. Regenerate snapshots across the whole test suite because one assertion changed. Apply a codemod to every file in the package while solving a single bug.
5 minSort: Signals To Widen Scope vs Signals To Tighten ScopeSort each signal based on what it should do to scope in a disciplined Codex run. Legitimate reason to widen scope Signal to tighten or split scope The reproduced bug traces into a shared helper that owns the failing contract. One additional regression test is needed to prove the shared helper change end to end. The direct caller must change because the corrected helper output shape is different. A nearby file could use naming cleanup even though it is not part of the bug path. A reviewer cannot understand why one file is present and the justification is weak. Codex…
5 minSort: Keep In This PR Or Split It OutSort each change by whether it belongs in the current bugfix PR or should be split out. Keep in this PR story Split into a later PR Update the shared serializer that owns the failing checkout contract. Adjust the direct checkout caller to match the corrected serializer output. Add the regression tests that prove the checkout fix. Rename nearby helper functions for stylistic consistency only. Refresh unrelated README wording while the package is open. Refactor a separate reporting utility because the code “looks old.”
5 minStart A Codex Run With The Real ConstraintsA strong Codex run begins with constraints, not heroics. Why the opening brief matters Codex can inspect, plan, edit, and verify, but it only does those things against the frame you provide. In practice, the first prompt is the difference between a precise fix and a long, expensive search. When you say "fix the bug," the agent has to decide which bug, which component, how much refactoring is allowed, and how it should prove success. Those hidden decisions are where scope drift starts. A better opening brief names four elements. Objective: what single outcome matters. Constraints: files, branch state, rules…
5 minVerification Is The Last Step, Not A Nice-To-HaveA plausible diff is not the same thing as a verified fix. Why verification belongs in the workflow Codex can move from inspection to patching very quickly, which is useful until that speed hides an untested assumption. An agent may read the right file and still misunderstand the full behavior. It may patch the direct failure while missing a second call site, or satisfy the compiler without satisfying the user-visible scenario. That is why the workflow must end with proof. Verification ties the code change back to the original objective. If the task was "stabilize the flaky checkout spec," the…
5 minWhen To Let Codex Touch More Than One FileA flaky export bug appears in one report screen, but Codex finds the root cause in a shared CSV serializer used across reporting. The agent proposes touching the serializer, the report screen, and two tests.
5 minWorked Walkthrough: Turn A Vague Request Into A Codex BriefA teammate asks, “Please clean up login and make the tests stop failing.” Objective -> Constraints -> Evidence -> Verification Vague prompts make Codex decide scope and success criteria on its own, which is how cleanup requests balloon into multi-file rewrites. Objective Replace “clean up login” with “stabilize the flaky login redirect test in apps/web.” The objective names one behavior and one surface area, which keeps the run anchored to a measurable outcome. Constraints Add “preserve the current auth session contract and do not broaden beyond login redirect behavior.” Constraints stop helpful-looking edits from expanding into unrelated auth redesign. Evidence…
5 minWhen A Screenshot Changes The Codex AskThe screenshot is real evidence, but Codex still needs the route, likely code boundary, and proof condition. QA sent a checkout screenshot where the total is hidden on mobile. What should Leo ask Codex to do first? Attach the screenshot, name the checkout route and viewport, ask Codex to inspect the rendering path before editing, and require a targeted repro or visual test. Right. This uses the image as evidence, keeps the first agentic step investigative, and ties any edit to a proof command. Attach the screenshot and say: make checkout look like production again. Too vague. Codex can see…
5 minCollective Action Problems and Public GoodsMarkets excel at allocating private goods (where one person's consumption prevents another's), but fail for public goods (where one person's consumption doesn't reduce others' ability to enjoy the good—national defense, clean air, knowledge). Individual incentives often push toward overuse of public resources and underprovision of public goods. Each fisherman benefits from catching as many fish as possible, but if all maximize individually, fish stock collapses. Each factory saves money by polluting, but if all do so, everyone suffers poisoned air. Each citizen wants others to vote for reform, but prefers to stay home and free-ride on others' efforts. These collective…
12 minCommit to a 15-Minute Troubleshooting Loop15-minute everyday troubleshooting loop Troubleshoot before you thrash Pick your trigger Choose a real trigger: a tool fails twice, a teammate says 'broken', a customer reports an error, or you feel the urge to change multiple things at once. Write the loop Use this scaffold: When this trigger happens, I will name known-good and known-bad, run one split, say expected versus actual, write the ticket note, then decide whether escalation threshold is met. Define escalation threshold Pick your threshold: customer-facing impact, money path, security/privacy risk, deadline within 60 minutes, or owner access outside your team. Make it observable Your follow-up…
5 minCommit to a 48-Hour AI Doc Review LoopUse a lightweight evidence review on one AI-assisted documentation draft. AI-generated help article, release note, API page, runbook, or screenshot-heavy procedure An AI-generated public help article includes permissions, limits, or setup steps that customers will follow. An AI-assisted release note claims which customer segments or plans receive a documentation-relevant change. An AI-generated runbook or knowledge-base article includes commands, workaround steps, or escalation rules. When [specific AI-assisted documentation draft] is ready for review, I will list the highest-risk claims, attach source evidence for each one, ask the right owner to verify behavior, and block any unsupported claim from publishing. My success…
5 minCommit to a Decision Quality CheckUse a five-question Decision Quality check before a real decision is approved. Choose a decision with enough consequence to deserve discipline: vendor choice, hiring call, roadmap trade-off, customer exception, pricing change, or budget allocation. Decision: ____ Frame: What decision are we actually making? Alternatives: What real options are on the table? Information: What evidence matters most, and what is still uncertain? Trade-offs: What value are we prioritizing over what other value? Commitment: Who owns the action, review date, and success signal? In 2 days, check whether you used the five-question checklist before approval and whether it changed the decision, clarified…
5 minCommit to a Docs-Impact Workflow Triggercomparison Add a docs-impact checkpoint to a real review workflow. Choose a live PR template, issue template, release checklist, or review ritual your team already uses. When a change affects a user-facing task, fact surface, or explanation need, I will add this prompt to the workflow: “Which tutorial, how-to, reference, or explanation page changed, and where is the update?” We will look for the exact template line, checklist item, or review question you added. In my next feature pull request that changes a setup step or field name When updating a release checklist for a customer-facing feature During the next…
5 minCommit to a First-Principles Resetrun a first-principles reset on a current workplace decision a real decision due soon where the inherited answer may be hiding assumptions Decision: ___. Outcome needed: ___. Facts: ___. Real constraints: ___. Assumptions to test: ___. Preferences to label: ___. Rebuilt option from the facts: ___. What changed in the decision: ___. In 3 days, check whether the reset happened, which assumption moved, and whether the final decision changed. A tool renewal where the team may be preserving a workflow because switching feels annoying rather than impossible. A process change where people keep saying 'we have to' but the real…
5 minCommit to a Real PremortemRun or schedule a 15-minute premortem before an upcoming decision approval, then convert the top risk into an owner, trigger, or decision change. Use this for a launch go/no-go, vendor migration, budget approval, roadmap commitment, or customer-impacting process change where optimism may be suppressing risk. Decision: ____ Premortem prompt: Assume this decision failed by _____. What were the top two causes? Participants: ____ Top risk to convert: ____ Owner: ____ Trigger or decision change: ____ Follow-up date: _____ In 3 days, check whether you ran or scheduled the premortem and whether at least one risk became an owner, trigger, or…
5 minCommit to an AI-Ready Knowledge ArticleCapture structured KCS evidence before generating a support knowledge article with AI. resolved support tickets, chatbot escalations, internal runbook fixes, or customer troubleshooting cases A resolved support ticket could become an AI-drafted knowledge-base article after customer-specific details are removed. A chatbot escalation reveals a documentation gap and you need to capture the symptom, fix, and verification before prompting AI. An internal runbook fix worked during an incident and should become a reusable AI-assisted troubleshooting article. When [resolved documentation-worthy support case] closes, I will capture symptom, environment, verified cause, verified fix, verification signal, and exclusions before asking AI to draft. I…
5 minCommit to Refactor One Live Pagecallout Refactor one live documentation page that currently mixes at least two Diataxis modes. Choose a real tutorial, how-to, reference, README, or onboarding page from your current docs set. I will update [page name] by removing or relocating [mixed section], then I will either split it into [new page type] or link to [target page] so the remaining page serves one user need clearly. We will check whether you changed a real page, not whether you thought about it. In my next docs pull request for a tutorial or onboarding page While revising a README that currently doubles as setup…
5 minCommit to a Two-Day Analytical DrillApply a MECE issue-tree and hypothesis-driven first test to one live analytical problem. A metric moved, a stakeholder asked for an explanation, or the team is debating solutions before causes are clear. I will analyze [specific problem] by first writing the parent question: [question]. I will split the issue into [4-6 MECE branches]. My first hypothesis is [branch + mechanism + segment]. The first evidence test I will run or schedule is [test + data source + stop rule]. Follow up in 2 days on whether the parent question, tree, hypothesis, and first test were completed. A KPI moved unexpectedly…
5 minAbstraction Is a FilterAbstraction is the art of leaving out the right things. Keep what changes the decision A useful abstraction is tied to a purpose. A map of the subway ignores building heights because riders do not need them. A map for firefighters cannot ignore exits. The same is true at work. A model for churn, hiring, incident response, or budget planning should keep the variables that change the next move and hide the details that only make the room feel informed. Abstraction works because it lets you reason at the right level. Too low, and you drown in individual records. Too…
5 minDecompose Before You AutomateAutomation starts with a map, not a tool. Split the work into executable units A vague workflow can look efficient because everyone involved already knows the missing context. That context disappears the moment you ask a system, a new teammate, or an automation rule to run the workflow. Decomposition forces the missing context into the open. You break the work into units that can be named, checked, and improved independently. Start with the outcome, then move backward. What input starts the work? What information must be transformed? Which decisions use stable rules? Which decisions depend on judgment, incomplete context, or…
5 minMap the Feedback LoopWeekend overtime temporarily lowers support backlog, but backlog rebounds higher because fatigue creates errors and rework. Variables -> causal links -> loop polarity -> leverage point The common trap is treating the latest backlog number as the whole problem, then pushing the same overtime lever harder. Name variables Use quantities that can change: backlog, overtime hours, fatigue, error rate, rework, and available capacity. Loop diagrams need variables, not vague labels like morale issue or busy team. Draw causal links Backlog increases overtime; overtime increases fatigue; fatigue increases error rate; errors increase rework; rework increases backlog. Each arrow states a cause-effect…
5 minSort the Core CT MovesPlace each workplace action into the computational-thinking move it best represents. Decomposition Pattern recognition Abstraction Algorithm design Split invoice handling into intake, validation, approval, and payment Notice that most late invoices are missing the same vendor field Represent customer health with three decision-relevant signals instead of 27 fields Write if amount is above threshold, route to secondary approval Break a quarterly close into data pull, reconciliation, review, and sign-off See that support escalations spike after every pricing email Hide individual ticket text and keep only severity, product area, and owner Create ordered steps for checking, flagging, and publishing a dashboard
4 minTriage the Messy WorkflowThe launch hour The dashboard is red, but not every red issue is the same kind of problem. Context-fit triage prevents both overthinking and reckless standardization. Sensemaking before solving Clear -> rule, complicated -> expert, complex -> probe, chaotic -> stabilize Classify cause-and-effect clarity before selecting the response. One lane everything becomes urgent noise Faster, cleaner response. Match the computational response to cause-and-effect clarity. 01 Runbook 02 Expert or probe 03 Now you try Step 1 Payment webhooks are failing with a known error code documented last quarter.
5 min