george-hotz-skills

agent
Guvenlik Denetimi
Basarisiz
Health Gecti
  • License — License: MIT
  • Description — Repository has a description
  • Active repo — Last push 0 days ago
  • Community trust — 16 GitHub stars
Code Basarisiz
  • exec() — Shell command execution in tests/test_repo.py
Permissions Gecti
  • Permissions — No dangerous permissions requested

Bu listing icin henuz AI raporu yok.

SUMMARY

Unofficial George Hotz–inspired radical-simplicity coding guidelines for AI agents — Claude Code skill/plugin + Cursor rule. Complexity is the enemy.

README.md

George Hotz–Inspired Coding Skills & Complexity Gates

Executable complexity gates and measurement-first, delete-first review workflows for coding agents — distilled from how George Hotz (geohot) actually runs tinygrad and custom_mec_public, not just his talks.

For Claude Code, Codex, Cursor, and any Agent Skills–compatible harness.

English | 简体中文

Unofficial. Not affiliated with, authored by, or endorsed by George Hotz, tinygrad, or comma.ai.


Why prose guidelines fail (evidence from tinygrad)

Prompting an agent with "keep code simple" or "avoid over-abstraction" barely moves its behavior. George Hotz tested that himself in tinygrad/AGENTS.md:

  • 2025-05-20 (9389edf): added a philosophy-style AGENTS.md ("focused on beauty and minimalism. Every line must earn its keep... 10 lines can have the impact of 1000").
  • 2026-02-14 (e8bd432): deleted that philosophy AGENTS.md entirely.
  • 2026-07-08 (fdffc6c) onward: rebuilt tinygrad/AGENTS.md as 6 lines of concrete commands (pytest -n12, mypy, ruff), a pointer to tinygrad/viz/README.md, and two real environment footguns — zero slogans.
  • Meanwhile tinygrad/custom_mec_public has no AGENTS.md at all.

What actually enforces simplicity across both repositories is mechanical gates + fast observability:

Principle How tinygrad / custom_mec_public actually enforce it
Complexity & LOC budget sz.py + CI MAX_LINE_COUNT + per-PR szdiff.yml; custom_mec's fw/derive_runs.py (DERIVE_BUDGET fails the build).
Narrow interfaces & purity slopkernels/test/test_slopkernels.py (test_narrow_api_and_purity_boundary) parses the AST to lock __all__, forbid cross-layer imports, and verify the single caller.
Observe, never guess tinygrad/viz/README.md (VIZ=1, viz.cli --json, DEBUG=3..7), process-replay, and custom_mec's 15s Unicorn differential parity suite (test/test_parity.py) with explicit EXEMPT ledgers.
Minimal agent instructions Style lives in ruff/mypy; AGENTS.md only holds fast verification commands, debug tool entrypoints, and proven footguns.

What this skill does

Instead of pasting philosophy paragraphs into every repo, skills/geohot-guidelines/SKILL.md runs two concrete workflows backed by a bundled zero-dependency measurement tool (scripts/sz.py) and gate templates (references/gates.md, references/examples.md):

  1. Mode A — Harness Setup:
    • Times existing test/typecheck/lint commands and baselines effective LOC, tokens/line, and wide functions (>= 5 args).
    • Installs only the missing high-leverage gates that match observed risks (LOC/size budget, AST/static boundary test, differential parity with explicit EXEMPT entries, or build-time static invariant check) and verifies each gate fails red on a violation.
    • Trims AGENTS.md / CLAUDE.md down to executable commands, debug entrypoints, and concrete footguns.
  2. Mode B — Delete-First Review & Refactor:
    • Runs sz.py --diff <base> and --wide-args 5 before judging prose.
    • Audits every new layer/flag/wrapper against rg caller counts: deletes or inlines single-caller abstractions unless they guard a named invariant, collapses duplicated truth without drifting error types, and fixes wide boundaries without hiding them in an options/**kwargs bag.
    • Requires observed command output for behavior claims, and promotes recurring leaks into a Mode A gate.

Layout

skills/geohot-guidelines/
  SKILL.md                 # two executable modes + required output contract
  scripts/sz.py            # zero-dep effective LOC, tok/line, git diff budget, wide-arg scanner
  references/gates.md      # 5 concrete gate patterns from tinygrad & custom_mec_public
  references/examples.md   # before/after refactoring calls (semantics-verified)
.cursor/rules/
  geohot-guidelines.mdc    # concise operational checks for Cursor
.claude-plugin/            # Claude Code plugin & marketplace manifests
AGENTS.md                  # this repo's own 4-line operational AGENTS.md
tests/test_repo.py         # zero-dep unittest suite validating sz.py, links, manifests, examples

Install

Install the full skills/geohot-guidelines/ directory so scripts/sz.py and references/ are available alongside SKILL.md.

Claude Code (plugin)

Add this repository as a marketplace/plugin source in Claude Code; .claude-plugin/plugin.json registers ./skills/geohot-guidelines.

Or install directly into your personal skills directory:

git clone --depth 1 https://github.com/frankekn/george-hotz-skills.git /path/to/george-hotz-skills
mkdir -p ~/.claude/skills
ln -s /path/to/george-hotz-skills/skills/geohot-guidelines ~/.claude/skills/geohot-guidelines

Codex / Agent Skills

Symlink or copy skills/geohot-guidelines/ into your skills directory (for example ~/.agents/skills/geohot-guidelines or ~/.codex/skills/geohot-guidelines).

Cursor

  • Skill (recommended): symlink or copy skills/geohot-guidelines/ into ~/.cursor/skills/geohot-guidelines.
  • Project rule: copy .cursor/rules/geohot-guidelines.mdc into your project's .cursor/rules/.

Standalone sz.py CLI

# Baseline effective LOC, token density, and >=5-arg functions
python3 skills/geohot-guidelines/scripts/sz.py --root src --wide-args 5

# Enforce a hard CI line ceiling
python3 skills/geohot-guidelines/scripts/sz.py --root src --max-lines 2500

# Measure a branch diff against main (and fail if net diff > 0)
python3 skills/geohot-guidelines/scripts/sz.py --root src --diff main --wide-args 5 --max-diff 0

Supports .py, .c, .h, .cc, .cpp, .hpp, .js, .jsx, .ts, .tsx, .mjs, .cjs, .go, and .rs with zero third-party packages.


Verify this repo

This repository enforces its own rules via unittest and sz.py:

python3 -m unittest discover -s tests -v
python3 skills/geohot-guidelines/scripts/sz.py --root skills --max-lines 260 --wide-args 5

Attribution

Grounded in public code and statements by George Hotz and the tinygrad contributors:

License

MIT — see LICENSE.

Yorumlar (0)

Sonuc bulunamadi