biomed-agent: Instructions file for Codex

AGENTS.md

biomed-agent AGENTS.md is an instructions file for Codex, OpenCode from nickzren/biomed-agent. It costs 1,086 tokens per session, scanned A, original, Apache-2.0.

A repository instruction file for a biomedical research agent that works with several local data services. It explains the agent's role, current direction, research workflow, and the kinds of biomedical evidence each service provides.

In plain words
What is it for?
Use it when working on the biomed-agent repository to follow its research contract, route questions to the appropriate biomedical data service, and understand the current project structure.
Why use it?
It prevents agents from rebuilding removed application features such as in-repository chat orchestration or a Streamlit interface. It also directs them to the correct research workflow and service for different kinds of evidence.

Instructions file for CodexOpenCode

Written for Codex and OpenCode: the file is AGENTS.md. Also seen: mentions CLAUDE.md; mentions subagents; mentions Claude Code.

This is nickzren/biomed-agent's own configuration. It tells Codex and OpenCode how to work on biomed-agent itself, so it is not a mod to install elsewhere. Copy it as a starting point and replace the rules that are about this project. Everything biomed-agent configures →

Needs its repository: it reads a path above its own folder, which exists only inside the repository. The line is ../opentargets-mcp.

Reuse

Borrowing it

Nothing to install: this file belongs to nickzren/biomed-agent. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.

Copy the file
curl -O https://raw.githubusercontent.com/nickzren/biomed-agent/main/AGENTS.md
Clone the repo
git clone --depth 1 https://github.com/nickzren/biomed-agent

Made for: Codex, OpenCode.

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 biomed-agent AGENTS.md

README.md
[![agentmods](https://agentmods.dev/badge/instructions/nickzren/biomed-agent/agents-md/github.svg)](https://agentmods.dev/instructions/nickzren/biomed-agent/agents-md)
Your own site
<a href="https://agentmods.dev/instructions/nickzren/biomed-agent/agents-md"><img src="https://agentmods.dev/badge/instructions/nickzren/biomed-agent/agents-md/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.

agentmods 80×15 button for biomed-agent AGENTS.md

Your own site · 80×15
<a href="https://agentmods.dev/instructions/nickzren/biomed-agent/agents-md"><img src="https://agentmods.dev/badge/instructions/nickzren/biomed-agent/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>
Per session 1,086 This file is loaded in full into every session.
When invoked 1,086 The same file — it is already loaded in full.
Security scan A 0 findings. A grade says what 26 rules found in the file — not that it is safe.
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.1 $0.01086 $0.01086
Opus 5.5 $0.00434 $0.00434
Sonnet 5.5 $0.00217 $0.00217
Haiku 4.5 $0.00109 $0.00109

Measured 21d ago against content hash 81a1242a8603, method: parsed. Prices are Anthropic first-party input rates as of 2026-10-07, from the pricing page.

Security

Grade A, and why

biomed-agent AGENTS.md 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 21d 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.md · 107 lines

How it starts

The opening of the file, as written. The whole thing — 107 lines — stays where its author put it; the contents beside it link to each section on GitHub.

Agent Guide - biomed-agent

This repo is the agent-facing workspace for biomedical research over five local MCP servers. Codex and Claude Code do the routing, evidence gathering, synthesis, and safety framing. The MCP repos provide tools and data.

Current Direction

Do not rebuild in-repo LLM orchestration, chat, query synthesis, or Streamlit UI here.

Use skills/biomed-research/SKILL.md for the biomedical research workflow. Use mcp.json as the example MCP registration map for the five sibling servers.

Role

The agent is the router and synthesizer across:

Server Strength
opentargets Target-disease evidence, drugs, genetics, variants, studies, clinical trials
monarch HPO phenotypes, rare-disease ontology, model organism context, semantic similarity
mygene Gene, transcript, protein, variant, expression, ontology, and ID aggregation
mychem Chemical, compound, drug, structure, mechanism, target, and identifier aggregation
mydisease Disease, symptom, phenotype, OMIM, Orphanet, MONDO, HPO, and DisGeNET aggregation

Keep source-specific tool logic in the MCP repos. This repo owns cross-server routing, diagnostics, and the research contract.

Research Contract

For biomedical factual answers:

  1. Resolve names to canonical IDs before deeper calls.
  2. Prefer the narrowest relevant server and curated tools.
  3. Fan out only when the question truly spans target, disease, drug, variant, phenotype, or trial evidence.
  4. Prefer source-backed observations over model prior knowledge.
  5. Attribute every material claim to an observation.
  6. State missing or conflicting evidence directly.

Final answers should include:

  • answer: concise biomedical synthesis.
  • confidence: high | medium | low.
  • citations: up to 8 {observation_id, tool, note} entries.
  • limitations: uncertainty, missing evidence, source caveats, and safety notes.
  • safety_note: present for personalized medical advice requests.

Read the full file on GitHub · 107 lines

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. 21d ago Changed · -44 tokens per session 81a1242a8603
  2. 1mo ago First seen · 107 lines · 1,130 tokens per session scan A 4397f2d8a203

Subscribe to this mod's changes

biomed-agent AGENTS.md is an instructions file published in the GitHub repository nickzren/biomed-agent (16 stars, last pushed 21d ago), licensed Apache-2.0. It adds 1,086 tokens to every session, about $0.0043 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.

Related

Other instructions, from other repositories