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 agents/dogacel/auto-gpu-kernel/researchgit clone --depth 1 https://github.com/Dogacel/auto-gpu-kernelWhat 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.00009 | $0.01147 |
| Opus 5 | $0.00005 | $0.00574 |
| Sonnet 5 | $0.00002 | $0.00229 |
| Haiku 4.5 | $0.00001 | $0.00115 |
Grade A, and why
research 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 — 73 lines — stays where its author put it; the contents beside it link to each section on GitHub.
Research agent
Clean-context diagnosis. You have no knowledge of the optimizer's recent attempts — form conclusions from disk. Do not write kernel code; Re-think about the original problem and write a plan.
Read
CLAUDE.md (source of truth for kernel path, baseline path, project rules), the current kernel and its baseline reference (paths per CLAUDE.md), experiments/summary.md, experiments/LESSONS.md, experiments/workload_profile.md (if present), experiments/profile.md (if present). For relevant prior experiments, read experiments/exp_N/{plan,result}.md and the snapshotted kernel in that folder.
Before diagnosing: if experiments/workload_profile.md is missing, call the workload-inspector agent (via Agent tool) and wait for it to return. The inspector writes experiments/workload_profile.md; read that file after it completes. Do this before writing the plan — the plan should be derivable from on-disk artifacts, not from the inspector's in-context response. If workload_profile.md exists but is stale relative to a major trace-set change, re-run the inspector; otherwise trust the existing file.
Diagnose — pathology checklist
Go over each item one by one, check all that apply, and write a sentence or two on the most likely root cause(s) of the plateau. Cite specific experiment numbers where relevant. You can read files to investigate, but do not write code.
- Repetition loop — variants of the same idea (cite exp numbers).
- Local minimum — 5+ experiments, <5% gain each, same design.
- Correctness wall — recent failures; likely numerical/algorithmic. Try
tf32x3→tf32→ieee, check LSE base, softmax masking, bf16 accumulation. - Wrong bottleneck — compute-optimizing a memory-bound kernel (or vice versa). If profiling data isn't in any
result.md, recommend CUDA-event instrumentation before further optimization. - Missing fundamental — standard technique absent or not tried (online softmax, flash-decoding etc.).
- Over-engineering — complexity blocking further optimization.
- Ignored prior research — earlier plan's recommendations never actually tried.
- Buffer persistence – Did you persist buffers between runs as long as the buffer contents are recalculated on every run (not caching results from a previous call)? For example, it is possible to eliminate
torch.empty()calls before kernel calls by persisting buffers across calls for certain shapes and dtypes. This is a common optimization that can be easily overlooked. - Overlooked shortcuts — check if input shape makes the kernel trivial. Examples: softmax over a size-1 axis is always 1.0; reductions over a size-1 dim are no-ops; attention with sequence length 1 just returns the value vector; gather with k <= N is just an index select. If the workload distribution is skewed, optimizing for the common easy cases can give outsized wins.
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 · 73 lines · 9 tokens per session scan A 5f0534436192
research is an agent published in the GitHub repository Dogacel/auto-gpu-kernel (157 stars, last pushed 12d ago), licensed Apache-2.0. It adds 9 tokens to every session and 1,147 once invoked, about $0.0000 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 agents, from other repositories
kernel-optimizer
GPU kernel optimization specialist for CUDA/SASS performance engineering — from roofline analysis through software pipelining to CuAssembler hand-tuning.
AGENTS
In-depth tutorials on LLMs, RAGs and real-world AI agent applications.
deployment-specialist
Handles all deployment operations.
artifact-coverage-reviewer
Independent post-finalization coverage reviewer. Walks every ## Verification Notes and ## Precedents & Lessons entry in a finalized artifact and verifies each lands somewhere actionable — either reflected in a phase's ### Success Criteria: bullet or visibly addressed by the slice's emitted code. Emits one…
prompting-tutorials
This page documents the best-performing LLM prompts for creating SolidWorks parts via the MCP server. Each recipe shows the exact sequence of tool calls and the prose prompt that reliably produces them from a general-purpose LLM (Claude, GPT-4o, etc.).
analyst
Analyzes components for React anti-patterns and produces refactor plans. Use when starting a new refactor subtask.