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.
npx agentmods add skills/jmschrei/ledidi/datanpx skills add jmschrei/ledidi --skill datagit clone --depth 1 https://github.com/jmschrei/ledidiWhat 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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5 | $0.00126 | $0.01894 |
| Opus 5 | $0.00063 | $0.00947 |
| Sonnet 5 | $0.00025 | $0.00379 |
| Haiku 4.5 | $0.00013 | $0.00189 |
Grade A, and why
ledidi 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.
How it starts
The opening of the file, as written. The whole thing — 117 lines — stays where its author put it; the contents beside it link to each section on GitHub.
ledidi
ledidi inverts the usual training loop: the oracle model is frozen and the
data is optimized. It learns a continuous weight matrix, samples one-hot edits
to a template sequence from a Gumbel-softmax, and pushes those edits until the
oracle predicts what you asked for — while an input loss keeps the number of
edits small. Any differentiable PyTorch model that maps a one-hot sequence to a
prediction becomes a sequence editor.
This skill is a router. Each topic below has a reference file with exact signatures and footguns. Read the relevant reference file before writing code — do not rely on memory of the API. Several of ledidi's failure modes are silent: a plausible-looking argument can broadcast against the wrong shape, protect the region you meant to edit, or prune against the wrong objective, with no exception raised.
tangermeme is a hard dependency of ledidi (it supplies the input validation),
and it owns everything that happens around a design — one-hot encoding, FASTA
and loci I/O, attributions, motif scanning, logo plotting. Install its skill
too (tangermeme-install-skills) and consult it for those steps rather than
reinventing them here.
Is ledidi even the right tool? ledidi is gradient-based and finds small,
targeted edits to an existing template. For discrete design — implanting motifs
from a library, screening random candidates, greedy or beam substitution — use
tangermeme.design instead (screen, greedy_substitution, beam_substitution,
greedy_marginalize); its skill's references/design.md covers them. Note that
tangermeme.design requires a per-candidate loss (reduction='none') to rank
edits, which is the opposite of ledidi's requirement that the output loss
return a scalar — do not carry that habit across.
Read these first
- The objective — every design is
output_loss(y_hat, y_bar) + l * input_loss, where the input loss is the mean number of edits per sequence.lis the exchange rate between "hit the target" and "make few edits", and it is the knob you will actually tune. Also covers what theverboselog lines mean and why the returned design is the best-scoring iterate rather than the last one.
What ships with it
19 files beside SKILL.md in the same directory: the scripts, references and assets a skill reads on demand. Not counted in the per-session cost; read them before you install if any of them is executable.
- references/catalogs-and-repeats.md 3.8 KB
- references/custom-losses.md 6.5 KB
- references/designer-object.md 5.7 KB
- references/first-design.md 3.5 KB
- references/initial-weights.md 5.7 KB
- references/inpainting.md 4.3 KB
- references/io-and-validation.md 7.3 KB
- references/masks.md 4.3 KB
- references/memory-and-oom.md 9.8 KB
- references/multi-task-models.md 5.2 KB
- references/multiple-models.md 3.9 KB
- references/objective.md 7.4 KB
- references/oracle-contract.md 4.5 KB
- references/pipeline.md 6.0 KB
- references/plotting.md 4.5 KB
- references/pruning.md 4.1 KB
- references/receptive-field.md 5.5 KB
- references/reproducibility.md 4.6 KB
- references/validating-designs.md 6.6 KB
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.
- 2d ago First seen · 117 lines · 126 tokens per session scan A c16420107429
ledidi is a skill published in the GitHub repository jmschrei/ledidi (112 stars, last pushed 4d ago), licensed Apache-2.0. It adds 126 tokens to every session and 1,894 once invoked, about $0.0006 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.
Other skills, from other repositories
instrument-data-to-allotrope
Convert laboratory instrument output files (PDF, CSV, Excel, TXT) to Allotrope Simple Model (ASM) JSON format or flattened 2D CSV. Use this skill when scientists need to standardize instrument data for LIMS systems, data lakes, or downstream analysis. Supports auto-detection of instrument types. Outputs include full…
biopython
Comprehensive molecular biology toolkit. Use for sequence manipulation, file parsing (FASTA/GenBank/PDB), phylogenetics, and programmatic NCBI/PubMed access (Bio.Entrez). Best for batch processing, custom bioinformatics pipelines, BLAST automation. For quick lookups use gget; for multi-service integration use…
exploratory-data-analysis
Perform bounded, local exploratory analysis of explicitly supported scientific files. Use for redacted CSV/TSV/JSON profiles; optional NumPy, HDF5, FASTA/FASTQ, and basic image metadata inspection; missingness/leakage audits; outlier and transformation sensitivity; and rigorous EDA report scaffolds. Other domain…
arboreto
Infer gene regulatory networks (GRNs) from gene expression data using scalable algorithms (GRNBoost2, GENIE3). Use when analyzing transcriptomics data (bulk RNA-seq, single-cell RNA-seq) to identify transcription factor-target gene relationships and regulatory interactions. Supports distributed computation for…
nature-statistics
Audit, revise, or draft manuscript statistical reporting for Nature / high-impact journal submissions. Use when the user asks to check statistical analysis sections, p values, confidence intervals, sample size, biological versus technical replicates, randomization, blinding, multiple-comparison correction, model…
paper-illustration
Generate publication-quality AI illustrations for academic papers using Gemini image generation. Creates architecture diagrams, method illustrations with Claude-supervised iterative refinement loop. Use when user says "生成图表", "画架构图", "AI绘图", "paper illustration", "generate diagram", or needs visual figures for papers.