validator

An agent for checking molecular identifiers such as chemical SMILES, DNA or protein sequences, and CAS numbers in extracted data.

In plain words
What is it for?
Use it after extracting scientific information, particularly in drug-discovery or other biomedical projects, to validate chemical structures and biological sequences.
Why use it?
It catches transcription or parsing errors and reports when the current domain has no molecular-validation setup.

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/usathyan/epistract/validator
Clone the repo
git clone --depth 1 https://github.com/usathyan/epistract
Per session 53 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 361 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.00053 $0.00361
Opus 5 $0.00026 $0.00180
Sonnet 5 $0.00011 $0.00072
Haiku 4.5 $0.00005 $0.00036

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

Security

Grade A, and why

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 2d 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/validator.md · 43 lines

What it actually says

Molecular Validation Agent

You validate molecular identifiers in epistract extraction results.

Domain-Aware Validation

Validation is domain-specific. If the current domain has no validation-scripts/ directory, report "No molecular validation configured for this domain" and skip validation. Only domains with molecular identifiers (e.g., drug-discovery) have validation scripts.

Your Task

Run the validation pipeline:

python3 ${CLAUDE_PLUGIN_ROOT}/scripts/validate_molecules.py <output_dir> --domain <domain_name>

If the domain has no validation scripts, the command will exit gracefully with a message. This is expected behavior for non-biomedical domains.

Interpret Results

  • SMILES valid: Structure confirmed by RDKit, canonical form and properties computed
  • SMILES invalid: Could not parse -- likely LLM transcription error, flag for review
  • Sequence valid: Characters confirmed, properties computed (GC%, MW, pI)
  • RDKit/Biopython not installed: Report to user with install commands
  • No validation scripts: Domain does not require molecular validation

Report

Provide a summary:

  • Total molecular identifiers found
  • SMILES: N found, M valid, K invalid
  • Sequences: N found, M valid (DNA/RNA/protein breakdown)
  • CAS numbers: N found
  • NCT numbers: N found
  • Patent numbers: N found
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. 2d ago First seen · 43 lines · 53 tokens per session scan A 939056985275

Subscribe to this mod's changes

validator is an agent published in the GitHub repository usathyan/epistract (8 stars, last pushed 17d ago), licensed MIT. It adds 53 tokens to every session and 361 once invoked, about $0.0003 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-31.

Related

Other agents, from other repositories

gpd-research-synthesizer

Synthesizes research outputs from parallel researcher agents into SUMMARY.md. Spawned by the new-project or new-milestone orchestrator workflows after 4 parallel researcher agents complete.

psi-oss/get-physics-done · 44 tokens

ma-numerics-consultant

Engage when the task turns on a number that must be right: evaluate a formula to a value, independently reproduce a claimed number from its inputs, an order-of-magnitude or ratio check (Γ/M, a suppression), a unit conversion, uncertainty propagation — or a load-bearing constant (mass, coupling, PDG value) about to be…

MadGraphTeam/MadAgents · 184 tokens

gpd-explainer

Explains a physics concept, method, notation, or paper rigorously in project context, with scoped literature references the user can open. Spawned by the explain workflow.

psi-oss/get-physics-done · 40 tokens

physics-expert

Particle physics reasoning — e.g., theory, phenomenology, simulation setup validation.

MadGraphTeam/MadAgents · 20 tokens

tracelens_analyst

Generate a TraceLens performance report for the rank-0 PyTorch trace and produce structured claims.json mapped to the bottleneck taxonomy.

AMDResearch/ai4science-studio · 0 tokens

pairwise-meta-analyst

Expert in frequentist and Bayesian pairwise meta-analysis using meta, metafor, and bayesmeta packages. Handles fixed/random effects models, heterogeneity assessment, publication bias, forest plots, and sensitivity analyses. Use PROACTIVELY for pairwise MA tasks.

choxos/BiostatAgent · 60 tokens