brain_context
Answer from the user's past: one bounded text packet to read before replying.
Instructions
Answer from the user's past: one bounded text packet to read before replying.
The default memory call: use it whenever a request may depend on earlier conversations,
facts, preferences, decisions or work. It returns `context`, a size-capped text of the
relevant memories and conversation turns, each with its date and source. For structured
rows, ids or one thing's history use brain_recall instead.
Set `recent=true` whenever the question is about what happened lately or what the user was
just doing: "what was I working on?", "where did we leave off?", "what did I do
yesterday?", "최근에", "아까", "어제", "지금 뭐 하고 있었지?". Results then come newest
first instead of by word overlap; naming something ("what did Kongi do lately") keeps them
about that. Set `since` (ISO date or time) to drop anything earlier, e.g. "this week".
Set `about_assistant=true` when the user asks what YOU said earlier: "which restaurant did
you recommend?", "what were the steps you gave me?", "네가 아까 뭐라고 했지?". Your own
past answers are then searched by meaning too, not only by their words.
Set `around` when the question is about WHEN WE TALKED: "what did we discuss last week?",
"지난달에 얘기한 거" -> resolve it yourself to a date or "start..end" (e.g. "2026-09-23"
or "2026-09-01..2026-09-30"). Conversations from then rank first; nothing is dropped.
Do not set it for when something HAPPENED ("the event I went to two weeks ago"): people
mention events days or weeks before or after, so that date misleads (measured: on dev2
it pushed the answering turn out in 2 of 11 questions and helped 2).
Each conversation item is one excerpt of one turn. Never tell the user you don't know
without first opening the item most likely to hold the answer:
brain_recall(source=<the text after "Source: <app> / ">) returns that turn in full with
the turns around it (your reply to that request, the rest of a list, the line before).
Open it too when an item you rely on is cut off.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| as_of | No | ISO time: only what had happened by then (default now). | |
| limit | No | Most items to return. | |
| query | Yes | The user's request, in their words. | |
| since | No | ||
| around | No | ||
| policy | No | auto skips requests with no sign of the past. | always |
| recent | No | ||
| scopes | No | Only these scopes, e.g. ["global"] or a project; default all. | |
| max_chars | No | Size cap of the returned text. | |
| about_assistant | No | ||
| knowledge_cutoff | No | ISO time: only what had been saved by then (default as_of). |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
No arguments | |||