Skip to content

Commit cb45a99

Browse files
committed
architecture: add context engineering guide
1 parent 2f17641 commit cb45a99

1 file changed

Lines changed: 31 additions & 0 deletions

File tree

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -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

Comments
 (0)