agentgem-insights

agentgem-insights is a skill for Claude Code, Codex from ninemindai/agentgem. It costs 68 tokens per session (835 once invoked), scanned A, original, MIT.

A workflow for producing an insights report from your real coding-agent sessions. It examines recent sessions, identifies patterns, and highlights successful sessions as reusable Gems.

In plain words
What is it for?
Use it to review agent usage, investigate session problems, and find effective coding workflows.
Why use it?
It helps reveal how coding sessions are going, where work gets stuck, and which approaches are worth reusing.

Skill for Claude CodeCodex

Written for no agent in particular: nothing here depends on one. Also seen: mentions CLAUDE.md; mentions Claude Code.

Good fit Use it to review agent usage, investigate session problems, and find effective coding workflows.

Compare 6 skills from other repositories ↓
Install with agentmods
npx agentmods add skills/ninemindai/agentgem/agentgem-insights
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.

Any agent
npx skills add ninemindai/agentgem --skill agentgem-insights
Clone the repo
git clone --depth 1 https://github.com/ninemindai/agentgem

Made for: Claude Code, Codex.

Wrote this? Show the measurements

A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.

agentmods badge for agentgem-insights

README.md
[![agentmods](https://agentmods.dev/badge/skills/ninemindai/agentgem/agentgem-insights.svg)](https://agentmods.dev/skills/ninemindai/agentgem/agentgem-insights)
Your own site
<a href="https://agentmods.dev/skills/ninemindai/agentgem/agentgem-insights"><img src="https://agentmods.dev/badge/skills/ninemindai/agentgem/agentgem-insights.svg" alt="Measured on agentmods" height="20"></a>
Per session 68 Skills are progressive disclosure: only the name and description are preloaded; the body loads when the skill is used.
When invoked 835 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 1 finding. A grade says what 26 rules found in the file — not that it is safe. Third-party audits
  • NVIDIA SkillSpector pass 7 Sept 2026
How audits are shown
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.1 $0.00068 $0.00835
Opus 5 $0.00034 $0.00417
Sonnet 5 $0.00014 $0.00167
Haiku 4.5 $0.00007 $0.00084

Measured 8d ago against content hash 3d328e829993, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-07, from the pricing page.

Security

Grade A, and why

agentgem-insights scanned grade A with 1 finding 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 8d 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.

Makes network callslowCapability

Not a fault in itself. Listed so you know the mod talks to something, and to what.

1. **Fast path.** If the local AgentGem server is up (`curl -sf localhost:4317/api/warm/status`),
skills/agentgem-insights/SKILL.md · 53 lines

How it starts

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

agentgem-insights

Produce a /insights-style narrative report over the user's real coding sessions. The pipeline (reverse-engineered from Claude Code's /insights) is three layers: deterministic meta → one judged facet per session → one synthesis pass. Counts come from tools; you contribute judgment and prose, never numbers.

Procedure

  1. Fast path. If the local AgentGem server is up (curl -sf localhost:4317/api/warm/status), fetch the engine's warm-cached report from GET /api/insights/stream?root=<project> (SSE; the final done event carries the report). Present it, then continue at step 5 to extend — do not re-judge sessions the engine already judged.
  2. Layer 1 — meta. Call search_sessions (agentgem-goldmine MCP) for the recent sessions in scope. Cap the judged set at the ~20 most recent and say so in the report ("based on the N most-recent of M"); never silently truncate.
  3. Layer 2 — facets. For each session, judge one typed facet. Pull the structured signal from summarize_session (quality score, stage mix, detector findings), then ground every outcome and friction claim by asking ask_session a specific question about that session's outcome or friction — a separate agent reads the raw scrubbed transcript and returns only its answer, so raw turns never enter your context. Facet shape (matches packages/insight SessionFacet):
    • underlying_goal — one prose sentence
    • outcome — exactly one of mostly_achieved | partially_achieved | not_achieved (if a session reads as fully achieved, that is mostly_achieved; if the transcript is too thin to judge, exclude the session rather than guess)
    • friction_detail — prose, "" when none; classify what you saw (buggy code, misunderstood request, user-rejected action, wrong approach)
    • brief_summary — one sentence
  4. Layer 3 — synthesis. Fold the facets into a report with these sections: At a glance (what's working / what's hindering / quick wins), What you work on, What works, Where things go wrong (recurring friction themes, backed by get_behavior_findings when relevant), and outcome rates overall and by model.
  5. The AgentGem ending — publish your goldmine. Close with publish_candidates: the high-outcome, re-run-worthy sessions. Offer the next actions:
    • publish them as a Gem via the agentgem-share skill (agentgem-distill tools),
    • agentgem learn to distill the latest session into the review queue,
    • the console Insights panel (agentgem, port 4317) for the cached, re-runnable view. Do not end at "tweak your CLAUDE.md" — end at what the sessions are worth.

Read the full file on GitHub · 53 lines

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. 8d ago First seen · 53 lines · 68 tokens per session scan A 3d328e829993

Subscribe to this mod's changes

agentgem-insights is a skill published in the GitHub repository ninemindai/agentgem (39 stars, last pushed 10d ago), licensed MIT. It adds 68 tokens to every session and 835 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 1 finding (makes network calls). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.