Working context
crbro_contextRead or update persistent working context: active topics, open items, recently closed, and last session. Close completed items so later sessions do not repeat them.
Instructions
Read or write the working context: active topics, open items, recently closed, last session. Called with no arguments it only reads (written:false, nothing touched); any argument writes and returns the full state plus resolved and discarded. Close items as soon as they are done — resolve_pending records them in recently_closed, discard_pending drops one without recording it, clear empties everything — because an item left open is repeated back to the user in later sessions long after it was finished. Sessions are logged by crbro_consolidate, not here.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| clear | No | Empty active_topics, pending_tasks and recently_closed. Runs before the other updates in the same call. | |
| set_topics | No | Replace the whole active-topics list with these neuron ids (no merge). crbro_consolidate also rewrites it from the session. | |
| add_pending | No | Add an open item, written so it can be checked later. Identical text is deduplicated, so re-adding is a safe no-op. | |
| discard_pending | No | Drop an open item by id or 8+ characters of its text WITHOUT recording it as done (it never appears in recently_closed). Same matcher as resolve_pending; matches come back in discarded. | |
| resolve_pending | No | Close an open item by id (e.g. "p_ab12cd") or by 8+ characters of its text (case-insensitive substring; several items can close at once). Matches move to recently_closed, newest first, capped at 15. An empty resolved in the reply means nothing matched. |