agentsview-usage

A skill for searching read-only archives of earlier coding-agent sessions. It helps compare a current task with how similar work was handled before.

In plain words
What is it for?
Use it to find earlier solutions, review precedent for a topic, and cross-check the handling of a current task.
Why use it?
It saves time when prior sessions contain useful approaches or decisions that are easy to forget.

Skill for Claude CodeCodex

Install

Getting it into your agent

One page per mod, every tool's command on it. A separate URL per tool would split the same page into five that compete with each other.

agentmods
npx agentmods add skills/josix/agent-flow/agentsview-usage
Any agent
npx skills add josix/agent-flow --skill agentsview-usage
Clone the repo
git clone --depth 1 https://github.com/josix/agent-flow

Made for: Claude Code, Codex.

Per session 55 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 1,484 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin original No closer match found in the catalogue.
Token cost

What it costs to keep this loaded

Counted locally with the o200k_base tokenizer, which is exact for GPT models; Claude uses its own tokenizer and its counts differ. Treat this as one consistent yardstick across the catalogue rather than a bill. Prices are per million input tokens.

ModelPer sessionOnce invoked
Fable 5 $0.00055 $0.01484
Opus 5 $0.00028 $0.00742
Sonnet 5 $0.00011 $0.00297
Haiku 4.5 $0.00006 $0.00148

Measured 2d ago against content hash d2cf551632dc, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

agentsview-usage scanned grade A with 0 findings against 26 rules in 11 categories — prompt injection, anti-refusal, data exfiltration, privilege escalation, supply chain, agent snooping, system-prompt leakage, SSRF and excessive agency — measured 2d ago.

A static scan of the body, not an audit. Every finding is printed with the line that produced it so you can judge whether it matters here. A mod is markdown that instructs an agent; that is exactly why what it instructs is worth reading.

Nothing flagged

None of the 26 patterns this scan looks for appear in this file: no shell pipes, no recursive deletes, no credential paths, no hidden text, no instruction-override or anti-refusal phrasing, no agent-config snooping. That is not a guarantee, it is the absence of the things that are checkable.

skills/agentsview-usage/SKILL.md · 112 lines

How it starts

The opening of the file, as written. The whole thing — 112 lines — stays where its author put it; the contents beside it link to each section on GitHub.

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

Read the full file on GitHub · 112 lines

Files

What ships with it

3 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.

Changes

What this file has done since we first saw it

Hashed on every crawl. A supply-chain change to an agent config is a question of when, not whether, so the history is kept rather than the latest state alone.

  1. 2d ago First seen · 112 lines · 55 tokens per session scan A d2cf551632dc

Subscribe to this mod's changes

agentsview-usage is a skill published in the GitHub repository josix/agent-flow (7 stars, last pushed 17d ago), licensed MIT. It adds 55 tokens to every session and 1,484 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.

Related

Other skills, from other repositories

agent-harness-fault-injection

Use when an agent workflow needs deterministic recovery evidence for sandbox, MCP/tool, worker, checkpoint, memory, or orchestration failures.

sickn33/agentic-awesome-skills · 34 tokens

hedging-strategy

Hedging strategy design (beta hedge / option protection / tail risk / cross-asset hedging), including hedge-ratio calculation and cost evaluation.

HKUDS/Vibe-Trading · 35 tokens

foundry-config-setup

Resolve missing setup caused by a hardcoded Foundry project endpoint or model in a sample. Use when a sample fails because it uses a placeholder/hardcoded projectendpoint (for example "https://your-project.services.ai.azure.com") or a hardcoded model instead of reading them from the environment.

microsoft/agent-framework · 65 tokens

oma-scholar

Scholarly research companion using Knows sidecar spec (.knows.yaml). Generates, validates, reviews, queries, and compares structured research-paper sidecars, and fetches them from knows.academy. Use for academic literature search, survey synthesis, paper authoring assistance, and peer review with token-efficient…

first-fluke/oh-my-agent · 73 tokens

oma-hwp

Convert HWP / HWPX / HWPML files to Markdown using kordoc. Extracts text, headings, tables, lists, images, footnotes, and hyperlinks. Use for Korean word processor files (Hangul), government documents, and AI-ready data preparation.

first-fluke/oh-my-agent · 59 tokens

error-recovery

Standard recovery patterns for all squad agents. When something fails, adapt — don't just report the failure.

bradygaster/squad · 24 tokens