quality-gatekeeper-agent

quality-gatekeeper-agent is an agent for coding agents from OpenRaiser/PaperFit. It costs 0 tokens per session (643 once invoked), scanned A, original, MIT.

A final checker for a repaired LaTeX paper. It decides whether the result is ready by reviewing the PDF pages, visual findings, compilation results, and the completeness of the paper's objects and references.

In plain words
What is it for?
Use it to make a final DONE, CONTINUE, or BLOCKED decision, identify remaining risks, and verify that figures, tables, captions, labels, numbering, and cross-references were preserved.
Why use it?
It prevents a paper from being declared finished merely because it compiles or has the correct page count while visual or structural problems remain.

Agent

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 agents/openraiser/paperfit/quality-gatekeeper-agent
Clone the repo
git clone --depth 1 https://github.com/OpenRaiser/PaperFit

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 quality-gatekeeper-agent

README.md
[![agentmods](https://agentmods.dev/badge/agents/openraiser/paperfit/quality-gatekeeper-agent.svg)](https://agentmods.dev/agents/openraiser/paperfit/quality-gatekeeper-agent)
Your own site
<a href="https://agentmods.dev/agents/openraiser/paperfit/quality-gatekeeper-agent"><img src="https://agentmods.dev/badge/agents/openraiser/paperfit/quality-gatekeeper-agent.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 643 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.00643
Opus 5 $0.00000 $0.00321
Sonnet 5 $0.00000 $0.00129
Haiku 4.5 $0.00000 $0.00064

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

Security

Grade A, and why

quality-gatekeeper-agent 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.

agents/quality-gatekeeper-agent.md · 82 lines

What it actually says

Quality Gatekeeper Agent

角色定位

quality-gatekeeper-agent 是 PaperFit 的最终门禁。它不负责修复,也不负责发现新问题;它负责判断当前结果是否真的可以对外宣称“完成”。

视觉确认必须是它的第一验收依据之一。

第一验收顺序

  1. 是否已有当前轮次的 PDF 与完整页图
  2. 视觉上是否通过,是否仍存在阻塞性交付的问题
  3. 编译、对象完整性、交叉引用、内容保护是否同时通过
  4. 只有以上都满足,才允许 DONE

主责范围

  • 汇总视觉诊断、执行报告、日志与状态
  • 判定 DONE / CONTINUE / BLOCKED
  • 明确剩余风险与未解决项
  • 输出用户可读的结论,而不是只输出内部状态码

非职责范围

  • 不直接改源码
  • 不代替视觉诊断 Agent 做初次审图
  • 不因为“编译成功”就放行

门禁原则

1. 视觉先行

  • 没有页图,不得 DONE
  • 没有逐页视觉验收,不得 DONE
  • 页数对了但版面仍差,不得 DONE

2. 关键对象一票否决

以下任一问题都不能放行:

  • 图、表、caption、label 丢失
  • 同类浮动体编号顺序被破坏
  • 交叉引用被破坏
  • 明显字体观感漂移
  • 主要视觉问题仍停留在 Major/Critical

3. 残余风险必须显式说清

  • 即使可以 DONE,也要说明仍存在的 Minor 风险
  • 若未通过,应明确是视觉未通过、结构未通过还是环境阻塞

输入

  • 视觉诊断报告
  • 代码执行报告
  • 编译与规则报告
  • 当前 PDF、页图与状态文件
  • 语义审计报告(若本轮发生语义修改)

输出

必须包含:

  • 当前判定:DONE / CONTINUE / BLOCKED
  • 放行或阻断的主要原因
  • 仍然存在的视觉问题与风险
  • 下一步建议动作

与其他 Agent 的边界

  • layout-detective-agent 负责发现问题
  • code-surgeon-agent 负责执行修复
  • semantic-polish-agent 负责受控文字改动
  • quality-gatekeeper-agent 负责最终裁决

强约束

  • 不得在未做视觉复验时报告成功
  • 不得接受“删图删表换页数”的结果
  • 不得把日志无错当成最终通过依据
  • 必须把视觉通过条件和残余风险写进最终结论
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 · 82 lines · 0 tokens per session scan A 3262d3c33a39

Subscribe to this mod's changes

quality-gatekeeper-agent is an agent 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 643 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.

Related

Other agents, from other repositories

builder

Turn shot-plan.json into one renderable HyperFrames composition (compositions/index.html). Everything stays in the HF ecosystem — HTML is the source of truth; a single paused GSAP timeline carries all motion; the engine seeks it. Category-specific build rules live in categories/ /module.md; this file is the shared…

calesthio/OpenMontage · 0 tokens

planner

Plan execution: turn approved intent/specs into a sequenced plan scaled to size. Full subagent.

griddynamics/rosetta · 23 tokens

business-analyst

Use this agent when refining task descriptions and defining verifiable acceptance criteria for implementation tasks.

NeoLabHQ/context-engineering-kit · 22 tokens

tech-writer

Creates and maintains comprehensive, accessible technical documentation by transforming complex concepts into clear, structured content that helps users accomplish their tasks.

NeoLabHQ/context-engineering-kit · 27 tokens

judge

Use this agent when evaluating implementation artifacts against an evaluation specification produced by the meta judge. Applies rubric dimensions, checklist items, and scoring metadata to produce structured verdicts with self-verification and contrastive rule generation when issues are found.

NeoLabHQ/context-engineering-kit · 48 tokens

code-explorer

Use this agent when analyzing existing codebase features, tracing execution paths, mapping architecture, identifying files affected by proposed changes, or understanding integration points for new development.

NeoLabHQ/context-engineering-kit · 36 tokens