01Navigation beats full ingestion
Large repositories do not fit coherently in context. Search filenames and symbols, read local instructions, trace call sites, and load only the slice needed. Maintain a compact map of decisions and open questions.
Begin with repository instructions, file ownership, and the requested behavior. Search for symbols, call sites, and existing tests; read the smallest coherent slice that explains the path. Importing the whole repository into context creates noise and still omits execution state. Distinguish authoritative source from generated output, vendored code, and untrusted task data.
Write a causal hypothesis before editing: “this branch drops the tenant filter, so I will repair the query construction and check the cross-tenant case.” That links a proposed change to observable behavior. Keep a short map of relevant files, constraints, and unanswered questions. If the hypothesis fails, update it from evidence rather than broadening the patch randomly.
- Repository state is the source of truth
- Generated/vendor areas have different ownership
- Search before guessing APIs