AI4L: Agent for Claude Code

.agents/agents/er-combiner.md

er-combiner is an agent for Claude Code from forever-healthy/AI4L. It costs 26 tokens per session (1,215 once invoked), scanned A, original, MIT.

A Bash agent that combines the timestamped quality-check files for one evidence review into a single file. It reads only the matching files and keeps their contents intact.

In plain words
What is it for?
Use it to collect quality-assurance records for one evidence review and total their recorded audit time.
Why use it?
It removes the manual work of finding the right review files and joining them together. It also avoids mixing files from other evidence reviews.

Agent for Claude Code

Written for Claude Code: a Claude Code subagent (agents/*.md). Also seen: positional $N argument; installed under .agents/ (shared by several agents).

This is forever-healthy/AI4L's own configuration. It tells Claude Code how to work on AI4L 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 AI4L configures →

Reuse

Borrowing it

Nothing to install: this file belongs to forever-healthy/AI4L. 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/forever-healthy/AI4L/main/.agents/agents/er-combiner.md
Clone the repo
git clone --depth 1 https://github.com/forever-healthy/AI4L

Made for: Claude Code.

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 er-combiner

README.md
[![agentmods](https://agentmods.dev/badge/agents/forever-healthy/ai4l/er-combiner/github.svg)](https://agentmods.dev/agents/forever-healthy/ai4l/er-combiner)
Your own site
<a href="https://agentmods.dev/agents/forever-healthy/ai4l/er-combiner"><img src="https://agentmods.dev/badge/agents/forever-healthy/ai4l/er-combiner/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 er-combiner

Your own site · 80×15
<a href="https://agentmods.dev/agents/forever-healthy/ai4l/er-combiner"><img src="https://agentmods.dev/badge/agents/forever-healthy/ai4l/er-combiner.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 26 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,215 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.00026 $0.01215
Opus 5.5 $0.00010 $0.00486
Sonnet 5.5 $0.00005 $0.00243
Haiku 4.5 $0.00003 $0.00121

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

Security

Grade A, and why

er-combiner 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 14d 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.

.agents/agents/er-combiner.md · 114 lines

What it actually says

AI4L - Bash Agent to Combine all _ER_QA.md files of an ER into a single file

  • Set [er_filename] to the Evidence Review defined in your instructions

  • READ SCOPE — you may read ONLY the _ER_QA.md files belonging to [er_filename], via the script below. Never read another evidence review or another review's _ER_QA.md files, and never glob or search for them beyond the script's own pattern.

  • Report COMBINER: Work on _ER_QA.md files for [er_filename]

Run this bash script (substituting [er_filename], [creation_dir], and [trash_dir] for their actual values):

#!/usr/bin/env bash
set -euo pipefail

ER_FILE="[er_filename]"
CREATION_DIR="[creation_dir]"
TRASH_DIR="[trash_dir]"

# Derive base name by stripping the .md extension (keeps the _ER suffix)
base="${ER_FILE%.md}"

# Find all timestamped _ER_QA.md files, sorted descending by name (date suffix is lexicographically sortable)
mapfile -t qa_files < <(ls -r "${CREATION_DIR%/}/${base}_QA_"*.md 2>/dev/null || true)

count=${#qa_files[@]}
if [[ $count -eq 0 ]]; then
  echo "Error: no timestamped _ER_QA.md files found for $ER_FILE"
  exit 1
fi

echo "Found $count _ER_QA.md file(s):"
for f in "${qa_files[@]}"; do echo "  $f"; done

# Sum audit_duration (HH:MM) across all _ER_QA.md files
total_min=0
for f in "${qa_files[@]}"; do
  d=$(awk '/^audit_duration:/{sub(/^audit_duration:[[:space:]]*/,""); gsub(/[[:space:]"]/,""); print; exit}' "$f")
  if [[ "$d" =~ ^([0-9]+):([0-9]+)$ ]]; then
    total_min=$(( total_min + 10#${BASH_REMATCH[1]} * 60 + 10#${BASH_REMATCH[2]} ))
  fi
done
audit_duration=$(printf '%02d:%02d' $((total_min / 60)) $((total_min % 60)))

# Latest is first after reverse sort
latest="${qa_files[0]}"

# New filename: base already ends in _ER, so this yields ..._ER_QA.md (no date suffix)
new_filename="${base}_QA.md"
new_filepath="${CREATION_DIR%/}/${new_filename}"

# Copy the latest _ER_QA.md file verbatim as the base
cp "$latest" "$new_filepath"
echo "Base: $latest -> $new_filepath"

# Update frontmatter: set audit_filename, audit_iterations, audit_duration
awk -v fn="$new_filename" -v itr="$count" -v dur="$audit_duration" '
  BEGIN { in_fm=0; done_fm=0; found_fn=0; found_itr=0; found_dur=0 }
  /^---/ && !done_fm {
    if (!in_fm) { in_fm=1; print; next }
    else {
      if (!found_fn) print "audit_filename: " fn
      if (!found_itr) print "audit_iterations: " itr
      if (!found_dur) print "audit_duration: \"" dur "\""
      done_fm=1; print; next
    }
  }
  in_fm && /^audit_filename:/ { print "audit_filename: " fn; found_fn=1; next }
  in_fm && /^audit_iterations:/ { print "audit_iterations: " itr; found_itr=1; next }
  in_fm && /^audit_duration:/ { print "audit_duration: \"" dur "\""; found_dur=1; next }
  { print }
' "$new_filepath" > "${new_filepath}.tmp" && mv "${new_filepath}.tmp" "$new_filepath"

# Extract pass_rate from summary table and normalize to 2 decimal places
pass_rate=$(awk '/\*\*Pass Rate\*\*/{
  if (match($0, /[0-9]+\.?[0-9]*%/)) {
    raw = substr($0, RSTART, RLENGTH - 1)
    printf "%.2f%%", raw + 0
    exit
  }
}' "$new_filepath")

# Append Issues+Fixes sections from older files in descending order (skip index 0 = latest)
for ((i=1; i<count; i++)); do
  qa_file="${qa_files[$i]}"
  echo "Appending from: $qa_file"
  # Extract from the first ## Issues line to end of file
  awk '/^## Issues /{found=1} found{print}' "$qa_file" >> "$new_filepath"
  echo "" >> "$new_filepath"
done

# Move all timestamped _ER_QA.md files to trash
mkdir -p "$TRASH_DIR"
for qa_file in "${qa_files[@]}"; do
  mv "$qa_file" "$TRASH_DIR/"
  echo "Trashed: $qa_file"
done

echo ""
echo "QA file: $new_filename"
echo "audit_iterations: $count"
echo "audit_duration: $audit_duration"
echo "pass_rate: $pass_rate"
  • Run the script

  • Return the last 4 lines of output as the result

  • Report COMBINER: Done with [er_filename]

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. 14d ago Changed · -2 lines · +4 tokens per session d309ef3ff097
  2. 1mo ago Changed 4037433bb21a
  3. 1mo ago Changed 6a1e3bfad54d
  4. 1mo ago Changed b5695c59523f
  5. 1mo ago Changed 0dfee7bf65e7
  6. 1mo ago Changed 4cb0fa32aabb
  7. 1mo ago Changed da963a7d9a5a
  8. 1mo ago Changed f42319dcdc4e
  9. 2mo ago First seen · 116 lines · 22 tokens per session scan A 1b1eb380e445

Subscribe to this mod's changes

er-combiner is an agent published in the GitHub repository forever-healthy/AI4L (43 stars, last pushed 10d ago), licensed MIT. It adds 26 tokens to every session and 1,215 once invoked, about $0.0001 per session on Opus 5.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-09-04.

Related

er-combiner compared with agents from other repositories

er-combiner next to 6 agents from other repositories
ModTypeStarsLast pushLicenceScanTokensWorks with
er-combinerforever-healthy/AI4LAgent4310d agoMITA26Claude Code
quarto-criticbrycewang-stanford/Auto-Empirical-Research-SkillsAgent4.9k4d agononeA38Claude Code
openwriter-enrichment-miniontravsteward/openwriterAgent365d agoMITA19Claude Code
report-generatordaemon-blockint-tech/GrondAgent21mo agoMITA195Claude Code
flow-documenterMacroMan5/AutomationHelper_pluginsAgent31y agoMITA368Claude Code
timps_log_interpreterSandeeprdy1729/timps-swarmAgent12mo agoMITA77Claude Code
ops-documentacaoasv-digital/agents-funcionariosAgent26mo agononeA0Claude Code