env-validator

env-validator is an agent for coding agents from AutoResearch-Factory/Agon. It costs 16 tokens per session (443 once invoked), scanned A, original, MIT.

An agent that checks whether a research project’s computer environment and required files meet its setup rules. It is intended for a Linux-based, large-scale research system.

In plain words
What is it for?
Use it to verify repository status, project structure, configuration keys, workspace files, and required symbolic links. It stops and reports a problem when a required check fails.
Why use it?
It catches missing prerequisites, incorrect folders, branch differences, invalid settings, and certain workspace-file problems before the system starts.

Agent

Installs and runs on its own, but its text points at files inside its plugin — anything it tells you to read at a ${CLAUDE_PLUGIN_ROOT} path is only there once the plugin is installed. Installing the plugin gets both.

Part of the agon plugin — 5 skills, 4 commands, 12 agents, 2 hooks 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/autoresearch-factory/agon/env-validator
Clone the repo
git clone --depth 1 https://github.com/AutoResearch-Factory/Agon

Or install agon, the plugin that ships this one along with the rest of its 5 skills, 4 commands, 12 agents, 2 hooks.

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 env-validator

README.md
[![agentmods](https://agentmods.dev/badge/agents/autoresearch-factory/agon/env-validator.svg)](https://agentmods.dev/agents/autoresearch-factory/agon/env-validator)
Your own site
<a href="https://agentmods.dev/agents/autoresearch-factory/agon/env-validator"><img src="https://agentmods.dev/badge/agents/autoresearch-factory/agon/env-validator.svg" alt="Measured on agentmods" height="20"></a>
Per session 16 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 443 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.00016 $0.00443
Opus 5 $0.00008 $0.00221
Sonnet 5 $0.00003 $0.00089
Haiku 4.5 $0.00002 $0.00044

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

Security

Grade A, and why

env-validator 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/env-validator.md · 23 lines

What it actually says

你是一位 Linux 运维, 你要检查当前系统的环境是否能支持一个大规模并行的科研系统.

以下检查项任何一项有问题时, 停止并向用户报告具体问题 (每一项都是系统运行的前置条件, 不能跳过):

  • ${CLAUDE_PLUGIN_ROOT} 所在 git repo 执行 git fetch --prune, 确认当前分支没有落后或分叉。若落后或分叉, 立刻停下来报告当前分支和远端状态。

  • 确认当前的工作文件夹是数据文件夹: 检查当前文件夹的结构是否符合 ${CLAUDE_PLUGIN_ROOT}/references/project_manual.md 中描述的项目结构. 如果不符合, 说明启动 claude code 时的工作文件夹错了.

  • 确认 ${CLAUDE_PLUGIN_ROOT}/.settings.toml 可读, 并和 ${CLAUDE_PLUGIN_ROOT}/.settings.example.toml 比较, 检查 example 里的所有 key 都存在。任一 key 缺失, 立刻停下来报告。

  • 如果参数中提供了 workspace slug 或 workspace/{slug} 路径, 且对应 workspace 下存在 idea.mdproposal.md, 检查这两个文件不包含 <review</review>. 任一文件仍包含则立刻停下来报告具体文件. 如果 workspace 或这两个文件还不存在, 只报告该检查被跳过, 不视为错误.

  • 如果参数中提供了 workspace slug 或 workspace/{slug} 路径, 且对应 workspace 下存在 landscape.md, 检查它必须是 symbolic link, 且解析后的目标存在并位于 topics 文件夹下. 否则立刻停下来报告具体文件.

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 · 23 lines · 16 tokens per session scan A 7ef4d09cb87e

Subscribe to this mod's changes

env-validator is an agent published in the GitHub repository AutoResearch-Factory/Agon (45 stars, last pushed 10d ago), licensed MIT. It adds 16 tokens to every session and 443 once invoked, about $0.0001 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.