context_log
Record decisions, changes, questions, tasks, or notes to a shared working state. Each entry stores intent and facts, not procedures, with optional references to files or commits.
Instructions
Append an entry to the shared working state so other tools see it:
type = decision | change | question | task | note. refs is optional JSON
(e.g. {"files": ["..."], "commit": "abc123"}). Returns the new entry id.
Store WHAT/WHY (facts, decisions, intent), not HOW (procedure). A change is
"done" only when merged in git — include refs.commit/refs.pr; without a ref it
is recorded as a CLAIM (verify with context_verify).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| refs | No | ||
| type | Yes | ||
| content | Yes | ||
| segment | Yes |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| result | Yes |