[{"data":1,"prerenderedAt":-1},["ShallowReactive",2],{"project-71977":3},{"id":4,"name":5,"fullName":6,"owner":7,"repo":5,"description":8,"homepage":9,"htmlUrl":10,"language":11,"languages":10,"totalLinesOfCode":10,"stars":12,"forks":13,"watchers":14,"openIssues":15,"contributorsCount":16,"subscribersCount":16,"size":16,"stars1d":17,"stars7d":18,"stars30d":19,"stars90d":16,"forks30d":16,"starsTrendScore":20,"compositeScore":21,"rankGlobal":10,"rankLanguage":10,"license":22,"archived":23,"fork":23,"defaultBranch":24,"hasWiki":25,"hasPages":23,"topics":26,"createdAt":10,"pushedAt":10,"updatedAt":27,"readmeContent":28,"aiSummary":29,"trendingCount":16,"starSnapshotCount":16,"syncStatus":15,"lastSyncTime":30,"discoverSource":31},71977,"Context-Engineering","davidkimai\u002FContext-Engineering","davidkimai","\"Context engineering is the delicate art and science of filling the context window with just the right information for the next step.\" — Andrej Karpathy. A frontier, first-principles handbook inspired by Karpathy and 3Blue1Brown for moving beyond prompt engineering to the wider discipline of context design, orchestration, and optimization.","https:\u002F\u002Fdeepwiki.com\u002Fdavidkimai\u002FContext-Engineering",null,"Python",9064,1010,113,2,0,12,32,147,36,40.01,"MIT License",false,"main",true,[],"2026-06-12 02:02:56","\u003Cdiv align=\"center\">\n  \n# Context Engineering\n\n\u003C\u002Fdiv>\n\n\n\u003Cimg width=\"1600\" height=\"400\" alt=\"image\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Ff41f9664-b707-4291-98c8-5bab3054a572\" \u002F>\n\n> **\"Context engineering is the delicate art and science of filling the context window with just the right information for the next step.\" — [**Andrej Karpathy**](https:\u002F\u002Fx.com\u002Fkarpathy\u002Fstatus\u002F1937902205765607626)**\n>\n> [**Software Is Changing (Again) Talk @YC AI Startup School**](https:\u002F\u002Fwww.youtube.com\u002Fwatch?v=LCEmiRjPEtQ)\n\n\u003Cdiv align=\"center\">\n  \n## [![Ask DeepWiki](https:\u002F\u002Fdeepwiki.com\u002Fbadge.svg)](https:\u002F\u002Fdeepwiki.com\u002Fdavidkimai\u002FContext-Engineering)\n\n\u003Cimg width=\"1917\" height=\"360\" alt=\"image\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F0c20f697-d505-4d49-a829-fc4d319eb1d3\" \u002F>\n\n\u003C\u002Fdiv>\n\n\u003Cdiv align=\"center\">\n  \n ## [DeepGraph](https:\u002F\u002Fwww.deepgraph.co\u002Fdavidkimai\u002FContext-Engineering)\n \n## [Chat with NotebookLM + Podcast Deep Dive](https:\u002F\u002Fnotebooklm.google.com\u002Fnotebook\u002F0c6e4dc6-9c30-4f53-8e1a-05cc9ff3bc7e)\n\n## [![Discord](https:\u002F\u002Fimg.shields.io\u002Fbadge\u002FDiscord-join%20chat-7289DA.svg?logo=discord\")](https:\u002F\u002Fdiscord.gg\u002FJeFENHNNNQ)\n\n\n\u003C\u002Fdiv>\n\n## [Comprehensive Course Under Construction](https:\u002F\u002Fgithub.com\u002Fdavidkimai\u002FContext-Engineering\u002Ftree\u002Fmain\u002F00_COURSE)\n\n> ### **[Context Engineering Survey-Review of 1400 Research Papers](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2507.13334)**\n>\n> [**Awesome Context Engineering Repo**](https:\u002F\u002Fgithub.com\u002FMeirtz\u002FAwesome-Context-Engineering)\n\nOperationalizing the Latest Research on Context With First Principles & Visuals — July 2025 from ICML, IBM, NeurIPS, OHBM, and more \n\n\n> **\"Providing “cognitive tools” to GPT-4.1 increases its pass@1 performance on AIME2024 from 26.7% to 43.3%, bringing it very close to the performance of o1-preview.\"** — [**IBM Zurich**](https:\u002F\u002Fwww.arxiv.org\u002Fpdf\u002F2506.12115)\n\n\u003Cdiv align=\"center\">\n  \n## [`Agent Commands`](https:\u002F\u002Fgithub.com\u002Fdavidkimai\u002FContext-Engineering\u002Ftree\u002Fmain\u002F.claude\u002Fcommands)\n**Support for [Claude Code](https:\u002F\u002Fwww.anthropic.com\u002Fclaude-code) | [OpenCode](https:\u002F\u002Fopencode.ai\u002F) | [Amp](https:\u002F\u002Fsourcegraph.com\u002Famp) | [Kiro](https:\u002F\u002Fkiro.dev\u002F) | [Codex](https:\u002F\u002Fopenai.com\u002Fcodex\u002F) | [Gemini CLI](https:\u002F\u002Fgithub.com\u002Fgoogle-gemini\u002Fgemini-cli)**\n\n#### [Context Engineering Survey-Review of 1400 Research Papers](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2507.13334) | [Context Rot](https:\u002F\u002Fresearch.trychroma.com\u002Fcontext-rot) | [IBM Zurich](https:\u002F\u002Fwww.arxiv.org\u002Fpdf\u002F2506.12115) | [Quantum Semantics](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2506.10077) | [Emergent Symbolics ICML Princeton](https:\u002F\u002Fopenreview.net\u002Fforum?id=y1SnRPDWx4) | [MEM1 Singapore-MIT](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2506.15841) | [LLM Attractors Shanghai AI](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2502.15208?) | [MemOS Shanghai](https:\u002F\u002Fgithub.com\u002FMemTensor\u002FMemOS) | [Latent Reasoning](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2507.06203) | [Dynamic Recursive Depths](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2507.10524)\n\n\n\u003C\u002Fdiv>\n\nA frontier, first-principles handbook for moving beyond prompt engineering to the wider discipline of context design, orchestration, and optimization.\n\n\n```\n                    Prompt Engineering  │  Context Engineering\n                       ↓                │            ↓                      \n               \"What you say\"           │  \"Everything else the model sees\"\n             (Single instruction)       │    (Examples, memory, retrieval,\n                                        │     tools, state, control flow)\n```\n\n## Definition of Context Engineering\n\n> **Context is not just the single prompt users send to an LLM. Context is the complete information payload provided to a LLM at inference time, encompassing all structured informational components that the model needs to plausibly accomplish a given task.**\n>\n> — [**Definition of Context Engineering from A Systematic Analysis of Over 1400 Research Papers**](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2507.13334)\n\n```\n╭─────────────────────────────────────────────────────────────╮\n│              CONTEXT ENGINEERING MASTERY COURSE             │\n│                    From Zero to Frontier                    │\n╰─────────────────────────────────────────────────────────────╯\n                          ▲\n                          │\n                 Mathematical Foundations\n                  C = A(c₁, c₂, ..., cₙ)\n                          │\n                          ▼\n┌─────────────┬──────────────┬──────────────┬─────────────────┐\n│ FOUNDATIONS │ SYSTEM IMPL  │ INTEGRATION  │ FRONTIER        │\n│ (Weeks 1-4) │ (Weeks 5-8)  │ (Weeks 9-10) │ (Weeks 11-12)   │\n└─────┬───────┴──────┬───────┴──────┬───────┴─────────┬───────┘\n      │              │              │                 │\n      ▼              ▼              ▼                 ▼\n┌─────────────┐ ┌──────────────┐ ┌──────────────┐ ┌──────────────┐\n│ Math Models │ │ RAG Systems  │ │ Multi-Agent  │ │ Meta-Recurs  │\n│ Components  │ │ Memory Arch  │ │ Orchestrat   │ │ Quantum Sem  │\n│ Processing  │ │ Tool Integr  │ │ Field Theory │ │ Self-Improv  │\n│ Management  │ │ Agent Systems│ │ Evaluation   │ │ Collaboration│\n└─────────────┘ └──────────────┘ └──────────────┘ └──────────────┘\n```\n\n\n## Why This Repository Exists\n\n> **\"Meaning is not an intrinsic, static property of a semantic expression, but rather an emergent phenomenon\"\n— [Agostino et al. — July 2025, Indiana University](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2506.10077)**\n\nPrompt engineering received all the attention, but we can now get excited for what comes next. Once you've mastered prompts, the real power comes from engineering the **entire context window** that surrounds those prompts. Guiding thought, if you will. \n\nThis repository provides a progressive, first-principles approach to context engineering, built around a biological metaphor:\n\n```\natoms → molecules → cells → organs → neural systems → neural & semantic field theory \n  │        │         │         │             │                         │        \nsingle    few-     memory +   multi-   cognitive tools +     context = fields +\nprompt    shot     agents     agents   operating systems     persistence & resonance\n```\n> \"Abstraction is the cost of generalization\"— [**Grant Sanderson (3Blue1Brown)**](https:\u002F\u002Fwww.3blue1brown.com\u002F)\n\n\n\u003Cdiv align=\"center\">\n\n\u003Cimg width=\"931\" height=\"854\" alt=\"image\" src=\"https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F580a9b1a-539f-41dc-abce-a5106b33350e\" \u002F>\n\n*[A Survey of Context Engineering - July 2025](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2507.13334)*\n\n\n  \n **[On Emergence, Attractors, and Dynamical Systems Theory](https:\u002F\u002Fcontent.csbs.utah.edu\u002F~butner\u002Fsystems\u002FDynamicalSystemsIntro.html) | [Columbia DST](http:\u002F\u002Fwordpress.ei.columbia.edu\u002Fac4\u002Fabout\u002Four-approach\u002Fdynamical-systems-theory\u002F)**\n\n\nhttps:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F9f046259-e5ec-4160-8ed0-41a608d8adf3\n\n\n\n![image](https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F309b8d8c-13b5-403c-9f1d-6a0ad551ea56)\n\n\u003C\u002Fdiv>\n\n\n\n```mermaid\ngraph TD\n    classDef basic fill:#e1f5fe,stroke:#01579b,stroke-width:2px,color:#01579b\n    classDef intermediate fill:#e8f5e9,stroke:#2e7d32,stroke-width:2px,color:#2e7d32\n    classDef advanced fill:#fff3e0,stroke:#e65100,stroke-width:2px,color:#e65100\n    classDef meta fill:#f3e5f5,stroke:#6a1b9a,stroke-width:2px,color:#6a1b9a\n    \n    subgraph Basic[\"Level 1: Basic Context Engineering\"]\n        A[Atoms]\n        B[Molecules]\n        C[Cells]\n        D[Organs]\n    end\n    \n    subgraph Field[\"Level 2: Field Theory\"]\n        E[Neural Systems]\n        F[Neural Fields]\n    end\n    \n    subgraph Protocol[\"Level 3: Protocol System\"]\n        G[Protocol Shells]\n        H[Unified System]\n    end\n    \n    subgraph Meta[\"Level 4: Meta-Recursion\"]\n        I[Meta-Recursive Framework]\n    end\n    \n    %% Connections\n    A --> B\n    B --> C\n    C --> D\n    D --> E\n    E --> F\n    F --> G\n    G --> H\n    H --> I\n    \n    %% Descriptions for each level\n    A1[\"Single instructions\u003Cbr>Simple constraints\u003Cbr>Basic prompts\"] --> A\n    B1[\"Example pairs\u003Cbr>Few-shot patterns\u003Cbr>Demonstration sets\"] --> B\n    C1[\"Persistent memory\u003Cbr>State management\u003Cbr>Context window\"] --> C\n    D1[\"Multi-step flows\u003Cbr>Specialists\u003Cbr>System orchestration\"] --> D\n    E1[\"Reasoning frameworks\u003Cbr>Verification tools\u003Cbr>Cognitive patterns\"] --> E\n    F1[\"Continuous meaning\u003Cbr>Attractors & resonance\u003Cbr>Symbolic residue\"] --> F\n    G1[\"Structured templates\u003Cbr>Field operations\u003Cbr>Emergence protocols\"] --> G\n    H1[\"Protocol integration\u003Cbr>System-level emergence\u003Cbr>Self-maintenance\"] --> H\n    I1[\"Self-reflection\u003Cbr>Recursive improvement\u003Cbr>Interpretable evolution\"] --> I\n    \n    %% Real-world parallels\n    A2[\"Like: Basic prompt\u003Cbr>engineering\"] -.-> A\n    B2[\"Like: Few-shot\u003Cbr>learning\"] -.-> B\n    C2[\"Like: Conversational\u003Cbr>chatbots\"] -.-> C\n    D2[\"Like: Multi-agent\u003Cbr>systems\"] -.-> D\n    E2[\"Like: ReAct\u003Cbr>Chain-of-Thought\"] -.-> E\n    F2[\"Like: Semantic\u003Cbr>field theory\"] -.-> F\n    G2[\"Like: Protocol\u003Cbr>orchestration\"] -.-> G\n    H2[\"Like: Self-organizing\u003Cbr>systems\"] -.-> H\n    I2[\"Like: Self-improving\u003Cbr>intelligence\"] -.-> I\n    \n    %% Apply classes\n    class A,B,C,D,A1,A2,B1,B2,C1,C2,D1,D2 basic\n    class E,F,E1,E2,F1,F2 intermediate\n    class G,H,G1,G2,H1,H2 advanced\n    class I,I1,I2 meta\n```\n\n## Quick Start\n\n1. **Read [`00_foundations\u002F01_atoms_prompting.md`](00_foundations\u002F01_atoms_prompting.md)** (5 min)  \n   Understand why prompts alone often underperform\n\n2. **Run [`10_guides_zero_to_hero\u002F01_min_prompt.py`](10_guides_zero_to_hero\u002F01_min_prompt.py)**  (Jupyter Notebook style) \n   Experiment with a minimal working example\n\n3. **Explore [`20_templates\u002Fminimal_context.yaml`](20_templates\u002Fminimal_context.yaml)**  \n   Copy\u002Fpaste a template into your own project  \n\n4. **Study [`30_examples\u002F00_toy_chatbot\u002F`](30_examples\u002F00_toy_chatbot\u002F)**  \n   See a complete implementation with context management\n\n## Learning Path\n\n```\n┌─────────────────┐     ┌──────────────────┐     ┌────────────────┐\n│ 00_foundations\u002F │     │ 10_guides_zero_  │     │ 20_templates\u002F  │\n│                 │────▶│ to_one\u002F          │────▶│                │\n│ Theory & core   │     │ Hands-on         │     │ Copy-paste     │\n│ concepts        │     │ walkthroughs     │     │ snippets       │\n└─────────────────┘     └──────────────────┘     └────────────────┘\n         │                                                │\n         │                                                │\n         ▼                                                ▼\n┌─────────────────┐                             ┌────────────────┐\n│ 40_reference\u002F   │◀───────────────────────────▶│ 30_examples\u002F   │\n│                 │                             │                │\n│ Deep dives &    │                             │ Real projects, │\n│ eval cookbook   │                             │ progressively  │\n└─────────────────┘                             │ complex        │\n         ▲                                      └────────────────┘\n         │                                                ▲\n         │                                                │\n         └────────────────────┐               ┌───────────┘\n                              ▼               ▼\n                         ┌─────────────────────┐\n                         │ 50_contrib\u002F         │\n                         │                     │\n                         │ Community           │\n                         │ contributions       │\n                         └─────────────────────┘\n```\n\n## What You'll Learn\n\n| Concept | What It Is | Why It Matters |\n|---------|------------|----------------|\n| **Token Budget** | Optimizing every token in your context | More tokens = more $$ and slower responses |\n| **Few-Shot Learning** | Teaching by showing examples | Often works better than explanation alone |\n| **Memory Systems** | Persisting information across turns | Enables stateful, coherent interactions |\n| **Retrieval Augmentation** | Finding & injecting relevant documents | Grounds responses in facts, reduces hallucination |\n| **Control Flow** | Breaking complex tasks into steps | Solve harder problems with simpler prompts |\n| **Context Pruning** | Removing irrelevant information | Keep only what's necessary for performance |\n| **Metrics & Evaluation** | Measuring context effectiveness | Iterative optimization of token use vs. quality |\n| **Cognitive Tools & Prompt Programming** | Learm to build custom tools and templates | Prompt programming enables new layers for context engineering |\n| **Neural Field Theory** | Context as a Neural Field | Modeling context as a dynamic neural field allows for iterative context updating |\n| **Symbolic Mechanisms** | Symbolic architectures enable higher order reasoning | Smarter systems = less work |\n| **Quantum Semantics** |  Meaning as observer-dependent  | Design context systems leveraging superpositional techniques |\n\n\n\n## Karpathy + 3Blue1Brown Inspired Style\n\n> For learners of all experience levels\n\n1. **First principles** – start with the fundamental context\n2. **Iterative add-on** – add only what the model demonstrably lacks\n3. **Measure everything** – token cost, latency, quality score\n4. **Delete ruthlessly** – pruning beats padding\n5. **Code > slides** – every concept has a runnable cell\n6. **Visualize everything** — every concept is visualized with ASCII and symbolic diagrams\n\n# Research Evidence \n## Memory + Reasoning\n\n### **[MEM1: Learning to Synergize Memory and Reasoning for Efficient Long-Horizon Agents - Singapore-MIT June 2025](https:\u002F\u002Fwww.arxiv.org\u002Fpdf\u002F2506.15841)**\n\n> “Our results demonstrate the promise of reasoning-driven memory consolidation as a scalable alternative to existing solutions for training long-horizon interactive agents, where both efficiency and performance are optimized.\" — [Singapore-MIT](https:\u002F\u002Farxiv.org\u002Fpdf\u002F2506.15841)\n\n![image](https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F16e3f241-5f44-4ed5-9622-f0b4acbb67b0)\n\n1. **MEM1 trains AI agents to keep only what matters—merging memory and reasoning at every step—so they never get overwhelmed, no matter how long the task.**\n\n2. **Instead of piling up endless context, MEM1 compresses each interaction into a compact “internal state,” just like a smart note that gets updated, not recopied.**\n\n3. **By blending memory and thinking into a single flow, MEM1 learns to remember only the essentials—making agents faster, sharper, and able to handle much longer conversations.**\n\n4. **Everything the agent does is tagged and structured, so each action, question, or fact is clear and easy to audit—no more mystery meat memory.**\n\n5. **With every cycle, old clutter is pruned and only the latest, most relevant insights are carried forward, mirroring how expert problem-solvers distill their notes.**\n\n6. **MEM1 proves that recursive, protocol-driven memory—where you always refine and integrate—outperforms traditional “just add more context” approaches in both speed and accuracy.**\n## Cognitive Tools\n\n### **[Eliciting Reasoning in Language Models with Cognitive Tools - IBM Zurich June 2025](https:\u002F\u002Fwww.arxiv.org\u002Fpdf\u002F2506.12115)**\n\n### Prompts and Prompt Programs as Reasoning Tool Calls\n> “Cognitive tools” encapsulate reasoning operations within the LLM itself — [IBM Zurich](https:\u002F\u002Fwww.arxiv.org\u002Fpdf\u002F2506.12115)\n\n\n\n![image](https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Fcd06c3f5-5a0b-4ee7-bbba-2f9f243f70ae)\n\n> **These cognitive tools (structured prompt templates as tool calls) break down the problem by identifying the main concepts at hand, extracting relevant information in the question, and highlighting meaningful properties, theorems, and techniques that\nmight be helpful in solving the problem.**\n\n![image](https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002Ff7ce8605-6fa3-494f-94cd-94e6b23032b6)\n\n\n> **These templates scaffold reasoning layers similar to cognitive mental shortcuts, commonly studied as \"heuristics\".**\n\n1. **This research shows that breaking complex tasks into modular “cognitive tools” lets AI solve problems more thoughtfully—mirroring how expert humans reason step by step.**\n\n2. **Instead of relying on a single, big prompt, the model calls specialized prompt templates, aka cognitive tools like “understand question,” “recall related,” “examine answer,” and “backtracking”—each handling a distinct mental operation.**\n\n3. **Cognitive tools work like inner mental shortcuts: the AI picks the right program at each stage and runs it to plan its reasoning and downstream actions before conducting the task for greater accuracy and flexibility.**\n\n4. **By compartmentalizing reasoning steps into modular blocks, these tools prevent confusion, reduce error, and make the model’s thought process transparent and auditable—even on hard math problems.**\n\n5. **This modular approach upgrades both open and closed models—boosting real-world math problem-solving and approaching the performance of advanced RL-trained “reasoning” models, without extra training.**\n\n6. **The results suggest that the seeds of powerful reasoning are already inside large language models—cognitive tools simply unlock and orchestrate these abilities, offering a transparent, efficient, and interpretable alternative to black-box tuning.**\n## Emergent Symbols\n\n## **[Emergent Symbolic Mechanisms Support Abstract Reasoning in Large Language Models - ICML Princeton June 18, 2025](https:\u002F\u002Fopenreview.net\u002Fforum?id=y1SnRPDWx4)**\n\n\n![image](https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F76c6e6cb-b65d-4af7-95a5-6d52aee7efc0)\n\n> **TL;DR: A three-stage architecture is identified that supports abstract reasoning in LLMs via a set of emergent symbol-processing mechanisms.**\n>\n>\n\n\n**These include symbolic induction heads, symbolic abstraction heads, and retrieval heads.**\n\n**1. In early layers, symbol abstraction heads convert input tokens to abstract variables based on the relations between those tokens.**\n\n**2. In intermediate layers, symbolic induction heads perform sequence induction over these abstract variables.**\n\n**3. Finally, in later layers, retrieval heads predict the next token by retrieving the value associated with the predicted abstract variable.**\n\n**These results point toward a resolution of the longstanding debate between symbolic and neural network approaches, suggesting that emergent reasoning in neural networks depends on the emergence of symbolic mechanisms.** — [**ICML Princeton**](https:\u002F\u002Fopenreview.net\u002Fforum?id=y1SnRPDWx4) \n\n\n![image](https:\u002F\u002Fgithub.com\u002Fuser-attachments\u002Fassets\u002F2428544e-332a-4e32-9070-9f9d8716d491)\n\n\n>\n> **Why Useful?**\n>\n>\n> **This supports why Markdown, Json, and similar structured, symbolic formats are more easily LLM parsable**\n>\n> **Concept: Collaborate with agents to apply delimiters, syntax, symbols, symbolic words, metaphors and structure to improve reasoning\u002Fcontext\u002Fmemory\u002Fpersistence during inference**\n\n1. **This paper proves that large language models develop their own inner symbolic “logic circuits”—enabling them to reason with abstract variables, not just surface word patterns.**\n\n2. **LLMs show a three-stage process: first abstracting symbols from input, then reasoning over these variables, and finally mapping the abstract answer back to real-world tokens.**\n\n3. **These emergent mechanisms mean LLMs don’t just memorize—they actually create internal, flexible representations that let them generalize to new problems and analogies.**\n\n4. **Attention heads in early layers act like “symbol extractors,” intermediate heads perform symbolic reasoning, and late heads retrieve the concrete answer—mirroring human-like abstraction and retrieval.**\n\n5. **By running targeted experiments and interventions, the authors show these symbolic processes are both necessary and sufficient for abstract reasoning, across multiple models and tasks.**\n\n6. **The results bridge the historic gap between symbolic AI and neural nets—showing that, at scale, neural networks can invent and use symbolic machinery, supporting real generalization and reasoning.**\n\n\n\n## Star History\n\n[![Star History Chart](https:\u002F\u002Fapi.star-history.com\u002Fsvg?repos=davidkimai\u002FContext-Engineering&type=Date)](https:\u002F\u002Fwww.star-history.com\u002F#davidkimai\u002FContext-Engineering&Date)\n\n## Contributing\n\nWe welcome contributions! Check out [CONTRIBUTING.md](.github\u002FCONTRIBUTING.md) for guidelines.\n\n## License\n\n[MIT License](LICENSE)\n\n## Citation\n\n```bibtex\n@misc{context-engineering,\n  author = {Context Engineering Contributors},\n  title = {Context Engineering: Beyond Prompt Engineering},\n  year = {2025},\n  publisher = {GitHub},\n  url = {https:\u002F\u002Fgithub.com\u002Fdavidkimai\u002Fcontext-engineering}\n}\n```\n\n## Acknowledgements\n> I've been looking forward to this being conceptualized and formalized as there wasn't a prior established field. Prompt engineering receives quite the stigma and doesn't quite cover what most researchers and I do.\n\n- [Andrej Karpathy](https:\u002F\u002Fx.com\u002Fkarpathy\u002Fstatus\u002F1937902205765607626) for coining \"context engineering\" and inspiring this repo \n- All contributors and the open source community\n","Context Engineering 是一个专注于上下文设计、编排与优化的项目，旨在超越传统的提示工程。该项目通过Python语言实现，结合了Andrej Karpathy和3Blue1Brown的思想精髓，提供了基于第一性原理的方法论指导和技术工具，帮助开发者更好地理解和应用上下文信息于AI系统中。它适合需要提升AI模型性能、特别是在对话式AI、代码生成等场景下追求更自然交互体验的应用开发。此外，项目还支持多种流行的AI代理命令接口，并且持续更新最新的研究成果，为实践者提供前沿的知识和技术支持。","2026-06-11 03:39:47","high_star"]