Engineers modernizing a working historic rail terminal while preserving its original structure
← All insights

Brownfield development with Codex

Brownfield Development with Codex: Map Before You Change

The safest use of coding agents in mature systems begins with context recovery, a focused change and a tested path back.Field note

Point of view

Brownfield work changes a living system of code, data, people, integrations and decisions accumulated over time.

Codex is most valuable when it helps a team recover the system map, define the precise delta and verify that important existing behavior remains intact.

Brownfield change path

Map first. Change one seam. Keep reversal visible.

Use the model to connect the decisions, controls and evidence described below.
Controlled delta
  1. 01
    MapArchitecture and dependency evidence
  2. 02
    BaselineCharacterize current behavior
  3. 03
    SpecifyName the intended delta
  4. 04
    ChangeWork inside one focused seam
  5. 05
    ObserveVerify behavior in motion
  6. 06
    ReverseUse a planned rollback path

Recover the map

Read the system before asking it to move.

Identify entry points, boundaries, dependencies, data flows, conventions, tests, deployment paths and incident history. Ask Codex to explain evidence and cite the files or artifacts behind its model.

A codebase map is more useful than a file-by-file summary because risk travels through relationships.

Lock the present

Preserve existing behavior before specifying the delta.

Characterization tests and operational baselines establish what the system currently does—even when that behavior is imperfect. The new specification should state exactly what changes and what must not.

Small, reviewable increments reduce the distance between a change and its explanation.

Plan migration and return

A safe change includes its way back.

Data conversion, compatibility, staged rollout, observability and rollback belong in the implementation plan. Codex can accelerate analysis and scaffolding, but the team owns the transition.

Treat surprising legacy behavior as information before treating it as debris.

Design principles

Keep the operating logic visible.

  1. 01Map architecture and dependencies first.
  2. 02Lock existing behavior with evidence.
  3. 03Specify only the intended delta.
  4. 04Ship in reversible, observable increments.

What changes Monday

Turn the perspective into a focused next move.

  1. 01

    Ask Codex for an evidence-cited system map.

  2. 02

    Choose one focused seam and add characterization tests.

  3. 03

    Write the change and the non-change contract.

  4. 04

    Define migration, canary and rollback before implementation.

The goal is to improve a mature system while preserving the qualities and business knowledge that made it last.

Discuss this perspective