distill-insights

distill-insights is a command for Claude Code from frankxai/Starlight-Intelligence-System. It costs 49 tokens per session (1,677 once invoked), scanned A, original, MIT.

A command for reviewing saved notes from a week, month, or quarter and turning repeated ideas into named frameworks.

In plain words
What is it for?
Use it to produce an insights document and suggest updates to a person’s profile when the evidence supports them.
Why use it?
It filters out one-off observations by requiring an idea to appear at least three times before treating it as a pattern.

Command for Claude Code

Written for Claude Code: allowed-tools in frontmatter.

Part of the starlight-intelligence-system plugin — 6 skills, 121 commands, 7 agents shipped together

Good fit Use it to produce an insights document and suggest updates to a person’s profile when the evidence supports them.

Compare 6 commands from other repositories ↓
Install with agentmods
npx agentmods add commands/frankxai/starlight-intelligence-system/distill-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.

Clone the repo
git clone --depth 1 https://github.com/frankxai/Starlight-Intelligence-System

Made for: Claude Code.

Or install starlight-intelligence-system, the plugin that ships this one along with the rest of its 6 skills, 121 commands, 7 agents.

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 distill-insights

README.md
[![agentmods](https://agentmods.dev/badge/commands/frankxai/starlight-intelligence-system/distill-insights/github.svg)](https://agentmods.dev/commands/frankxai/starlight-intelligence-system/distill-insights)
Your own site
<a href="https://agentmods.dev/commands/frankxai/starlight-intelligence-system/distill-insights"><img src="https://agentmods.dev/badge/commands/frankxai/starlight-intelligence-system/distill-insights/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 distill-insights

Your own site · 80×15
<a href="https://agentmods.dev/commands/frankxai/starlight-intelligence-system/distill-insights"><img src="https://agentmods.dev/badge/commands/frankxai/starlight-intelligence-system/distill-insights.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 49 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,677 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.00049 $0.01677
Opus 5 $0.00024 $0.00839
Sonnet 5 $0.00010 $0.00335
Haiku 4.5 $0.00005 $0.00168

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

Security

Grade A, and why

distill-insights 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 11d 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.

.claude/commands/distill-insights.md · 150 lines

How it starts

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

/distill-insights

Load SIP.md, VOICES.md, agents/starlight-secondbrain.md, agents/starlight-genius.md, skills/memory/insight-distillation/SKILL.md, and genius/profile-<slug>.md if it exists. Distill the person's captures from the specified window into named frameworks using the ≥3-occurrence threshold. Propose Genius Profile evolutions where warranted.

Input

$ARGUMENTS

Required args: --person <name> --window <week|month|quarter>. Parse slug from name (kebab-case). Parse window as one of week (last 7 days), month (last 30 days), quarter (last 90 days).

When this command fires

  • Weekly distillation — the lightweight pass inside the weekly review (or standalone)
  • Monthly distillation — the dedicated 90-minute session; the primary distillation cadence
  • Quarterly integration — the half-day session that crosses distillates with the Genius Profile

When this command does NOT fire

  • Daily capture — use /capture-daily
  • Full weekly review orchestration — use /orchestrate-brain
  • One-time knowledge reorganization — use /reclaim-knowledge
  • Excavating a Genius Profile from scratch — use /discover-genius

Process

  1. Load captures from window. Read all files matching second-brain/captures/<slug>/*.md where the date falls in the window. Also read second-brain/inbox/ (inbox items have no date constraint — they were unrouted captures waiting).

  2. Cluster by theme. Read every capture in full (not skim). Group captures that touch the same underlying theme. Name clusters in the person's own voice — not "client-handling patterns" but whatever phrase the captures themselves suggest. Clusters can overlap; one capture can sit in two clusters.

  3. Count occurrences per cluster. Apply threshold:

    • ≥3 occurrences → eligible for framework elevation (step 4)
    • 2 occurrences → hold for next window; note in cluster file
    • 1 occurrence → keep as anecdote or drop
  4. Draft frameworks for eligible clusters. For each ≥3 cluster, write a framework draft using the structure from skills/memory/insight-distillation/SKILL.md:

Read the full file on GitHub · 150 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. 11d ago First seen · 150 lines · 49 tokens per session scan A e06700e38208

Subscribe to this mod's changes

distill-insights is a command published in the GitHub repository frankxai/Starlight-Intelligence-System (8 stars, last pushed today), licensed MIT. It adds 49 tokens to every session and 1,677 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-31.