一键导入
search-event-history
Search through past events in the event log files. Use when you need to look up something that happened previously but didn't store in memory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
菜单
Search through past events in the event log files. Use when you need to look up something that happened previously but didn't store in memory.
用 Codex 或 Claude 帮你安装 复制这段 Prompt,粘贴到 Codex、Claude 或其他助手里,让它检查 Skill 页面并帮你完成安装。
基于 SOC 职业分类
Submit a bug report to libraries within the `mngr` project (eg, `mngr`, its plugins, `minds`, etc). Use to report bugs you encounter while running that seem to be issues with the `mngr` code itself, rather than with your own code or configuration.
Run commands to explore the current state of mngr and any relevant running agents. Use this skill when you need to debug issues with mngr tasks, or understand what tasks are currently running and their states.
Handle events from the mngr/agent_states source about sub-agent state transitions (finished, waiting, done, etc). You **MUST** use this skill (and *carefully follow the process in this doc*) whenever you receive a message from the "mngr/agent_states" source!
Clean up old agents, their output directories, and other historical data. Use during nightly cleanup or when the system has accumulated stale data.
Handle unexpected situations where the Minds system does not appear to be working as expected. Use when you encounter behavior that seems to contradict what your docs and prompts and skills say should happen, or when something seems broken and you are unsure how to proceed.
Create a sub-agent to perform a task. Use when you need to delegate work to another agent, for example, a working agent (for actually accomplishing some task) or a verifying agent (for deciding what to do about the output of a working agent).
| name | search-event-history |
| description | Search through past events in the event log files. Use when you need to look up something that happened previously but didn't store in memory. |
Event logs are stored as JSONL files under $MNGR_AGENT_STATE_DIR/events/<source>/events.jsonl.
You can search them using standard tools like grep and jq.
Be careful about how much data you load into context. Event files can be very large, and individual events can contain large payloads. Always inspect the shape and size of the data before loading full content.
You should generally prefer to use sub-agents or your delegate-task-to-agent skill for larger or more complex explorations of event history, but for quick lookups or simple queries, see below for some tips on how to search event logs directly.
( cd $MNGR_AGENT_STATE_DIR/events/ && find -name events.jsonl -printf '%h\n' | sed 's|^\./||' )
Before reading event content, check how large the fields are to avoid pulling huge payloads into context:
# See the size (in characters) of each field for each event
cat "$MNGR_AGENT_STATE_DIR/events/<source>/events.jsonl" | tail -20 | jq -c '[to_entries[] | .value = (.value | tojson | length)] | from_entries'
This tells you which fields are small (IDs, timestamps) and which are large (content, data payloads). Only load the fields you actually need.
grep '<pattern>' "$MNGR_AGENT_STATE_DIR/events/<source>/events.jsonl" | jq -c '[to_entries[] | .value = (.value | tojson | length)] | from_entries'
When you know which fields you need, use jq to select only those fields:
# Get just timestamps and event types from recent events
tail -50 "$MNGR_AGENT_STATE_DIR/events/<source>/events.jsonl" | jq -c '{timestamp, type, event_id}'
# Get message metadata without loading content
tail -50 "$MNGR_AGENT_STATE_DIR/events/messages/events.jsonl" | jq -c '{timestamp, conversation_id, role, event_id}'
# Get content only for a specific conversation
grep '<conversation-id>' "$MNGR_AGENT_STATE_DIR/events/messages/events.jsonl" | jq -c '{role, content}'
grep '"<agent-id>"' "$MNGR_AGENT_STATE_DIR/events/mngr/agent_states/events.jsonl" | jq -c '{timestamp, state, event_id, agent_id}'
# Events after a specific timestamp
cat "$MNGR_AGENT_STATE_DIR/events/<source>/events.jsonl" | jq -c 'select(.timestamp > "2026-03-15T00:00:00")' | jq -c '[to_entries[] | .value = (.value | tojson | length)] | from_entries'
tail, head, or jq select() to avoid loading entire log files into context, and use | jq -c '[to_entries[] | .value = (.value | tojson | length)] | from_entries' to restrict to just field sizes.content field might be thousands of characters or more.jq to project specific fields rather than loading full events.aggregate_events paths in aggregate events), be especially cautious -- always inspect field sizes before loading content.