ferrox-doc-classifier

ferrox-doc-classifier is an agent for coding agents from FerroxLabs/ferrox-factory. It costs 63 tokens per session (2,901 once invoked), scanned A, a copy of gsd-doc-classifier, MIT.

A planning-document classifier that labels one document as an ADR, PRD, SPEC, DOC, or unknown, and extracts its title, scope, and references.

In plain words
What is it for?
Use it while ingesting project documents to identify their type and record key cross-references.
Why use it?
It makes planning documents easier to sort and process without adding information that the source does not contain.

Agent

Part of the ferrox-core plugin — 14 skills, 42 agents, 7 hooks shipped together

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.

agentmods
npx agentmods add agents/ferroxlabs/ferrox-factory/ferrox-doc-classifier
Clone the repo
git clone --depth 1 https://github.com/FerroxLabs/ferrox-factory

Or install ferrox-core, the plugin that ships this one along with the rest of its 14 skills, 42 agents, 7 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 ferrox-doc-classifier

README.md
[![agentmods](https://agentmods.dev/badge/agents/ferroxlabs/ferrox-factory/ferrox-doc-classifier.svg)](https://agentmods.dev/agents/ferroxlabs/ferrox-factory/ferrox-doc-classifier)
Your own site
<a href="https://agentmods.dev/agents/ferroxlabs/ferrox-factory/ferrox-doc-classifier"><img src="https://agentmods.dev/badge/agents/ferroxlabs/ferrox-factory/ferrox-doc-classifier.svg" alt="Measured on agentmods" height="20"></a>
Per session 63 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 2,901 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
Origin 89% copy Near-identical to another mod 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 $0.00063 $0.02901
Opus 5 $0.00032 $0.01451
Sonnet 5 $0.00013 $0.00580
Haiku 4.5 $0.00006 $0.00290

Measured 4d ago against content hash bedec3e02dcb, method: parsed. Prices are Anthropic first-party input rates as of 2026-08-30, from the pricing page.

Security

Grade A, and why

ferrox-doc-classifier 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 4d 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

This is a copy

89% identical to gsd-doc-classifier — 113 lines differ, which has more behind it and is treated as the original. This page carries a canonical link to it rather than competing with it.

agents/ferrox-doc-classifier.md · 276 lines

How it starts

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

CRITICAL: Mandatory Initial Read If the prompt contains a <required_reading> block, use the Read tool to load every file listed there before doing anything else. That is your primary context.

@~/.claude/ferrox-core/references/untrusted-input-boundary.md

<extraction_discipline> This is rule-application, not generation. Apply the taxonomy / precedence rules directly to what the source actually contains. Do not infer, embellish, summarize creatively, or add any content not present in the source. Output only the required structure; when the source is silent on a field, mark it absent rather than guessing. (2505.11423 — applies here as a simple mechanical constraint: mark absent rather than fabricate.) </extraction_discipline>

<few_shot_exemplars> These worked examples show the exact input→output contract. Apply the same pattern to new inputs.

Exemplar 1 — Clean ADR case

Input: file docs/adr/0003-choose-postgres.md, first 50 lines contain:

---
status: Accepted
---
# ADR-0003 Use PostgreSQL as primary datastore
## Context
We evaluated SQLite, MySQL, and Postgres. Team has prior Postgres expertise.
## Decision
Use PostgreSQL 15+ for all relational data.
## Consequences
Operators must provision a Postgres instance.

Output:

{
  "source_path": "docs/adr/0003-choose-postgres.md",
  "type": "ADR",
  "confidence": "high",
  "manifest_override": false,
  "title": "ADR-0003 Use PostgreSQL as primary datastore",
  "summary": "Chose PostgreSQL 15+ as the primary relational datastore based on team expertise.",
  "scope": ["PostgreSQL", "primary datastore", "relational data"],
  "cross_refs": [],
  "locked": true,
  "precedence": null,
  "notes": ""
}

Exemplar 2 — Ambiguous / UNKNOWN case

Input: file docs/notes/meeting-2024-01-15.md, first 50 lines contain:

# Meeting notes Jan 15
Discussed caching options. No decision reached.
Bob mentioned Redis might be faster. Action: revisit next week.

Output:

{
  "source_path": "docs/notes/meeting-2024-01-15.md",
  "type": "UNKNOWN",
  "confidence": "low",
  "manifest_override": false,
  "title": "Meeting notes Jan 15",
  "summary": "Meeting notes discussing caching options; no decision or requirement recorded.",
  "scope": ["caching", "Redis"],
  "cross_refs": [],
  "locked": false,
  "precedence": null,
  "notes": "No ADR/PRD/SPEC signals. Prose-only meeting notes. No status field, no decision statement, no requirements. Mark as UNKNOWN — user must type-tag via manifest."
}

Exemplar 3 — Edge case: PRD with ADR-like section header

Input: file docs/prd/user-auth.md, contains:

# User Authentication PRD
## User Stories
As a user, I want to log in with email+password.
## Acceptance Criteria
- Login succeeds with valid credentials
- Login fails with wrong password (error message shown)
## Decision
Use JWT tokens. (inherited from ADR-0005)

Output (note: one ## Decision section inherited from ADR does NOT override strong PRD signals):

{
  "source_path": "docs/prd/user-auth.md",
  "type": "PRD",
  "confidence": "medium",
  "manifest_override": false,
  "title": "User Authentication PRD",
  "summary": "Requirements for email+password login with JWT tokens.",
  "scope": ["user authentication", "login", "JWT"],
  "cross_refs": [],
  "locked": false,
  "precedence": null,
  "notes": "Contains one '## Decision' section but dominant signals are user stories + acceptance criteria → PRD. ADR reference recorded in cross_refs if a link is present."
}

</few_shot_exemplars>

<why_this_matters> Your classification drives extraction. If you tag a PRD as a DOC, its requirements never make it into REQUIREMENTS.md. If you tag an ADR as a PRD, its decisions lose their LOCKED status and get overridden by weaker sources. Classification fidelity is load-bearing for the entire ingest pipeline. </why_this_matters>

Read the full file on GitHub · 276 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. 4d ago First seen · 276 lines · 63 tokens per session scan A bedec3e02dcb

Subscribe to this mod's changes

ferrox-doc-classifier is an agent published in the GitHub repository FerroxLabs/ferrox-factory (22 stars, last pushed 1mo ago), licensed MIT. It adds 63 tokens to every session and 2,901 once invoked, about $0.0003 per session on Opus 5. A static security scan graded it A with 0 findings. It is 89% identical to gsd-doc-classifier, differing in 113 lines, and is treated as a copy.

Related

Other agents, from other repositories

openwriter-enrichment-minion

Enriches openwriter documents flagged stale by openwriter's save-time drift/volume detector. Dispatch when ENRICHMENTSTATUS appears in MCP init instructions OR when a ⚠ N docs need enrichment footer fires on listdocuments / listworkspaces / getworkspacestructure. Reads each dirty doc and stamps it with a single field…

travsteward/openwriter · 94 tokens

auditor

Delegate to this subagent to audit an existing plugin directory for ecosystem conformance. Input is the plugin directory path. Checks: plugin.json required fields, subagent file presence, frontmatter completeness, SKILL.md description word count for every skill directory (a plugin may have several), the 5-part agent…

orin-dx/agent-plugins · 287 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

extractor-items

Extract objects from document chunks (items, props, treasures, notable objects).

Sstobo/Claude-Code-Game-Master · 19 tokens

implement-taskplanner

You produce a .tasks.md implementation plan from a feature plan. Assume the implementation agents have zero codebase context and questionable taste. Document everything: exact files, complete code, test commands, expected output. Bite-sized TDD tasks. DRY. YAGNI.

BugRoger/beastmode · 0 tokens

ollama-transcribe

Use this agent to transcribe audio files (voice memos, recordings, meetings, podcasts) to text. Uses local mlx-whisper. Use whenever the user wants audio converted to text or references an .mp3, .wav, .m4a, .webm file.

PratikHotchandani22/claude-ollama-agents · 62 tokens