We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2f17641 commit cb45a99Copy full SHA for cb45a99
1 file changed
docs/architecture/context-engineering.md
@@ -0,0 +1,31 @@
1
+# Context Engineering
2
+
3
+Context engineering is the discipline of giving the agent the right information at the right time.
4
5
+## Context engineering loop
6
7
+```mermaid
8
+flowchart TD
9
+ A[Goal] --> B[Find relevant context]
10
+ B --> C[Filter noise]
11
+ C --> D[Summarize constraints]
12
+ D --> E[Select loop]
13
+ E --> F[Verify assumptions]
14
+```
15
16
+## Context layers
17
18
+1. Repository purpose.
19
+2. Current task.
20
+3. Project instructions.
21
+4. Architecture docs.
22
+5. Relevant source files.
23
+6. Tests and verifiers.
24
+7. Recent failures or project memory.
25
26
+## Rules
27
28
+- Load less context when the task is narrow.
29
+- Load more context when risk or uncertainty is high.
30
+- Prefer repository evidence over memory.
31
+- Keep assumptions explicit.
0 commit comments