Working with agentic coding assistants is a bit like pair programming with an amnesiac. They're able to quickly hammer out a bunch of changes, but the context window is ephemeral and fussy. They need to constantly go back and load portions of the code base to "remember" how something was built.
Git history is of course an insanely useful tool for viewing changes and additions to the codebase, and the agent is able to quickly ingest that history and evaluate exactly what's changed. What's missing is the intent. It's clear that on October 3, we removed a textfield from one entity and migrated its content to a taxonomy term with an entity relationship field. What's not clear is why. Commit messages and changelogs can carry some of that meaning, but they're not particularly structured data, nor are they a generally reliable history. Projects are filled with commit messages like "db schema change", or "rework attributes.py", which don't exactly jog the memory.
Something that's been dramatically improving my agentic coding practices is the use of ADRs, or Architectural Decision Records. I don't generally write all these myself, but I have a system prompt for Claude Code to create and amend ADRs based on the instructions I provide. I try to give a rationale behind each decision as we build and ship features, and I have standing instructions to update ADRs as we go, and to explicitly review all relevant records and make changes whenever a feature branch is merged to a release candidate or main. The policy is to never destructively edit ADRs, but to go back and insert notes to show that an earlier decision has been deprecated.
Here's an example:
0040. Projected cast shadows — tried and rejected; keep blob shadows
Status: rejected Date: 2026-07-19
Context
Ground shadows are a static bake (src/engine/lighting.ts + GameScene shadow layer): each prop gets a soft oval blob sized by footprint (BLOB_PX: small/medium/large/huge), buildings get their silhouette offset lower-right (stampBand). The wrecked tank (ADR 0039) exposed the blob's limit — a 7×4 hull over a fixed oval reads as floating — which we patched with a new huge blob size and a per-sprite vertical nudge (FEATURE_SHADOW_DY). That raised the question: is there a "smarter" way — a true cast shadow shaped like the object, instead of an oval?
Decision
Tried a projected/skew cast shadow on a throwaway branch; rejected it. Keep the blob shadows.
The prototype (branch skew-shadows, not merged): for each sprite, bake its trimmed alpha mask to a solid-black silhouette, then redraw it through a canvas affine transform — setTransform(1, 0, -SHEAR, -SQUASH, SHEAR·h, SQUASH·h) — that pins the sprite's bottom row and folds the rest downward (vertical squash) and sideways (horizontal shear), so the silhouette lies flat on the ground pointing away from the light. Cached per sprite, stamped at each object's foot, feature props only (trees kept their canopy blob).
It worked mechanically and was object-shaped, but it looked substantially worse than the blobs:
- Shearing a low-res pixel-art silhouette produces jagged, noisy edges — the shadow reads as a messy smear, not a clean shadow.
- Anchoring is finicky: the first pass added the light-offset on top of the shear and the shadows visibly detached from their objects; even once attached, a hard-edged sheared silhouette per prop is busier than a calm oval.
- A soft oval blob is deliberately low-information; it grounds the object without competing with the sprite. The projected version competes.
Consequences
- The blob-shadow system stays. When a shadow needs work, tune the blob — a larger
BLOB_PXentry (ashugedid for the tank) or aFEATURE_SHADOW_DYnudge — not projected geometry. - Don't re-propose projected/skew cast shadows for this pixel-art style. If ever revisited, it would need a fundamentally different render (e.g. higher-res shadow bake then downscale, or a soft blur) to beat the blob — a big lift for a small payoff.