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 instructions/jadmadi/thermal/agents-mdgit clone --depth 1 https://github.com/jadmadi/thermalWhat 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.01925 | $0.01925 |
| Opus 5 | $0.00962 | $0.00962 |
| Sonnet 5 | $0.00385 | $0.00385 |
| Haiku 4.5 | $0.00193 | $0.00193 |
Grade B, and why
thermal AGENTS.md scanned grade B with 1 finding 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 yesterday.
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.
Asks for rootmediumPrivilege escalation
A mod that escalates privileges can change anything on the machine, not only the project.
* The `.github/workflows/release.yml` workflow triggers on `push: tags: ["v*"]`. It installs `upx` (`sudo apt-get install -y upx`) and runs GoReleaser (`goreleaser/goreleaser-action@v6`) to cross-compile across 5 OS/Arch How it starts
The opening of the file, as written. The whole thing — 110 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md — Thermal Coding Standards & Architecture Guide
This document defines the architectural conventions, coding standards, loader requirements, build quirks, and historical lessons for Thermal (github.com/jadmadi/thermal). Any AI coding assistant (Claude Code, Gemini CLI, Devin, OpenCode, Cursor, etc.) working on this repository MUST read and adhere to these standards.
1. Project Purpose & Architecture
Thermal (thermal) is a high-performance, zero-allocation terminal contribution heatmap and leaderboard tool for AI coding assistants. It scans local databases and session transcripts across multiple AI tools, calculates activity and token metrics, and renders beautiful terminal heatmaps.
Directory Structure
thermal/
├── cmd/thermal/ # Main CLI entrypoint (main.go, upgrade.go for self-update mechanism)
├── internal/loaders/ # Tool-specific ingestion engines and incremental delta-cache
├── internal/thermal/ # Heatmap algorithms, streak calculation, and time parsing
├── internal/render/ # Terminal formatting, color palettes, dashboard & leaderboard UI
├── internal/version/ # SemVer constants and ldflag injection targets
├── build.sh # Local multi-target build and UPX compression script
└── .goreleaser.yml # Automated GitHub Actions release configuration
2. Core Coding & Architectural Standards
A. Read-Only Data Ingestion (internal/loaders/)
- Never Modify User Data: All SQLite connections MUST open in strictly read-only mode using URI parameters:
db, err := sql.Open("sqlite", "file:"+dbPath+"?mode=ro") - Memory-Mapped I/O: Immediately after opening any SQLite database, execute
PRAGMA mmap_sizeto enable memory mapping for instant scanning of multi-gigabyte files:db.Exec("PRAGMA mmap_size=268435456") // 256MB mmap window - Robust Time Parsing (
parseSessionTime): AI tool timestamps vary wildly across tools and versions (RFC3339 strings, Unix seconds, milliseconds, microseconds, SQLite strings). Always use robust multi-format parsing ortime_test.goutilities. Never assume a single fixed format. - Incremental Delta Caching (
cache.go): For large databases (Devin,OpenCode,MiMoCode,Codex) and multi-file scanners (command-code,Agy), use theLoadOrScanWithCachemechanism (~/.cache/thermal/<tool>.json). Store exact file modification times (mod_time), sizes (size), or max seen transaction IDs so subsequent invocations take under10ms. - Concurrency Safety: Multi-file, directory, and JSONL log scanners (
command-code,Codexrollout logs,Agyoverview logs) must use bounded worker pools (sync.WaitGroupor semaphore channels capped at ~16 workers) with thread-safe aggregation (sync.Mutex). Never spawn unbounded goroutines over thousands of files.
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.
- yesterday First seen · 110 lines · 1,925 tokens per session scan B 84c574a3a307
thermal AGENTS.md is an instructions file published in the GitHub repository jadmadi/thermal (1 stars, last pushed 1mo ago), licensed MIT. It adds 1,925 tokens to every session, about $0.0096 per session on Opus 5. A static security scan graded it B with 1 finding (asks for root). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-31.
Other instructions, from other repositories
ollama CLAUDE.md
Claude Code instructions for ollama/ollama: See AGENTS.md for the shared agent instructions for this repository.
sq AGENTS.md
Instructions for neilotoole/sq, covering agents.md, about sq, key documents, common commands and conventions.
azure-sdk-for-go go-examples.instructions.md
Instructions for Azure/azure-sdk-for-go, a project described as: This repository is for active development of the Azure SDK for Go. For consumers of the SDK we recommend visiting our public developer docs at.
cli AGENTS.md
Instructions for planetscale/cli, covering planetscale cli — agent guide, public repository safety, concepts, flag placement and correct.
azure-sdk-for-go go-code.instructions.md
Instructions for Azure/azure-sdk-for-go: All code should follow the guidelines from the Azure Go SDK Guidelines. This document is a summary of the most important guidelines to follow when contributing to the Azure Go SDK.
gorest AGENTS.md
Instructions for pilinux/gorest, covering agents.md, project overview, build and run commands, build and tidy dependencies.