/memfleet-skills:memfleet-query-episodesfrom memfleet-skills
Searches episodes across a repository filtered by node, intent type, conflict class, time range, or agent. Useful for polling, retrospective audits, and conflict inbox queries.
Ships in memfleet-skills. Installing the plugin adds it to Claude Code.
What the skill costs in Claude's context, stage by stage
Name and description: Claude knows it exists.
SKILL.md joins the conversation and stays.
None: SKILL.md is the whole skill.
The generic, filtered episode search. Use it for:
subscribe push is unavailable (Phase-1)conflict_class: "B" or "C" to find episodes that need attentionFor per-symbol activity, use memfleet-node-state (cheaper, precomputed). For a single known episode_id, use get_episode.
| Tool | Purpose |
|---|---|
query_episodes | Filtered episode list with cursor-based pagination |
get_episode | Fetch one episode by episode_id |
Parameter types: MCP parameters are strictly typed.
limitMUST be a JSON number.sinceis an opaque cursor string returned by a prior call (NOT a timestamp).intent_kindandconflict_classare JSON-shaped enum filters.
Build a filter object from any subset of:
| Filter field | Type | Example |
|---|---|---|
symbol | string (NodeIdentity) | "UserRoleRepo.find" |
module | string (prefix) | "auth/" |
intent_kind | enum | {"BugFix": {}} (matches any BugFix variant) |
conflict_class | enum ("A" / "B" / "C") | "C" (the conflict inbox) |
agent | string (agent_id) | "agent-alice" |
Multiple fields AND together. Empty filter returns everything (use with limit).
query_episodesmcp__memfleet__query_episodes({
repo_id: "my-repo",
filter: { intent_kind: {"BugFix": {}}, since_time: "2026-04-18T00:00:00Z" },
limit: 50,
since: "01H…" // optional cursor from prior call
})
Parameters:
repo_id — string, required.filter — object, optional. See table above.limit — integer, optional. Page size. Default 25, cap 200.since — string (cursor), optional. Pass the next_cursor from a prior page to continue.Success criteria: the broker returns episodes[] and next_cursor (or null when the page is the last one).
mcp__memfleet__get_episode({ episode_id: "01H…" })
Returns the full episode payload — useful when query_episodes returned only metadata and you want the full diff_summary, conflict_report, or replan_hint.
subscribe push is stub)cursor = None
while True:
r = query_episodes({
repo_id: "my-repo",
filter: { module: "auth/" },
limit: 50,
since: cursor
})
handle(r.episodes)
cursor = r.next_cursor or cursor
sleep(5)
The cursor is opaque — pass it through unchanged. The broker guarantees no episode is returned twice across a continuous cursor chain.
mcp__memfleet__query_episodes({
repo_id: "my-repo",
filter: { conflict_class: "C" },
limit: 100
})
This is the "what's broken right now" list. Class C means active callers will break — every entry is a real blocker.
mcp__memfleet__query_episodes({
repo_id: "my-repo",
filter: { intent_kind: {"BugFix": {}}, since_time: "2026-04-18T00:00:00Z" },
limit: 100
})
mcp__memfleet__query_episodes({
repo_id: "my-repo",
filter: { agent: "claude-code-session-42" },
limit: 50
})
| Situation | Action |
|---|---|
| You want per-symbol activity | Use get_node_state, NOT query_episodes (rollup is precomputed) |
You have a single episode_id | Use get_episode, not a filtered query |
| You want push, not poll | Register subscribe; fall back to query_episodes only if Phase-1 push is stub |
| Result list is huge (> page size) | Use next_cursor to paginate; do NOT increase limit past the cap |
| You want to filter by multiple intent kinds | Multiple calls in parallel, OR omit the kind filter and post-filter in your code |
| Investigating a class-C blocker | Combine conflict_class: "C" filter with module: prefix to scope |
| Mistake | Reality |
|---|---|
Using query_episodes for per-symbol checks | get_node_state is O(1) and precomputed. query_episodes scans. |
Treating since as a timestamp | since is an opaque cursor from a prior call. Use since_time in the filter for time-window queries. |
Quoting limit as a string | Must be a JSON number. |
| Building a poll loop without a cursor | You will re-process the same episodes each poll. Always thread next_cursor through. |
| Polling at sub-second intervals | The broker is not rate-limited but you are wasting resources. 1–5s polls are typical. |
Ignoring next_cursor: null | Null means you've reached the end; do not keep polling forward without new activity. |
Filtering by conflict_class: "A" | Class A is auto-accepted noise. Filter on B/C for actionable items. |
This is the fallback streaming + retrospective tool. Pair with:
memfleet-subscribememfleet-node-statememfleet-fleet-statusmemfleet-conflict-resolutionWhat SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
episode-search, fleet-coordination, query-filter, audit, conflict-inbox
npx claudepluginhub syncable-dev/memfleet-public --plugin memfleet-skills10 skills in this plugin
/memfleet-conflict-resolutionAlways use when publish_intent returned a non-empty active_conflicts list, or when record_episode classified the result as Class B (you may have lost LWW) or Class C (blocked). Triggered by: 'publish_intent returned conflicts', 'I got a Class B and lost', 'Class C blocker_agent', 'who is blocking my edit', deciding whether to retry, replan, or escalate. Do not retry blindly on Class B without reading replan_hint, do not edit through a Class C — it will break active callers — and do not invent a prose 'rationale'; structural conflicts get structural resolutions./memfleet-firstAlways use FIRST in any multi-agent session before reading code, planning a refactor, or making an edit on a repo with a registered MemFleet broker. Triggered by: 'I'm about to edit X', 'rename Y across the fleet', 'plan this refactor', joining a running fleet session, coordinating with other agents, prose hand-offs between agents. Do not write a prose rationale for an edit, do not grep for 'who else might be touching this', and do not skip publish_intent because 'it's just a small change'. Empty fleet_status is not permission to skip the protocol — it just means you're the first agent in this window. Skip ONLY for solo-agent sessions with no broker registered or for pure docs-only edits where coordination has zero value.Other plugins' skills for the same job