# Agent insights

> Agent insights is an open-source agent skill for developer tools. Builds a cross-tool report on how you use your local AI coding agent sessions. It is available on Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose.

- **Kind:** Skill
- **Pricing:** Open source
- **Platforms:** Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf, Goose
- **Website:** https://github.com/kevinlin/skills/tree/main/agent-insights
- **Repository:** https://github.com/kevinlin/skills
- **GitHub stars:** 5
- **License:** MIT
- **Skill name:** agent-insights
- **Collection:** https://github.com/kevinlin/skills
- **Categories:** [developer tools](https://ai-powered.com/categories/developer-tools)
- **Listing updated:** 2026-12-01

## About

Agent insights reads the session logs that AI coding tools such as Claude Code, Cursor, Codex and GitHub Copilot keep on your machine, covering a chosen window of recent days. It parses each tool's storage format, drops trivial sessions, and compares usage across tools rather than inside one vendor's history.

The workflow runs in stages: a scan that normalizes sessions and caches metadata, per-session extraction of goals, outcomes, satisfaction and friction, an aggregation step that totals the results, and a rendering step that writes a self-contained HTML report. A bundled Python script handles the deterministic parts using only the standard library, and the skill also detects when it is running in a sandbox that cannot see the host's logs.

Everything stays on the local machine and the script makes no network calls. Python 3 is required, and the skill needs access to the agent log directories of the host. Intermediate files and the report are written under a per-user data folder.

## When your agent uses it

> Generate a cross-tool usage insights report from locally stored AI coding agent sessions (Claude Code, Claude Cowork, GitHub Copilot for VS Code/CLI/JetBrains, Cursor, Codex, Kiro, Antigravity, OpenCode) over the last N days, default 30. Use when the user invokes /agent-insights, asks for insights, analytics, or a report on their agent sessions, asks how they're using their coding agents or what's working or causing friction, wants to compare their coding agent tools, or asks what their AI coding patterns look like, even when they don't say "report".

## What it can access

From a static check of the files on GitHub; nothing was run.

- [Runs shell and Python scripts](https://github.com/kevinlin/skills/tree/HEAD/agent-insights)
- [No network calls found in its scripts](https://github.com/kevinlin/skills/tree/HEAD/agent-insights)
- [Includes binary files](https://github.com/kevinlin/skills/tree/HEAD/agent-insights)
- [License: MIT](https://github.com/kevinlin/skills/tree/HEAD/agent-insights)

## Features

- **Cross-tool session scanning:** Discovers and parses locally stored sessions from several AI coding agents over a configurable number of days.
- **Session facet extraction:** Extracts goal, outcome, satisfaction, friction and user expertise for each session in batches.
- **Skill invocation counting:** Counts skill usage deterministically from tool logs and slash commands, merging names across tools.
- **Self-contained HTML report:** Renders a local report with narrative sections, per-tool breakdowns and usage charts.
- **Sandbox detection:** Checks whether the host's agent logs are reachable and explains when they are not.
- **Local-only privacy:** Keeps all processing and cached transcript snippets on the user's machine.

## Good for

- Compare how I use Claude Code versus Cursor over the last month
- Show what my coding agent sessions say about friction and what is working
- Summarize my AI coding patterns across tools for the past week
- Find which skills I invoked most often across my agent sessions
- Generate a 90-day report of my coding agent usage

## Install

### Claude Code

This skill ships in the `ai-sdlc-skills` plugin. In Claude Code, add the marketplace and install the plugin (it may include other skills too):

```sh
/plugin marketplace add kevinlin/skills
/plugin install ai-sdlc-skills@ai-sdlc
```

Or copy only this skill to `~/.claude/skills/agent-insights`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.claude/skills &&
rm -rf ~/.claude/skills/agent-insights &&
cp -R "$tmp/agent-insights" ~/.claude/skills/agent-insights &&
rm -rf "$tmp"
```

For one project only, put the folder in `.claude/skills/agent-insights` inside it instead.

### Codex

Copy the skill folder to `~/.agents/skills/agent-insights` to use it in every repository:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.agents/skills &&
rm -rf ~/.agents/skills/agent-insights &&
cp -R "$tmp/agent-insights" ~/.agents/skills/agent-insights &&
rm -rf "$tmp"
```

For one repository only, put the folder in `.agents/skills/agent-insights` inside it instead.

### Cursor

Copy the skill folder to `~/.cursor/skills/agent-insights` to use it in every project:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.cursor/skills &&
rm -rf ~/.cursor/skills/agent-insights &&
cp -R "$tmp/agent-insights" ~/.cursor/skills/agent-insights &&
rm -rf "$tmp"
```

For one project only, put the folder in `.cursor/skills/agent-insights` inside it instead.

### Gemini CLI

Run in a terminal (add `--scope workspace` to install it for the current workspace only):

```sh
gemini skills install https://github.com/kevinlin/skills.git --path agent-insights
```

Or copy the folder to `~/.gemini/skills/agent-insights` yourself.

### VS Code

For GitHub Copilot in VS Code, copy the skill folder to `~/.copilot/skills/agent-insights`:

```sh
tmp=$(mktemp -d) &&
git clone --depth 1 https://github.com/kevinlin/skills.git "$tmp" &&
mkdir -p ~/.copilot/skills &&
rm -rf ~/.copilot/skills/agent-insights &&
cp -R "$tmp/agent-insights" ~/.copilot/skills/agent-insights &&
rm -rf "$tmp"
```

For one project only, put the folder in `.github/skills/agent-insights` inside it instead.

### Other agents

Get the folder:

```sh
git clone --depth 1 https://github.com/kevinlin/skills.git
```

Then copy `skills/agent-insights` into your agent's skills folder as `agent-insights`. Agents that support SKILL.md read one folder per skill.

## FAQ

### What does the skill need to run?

Python 3 is required, using only the standard library. It reads session logs that already exist on the local machine and must run where those logs are reachable, not inside a sandbox that cannot see the host filesystem.

### Does Agent insights send my session data anywhere?

No. The skill runs locally, the script makes no network calls, and transcript snippets only appear in the local report and cache.

### What is the default time window?

The default is the last 30 days. The number of days is clamped to between 1 and 365.

### Which tools does Agent insights read sessions from?

It covers Claude Code, Claude Cowork, GitHub Copilot for VS Code, CLI and JetBrains, Cursor, Codex, Kiro, Antigravity and OpenCode.

### How do I install Agent insights in Claude Code?

Copy the skill folder from GitHub to ~/.claude/skills/agent-insights to use it in all your projects, or to .claude/skills/agent-insights in one project. Or install the ai-sdlc-skills plugin, which includes it: /plugin marketplace add kevinlin/skills, then /plugin install ai-sdlc-skills@ai-sdlc.

### Does Agent insights run scripts?

Yes. It runs shell and Python scripts. No network calls were found in its scripts. This comes from a static check of the files on GitHub; nothing was run. Read the files before you install it.

### Which AI agents can use Agent insights?

Claude Code, Codex, Cursor, Gemini CLI, GitHub Copilot, Windsurf and Goose. Each reads skills in the SKILL.md format from its own folder; the install steps on this page list them.

### What are the best alternatives to Agent insights?

The closest alternatives to Agent insights are Agent skill stack, Agentic actions auditor, Agent architecture audit, Awesome agent skills and Agent eval.

## Where this comes from

- Description: from the skill's own SKILL.md.

## Alternatives

- [Agent skill stack](https://ai-powered.com/skills/agent-skill-stack): Agent skill stack is an open-source agent skill for developer tools.
- [Agentic actions auditor](https://ai-powered.com/skills/agentic-actions-auditor): Agentic actions auditor is an open-source agent skill for ai models and llm tooling.
- [Agent architecture audit](https://ai-powered.com/skills/agent-architecture-audit): Agent architecture audit is an open-source agent skill for developer tools.
- [Awesome agent skills](https://ai-powered.com/skills/awesome-agent-skills-smartworldarafath): Awesome agent skills is an open-source agent skill for developer tools.
- [Agent eval](https://ai-powered.com/skills/agent-eval-smartworldarafath): Agent eval is an open-source agent skill for developer tools.
- [SEO agentic](https://ai-powered.com/skills/seo-agentic): SEO agentic is an open-source agent skill for marketing and seo.
- [Agent self evaluation](https://ai-powered.com/skills/agent-self-evaluation): Agent self evaluation is an open-source agent skill for developer tools.
- [Diagnosing superpowers](https://ai-powered.com/skills/diagnosing-superpowers): Diagnosing superpowers is an open-source agent skill for developer tools.

---
Source: https://ai-powered.com/skills/agent-insights
