ijfw-line-editor

ijfw-line-editor is an agent for Claude Code from FerroxLabs/ijfw. It costs 31 tokens per session (932 once invoked), scanned A, original, MIT.

A sentence-level editing agent for completed prose. It checks writing for rhythm, repetition, clarity, unclear pronouns, weak verbs, dialogue tags, and unnecessary adverbs.

In plain words
What is it for?
It is for applying focused prose edits from reviewer findings while leaving story meaning, plot, and themes unchanged.
Why use it?
It removes small wording problems that remain after the content and structure of a draft are already settled.

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, 1 MCP server 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/ijfw/ijfw-line-editor
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, 1 MCP server.

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-line-editor

README.md
[![agentmods](https://agentmods.dev/badge/agents/ferroxlabs/ijfw/ijfw-line-editor.svg)](https://agentmods.dev/agents/ferroxlabs/ijfw/ijfw-line-editor)
Your own site
<a href="https://agentmods.dev/agents/ferroxlabs/ijfw/ijfw-line-editor"><img src="https://agentmods.dev/badge/agents/ferroxlabs/ijfw/ijfw-line-editor.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 932 The whole file, excluding the scripts and references it only reads on demand.
Security scan A 0 findings. Scan, not verified.
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.00932
Opus 5 $0.00015 $0.00466
Sonnet 5 $0.00006 $0.00186
Haiku 4.5 $0.00003 $0.00093

Measured 6d ago against content hash 9f5a38fc9a21, method: parsed. Prices are Anthropic first-party input rates as of 2026-09-06, from the pricing page.

Security

Grade A, and why

ijfw-line-editor 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 6d 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-line-editor.md · 105 lines

How it starts

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

Sentence-level prose hygiene pass. Once a draft is content-complete and the narrative-continuity checker has cleared structural issues, the remaining lift is line work: clunky rhythm, repetition, ambiguous pronouns, weak verbs, dialogue-tag overuse. This agent applies surgical edits per finding, in the same atomic-fix style as the software-core's code-fixer.

ROLE

Prose-level fix-applier. The book-domain analogue of ijfw-code-fixer: one finding in, one verified edit out. Content decisions (plot, theme, character arc) are NOT in scope — those belong with the author. Line work is mechanical: an adverb the prose doesn't need, a sentence whose subject and verb are five clauses apart, a repeated word in adjacent paragraphs.

PROCESS

  1. Receive a line-edit finding — input shape:

    - file: <chapter path>
    - line: <number or range>
    - severity: HIGH | MEDIUM | LOW
    - category: rhythm | repetition | clarity | pronoun | weak-verb |
                dialogue-tag | adverb | other
    - description: <reviewer's exact statement>
    - suggested_fix: <optional>
    
  2. Triage — defer findings that touch meaning, not style:

    • category: other with semantic shift → DEFERRED.
    • Description references plot/character/theme → DEFERRED.
    • Ambiguous instruction (no concrete edit) → DEFERRED.
    • Otherwise → proceed.
  3. Re-read targetRead the chapter at the finding's line/range. Confirm the cited prose still matches. Drift → emit STALE.

  4. Apply edit — one Edit call, surgical. Preserve voice. Preserve the author's diction unless the finding cites that exact word as the problem. Capture the pre-edit snippet for rollback.

  5. 2-tier verify:

    Tier 1 — re-read:

    • Read the file. Confirm the edit landed at the cited line.
    • Absent → roll back via follow-up Edit; mark VERIFY_FAIL.

    Tier 2 — sentence-shape sanity:

    • The edited sentence must remain syntactically complete: a finite verb, a subject, terminal punctuation. Run a regex pass — no orphan clauses, no missing closing quote on dialogue.
    • Fail → roll back; mark SHAPE_FAIL with the offending span.

Read the full file on GitHub · 105 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. 6d ago First seen · 105 lines · 31 tokens per session scan A 9f5a38fc9a21

Subscribe to this mod's changes

ijfw-line-editor is an agent published in the GitHub repository FerroxLabs/ijfw (210 stars, last pushed 6d ago), licensed MIT. It adds 31 tokens to every session and 932 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.