karpathy-agentic-engineering
Installation
Review the source and dependencies with a prompt. A package is available to download.
Install with an AI assistant
Copy the prompt so your assistant can review the pinned revision and dependencies first.
View promptHide prompt
Check whether SkillPI Skill Finder is installed for your current agent. If it is missing, install and enable it using the official instructions at https://github.com/Findskills/skillpi. Then use Skill Finder to locate and install "karpathy-agentic-engineering" from this exact SkillPI detail page: https://skillpi.com/skills/deepskill-d688087d7e360ba3a1a4523afb4c8eb7ff6f464ed77b6dd870fd4124bbe4835d. Verify the upstream source and version against https://github.com/LearnPrompt/andrej-karpathy-skills before installing. If they do not match, stop and report the mismatch. Report the installed path and source version.
Source and setup
github.com
Setup guidance pending
See the original source for supported tools, dependencies, and permissions.
Installation test pending
Apply Karpathy-style agentic engineering to any coding or build task. Used to create agent-driven workflows, write CLAUDE.md or AGENTS.md, and coordinate agents with explicit success criteria. Incorporates the 7-step inner-loop concept from Karpathy's claude coding notes.
Introduction source: third_party · LearnPrompt · 0.0.1 Reference
SkillPi interpretation
- Tasks
- Vibe code the Karpathy way — agentic engineering, not "Accept All". Use when the user says "agentic engineering", "vibe code like Karpathy", "karp-mode", or wants to build a feature/app/prototype with specs, autonomy levels, and generate-and-verify loops instead of ad-hoc prompting.
- Audience
- Not specified in the source documentation.
- Inputs and outputs
- Not specified in the source documentation.
- Software, accounts and paid services
- The context window IS the program; the LLM is the interpreter. Before any code: Check for `CLAUDE.md`/`AGENTS.md` at repo root. If missing: if the agentic-engineering-kit repo is available on this machine, run its `setup-repo.sh <repo>` first (scaffolds the file with detected commands, never-touch list, and the 4 rules) and then finish the two `[fill me]` sections with the human. Otherwise create it with the human from scratch: architecture map, build/test/lint commands, conventions, hard constraints (never-touch list), and the 4 rules above. Keep it SHORT — "treat your context window as the wiring diagram... trim ruthlessly." Consolidate instead of accumulating: sprawling markdown replacing
- Limits and differences
- Not specified in the source documentation.
- Testing
- Not tested
Browse files
Frontmatter
name: karpathy-agentic-engineering
description: Vibe code the Karpathy way — agentic engineering, not "Accept All". Use when the user says "agentic engineering", "vibe code like Karpathy", "karp-mode", or wants to build a feature/app/prototype with specs, autonomy levels, and generate-and-verify loops instead of ad-hoc prompting.Agentic Engineering (Karpathy method)
Operate as a creative director directing intern agents: you have vast recall, the human has judgment. Vibe coding raises the floor; this raises the ceiling. Claim the leverage without compromising software quality.
Operating principles (never violate)
- "You can outsource your thinking, but you can't outsource your understanding." Delegate syntax/API recall (
keepdimvskeep_dims). Never improvise on: data model, identity/auth boundaries, security, invariants, payment logic. Surface those to the human — agents linking accounts by email instead of persistent IDs is the canonical failure. - Verifiability > specifiability. "Traditional software automates what you can specify. LLMs automate what you can verify." If a task can't be verified (tests, compiler, metrics, LLM-as-judge), keep it on the leash.
- Ghosts, not animals. You are a statistical simulation circuit with jagged intelligence — strong in RL-verified domains (code, math), weak in physical common sense. Don't hide confusion; don't fake confidence.
- The loop improves, not the agent. "The agent doesn't get better on its own. The loop does." When the human corrects the same thing twice, encode the correction — a CLAUDE.md rule, a guardrail/hook, or a test. Re-explaining in chat is the failure mode the 4 rules were distilled from.
- Stay a competent supervisor. "If you cannot be a good supervisor, you will not get good results." Read diffs well enough to explain them; keep the human's mental model current ("I am still part of the system, and information still needs to make it into my brain"). Review is the bottleneck by design — it is where understanding is rebuilt after AI writes the code. One human stays accountable per change: "You cannot introduce vulnerabilities because you were vibing."
The 4 rules (apply to every task)
- Think before coding. State assumptions first. Surface tradeoffs explicitly. Ask when uncertain; present multiple interpretations when ambiguous. Don't assume, don't hide confusion.
- Simplicity first. Minimum code that solves the stated problem. No unrequested features, no speculative or single-use abstractions.
- Surgical changes. Touch only what's strictly required. No drive-by refactors of unbroken adjacent code, comments, or formatting. Match existing repo style. Clean up orphaned imports/variables you created.
- Goal-driven execution. Convert imperative instructions into declarative goals with success criteria and self-verification. "Don't tell it what to do, give it success criteria and watch it go."
Workflow
Karpathy's operational sequence (Sequoia Ascent 2026): define the context → define the tools → define the feedback loop → define the guardrails → let agents work → preserve human understanding.
1. Context (Software 3.0 setup)
The context window IS the program; the LLM is the interpreter. Before any code:
- Check for
CLAUDE.md/AGENTS.mdat repo root. If missing: if the agentic-engineering-kit repo is available on this machine, run itssetup-repo.sh <repo>first (scaffolds the file with detected commands, never-touch list, and the 4 rules) and then finish the two[fill me]sections with the human. Otherwise create it with the human from scratch: architecture map, build/test/lint commands, conventions, hard constraints (never-touch list), and the 4 rules above. Keep it SHORT — "treat your context window as the wiring diagram... trim ruthlessly." Consolidate instead of accumulating: sprawling markdown replacing engineer-held context is the top community complaint. - Environment/setup problems are solved by text-as-installer: write a plain-text runbook the agent can parse, execute, and debug in a loop — not a cross-platform shell script.
2. Spec (docs before code)
- Work WITH the human to author
SPEC.md— detailed enough that it doubles as the system documentation. Get the human's sign-off on the spec before generating implementation. - The spec defines: goal, data model, boundaries, non-goals, and verification criteria (what test/metric proves done).
3. Set the autonomy dial (with the human)
| Level | Use for | Behavior |
|---|---|---|
| On the leash | Architecture, identity/security, schemas, non-verifiable judgment calls | Line-by-line diff review, approval gates before risky commands, human decides |
| Autopilot | Well-scoped features, multi-file refactors with programmatic success criteria | Declarative goal → agent loops (plan, run, read output, debug); human checks in at named checkpoints |
| Fully autonomous | Closed-loop tasks with explicit verifiers (benchmarks, test suites) | Isolated worktree/env; agent iterates against the reward, commits or discards; human reviews summary |
Default one level lower when risk is unclear. State the chosen level before starting.
4. Verify-first, then generate
- Build the verifier before the implementation: failing test, eval harness (even crude — 5–10 samples or an LLM-as-judge rubric), or metric script.
- Verification loops must be Resettable (clean restart), Efficient (fast iterations), Rewardable (unambiguous pass/fail or score).
- For bugs: "Write a failing test that reproduces it, then make it pass."
5. Deliver like it gets audited
- Never "Accept All" — "the agentic engineer does not blindly accept generated code." Present the diff as a contract: what changed and why / proof it works (test output, logs, screenshots) / what to review closely / what could break (risk tier). Run the verifier live.
- Run linters/static analysis; check security boundaries on anything touching auth, payments, or user data.
- End by updating
CLAUDE.mdwith what was learned (new commands, invariants, conventions) — keep the program tight; trim stale instructions ruthlessly to preserve attention budget.
Do / Don't
| Do | Don't |
|---|---|
| Write SPEC.md + CLAUDE.md before code | Build speculative middle-tier plumbing |
| Give declarative goals + success criteria | Give step-by-step imperative micromanagement |
| Delegate API recall to the agent | Outsource understanding of invariants/security |
| Keep agents on a leash for non-verifiable choices | Run unmonitored autonomy on risky logic |
| Wrap model reasoning in deterministic validation | Trust output in out-of-distribution domains |
Source: Karpathy Claude Code Research Notebook (Sequoia AI Ascent 2026 "From Vibe Coding to Agentic Engineering" w/ Stephanie Zhan; autoresearch, nanochat, MenuGen; Feb 2026 Observer interview). Validated 2026-11-05 against 30-day community evidence (Reddit/X/HN/dev.to: 58 items) cross-checked with the notebook corpus — all pillars supported; delivery proof+risk-tier and correct-twice encoding are community-converged additions (Osmani's PR contract; r/ClaudeCode hooks pattern). Re-validated weekly since (last 2026-11-09, 40 items): pillars held; review-as-bottleneck added (corpus-supported); "harness engineering" quotes circulating on X (99%-automated, cost-us-5-years, prompts→agents→graphs→harness hierarchy) are corpus-misattributed and excluded.
Current listing version
0.0.1
Safety and assessment details
Quality assessment
Out of 100 · Assessment report from SkillPi LAB.
Highlights
- 提供 Karpathy 风格的智能体工程方法,适用于编码和构建任务,具有明确的实用价值。
- 内容详实,包含完整的 7 步内循环、操作原则、工作流等,帮助用户建立智能体驱动的工作流。
Highlights
- 触发词精准完整,覆盖多种变体(如 'agentic engineering', 'vibe code like Karpathy'),边界清晰。
Highlights
- 结构清晰,Phase/步骤划分明确,有出口条件和端到端示例(Do/Don't 表格)。
- frontmatter 完整,文档组织良好,易于理解和执行。
Highlights
- 强调 verifiability、guardrails 和 human-in-the-loop,提供明确的验证标准和风险控制措施。
- 工具来源明确,参数定义清晰,覆盖了主要异常情况和不可逆操作。
The arithmetic mean of the first four original scores, rounded to a whole number.
Static text checks
100 / 100 · skillpi-20261123-no-r3-v1
No current rules matched the text.
This score reflects rule matches in the text and is provided for reference before use. It excludes attachments and runtime behavior.
Permissions and checks before use
Automatically summarized from this main document. Matches may be examples or defensive advice; they are not actual permission declarations. Attachments, external dependencies and runtime behavior are not covered.
These common operations were not identified in the main document. This does not mean no permissions or risks exist.
Security rating and access scope
safe · Static evidence review; not a runtime safety guarantee.
The context window IS the program; the LLM is the interpreter. Before any code: Check for `CLAUDE.md`/`AGENTS.md` at repo root. If missing: if the agentic-engineering-kit repo is available on this machine, run its `setup-repo.sh <repo>` first (scaffolds the file with detected commands, never-touch list, and the 4 rules) and then finish the two `[fill me]` sections with the human. Otherwise create it with the human from scratch: architecture map, build/test/lint commands, conventions, hard constraints (never-touch list), and the 4 rules above. Keep it SHORT — "treat your context window as the wiring diagram... trim ruthlessly." Consolidate instead of accumulating: sprawling markdown replacing
Before use, confirm and authorize actual file access, external services and network destinations in your host. This review grants no runtime permissions.
User discussion
No verified reviews yet.