memory_context_pack
Bounded resume pack for an agent starting or resuming work.
One call returns {cursor, profile_excerpt, work_open, changes, has_more_changes, recall, truncated, token_est, budget_tokens}
packed to budget_tokens in that fixed section order, led by a
verbatim constraints list (same as the constraints prompt)
when the org has standing rules. Built from
the same paths as memory_profile_get, memory_changes_since and
memory_recall (shared brain: no agent filter). Persist cursor
and pass it next time to receive only newer changes. Use
memory_recall for further search and memory_assemble_context
for a task-driven pack.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| repo | No | Workspace slug. Filters the changes section to this repo and boosts (does not filter) recall hits. | |
| query | No | Optional short keyword anchor. When set, adds a capped, org-shared memory_recall section. Omit to skip recall. | |
| cursor | No | Opaque resume cursor from a previous memory_context_pack, memory_changes_since, or a closing context_commit / memory_session_close (handoff_cursor). Pass it back as-is. Omit on first contact to get the newest durable changes plus a cursor to resume from. | |
| github | No | GitHub owner/repo. Filters changes to github:<owner>/<repo> and boosts recall hits. | |
| work_id | No | Work item id to include as work_open (compact row) | |
| budget_tokens | No | Approx token cap for the whole pack (default 3000) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||