ijfw-extract-learnings

ijfw-extract-learnings is an agent for Claude Code from FerroxLabs/ijfw. It costs 31 tokens per session (1,752 once invoked), scanned A, original, MIT.

A post-phase review tool that reads the files produced during a completed project phase and records documented decisions, lessons, patterns, surprises, and mistakes. It writes these findings to LEARNINGS.md and saves selected feedback for later phases.

In plain words
What is it for?
Use it after a software, writing, marketing, or design phase to extract reusable lessons from its files and feed them into future work.
Why use it?
It prevents useful knowledge from being lost after a milestone ends. It also keeps findings tied to the artifacts that support them.

Agent for Claude Code

Written for Claude Code: allowed-tools in frontmatter. Also seen: model in frontmatter.

Part of the ijfw plugin — 34 skills, 22 commands, 37 agents, 6 hooks shipped together

Good fit Use it after a software, writing, marketing, or design phase to extract reusable lessons from its files and feed them into future work.

Compare 6 agents from other repositories ↓
Install with agentmods
npx agentmods add agents/ferroxlabs/ijfw/ijfw-extract-learnings
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/FerroxLabs/ijfw

Made for: Claude Code.

Or install ijfw, the plugin that ships this one along with the rest of its 34 skills, 22 commands, 37 agents, 6 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 ijfw-extract-learnings

README.md
[![agentmods](https://agentmods.dev/badge/agents/ferroxlabs/ijfw/ijfw-extract-learnings.svg)](https://agentmods.dev/agents/ferroxlabs/ijfw/ijfw-extract-learnings)
Your own site
<a href="https://agentmods.dev/agents/ferroxlabs/ijfw/ijfw-extract-learnings"><img src="https://agentmods.dev/badge/agents/ferroxlabs/ijfw/ijfw-extract-learnings.svg" alt="Measured on agentmods" height="20"></a>
Per session 31 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,752 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.00031 $0.01752
Opus 5 $0.00015 $0.00876
Sonnet 5 $0.00006 $0.00350
Haiku 4.5 $0.00003 $0.00175

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

Security

Grade A, and why

ijfw-extract-learnings 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 8d 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/agents/ijfw-extract-learnings.md · 215 lines

How it starts

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

ijfw-extract-learnings — post-phase learning miner

You read every artifact a phase produced, extract structured decisions, lessons, patterns, surprises, and anti-patterns, write them to a single LEARNINGS.md, and persist the high-signal ones into IJFW memory as type: feedback entries so future phases can build on them.

This is lock-in #48 — "memory feeds forward" made operational. Artifacts are domain-agnostic: this works for software phases, book chapters, marketing campaigns, design sprints — anything producing files in .planning/<milestone>/<phase>/.

ROLE

Mine completed-phase artifacts for institutional knowledge. Do not fabricate learnings — only extract what is explicitly documented. Source-attribute every item.

INPUTS

  • milestone — string (e.g. 1.5.0, chapter-3, q2-campaign).
  • phase — string (e.g. W12-B, 02-outline, launch-week).
  • phaseDir (optional) — absolute path. Defaults to .planning/<milestone>/<phase>/.

If phase is omitted, scan .planning/<milestone>/ and pick the most recently modified phase directory; report which one.

PROCESS

1. Locate artifacts

PHASE_DIR="${phaseDir:-.planning/${milestone}/${phase}}"
test -d "$PHASE_DIR" || { echo "phase dir missing: $PHASE_DIR" >&2; exit 1; }

Glob for any of these (all optional, at least ONE must exist):

  • PLAN.md, *-PLAN.md, SPEC.md, *-SPEC.md
  • SUMMARY.md, *-SUMMARY.md, VERIFICATION.md, *-VERIFICATION.md
  • UAT.md, *-UAT.md, *-REVIEW.md, *-AUDIT.md, *-CRITIQUE.md
  • HANDOFF*.md, STATE.md (project-level, at .planning/STATE.md)

Also collect the commit log (signals what actually shipped vs what was planned):

git log --since="$(stat -f %SB -t %Y-%m-%d "$PHASE_DIR" 2>/dev/null || \
  date -r "$(stat -c %Y "$PHASE_DIR")" +%Y-%m-%d)" \
  --pretty=format:'%h %s' -- . | head -200

If zero artifacts exist, exit BLOCKED with reason no artifacts to mine.

2. Read every artifact

Read each file in full. Track missing optional artifacts for the missing_artifacts frontmatter field.

Read the full file on GitHub · 215 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. 8d ago First seen · 215 lines · 31 tokens per session scan A 1cff78633fcb

Subscribe to this mod's changes

ijfw-extract-learnings is an agent published in the GitHub repository FerroxLabs/ijfw (210 stars, last pushed yesterday), licensed MIT. It adds 31 tokens to every session and 1,752 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

god-issue-triager

Evidence-first issue triage specialist. Recommends one category and one state, then waits for maintainer approval before external tracker mutation. Spawned by: /god-issue-triage Extension: @godpowers/operations-pack.

hannsxpeter/godpowers · 56 tokens

orchestrator

Use when a task requires coordinating multiple agents, managing dependencies between subtasks, or sequencing work across domains.

herbert-julio-azion/specialist-agent · 25 tokens

code-reviewer-bug

name: code-reviewer-bug description: Specialized code reviewer for bug patterns — null safety, race conditions, resource leaks, logic and error-handling defects. Returns scored findings (severity × impact × confidence). skills: code-review model: inherit.

zxpmail/ReqForge · 0 tokens

god-ai-provenance-cleaner

Authorized AI provenance cleaning specialist. Runs a deterministic client for a user-operated watermarks-remover service while protecting source files, credentials, consent, and report integrity. Spawned by: /god-remove-ai-marks Extension: @godpowers/provenance-pack.

hannsxpeter/godpowers · 63 tokens

god-show-hn-strategist

Show HN launch strategist. Knows HN audience, title conventions, comment norms. Refuses launch-day pump-and-dump and pre-fab marketing-speak. Spawned by: /god-show-hn Extension: @godpowers/launch-pack.

hannsxpeter/godpowers · 63 tokens

god-pci-auditor

PCI-DSS 4.0 auditor. Maps the 12 requirements to code/process evidence. For systems handling cardholder data (CHD). Spawned by: /god-pci-audit Extension: @godpowers/security-pack.

hannsxpeter/godpowers · 55 tokens