cma project (cma + cma-mcp)
Copyright 2026 Lovro Lucic

This product includes software developed by Lovro Lucic.

Components
----------

This repository ships two components, both Apache-2.0 licensed:

- **cma** (repository root): the canonical bash reference
  implementation of the compound practice loop. Seven primitives
  (miss, decision, reject, prevented, surface, distill, stats),
  texture preservation, recurrence detection, leak detection.
  Action-time injection via Claude Code hooks (PreToolUse +
  SessionStart) and shell preexec wrappers (zsh native, bash via
  bash-preexec).
- **cma-mcp** (cma-mcp/ subdirectory): the Python Model Context
  Protocol distribution wrapper. Exposes the same seven primitives
  and four context-resource surfaces to MCP-compatible AI clients
  (Claude Desktop, Cursor, Cline, Continue.dev). Subprocess
  wrapper around the bash cma binary; methodology-agnostic
  substrate; three-section payload discipline.

Licensing
---------

Code in this repository is licensed under Apache 2.0; see LICENSE
at repository root.

Methodology
-----------

cma is methodology-agnostic and bundles no methodology content. If
you tag captures with a methodology's failure-mode vocabulary, you
are responsible for citing that methodology in your own work.
