/agent-flow:agentsview-usagefrom agent-flow
Searches prior session history to recall how similar work was handled before. Use when you want to leverage past approaches or cross-verify current handling against precedent.
Ships in agent-flow. 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.
Read when SKILL.md points to them.
Search prior session history effectively, interpret results accurately, and stay within token budgets.
The agentsview MCP server exposes prior AI coding agent session history (synced by the agentsview CLI into a local SQLite archive) as read-only search tools, started via agentsview mcp.
All five granted tools are accessed via the MCP prefix mcp__plugin_agent-flow_agentsview__*.
Owner: Riko (Explorer Agent) — Riko is the primary session-history search agent and owns interpretation of results. Consumers:
Out of scope: Loid (Executor) and Alphonse (Verifier) do NOT have agentsview access by design. This preserves the write/verify separation and keeps write/verify agents focused on the current diff and verification commands, not historical recall.
| Trigger condition | Preferred approach |
|---|---|
| "How was a similar task handled before?" | AgentsView: search_sessions |
| "What was decided/done in a specific prior session?" | AgentsView: get_session_overview |
| "What exact messages/commands were used before?" | AgentsView: get_messages (paginated) |
| "Find prior mentions of a specific string/error/pattern" | AgentsView: search_content |
| "What sessions ran recently on this project?" | AgentsView: list_sessions |
| "What is the dependency structure of THIS project?" | Project graph (graphify-usage) |
"Find the string literal TODO: fix" in current files | Grep |
| "What does a specific config key say in THIS project?" | Read the file directly |
AgentsView is not available (agentsview: available: false in state) | Skip — proceed without session-history search |
Rule of thumb: AgentsView is for recall of how prior work was actually done across past sessions. Project graph is for structure within this session's codebase. Grep/Read is for current file content.
Choose the right tool for the question type. See references/query-patterns.md for detailed decision sequences.
| Question type | Primary tool | Follow-up |
|---|---|---|
| Find past sessions on a topic | search_sessions | get_session_overview on the best match |
| Browse recent sessions (no specific topic) | list_sessions | get_session_overview on a candidate |
| Summarize one known session | get_session_overview | get_messages if exact wording is needed |
| Read exact prior messages/commands | get_messages (always limit/paginate) | — |
| Full-text search across message/tool content | search_content | get_messages around the matched ordinal |
Note: get_usage_summary is intentionally not granted to any persona — token/cost accounting is out of scope for session-history recall.
Hard rules for staying within context budget:
--limit/limit on search_sessions, list_sessions, and search_content calls — do not request the default/max unless you need breadth.get_messages. Never fetch a whole transcript in one call; use --around/--before/--after or --from windows.get_session_overview or search_content snippets over full transcript dumps. Only call get_messages when exact wording matters.search_sessions or search_content first, then decide if get_session_overview/get_messages is needed for the top match.How to read and trust what AgentsView returns:
A prior session shows how something was handled — not how it must be handled now. Requirements, codebase state, and constraints may have changed since. Always treat precedent as informative context, not binding instruction.
When a prior session's approach conflicts with the current task's explicit requirements or constraints, surface the conflict explicitly rather than silently following either one:
Precedent (session <id>, <date>): used approach X.
Current requirement: approach Y is specified.
Flagging conflict for the orchestrator/user to resolve.
Session history reflects what happened in that session, not necessarily what was correct or still applies. Cross-check any recalled approach against the current codebase before relying on it — a pattern that worked in a past session may since have been refactored away or found to be wrong.
get_messages without pagination) when search_sessions/get_session_overview already answers the question.get_usage_summary — it is not granted; token/cost accounting is out of scope.What SKILL.md sets; muted values are Claude Code's defaults
Three short reads, in order
npx claudepluginhub josix/agent-flow --plugin agent-flow11 skills in this plugin
/agent-behavior-constraintsThis skill should be used when handling agent model selection, tool access permissions, behavioral guardrails, MCP tool preferences, or any question about what agents can/cannot do./evidence-driven-workGround work in what the system actually did, then tell people about it so they get it at a glance. Use when investigating why something is slow, failing, or ignoring a setting; choosing what to measure, which tool or view can show it, or what access to ask the user for; a hypothesis or estimate was just disproven; judging whether a change is worth making or weighing a proposed approach; verifying a change after it runs in the target environment; citing numbers, logs, or screenshots as evidence; writing a report, PR or ticket description, announcement, or completion summary. Covers observation surfaces across domains, evidence standards, argument structure, narrative reports (background, change, purpose, impact), explaining terms, and clarity over decoration./explainer-design-systemTurn any codebase into a beautiful, interactive single-page HTML course that teaches how the code works to non-technical people. Use this skill whenever someone wants to create an interactive course, tutorial, or educational walkthrough from a codebase or project. Also trigger when users mention 'turn this into a course,' 'explain this codebase interactively,' 'teach this code,' 'interactive tutorial from code,' 'codebase walkthrough,' 'learn from this codebase,' or 'make a course from this project.' This skill produces a stunning, self-contained HTML file with scroll-based navigation, animated visualizations, embedded quizzes, and code-with-plain-English side-by-side translations.Other plugins' skills for the same job