context_write
Store reusable code, file contents, or notes under a stable key, then reference that key on ask to include context without re-pasting. Shared across agents.
Instructions
Store a chunk of context (code, file contents, a stack trace, design notes) under a stable key so you paste it ONCE and reuse it. Then pass context_ref='<key>' on ask to pull it in instead of re-pasting the same code into every call — the big lever against the re-paste tax, since the model can't see your repo. The store is shared by every agent on this server, so a sibling agent can context_read what you wrote. Reusing a key overwrites it. Give a one-line description so it shows usefully in context_list.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| key | Yes | Stable key to store this context under (e.g. 'repo:auth', 'ticket-431/stacktrace'). Reusing a key overwrites it. | |
| value | Yes | The context to store — code, file contents, a stack trace, design notes. Paste it ONCE here, then reference it by key via `context_ref` on `ask`. | |
| description | No | Optional one-line note about what this holds (shown in context_list). |