Context Minimization Principle

Software design is for modification.

Correct modification requires sufficient context.

Good design makes that context cheaper to acquire.

For the modifications a system must realistically support, a design is better when the sufficient context required for correct modification is cheaper to acquire.

Citation

If you reference this work in academic or technical writing, please cite:

@online{zhang2026cmp,
  author  = {Zhang, Lianghui},
  title   = {Context Minimization Principle},
  year    = {2026},
  url     = {https://www.contextcost.dev/cmp/},
}

GitHub repository

Put CMP into your agent

CMP is not only a book — it ships as two Agent Skills you can install in Cursor, Claude Code, and other coding agents: a pre-task planner and a post-task reflection loop.

CMP Skills — download & install