karpathy-guidelines — independently scanned and version-tracked by SaferSkills.
SaferSkills independently audited karpathy-guidelines (Rules) and scored it 100/100 (green). The audit ran 55 deterministic rules across Security, Supply Chain, Maintenance, Transparency, and Community; it found 0 high-severity and 0 lower-severity findings. The full rule-by-rule trace and per-finding evidence are below. Free, methodology-open.
Findings & checks · 0 flagged
Every scanned point with the score it earned and what moved between them.
First recorded scan — no prior version to compare against.
The primary manifest — the file an agent reads to learn what this artifact does.

Context engineering can be defined as the practice of designing systems that provide a Large Language Model (LLM) and AI agents with all the necessary information to complete a task effectively. It goes beyond prompt engineering since it focuses on building a comprehensive and structured context from various sources like instructions, external knowledge, memory, tools, and state. The central idea is that the success of a complex LLM-based system depends more on the quality and completeness of the context provided than on the specific wording of the prompt itself.
Tobi Lütke, the CEO of Shopify, coined the term _context engineering_ in a tweet on June 19, 2025. He defined context engineering as _the art of providing all the context for the task to be plausibly solvable by the LLM_. This novel concept captures the essence of the current evolution of LLM-based systems, inspiring others (like me) to understand and define this emerging discipline. Since then, I've been working on a book entitled Context Engineering: Build Consistent, Accurate, Predictable AI Systems, published by Manning. Currently, the early access version of the book is available, and you can get it here.
This GitHub repository is intended to be a companion resource for this book and a reference for practitioners looking to understand and adopt the context engineering principles.
This book aims to provide a strong, general-purpose theoretical foundation for context engineering, supported by hands-on examples. Its table of contents is the following:
Appendix A. The AI ecosystem Appendix B. References and further reading
Each chapter of this book begins by explaining the underlying principles and patterns of each thematic block. The final part of each chapter then presents specific examples, all of which are available in this GitHub repository. New examples will continue to be added, and existing ones maintained, even after the book is published. The goal is to provide an open-source, up-to-date reference for everyone interested in context engineering.
This repository organizes examples by chapter to help you explore context engineering concepts in practice.
#### Chapter 1. Introduction to context engineering This chapter provides the foundations for interacting with different model providers:
#### Chapter 2. Instructions in AI agents This chapter covers the definition and usage of instructions (system prompts, agent skills, instructions artifacts) as a foundation layer to shape the model behavior:
#### Chapter 3. External knowledge and retrieval This chapter explores different patterns for providing external knowledge to a model:
#### Chapter 4. Tools in AI agents This chapter focuses on extending the capabilities of AI agents through tools:
#### Chapter 5. Memory and state in agentic systems This chapter explores how to maintain information across interactions using memory and state:
#### Chapter 6. User prompts for LLMs This chapter focuses on the design and optimization of user prompts, including techniques like few-shot prompting, prompt chaining, Chain-of-Thought, or ReAct:
#### Chapter 7. Context management and orchestration This chapter focuses on managing and orchestrating context in complex agentic systems, including context compression, hierarchical context, or multi-agent patterns:
#### Chapter 8. Evaluation and observability This chapter covers evaluation and observability for context-aware systems:
#### Chapter 9. Governance and operations This chapter covers governance, human oversight, and operational patterns for context-aware systems:
#### Chapter 10. AI frameworks for context engineering This chapter covers specific AI frameworks that facilitate context engineering, including application frameworks, agent orchestration frameworks, and AI application platforms:
#### Chapter 11. Context engineering for software development This chapter shows how context engineering supports the software development lifecycle (SDLC) through reusable skills, instruction artifacts, external documentation retrieval, orchestration layers, and specialized agents:
#### Chapter 12. State of the art on context engineering This chapter covers mathematical foundations, open research challenges, technical innovation frontiers, domain-specific applications, and future directions:
This repository includes interactive web pages that complement the book and help you apply context engineering concepts in practice.
🔗 https://bonigarcia.dev/context-engineering/ai-ecosystem.html
Curated collection of the AI ecosystem:
This page is a companion index for the Appendix A and is designed to stay easy to maintain as the ecosystem changes.
🔗 https://bonigarcia.dev/context-engineering/context-aware-prompt-builder.html
Design, compare, and reuse structured prompts across multiple frameworks and AI models:
This tool is especially useful for creating and iterating on prompts in a structured, repeatable way.
🔗 https://bonigarcia.dev/context-engineering/sdlc_prompt_library.html
Browse a curated library of prompts organized around the software development lifecycle (SDLC), including roles for architect, developer, debugger, reviewer, refactorer, tester, and documenter:
This tool is designed as a reference library, helping you understand how structured prompts vary across roles and frameworks.
🔗 https://bonigarcia.dev/context-engineering/context-engineering-radar.html
An interactive dashboard to explore and track concepts, sources, frameworks, and publications in the field of context engineering:
🔗 https://bonigarcia.dev/context-engineering/references.html
Searchable catalog of articles, books, repositories, tutorials, and other references related to context engineering, prompting, agents, and AI engineering: context engineering, AI agents, machine learning, prompt engineering, RAG, generative AI, MCP, AI-assisted development, LLMs, memory, retrieval, multi-agent systems.
If you think something should be improved or want to contribute to this repo, please open a pull request. Any comments or feedback are welcome.
context-engineering (Copyright © 2025-2026) is an open-source project created and maintained by Boni Garcia, licensed under the terms of Apache 2.0 License.
~30 seconds. Free. No account. Every finding cites a rule and a line of evidence.