adjust-length

adjust-length is a command for Claude Code from OpenRaiser/PaperFit. It costs 0 tokens per session (405 once invoked), scanned A, original, MIT.

A command for bringing a paper closer to a required page count through layout changes and, only when needed, controlled wording changes. It checks the rendered document after each adjustment.

In plain words
What is it for?
Use it to fit a paper to a target such as eight or nine pages, compressing an overlong document or carefully expanding one that is too short.
Why use it?
A paper can exceed or fall short of a page limit because of spacing, figures, tables, or text flow. This helps adjust length while protecting the meaning, conclusions, and results.

Command for Claude Code

Part of the paperfit plugin — 8 skills, 9 commands, 6 agents 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 commands/openraiser/paperfit/adjust-length
Clone the repo
git clone --depth 1 https://github.com/OpenRaiser/PaperFit

Made for: Claude Code.

Or install paperfit, the plugin that ships this one along with the rest of its 8 skills, 9 commands, 6 agents.

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 adjust-length

README.md
[![agentmods](https://agentmods.dev/badge/commands/openraiser/paperfit/adjust-length.svg)](https://agentmods.dev/commands/openraiser/paperfit/adjust-length)
Your own site
<a href="https://agentmods.dev/commands/openraiser/paperfit/adjust-length"><img src="https://agentmods.dev/badge/commands/openraiser/paperfit/adjust-length.svg" alt="Measured on agentmods" 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 405 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 $0.00000 $0.00405
Opus 5 $0.00000 $0.00202
Sonnet 5 $0.00000 $0.00081
Haiku 4.5 $0.00000 $0.00040

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

Security

Grade A, and why

adjust-length 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 3d 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/commands/adjust-length.md · 39 lines

What it actually says

/adjust-length — 调整页数

作用: 尝试通过排版微调或受控语义改写逼近目标页数。它是专家快捷入口;普通自然语言如“把正文压到 8 页,尽量不要改语义”也应能触发同类任务。

用户入口说明:

  • 用户表达目标页数与约束即可,不需要手动执行内部命令。
  • 长度调整仍然属于视觉闭环任务,不能只看字数或页数数字。
  • 语义改写只能在排版手段用尽后受控触发。

工具调用约定

编译、渲染、日志解析等统一见 CLAUDE.md「系统架构与运行时边界」:paperfit renderpaperfit run scripts/…

用法

/adjust-length

也可以由自然语言触发,例如:

用 PaperFit 把正文压到 9 页
把这篇论文扩到满 8 页,但不要破坏结论与结果表达

执行流程

  1. 分析当前页数与目标页数的偏差
  2. 若超页:优先压缩浮动体、优化版面结构、精炼表述
  3. 若不满页:优先做版面与结构补强,必要时受控扩写结论/讨论
  4. 每轮都回到视觉验收,确认页数变化没有破坏整体版面
  5. 语义干预仅在排版手段用尽后使用

调度

  • 语义润色:agents/semantic-polish-agent.md
  • 技能:skills/space-util-fixer/skills/writing-polish/
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. 3d ago First seen · 39 lines · 0 tokens per session scan A 7ef926a61611

Subscribe to this mod's changes

adjust-length is a command published in the GitHub repository OpenRaiser/PaperFit (331 stars, last pushed 2mo ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 405 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-30.