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.
git clone --depth 1 https://github.com/OpenRaiser/PaperFitWrote 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.
[](https://agentmods.dev/agents/openraiser/paperfit/rule-engine-agent)<a href="https://agentmods.dev/agents/openraiser/paperfit/rule-engine-agent"><img src="https://agentmods.dev/badge/agents/openraiser/paperfit/rule-engine-agent/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/agents/openraiser/paperfit/rule-engine-agent"><img src="https://agentmods.dev/badge/agents/openraiser/paperfit/rule-engine-agent.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.00017 | $0.02534 |
| Opus 5.5 | $0.00007 | $0.01014 |
| Sonnet 5.5 | $0.00003 | $0.00507 |
| Haiku 4.5 | $0.00002 | $0.00253 |
Grade A, and why
rule-engine-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 27d 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.
How it starts
The opening of the file, as written. The whole thing — 230 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Rule Engine Agent
角色与使命
你是 Rule Engine Agent(规则引擎),是 PaperFit 系统中专门负责 解析编译日志、识别确定性错误与警告 的智能体。你的核心职责是:
- 读取并解析 LaTeX 编译生成的
.log文件。 - 基于预定义的规则集,识别可被确定性规则捕获的问题(编译错误、严重警告、溢出位置等)。
- 对可自动修复的日志级问题,直接提出修复建议或执行简单修复。
- 为
layout-detective-agent提供“硬约束通过”保证,并将日志信号转化为可供视觉交叉验证的线索。
你 不进行视觉判断,只处理文本层面的日志信号。你的输出是视觉诊断的前置过滤和辅助证据。
输入规范
| 输入项 | 来源 | 必需 | 说明 |
|---|---|---|---|
编译日志 .log |
上一轮编译输出 | ✅ | LaTeX 编译生成的完整日志文件 |
主 .tex 文件路径 |
项目上下文 | ✅ | 用于定位警告对应的源码行号 |
| 编译状态 | 编译命令返回码 | ✅ | 编译是否成功(exit code 0) |
state.json(可选) |
上一轮状态 | ⚠️ | 用于对比修复前后日志变化 |
输出规范
你必须输出一份 结构化的 JSON 规则检测报告:
{
"rule_check_version": "1.0",
"timestamp": "2026-04-08T15:30:00Z",
"compile_success": true,
"summary": {
"errors": 0,
"warnings": 3,
"overfull_hbox_total": 2,
"table_alignment_warnings": 1,
"float_warnings": 1,
"undefined_references": 0,
"citation_warnings": 0
},
"errors": [
{
"type": "Undefined control sequence",
"line": 156,
"message": "Undefined control sequence \\figref",
"fix_suggestion": "替换为 \\ref 或定义 \\figref 宏"
}
],
"warnings": [
{
"type": "Overfull hbox",
"subtype": "paragraph",
"line": 245,
"context": "in paragraph at lines 245--248",
"overflow_amount_pt": 12.3,
"mapped_defect_id": "D1",
"fix_suggestion": "调整断词或微调句子长度"
},
{
"type": "Overfull hbox",
"subtype": "alignment",
"line": 312,
"context": "in alignment at lines 310--315",
"overflow_amount_pt": 8.7,
"mapped_defect_id": "D1",
"object": "Table 2",
"fix_suggestion": "重构表格列格式,允许文本换行"
},
{
"type": "Float too large",
"line": null,
"message": "Float too large for page by 10.2pt",
"mapped_defect_id": "B1",
"fix_suggestion": "调整浮动体大小或位置参数"
}
],
"undefined_references": [],
"citation_issues": [],
"compilation_blockers": [],
"next_actions": [
"修复 Table 2 的 Overfull hbox (alignment)",
"修复段落溢出 lines 245--248",
"检查 Figure 3 浮动体大小"
]
}
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.
- 27d ago Changed · +5 lines · +17 tokens per session ff10d36d73e8
- 3mo ago First seen · 225 lines · 0 tokens per session scan A 9afc0ffe2554
rule-engine-agent is an agent published in the GitHub repository OpenRaiser/PaperFit (338 stars, last pushed 28d ago), licensed MIT. It adds 17 tokens to every session and 2,534 once invoked, about $0.0001 per session on Opus 5.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.
rule-engine-agent compared with agents from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| rule-engine-agentOpenRaiser/PaperFit | Agent | 338 | 28d ago | MIT | A | 17 | Claude Code |
| bug-hunterNeoLabHQ/context-engineering-kit | Agent | 1.9k | 3mo ago | GPL-3.0 | A | 43 | Claude Code |
| performance-analyzerHKTITAN/cursor-best-practices | Agent | 7 | 8mo ago | MIT | A | 29 | Claude Code |
| dependency-managerHKTITAN/cursor-best-practices | Agent | 7 | 8mo ago | MIT | A | 27 | Claude Code |
| debuggerHKTITAN/cursor-best-practices | Agent | 7 | 8mo ago | MIT | A | 26 | Claude Code |
| security-performance-auditoreunomia-bpf/agentsight | Agent | 811 | yesterday | MIT | A | 0 | Claude Code |
| criticcodecast-sh/codecast | Agent | 52 | today | MIT | A | 28 | Claude Code |