insight-engine

insight-engine is an agent for Claude Code from athola/claude-night-market. It costs 39 tokens per session (797 once invoked), scanned A, original, MIT.

An analysis agent that examines code, execution logs, and performance data to find bugs, possible improvements, and recurring patterns. It can publish its findings to GitHub Discussions, where teams can review them.

In plain words
What is it for?
Use it to analyze an entire codebase, a pull-request branch, or one particular skill. It is intended for ongoing reviews and improvement work in a plugin marketplace.
Why use it?
It turns scattered technical evidence into structured findings, reducing the need to manually inspect every part of a codebase or history of results.

Agent for Claude Code

Written for Claude Code: effort in frontmatter. Also seen: model in frontmatter; reads .claude/ paths.

Not installable: its command points at a path on the author’s own machine, so it runs nowhere else. The line is /home/alext/claude-night-market.

Part of the abstract plugin — 16 skills, 17 commands, 5 agents, 4 hooks shipped together

Good fit Use it to analyze an entire codebase, a pull-request branch, or one particular skill. It is intended for ongoing reviews and improvement work in a plugin marketplace.

Compare 6 agents from other repositories ↓
Install

Getting it into your agent

This one installs as part of its plugin. Adding the marketplace and installing the plugin brings it with everything else the plugin ships.

Claude Code
/plugin marketplace add athola/claude-night-market
Claude Code
/plugin install abstract

Made for: Claude Code.

Or install abstract, the plugin that ships this one along with the rest of its 16 skills, 17 commands, 5 agents, 4 hooks.

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 insight-engine

README.md
[![agentmods](https://agentmods.dev/badge/agents/athola/claude-night-market/insight-engine/github.svg)](https://agentmods.dev/agents/athola/claude-night-market/insight-engine)
Your own site
<a href="https://agentmods.dev/agents/athola/claude-night-market/insight-engine"><img src="https://agentmods.dev/badge/agents/athola/claude-night-market/insight-engine/github.svg" alt="Measured on agentmods" height="20"></a>

Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.

agentmods 80×15 button for insight-engine

Your own site · 80×15
<a href="https://agentmods.dev/agents/athola/claude-night-market/insight-engine"><img src="https://agentmods.dev/badge/agents/athola/claude-night-market/insight-engine.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 39 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 797 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.00039 $0.00797
Opus 5 $0.00019 $0.00398
Sonnet 5 $0.00008 $0.00159
Haiku 4.5 $0.00004 $0.00080

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

Security

Grade A, and why

insight-engine 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 9d 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.

plugins/abstract/agents/insight-engine.md · 127 lines

How it starts

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

Insight Engine - Deep Analysis Agent

You are the Insight Engine deep analysis agent. Your job is to analyze the codebase and generate proactive insights that help improve the plugin marketplace through iterative self-improvement cycles.

Your Inputs

You receive a mode parameter:

  • full: Analyze the entire codebase
  • pr:<branch>: Analyze changes in a specific PR branch
  • skill:<name>: Deep-dive a specific skill

Analysis Process

Step 1: Load Context

Read these files for baseline understanding:

  • ~/.claude/skills/LEARNINGS.md (current metrics)
  • ~/.claude/skills/improvement_memory.json (what worked)
  • ~/.claude/skills/performance_history.json (trends)

Step 2: Run Built-in Lightweight Lenses

cd /home/alext/claude-night-market
python3 -c "
import sys
sys.path.insert(0, 'plugins/abstract/scripts')
from aggregate_skill_logs import aggregate_logs
from insight_analyzer import build_context, run_analysis
result = aggregate_logs(days_back=30)
ctx = build_context(
    metrics=result.metrics_by_skill,
    trigger='schedule',
)
findings = run_analysis(ctx)
for f in findings:
    print(f'[{f.type}] {f.skill}: {f.summary}')
"

Step 3: Deep Code Analysis (BugLens)

For each skill flagged in LEARNINGS.md with high failure rates, read the skill file and its hooks. Look for:

  • Concurrency issues: Shared state without locking
  • Error handling gaps: Bare except, swallowed errors
  • Edge cases: Missing None checks, empty collections
  • Resource leaks: Unclosed files, dangling processes
  • Import failures: Missing modules, circular imports

Report each finding as a [Bug Alert] type.

Step 4: Optimization Analysis (OptimizationLens)

Read scripts with slow execution times. Look for:

  • Sequential I/O that could be batched
  • Repeated file reads that could be cached
  • O(n^2) patterns in loops
  • Unnecessary subprocess calls
  • Large file reads where targeted reads suffice

Report each as [Optimization] type.

Step 5: Improvement Synthesis (ImprovementLens)

Read the full file on GitHub · 127 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. 9d ago First seen · 127 lines · 39 tokens per session scan A c3cc2a29dfe4

Subscribe to this mod's changes

insight-engine is an agent published in the GitHub repository athola/claude-night-market (336 stars, last pushed 3d ago), licensed MIT. It adds 39 tokens to every session and 797 once invoked, about $0.0002 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-30.

Related

Other agents, from other repositories

routed-opus-high

Router-managed variant for debugging tasks. Spawned by the model router hook; do not invoke directly.

tzachbon/claude-model-router-hook · 26 tokens

1-problem-solver-specialist

Universal expert problem-solving agent specializing in complex debugging, mysterious runtime behavior, integration issues, and multi-layered technical challenges across any technology stack or project type. Uses advanced research methodologies including GitHub issues mining, Perplexity deep research, community…

xbim08/awesome-claude-code-plugins · 113 tokens

debugger

A debugging agent for backend engineers that investigates failures from error messages, logs, and reproduction steps. It responds in Traditional Chinese and produces a structured root-cause report.

SatoruoGojoo/octopus · 46 tokens

scout

A read-only codebase investigator in the Octopus workflow that examines architecture, conventions, dependencies, Git history, and project progress.

SatoruoGojoo/octopus · 85 tokens

perf-analyzer

Detects performance issues in code changes: N+1 query patterns, missing database indexes, unnecessary re-renders, memory leaks, blocking operations in async contexts, inefficient algorithms, missing caching, and bundle size regressions. Use on backend, frontend, and data processing code changes.

mantacron/manta · 0 tokens

remediation-agent

Generates concrete, ready-to-apply fix suggestions for issues found by review agents. Reads only the flagged files and lines — never re-scans the full codebase. Outputs fix suggestions to stdout only (no disk report — suggestions are ephemeral and become stale once applied).

mantacron/manta · 58 tokens