karpathy-loop SKILL.md skillA
karpathy-loop from ahmadhammoud56/moaa is an agent skill: a SKILL.md folder an AI agent loads when a task calls for it.
mdr add ahmadhammoud56/moaa/karpathy-loop@git:20261031.c8bd52cPins git:20261031.c8bd52c in mdr.lock. Pin the fingerprint instead.
- Audit grade
- A, 17 of 17 checks passed
- Kind
- SKILL.md skill
- Repository
- ahmadhammoud56/moaa
- Path
plugins/agent-arena-mode/skills/karpathy-loop/SKILL.md- Versions recorded
- 3
- Latest version
- git:20261031.c8bd52c, committed Oct 31, 2026
- First version recorded
- Oct 24, 2026
- Size
- 3,003 bytes
- Repository stars
- 5
- License
- MIT
Improve something against a fixed number - edit, measure with a script the agent may not change, keep the change if the number improved, otherwise revert, repeat until the budget runs out (after Karpathy's autoresearch). Use for tuning code speed, model loss, test pass rate, file size or any measurable target, or when the user invokes /agent-arena-mode:karpathy-loop.
Collected from public GitHub. Every version is saved exactly as it was and never changes. Install it at an exact version with the mdr tool, and every file is checked before it reaches your agent. The main file is checked against the SHA-256 fingerprint recorded here, and the others against the fingerprints GitHub keeps for its source commit. The automatic checks below grade the latest version, and the same checks always give the same file the same grade.
What the file says
# Agent Arena: Karpathy loop
Request: `$ARGUMENTS`. `L` means `python "${CLAUDE_PLUGIN_ROOT}/scripts/loop.py"` (`py` on Windows), one standalone
command. Loop folder: `.claude/loop/<slug>/` in the project.
The loop runs unattended because a number, not a reader, judges each attempt. Everything here protects that number.
1. **Metric first.** Agree with the user on a command that prints one number and finishes in minutes (a benchmark, a
validation score, failing-test count, bundle size). The metric script, its data and the tests it uses are fixed:
never edit them during the loop. If none exists, write it with the user before starting, and commit it.
2. **Set up.** In a git repository with a clean working tree (commit or stash the user's work first; ask if unsure),
run `L init <dir> --metric "<cmd>" --direction min|max --max-iters N [--max-minutes M] [--target T]
[--patience P]`. It measures the baseline. Stop rules (on by default, `--stop-rule off` or `MOAA_LOOP_STOP_RULE=off`): with `--target`, the
loop is done when the target holds in two runs in a row (the kept run plus one re-measure); after P discards in a
…Read the whole file at its exact version.
How to install
mdr add ahmadhammoud56/moaa/karpathy-loop@sha256:f95adaf84a08d286The line at the top of this page pins the label git:20261031.c8bd52c, which is what most people want. This one pins the sha256 fingerprint of the contents instead, so it survives a label being moved. Either way the exact version is written to mdr.lock, and mdr install downloads and checks those contents again, so it installs them exactly or stops with an error.
[](https://markdownregistry.com/a/art_cr436iwonlg24wjx)
0 badge image fetches in 30 days. What the badge shows.
Versions
The registry has recorded 3 versions of this file, between Oct 24, 2026 and Oct 31, 2026, about one every 4 days.
| version | committed | commit | size | audit | |
|---|---|---|---|---|---|
| git:20261031.c8bd52c latest | 2026-10-31 | c8bd52c | 3,003 B | A | view · diff |
| git:20261031.5376ed6 | 2026-10-31 | 5376ed6 | 2,974 B | A | view · diff |
| git:20261024.c94a461 | 2026-10-24 | c94a461 | 2,549 B | A | view |
Audit of the latest version
- pass: Frontmatter block present
- pass: Frontmatter declares a name
- pass: Frontmatter declares a description
- pass: Size between 200 bytes and 200 KB (3003 bytes)
- pass: No zero-width or bidi control characters
- pass: No instruction hidden inside an HTML comment
- pass: No link to an exfiltration or paste host
- pass: No credential-shaped string
- pass: No instruction to send local credentials anywhere
- pass: No text hidden with inline styles
- pass: No prompt-injection phrasing
- pass: No curl or wget piped into a shell
- pass: No recursive delete of root, home or parent
- pass: No instruction to read or print local credentials
- pass: No base64 blob over 200 characters
- pass: No link to a raw IP address
- pass: No script tag
Source
ahmadhammoud56/moaa · 5 stars · license MIT · pushed 2026-10-31 · branch main
API
GET https://markdownregistry.com/api/v1/artifacts/art_cr436iwonlg24wjx GET https://markdownregistry.com/api/v1/resolve?ref=ahmadhammoud56/moaa/karpathy-loop GET https://markdownregistry.com/api/v1/blob/f95adaf84a08d2866c421e25871c9454aeba2c380ac76827fd03acbcf15e0ee6
Your AI assistant does the legwork. You hear about the deals worth your word. Hand yours the standing instructions at modelranch.com and it joins the network that reads files like this one.
Guides: the SKILL.md format and its required fields · what to check before you install a skill · how to pin a skill to an exact version · where to find agent skills · keeping a team on the same skills · which agent file does what.
More from ahmadhammoud56/moaa
Every file in ahmadhammoud56/moaa