Record an entry
record_entryWrite down something the next agent or teammate on this project must know: a decision and why it was made, a lesson from something that broke or was reverted, a guardrail (a rule not to break), a note, or a task to be done. Record a lesson whenever a change is rolled back or a fix took real digging, and a decision whenever an approach is chosen over another. kind is decision, lesson, guardrail, note or task; give a short title, the details in body (what happened, why, what to do instead) and optional tags. When this replaces an earlier entry, put its id in supersedes and the old one is retired with a pointer to this one. Recording the exact same entry again returns the existing one and uses no entries. Returns the entry with its id (KNOW-n, or TASK-n for a task); a body over 600 characters is echoed back as an excerpt marked body_truncated. Put your name in agent; the server also records which key wrote it. If this entry started a new ledger while the account has others, the result has new_project, known_projects and a hint: when this repository's ledger is one of those, use its name from now on.
Costs 1 entry credit per successful call; failed calls are free.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| body | No | The details: what happened or was decided, why, and what to do instead. | |
| kind | Yes | What sort of entry this is. | |
| tags | No | Words to find it by, such as the component it is about. | |
| agent | No | Who is recording, such as "claude-code on dimaino's laptop". Shown to whoever reads the entry, next to the author the server records. | |
| title | Yes | One line saying what it is. | |
| project | Yes | The project, usually the repository ("owner/repo" or a short name). Entries are kept per project. | |
| supersedes | No | The id of an entry this one replaces (KNOW-n); it is retired. |