Source repository for Context Cost — essays on software design, context cost, and AI-assisted engineering, plus the online book Context Minimization Principle (CMP).
By Leric Zhang.
This repository’s GitHub Discussions is the public forum for everything published on contextcost.dev. The static site has no built-in comment widget; conversation happens here instead.
| What you read on the site | How to discuss it |
|---|---|
| CMP chapters | Each chapter footer links to Discuss this chapter → same Discussions space. Start a thread per chapter, or reply to an existing one. |
| Blog essays | Open a new discussion and mention the essay title or link (e.g. https://www.contextcost.dev/blog/…) so others can find the thread. |
Use Discussions for questions, counterarguments, examples from your own work, typo reports, and ideas that might become follow-up essays or CMP revisions. Pull requests are still the right channel for direct text fixes; Discussions is for dialogue that does not need to land as a patch immediately.
- Blog — Markdown/MDX essays under
src/content/blog/ - CMP research — structured chapters under
src/content/research/cmp/(also served at/cmp/)
Topics include software architecture, domain-driven design, AI coding agents, context engineering, and the CMP research program.
- Astro 5 (static output)
- Content collections with Zod schemas (
src/content.config.ts) - MDX, GFM, math via
remark-math+ KaTeX - Sitemap and RSS integrations
- leric/cmp — primary CMP paper / research source (canonical development may happen there; this repo hosts the published web edition).
| Scope | License |
|---|---|
CMP book content (src/content/research/cmp/, /cmp/ pages) |
CC BY 4.0 — see LICENSE-CMP.md |
| Site code, config, and non-CMP content | All rights reserved unless otherwise noted in file headers |
- GitHub: @leric
- Email: [email protected]