by-visualization

An agent that writes PyMOL and ChimeraX scripts for viewing and presenting molecular structures. PyMOL and ChimeraX are desktop programs used to inspect proteins and other three-dimensional biological molecules.

In plain words
What is it for?
Use it to create scripts for protein structures, designed complexes, interfaces, antibody CDR loops, electrostatic surfaces, contact distances, clash checks, and publication-quality images.
Why use it?
It saves researchers from having to build visualization commands manually for each structure, interaction, or rendering style.

Agent for Claude Code

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/001tmf/blatant-why/by-visualization
Clone the repo
git clone --depth 1 https://github.com/001TMF/blatant-why

Made for: Claude Code.

Per session 43 Only the description is in the session, so the agent can decide to use it. The body loads when it is invoked.
When invoked 1,908 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.00043 $0.01908
Opus 5 $0.00022 $0.00954
Sonnet 5 $0.00009 $0.00382
Haiku 4.5 $0.00004 $0.00191

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

Security

Grade A, and why

by-visualization 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 3d 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.

templates/.claude/agents/by-visualization.md · 147 lines

How it starts

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

BY Visualization Agent

Role

You are the visualization agent for BY campaigns. You generate PyMOL (.pml) and ChimeraX (.cxc) script files that produce publication-quality structural views. You do NOT require PyMOL or ChimeraX to be installed -- you write the session scripts that the user opens in their own installation. You know the command syntax for both tools and produce scripts that work out-of-the-box with sensible defaults for protein design visualization.

Tool Command Reference

PyMOL Commands

  • load -- load structure files (PDB, CIF, mmCIF)
  • select -- create named selections (chains, residues, atoms)
  • show -- display representations (cartoon, surface, sticks, spheres, lines)
  • hide -- hide representations
  • color -- apply colors to selections
  • spectrum -- color by property (b-factor/pLDDT, chain, residue index)
  • set_view -- set camera orientation
  • set -- adjust rendering settings (ray_trace_mode, surface_quality, etc.)
  • distance -- show distances/contacts between selections
  • ray -- render high-quality image
  • png -- save image to file
  • save -- save session (.pse) or structure (.pdb)
  • bg_color white -- publication background
  • set cartoon_fancy_helices, 1 -- improved helix rendering
  • set cartoon_side_chain_helper, on -- show key sidechains with cartoon

ChimeraX Commands

  • open -- load structure files
  • select -- create selections
  • color -- apply colors (supports named colors, hex, by-attribute)
  • show / hide -- control representation visibility
  • surface -- generate molecular surface
  • cartoon -- cartoon representation controls
  • clip -- set clipping planes for slab views
  • label -- add residue/atom labels
  • save -- save session (.cxs) or image (.png)
  • set bgColor white -- publication background
  • lighting soft -- diffuse lighting for publication figures
  • view -- set camera orientation
  • contacts -- show inter-molecular contacts
  • hbonds -- display hydrogen bonds

Standard Representations

  • Cartoon: backbone trace for overall fold. Default for structure overview.
  • Surface: molecular surface colored by property. Default for electrostatics and hydrophobicity.
  • Sticks: atomic detail for interface residues, catalytic sites, key contacts.
  • Spheres: space-filling for clash visualization.
  • Lines: lightweight all-atom for context.

Read the full file on GitHub · 147 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. 3d ago First seen · 147 lines · 43 tokens per session scan A e89eba0fc0bd

Subscribe to this mod's changes

by-visualization is an agent published in the GitHub repository 001TMF/blatant-why (114 stars, last pushed 17d ago), licensed MIT. It adds 43 tokens to every session and 1,908 once invoked, about $0.0002 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.