If you're doing reinforcement learning and hitting performance walls, this is worth checking out. PufferLib gets you 2-10x speedups over standard implementations through optimized vectorization and parallel environment simulation, hitting millions of steps per second. It's built around an efficient PPO implementation and works with all the usual frameworks (Gymnasium, PettingZoo, Atari, Procgen). The multi-agent support is native rather than bolted on, which matters if you're working with those environments. Fair warning: the learning curve is steeper than stable-baselines3, so this makes sense when you actually need the speed or are scaling up experiments. The documentation covers training loops, custom environments, and distributed setups across the reference files.

skills.sh installs
2K
GitHub stars
56.6K
last updated
Aug 21, 2026

Install

$ npx -y skills add k-dense-ai/scientific-agent-skills --skill pufferlib --agent claude-code

Installs into .claude/skills of the current project.

Files

PufferLib

Choose the version before choosing an API. Reviewed 2026-10-01:

ProfileStatusMain use
Native source 5.0Current default branch and live documentationC/CUDA environments, native trainer; CPU evaluation only
pufferlib==3.0.0Latest PyPI release, published 2025-06-23; sdist onlyPython/Gymnasium/PettingZoo adaptation and Torch PuffeRL
Pinned source 4.0Historical snapshotC Ocean interface with an optional Torch fallback

For 5.0, read references/native-5.md. The reviewed revision is 6ffa5b10dbbbe4d1e8288367c7d9d3acd3bad4a2. Its CLI is ./puffer train after building an environment, not puffer train ENV_NAME. There is no 5.0 Python emulation/vector API or --slowly fallback.

Sponsors

Details

Repository
github.com/k-dense-ai/scientific-agent-skills
Categories
Git & Pull Requests, Code Review & Quality, AI & Agent Building, Release Management
First seen
Jun 3, 2026

More from k-dense-ai/scientific-agent-skills

All 137
1kostja94 avatarparasite-seokostja94/marketing-skillsWhen the user wants to choose or execute third-party platform SEO (high-authority sites for rankings or backlinks). Also use when the user mentions "parasite SE2Kskills.sh installs
2k-dense-ai avatarfluidsimk-dense-ai/scientific-agent-skillsPlan, configure, inspect, restart, and analyze bounded FluidSim computational-fluid-dynamics simulations with explicit numerical-validity and HPC safety checks.2Kskills.sh installs
3mcollina avatarnodejs-coremcollina/skillsContributes to and debugs Node.js core, including nodejs/node commit and PR tone, contribution workflows, native crashes, V8 performance, node-gyp builds, N-API2Kskills.sh installs
4dimillian avatarswift-concurrency-expertdimillian/skillsSwift Concurrency review and remediation for Swift 6.2+. Use when asked to review Swift Concurrency usage, improve concurrency compliance, or fix Swift concurre2Kskills.sh installs
5k-dense-ai avatarpolars-biok-dense-ai/scientific-agent-skillsHigh-performance genomic interval operations and bioinformatics file I/O on Polars DataFrames. Overlap, nearest, merge, coverage, complement, subtract for BED/V2Kskills.sh installs
6k-dense-ai avatarneuropixels-analysisk-dense-ai/scientific-agent-skillsAnalyze Neuropixels extracellular recordings end-to-end with SpikeInterface. Covers loading SpikeGLX/Open Ephys/NWB data, preprocessing, drift/motion correction2Kskills.sh installs