corpus_auditor

corpus_auditor is an agent for coding agents from antonio0720/writing-intelligence. It costs 0 tokens per session (375 once invoked), scanned A, original, MIT.

A source-auditing step for a content-writing or compilation process. It maps every piece of information being used, ranks its importance, and flags missing, outdated, conflicting, unsafe, or unsupported sources.

In plain words
What is it for?
Use it to review pasted text, files, project knowledge, previous context, examples, and web material before producing content.
Why use it?
It helps prevent unsupported claims by showing which information is trustworthy and where more evidence is needed.

Agent

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/antonio0720/writing-intelligence/corpus_auditor
Clone the repo
git clone --depth 1 https://github.com/antonio0720/writing-intelligence

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 corpus_auditor

README.md
[![agentmods](https://agentmods.dev/badge/agents/antonio0720/writing-intelligence/corpus_auditor.svg)](https://agentmods.dev/agents/antonio0720/writing-intelligence/corpus_auditor)
Your own site
<a href="https://agentmods.dev/agents/antonio0720/writing-intelligence/corpus_auditor"><img src="https://agentmods.dev/badge/agents/antonio0720/writing-intelligence/corpus_auditor.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 375 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.00375
Opus 5 $0.00000 $0.00187
Sonnet 5 $0.00000 $0.00075
Haiku 4.5 $0.00000 $0.00038

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

Security

Grade A, and why

corpus_auditor 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/corpus_auditor.md · 49 lines

What it actually says

Corpus Auditor

Pass: 2 Artifact: CorpusMapV3 (schemas/corpus_map.schema.json) Doctrine: references/compiler/corpus_governance.md + references/diagnostics/source_conflict_detection.md

Job

Map every source the compiler will read. Mark priority. Flag stale, contradictory, unsupported, or unsafe sources. Surface fabrication risks.

Inputs

  • Intake contract (Pass 0)
  • User-pasted text
  • Attached files
  • Repo knowledge
  • Project memory (if memory_allowed)
  • Web fetches (if web_required)

Outputs

  • A CorpusMapV3 with every source classified
  • A priority_order
  • A conflicts list
  • A missing_sources list
  • A fabrication_risks list

Behavior

  1. Enumerate every source the request implies or attaches.
  2. Classify each by type (user_text / repo_knowledge / external_document / prior_memory / example / generated_idea / web_fetch / user_provided_data).
  3. Mark status per the source-status taxonomy (verified / user-provided / assumed / inferred / missing / unsafe / stale / contradictory).
  4. Stamp freshness timestamps where applicable.
  5. Run source-conflict detection across pairs.
  6. Identify claims that would require fabrication if no source is added.
  7. Block delivery if any unsafe source is referenced in the request.

Hard Rules

  • Examples and generated ideas can never be cited as authority.
  • Stale memory must be flagged, not silently used.
  • Any unsafe source halts the pipeline.
  • Web fetches must carry their fetch timestamp.

Hands Off To

  • Structure Engineer (Pass 4)
  • Evidence Prosecutor (Pass 5)
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 · 49 lines · 0 tokens per session scan A 8d9941e800ba

Subscribe to this mod's changes

corpus_auditor is an agent published in the GitHub repository antonio0720/writing-intelligence (13 stars, last pushed 26d ago), licensed MIT. It costs nothing until one of its globs matches a file; then it loads 375 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

chapter-extractor

章节摘要与情节点提取专家。接收单章文本,输出结构化摘要、情节点列表、角色提及。 被 story-long-analyze(拆解管道 Stage 2)按章节并行调用。 输出格式严格遵循本文件「输出格式」章节;不依赖外部输出模板文件。.

zenstory-ai/oh-story-claudecode · 70 tokens

story-explorer

故事项目结构化查询 agent(只读)。响应关于角色状态、伏笔进度、设定出现位置、 时间线节点、写作进度的查询。使用 grep + read 从项目文件系统中检索信息, 返回结构化 JSON 摘要。 被 story-long-write(日更 Step 1 上下文加载)、story-review(审查时查设定)、 story 路由(用户自然提问时)调用。 不做任何创作判断或修改。.

zenstory-ai/oh-story-claudecode · 104 tokens

story-architect

故事架构与世界观创作专家。负责题材选择、核心梗设计、世界观构建、大纲排布、 钩子/悬念/反转等叙事工程、情绪弧线设计、范围控制审查。 被 story-long-write(Phase 1-3)、story-short-write(Phase 1-2)调用。 也可审查已有内容的结构问题。.

zenstory-ai/oh-story-claudecode · 90 tokens

humanizer

识别并修复典型 AI 写作特征,从内容、语言、风格三个维度进行"净化",并强化原稿中已有的观点、节奏、不确定性和个人视角。Humanizer 只改表达,不创造事实、经历或证据。包含严格的黑名单过滤和 50 分制质量自评。.

dongbeixiaohuo/writing-agent · 65 tokens

empathy-designer

社交货币与共情设计师。根据大纲和伤疤细节,设计文章的分享动因(Impression Management),建立 Share Map。由工作流导演在 Stage 4 显式调用。.

dongbeixiaohuo/writing-agent · 53 tokens

opening-tournament

开头赛马机制。根据前序策划信息,并行提供 3 种极具差异化的实战开头原型方案(字数 150-300 字/个),由工作流导演在 Stage 5.8 显式调用。.

dongbeixiaohuo/writing-agent · 62 tokens