OmicsClaw AGENTS.md

A guide for AI coding agents working on OmicsClaw, a local-first platform with separate modules for biological data analysis. It explains the repository rules, supported analysis areas, setup, and installation.

In plain words
What is it for?
Use it to install and develop OmicsClaw, work with its analysis modules, handle repository maintenance, and check changes before reporting them.
Why use it?
It tells agents what to read before complex work and sets expectations for scoped changes, evidence-based claims, and documentation updates.

Instructions file for CodexOpenCode

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 instructions/tiangzlab/omicsclaw/agents-md
Clone the repo
git clone --depth 1 https://github.com/TianGzlab/OmicsClaw

Made for: Codex, OpenCode.

Per session 7,253 This file is loaded in full into every session.
When invoked 7,253 The same file — it is already loaded in full.
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.07253 $0.07253
Opus 5 $0.03626 $0.03626
Sonnet 5 $0.01451 $0.01451
Haiku 4.5 $0.00725 $0.00725

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

Security

Grade A, and why

OmicsClaw 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 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.md · 543 lines

How it starts

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

AGENTS.md — OmicsClaw Guide for AI Coding Agents

This guide is for AI coding agents working on the OmicsClaw codebase.

Repository Working Contract

Before any complex repository maintenance, feature, or refactor task, read README.md first for project context and prior decisions. Then read this AGENTS.md, root SPEC.md, and the directly relevant code/docs.

Core rules:

  • Reply in the user's language, usually Chinese or English.
  • Stay concise, practical, and execution-focused.
  • For non-trivial changes, work from a concise plan, keep edits scoped, and verify claims with concrete commands or file inspections before reporting completion.
  • When you make an important decision or complete a meaningful milestone, update README.md while preserving its existing structure.

Project Overview

OmicsClaw is a multi-omics analysis platform supporting 95 registered skills across 8 domains: spatial transcriptomics, single-cell omics, genomics, proteomics, metabolomics, Bulk RNA-seq, orchestration, and literature. Each skill is a self-contained module that performs a specific analysis task via CLI or Python API. All processing is local-first. Design is inspired by ClawBio.

Note: OmicsClaw evolved from SpatialClaw and now uses a unified omicsclaw.py entrypoint.

Setup

cd /path/to/OmicsClaw

# Recommended: full conda-primary install (R + CLIs + Python in one shot)
bash 0_setup_env.sh
conda activate OmicsClaw

# Lightweight alternative (Python-only skills, no R or external CLIs):
# pip install -e .
# pip install -e ".[interactive]" / ".[tui]" / ".[memory]" / ".[channels]" / ".[full]"

python omicsclaw.py list   # or: oc list
python omicsclaw.py run spatial-preprocess --demo

oc short alias: After installing OmicsClaw (either path), both omicsclaw and oc commands are available system-wide via the [project.scripts] entry in pyproject.toml.

Dependency source of truth:

  • Python deps live in pyproject.toml (used by both install paths).
  • R packages, bioinformatics CLIs, build toolchain live in environment.yml (conda path only).
  • GitHub-only R packages are installed inline by 0_setup_env.sh Tier 3 (devtools::install_github for spacexr, CARD, CellChat, numbat, SPARK, DoubletFinder).
  • Optional analysis backends (cellrank, palantir, scvelo, tangram-sc, …) are catalogued per domain in skills/<domain>/_lib/dependency_manager.py DEPENDENCY_REGISTRY (canonical PyPI name → module + install_cmd). This is the SSOT for backend name mapping; new algorithms register here.
  • Per-skill requires: frontmatter is generated/checked from the real import surface by scripts/audit_skill_requires.py (--check in CI, --write to regenerate). Never hand-edit it to "fix" a missing backend — register the backend and run --write. See CONTRIBUTING.md.

The repository does not use a root requirements.txt as a primary install entrypoint.

Known pip check warning: the full conda environment keeps jinja2>=3.1.5 for FastAPI/nbconvert even though upstream pygpcca==1.0.4 still pins jinja2==3.0.3. Treat that single warning as metadata noise when oc doctor and targeted import checks pass.

Read the full file on GitHub · 543 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. 2d ago First seen · 543 lines · 7,253 tokens per session scan A 61d31a35c77d

Subscribe to this mod's changes

OmicsClaw AGENTS.md is an instructions file published in the GitHub repository TianGzlab/OmicsClaw (159 stars, last pushed 1mo ago), licensed Apache-2.0. It adds 7,253 tokens to every session, about $0.0363 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.

Related

Other instructions, from other repositories

braindb CLAUDE.md

Instructions for dimknaf/braindb, covering braindb — claude instructions, ⚠ tool priority — read this first, it overrides habit, at the start of every session, 1. get always-on rules (behavioral guidelines) and project structure.

dimknaf/braindb · 2,750 tokens

precision-medicine-mcp CLAUDE.md

Instructions for lynnlangit/precision-medicine-mcp, covering claude.md — project context for claude code, git workflow, session management, what this project is and repository structure.

lynnlangit/precision-medicine-mcp · 1,744 tokens

CellTypePilot AGENTS.md

Instructions for HERRY423/CellTypePilot, covering celltypepilot — codex agent instructions, when to use, prerequisites, workflow — four stages and stage 1: inspect the data.

HERRY423/CellTypePilot · 4,451 tokens

asb-skill-collections copilot-instructions.md

Instructions for HolobiomicsLab/asb-skill-collections: This repository publishes the ASB Metabolomics Skill Collection (collections/metabolomics/v2/): 5,859 evidence-grounded skills over 909 software tools for computational LC-MS/MS metabolomics, each derived from a peer-reviewed method paper.

HolobiomicsLab/asb-skill-collections · 379 tokens

metadome-link AGENTS.md

AGENTS.md instructions for berntpopp/metadome-link, covering agents.md — metadome-link, what this is, two planes (non-negotiable boundary), async model and invariants.

berntpopp/metadome-link · 2,183 tokens

encode-toolkit CLAUDE.md

Claude Code instructions for ammawla/encode-toolkit, covering encode toolkit, quick start, source architecture, package identity and development gotchas.

ammawla/encode-toolkit · 2,387 tokens