context
Store, pack, or delete reusable code and file bundles under a key for sharing across agents, so large blobs are pasted once and referenced instead of repeated.
Instructions
Change the shared context bus — dispatched by op. 'write' stores value under key (paste a big blob ONCE, then reference it via context_ref instead of re-pasting it every call); 'pack' reads the repo files named in paths (each path or path:START-END, relative to the configured project root) and stores the budgeted bundle under key; 'delete' removes key. Reusing a key overwrites it, and the store is shared by every agent on this server — read with context_read first. Destructive/overwriting.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| op | Yes | 'write' stores `value` under `key`; 'pack' reads the repo files in `paths` and stores the bundle under `key`; 'delete' removes `key`. | |
| key | Yes | The context key (required for every op). | |
| paths | No | op='pack': file specs relative to the configured project root, each a path or `path:START-END` (1-indexed inclusive). | |
| value | No | op='write': the context to store — code, file contents, a stack trace, design notes. Paste it ONCE, then reference it by key via `context_ref`. | |
| max_chars | No | op='pack': optional cap on total packed characters (default ~24000). | |
| description | No | op='write': optional one-line note about what this holds. |