aiforge: Agent for Claude Code

.gemini/skills/bmad-distillator/agents/distillate-compressor.md

distillate-compressor is an agent for Claude Code, Gemini CLI from flanliulf/aiforge. It costs 0 tokens per session (1,047 once invoked), scanned A, original, MIT.

An agent that extracts information from source documents and compresses it into a shorter, lossless summary for another agent or workflow. Lossless means the important information is retained rather than selectively rewritten.

In plain words
What is it for?
Reading document files, identifying their type, extracting discrete facts and requirements, recording relationships and open issues, and producing the required distillate format.
Why use it?
It reduces the amount of text a later step must process while preserving facts, decisions, constraints, dependencies, and unresolved questions.

Agent for Claude CodeGemini CLI

Written for Gemini CLI and Claude Code: installed under .gemini/, but also a Claude Code subagent (agents/*.md).

This is flanliulf/aiforge's own configuration. It tells Claude Code and Gemini CLI how to work on aiforge itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything aiforge configures →

Reuse

Borrowing it

Nothing to install: this file belongs to flanliulf/aiforge. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/flanliulf/aiforge/main/.gemini/skills/bmad-distillator/agents/distillate-compressor.md
Clone the repo
git clone --depth 1 https://github.com/flanliulf/aiforge

Made for: Claude Code, Gemini CLI.

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 distillate-compressor

README.md
[![agentmods](https://agentmods.dev/badge/agents/flanliulf/aiforge/distillate-compressor/github.svg)](https://agentmods.dev/agents/flanliulf/aiforge/distillate-compressor)
Your own site
<a href="https://agentmods.dev/agents/flanliulf/aiforge/distillate-compressor"><img src="https://agentmods.dev/badge/agents/flanliulf/aiforge/distillate-compressor/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 distillate-compressor

Your own site · 80×15
<a href="https://agentmods.dev/agents/flanliulf/aiforge/distillate-compressor"><img src="https://agentmods.dev/badge/agents/flanliulf/aiforge/distillate-compressor.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 0 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,047 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.00000 $0.01047
Opus 5.5 $0.00000 $0.00419
Sonnet 5.5 $0.00000 $0.00209
Haiku 4.5 $0.00000 $0.00105

Measured 1mo ago against content hash c00da33b39a4, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

distillate-compressor 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 1mo 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.

Origin

Copies of this mod

1 near-identical copy found in the catalogue:

.gemini/skills/bmad-distillator/agents/distillate-compressor.md · 117 lines

How it starts

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

Distillate Compressor Agent

Act as an information extraction and compression specialist. Your sole purpose is to produce a lossless, token-efficient distillate from source documents.

You receive: source document file paths, an optional downstream_consumer context, and a splitting decision.

You must load and apply ../resources/compression-rules.md before producing output. Reference ../resources/distillate-format-reference.md for the expected output format.

Compression Process

Step 1: Read Sources

Read all source document files. For each, note the document type (product brief, discovery notes, research report, architecture doc, PRD, etc.) based on content and naming.

Step 2: Extract

Extract every discrete piece of information from all source documents:

  • Facts and data points (numbers, dates, versions, percentages)
  • Decisions made and their rationale
  • Rejected alternatives and why they were rejected
  • Requirements and constraints (explicit and implicit)
  • Relationships and dependencies between entities
  • Named entities (products, companies, people, technologies)
  • Open questions and unresolved items
  • Scope boundaries (in/out/deferred)
  • Success criteria and validation methods
  • Risks and opportunities
  • User segments and their success definitions

Treat this as entity extraction — pull out every distinct piece of information regardless of where it appears in the source documents.

Step 3: Deduplicate

Apply the deduplication rules from ../resources/compression-rules.md.

Step 4: Filter (only if downstream_consumer is specified)

For each extracted item, ask: "Would the downstream workflow need this?"

  • Drop items that are clearly irrelevant to the stated consumer
  • When uncertain, keep the item — err on the side of preservation
  • Never drop: decisions, rejected alternatives, open questions, constraints, scope boundaries

Step 5: Group Thematically

Organize items into coherent themes derived from the source content — not from a fixed template. The themes should reflect what the documents are actually about.

Read the full file on GitHub · 117 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. 1mo ago First seen · 117 lines · 0 tokens per session scan A c00da33b39a4

Subscribe to this mod's changes

distillate-compressor is an agent published in the GitHub repository flanliulf/aiforge (8 stars, last pushed 4mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 1,047 tokens. 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 agents, from other repositories

quarto-critic

Adversarial QA agent that compares Quarto HTML against Beamer PDF benchmark. Produces harsh, actionable criticism. Does NOT edit files — read-only analysis only.

brycewang-stanford/Auto-Empirical-Research-Skills · 38 tokens

openwriter-enrichment-minion

Refresh stale OpenWriter loglines through exclusive canonical snapshot claims.

travsteward/openwriter · 19 tokens

report-generator

Use this agent when building the intelligence report synthesis layer — fusing multi-source findings into structured analyst reports, implementing confidence scoring, generating PDF/JSON exports, and designing the report data models. Examples: Context: Building the final output layer of the OSINT pipeline. user: "Build…

daemon-blockint-tech/Grond · 195 tokens

chronology-builder

Isolated worker that reads case documents iteratively and extracts sourced timeline events (date, neutral fact, mandatory document+locus provenance, undisputed/alleged/contested status, party attribution). Deduplicates and cross-references across documents and languages. Emits events.json for the legal-chronology…

fedec65/bettercallclaude · 103 tokens

flow-documenter

Use this agent when you need to generate comprehensive, natural language documentation for a Power Automate flow from its JSON definition. This agent should be invoked when:\n\n- A user provides a flow.json file and requests documentation\n- A new flow has been created and needs to be documented\n- An existing flow…

MacroMan5/AutomationHelper_plugins · 368 tokens

ops-documentacao

Especialista em documentação interna estruturada (Notion, Confluence, GitBook, wikis) para PMEs aplicando framework Diátaxis (Procida), BPMN, ITIL v4, ISO 9001, RACI. Use proativamente quando o usuário (a) escrever SOP / procedimento operacional padrão com estrutura completa (id, owner, escopo, ferramentas, fluxo…

asv-digital/agents-funcionarios · 0 tokens