Borrowing it
Nothing to install: this file belongs to RightNow-AI/AutoMegaKernel. Take a copy, put it at the same path in your own repository, and replace the rules that are about this project with yours.
curl -O https://raw.githubusercontent.com/RightNow-AI/AutoMegaKernel/main/AGENTS.mdgit clone --depth 1 https://github.com/RightNow-AI/AutoMegaKernelWrote this? Show the measurements
A badge with what this costs and how it scanned, read live from this page, so it follows the numbers instead of freezing them. Markdown for a README, HTML for a documentation site or a project page.
[](https://agentmods.dev/instructions/rightnow-ai/automegakernel/agents-md)<a href="https://agentmods.dev/instructions/rightnow-ai/automegakernel/agents-md"><img src="https://agentmods.dev/badge/instructions/rightnow-ai/automegakernel/agents-md/github.svg" alt="Measured on agentmods" height="20"></a>Or the 80×15 button, for a site that already has a row of RSS and ATOM ones. Only the verdict fits; the numbers stay here.
<a href="https://agentmods.dev/instructions/rightnow-ai/automegakernel/agents-md"><img src="https://agentmods.dev/badge/instructions/rightnow-ai/automegakernel/agents-md.svg" alt="Reviewed on agentmods" width="80" height="20"></a>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.
| Model | Per session | Once invoked |
|---|---|---|
| Fable 5.1 | $0.02279 | $0.02279 |
| Opus 5.5 | $0.00912 | $0.00912 |
| Sonnet 5.5 | $0.00456 | $0.00456 |
| Haiku 4.5 | $0.00228 | $0.00228 |
Grade B, and why
AutoMegaKernel 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 2mo 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.
Reads agent configuration directoriesmediumAgent snooping
.claude/, .codex/, .gemini/ hold keys, settings and other credentials a mod has no legitimate need for.
## Codex MCP server config (`~/.codex/config.toml`) How it starts
The opening of the file, as written. The whole thing — 149 lines — stays where its author put it; the contents beside it link to each section on GitHub.
AGENTS.md, AutoMegaKernel for native coding agents (Codex / Claude Code)
This is the Codex/native-agent guide to driving AutoMegaKernel (AMK), the Codex analogue of
CLAUDE.md. It tells an agent exactly what AMK is, the one edit surface it owns, the canonical
tool/CLI names, the non-negotiable honesty rules, and a copy-paste optimization loop. Everything
here maps 1:1 to existing, verified code; nothing is faked.
For the full human/agent contract read HARNESS.md. For what AMK is and what is
measured-real today, read README.md.
What AMK is
AMK compiles a HuggingFace Llama-family model into ONE persistent CUDA megakernel, the whole forward pass fused into a single cooperative kernel launch, and self-improves the schedule over its own baseline, correctness-gated, unattended. It is the sibling of AutoKernel (which tunes one kernel); AMK tunes the whole-model megakernel via a new search axis: the schedule.
The agent's job is to search the schedule, not to write kernels. The frozen VM deterministically
lowers a ScheduleConfig into a runnable megakernel and proves it deadlock/race-free before any
launch. An unsafe config is a clean REJECTED, never a hung GPU.
The edit surface, ScheduleConfig + kernel_knobs ONLY
You edit one structured object: a ScheduleConfig (a JSON dict of typed knobs), optionally with
a kernel_knobs sub-object. You NEVER touch raw kernel code, vm/, Task.sm, or the frozen ABI.
The schema is [schemas/schedule_config.schema.json]; the live, machine-readable knob list comes
from amk_propose(...)["search_space"]. The knobs:
| knob | type | choices | meaning |
|---|---|---|---|
tiling.gemv.N_tile |
int | 64,128,256,512 | GEMV output-column tile width (the one tiling knob lowered today) |
tiling.attention.kv_block |
int | 64,128,256 | KV window block (recorded; not yet lowered) |
fusion_grouping |
list[list[str]] | [], [["gate","up"]], ... |
op groups to co-reside (a safe hint) |
sm_assignment |
str/dict | round_robin/load_balance/map |
SM placement policy |
pipelining_depth |
int | 0–4 typ. | instructions ahead to prefetch weights (hides the HBM bubble) |
page_allocation |
str | graph_color/linear/none |
activation page reuse policy |
threads_per_block |
int | 128,256,512 | persistent VM block size (occupancy-proven) |
smem_bytes_per_block |
int | 0,16384,49152 | dynamic SMEM opt-in (over-cap = clean reject) |
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.
- 2mo ago First seen · 149 lines · 2,279 tokens per session scan B dc41872134a9
AutoMegaKernel AGENTS.md is an instructions file published in the GitHub repository RightNow-AI/AutoMegaKernel (161 stars, last pushed 1mo ago), licensed MIT. It adds 2,279 tokens to every session, about $0.0091 per session on Opus 5.5. A static security scan graded it B with 1 finding (reads agent configuration directories). No closer match exists in the catalogue, so it is treated as the original; first seen 2026-08-30.
AutoMegaKernel AGENTS.md compared with instructions from other repositories
| Mod | Type | Stars | Last push | Licence | Scan | Tokens | Works with |
|---|---|---|---|---|---|---|---|
| AutoMegaKernel AGENTS.mdRightNow-AI/AutoMegaKernel | Instructions file | 161 | 1mo ago | MIT | B | 2,279 | Codex, OpenCode |
| vscode buildNext.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 9,719 | GitHub Copilot |
| next.js AGENTS.mdvercel/next.js | Instructions file | 143k | today | MIT | A | 7,461 | Codex, OpenCode |
| langchain AGENTS.mdlangchain-ai/langchain | Instructions file | 149k | yesterday | MIT | A | 4,680 | Codex, OpenCode |
| vscode oss-third-party-notices.instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 5,516 | GitHub Copilot |
| vscode copilot-instructions.mdmicrosoft/vscode | Instructions file | 195k | yesterday | MIT | A | 3,093 | GitHub Copilot |
| deepseek-harness AGENTS.mddeepseek-ai/deepseek-harness | Instructions file | 274k | 2d ago | MIT | A | 4,313 | Codex, OpenCode |