Skills DirectorySkills Directory
SkillsLearnSecurityCategoriesDocsCommunityBlog
Sign InSubmit Skill
Skills Directory

Security-tested agent skills for Claude, coding agents, and AI workflows.

Directory

  • Browse Skills
  • All Skills A–Z
  • Claude Skills
  • Claude Code Skills
  • Agent Skills
  • Categories
  • Authors
  • Submit a Skill

Learn

  • Learn Hub
  • Install Claude Skills
  • Write SKILL.md
  • Skills vs MCP
  • Directories Compared

Security

  • Security
  • Methodology
  • Secure Claude Skills
  • Security Badges

Company

  • About
  • Community
  • Blog
  • API Docs
  • Advertise

2026 Skills Directory. All rights reserved.

ProTermsPrivacyRefunds
Back to skills

Agentsview Usage

ASecurity

Search prior session history to recall how similar work was handled before. Use when you want to leverage a past approach, check prior experience on a topic, answer "how was this handled before", or cross-verify current handling against precedent from earlier sessions.

7 stars
0 votes
0 copies
0 views
Added 9/28/2026
ai-agentsrustsql

Works with

climcp

Security Analysis

A100/100

Scanned 9/28/2026

Install to Claude Code

$npx -y skills add josix/agent-flow --skill agentsview-usage --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Agentsview Usage?

Add the live security badge to your README — it updates automatically with every re-scan.

Security grade badge for Agentsview Usage
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/josix-agentsview-usage/badge)](https://www.skillsdirectory.com/skills/josix-agentsview-usage)

More formats (shields.io, HTML) on the badges page.

Files
SKILL.md
---
name: agentsview-usage
description: Search prior session history to recall how similar work was handled before. Use when you want to leverage a past approach, check prior experience on a topic, answer "how was this handled before", or cross-verify current handling against precedent from earlier sessions.
---

# AgentsView Usage

Search prior session history effectively, interpret results accurately, and stay within token budgets.

## Overview

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**:
- Senku (Planner Agent) — leverages past approaches when designing an implementation strategy: "has a similar feature been built before, and how?"
- Lawliet (Reviewer Agent) — cross-verifies current handling against precedent: "does this change match or diverge from how similar changes were handled previously?"

**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.

---

## When to Query Session History vs. Graph vs. Grep

| 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**.

---

## Tool Decision Table

Choose the right tool for the question type. See [references/query-patterns.md](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.

---

## Token Hygiene

Hard rules for staying within context budget:

1. **Always set `--limit`/`limit`** on `search_sessions`, `list_sessions`, and `search_content` calls — do not request the default/max unless you need breadth.
2. **Always paginate `get_messages`**. Never fetch a whole transcript in one call; use `--around`/`--before`/`--after` or `--from` windows.
3. **Prefer `get_session_overview` or `search_content` snippets over full transcript dumps.** Only call `get_messages` when exact wording matters.
4. **Extract session IDs and short snippets only.** Do not paste raw multi-message transcripts downstream — summarize into bullet findings with session ID + one-line takeaway.
5. **Chain calls, don't parallelize blindly.** Run `search_sessions` or `search_content` first, then decide if `get_session_overview`/`get_messages` is needed for the top match.

---

## Result Interpretation

How to read and trust what AgentsView returns:

### History is a prior, not a mandate

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.

### Flag precedent-vs-current-requirement conflicts

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.
```

### Trust-but-verify

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.

---

## What NOT to Do

- **Do not treat prior handling as binding** — a past session's approach is a data point, not a requirement.
- **Do not paste raw transcripts downstream** — summarize into session ID + snippet + takeaway; downstream agents need conclusions, not full logs.
- **Do not substitute recall for reading current files** — always verify prior approaches still apply by reading the current codebase state.
- **Do not fetch full transcripts (`get_messages` without pagination) when `search_sessions`/`get_session_overview` already answers the question.**
- **Do not call `get_usage_summary`** — it is not granted; token/cost accounting is out of scope.

---

## Cross-References

- [docs/guides/using-agentsview.md](../../docs/guides/using-agentsview.md) — setup instructions, opt-out, graceful degradation
- [references/tool-reference.md](references/tool-reference.md) — full MCP tool purposes, parameters, cost profiles
- [references/query-patterns.md](references/query-patterns.md) — decision table mapping question types to tool sequences
- [examples/worked-queries.md](examples/worked-queries.md) — end-to-end query scenarios with expected result shapes
- [skills/personal-kb-usage/SKILL.md](../personal-kb-usage/SKILL.md) — sibling skill for cross-project personal knowledge recall (notes/decisions, not session transcripts)

Attribution

josixjosix
View sourceMore from josix →
SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments (0)

No comments yet. Be the first to comment!

SSkills DirectorySkills Directory

Ship a skill? Prove it's safe.

Free 120-pattern security scan, letter grade, and an embeddable README badge.

Submit a skill

Related Skills

Caveman

Ultra-compressed communication mode that cuts output tokens while keeping technical accuracy. Levels: lite, full, ultra and the wenyan variants. Use for /caveman, "caveman mode", "talk like caveman", "be brief" or "less tokens".

1074701 votes

Hyperplan

Adversarial multi-agent planning skill. Self-orchestrates 5 hostile category members (unspecified-low, unspecified-high, deep, ultrabrain, artistry) via team-mode for ruthless cross-critique debate, distills only the defensible insights, then MANDATORILY hands the distilled insight bundle to the `plan` agent for executable plan formalization. Use when planning needs maximum rigor and surfacing of weak assumptions, blind spots, and over-engineering. Triggers: 'hyperplan', 'hpp', '/hyperplan', ...

695601 votes

Mcp Code Execution

Routes multi-tool workflows through MCP servers for large datasets and pipelines. Use when Bash tool overhead is limiting throughput on data-heavy tasks.

3351 votes

catchup

Recovers the conversation and failed tool calls of a previous Codex, Claude Code, Antigravity, Cline, Copilot CLI, Cursor, DeepSeek Harness, Kimi, OpenCode, Pi Agent, or ZCode session. Use when the user says "catch up", "what did the last session do", "get me up to speed", "I switched agents", asks to recover/summarize a previous session before continuing, or asks to diagnose or report a catchup failure. Do NOT use for the current conversation, git history, or any non-agent log.

691 votes

math-skill

A comprehensive mathematical reasoning skill for AI assistants — handles arithmetic to research-level problems with rigorous step-by-step reasoning, systematic verification, and transparent uncertainty handling

381 votes
View all in ai-agents →