Documentation

Context

Use constraints, information, and tasks to build a clear Agent mind.

Context can be divided into three categories, corresponding to three basic questions: who am I, where do I come from, and where am I going?

  1. Constraints: who am I?

This includes the Agent's identity, strengths, permission boundaries, and behavioral rules.

  1. Information: where do I come from?

This includes effective task-related information, such as code and documents already present in a repository.

  1. Task: where am I going?

This is the work the Agent is asked to complete.

The quality of context engineering depends on whether these three areas are complete, explicit, and clear. Irrelevant context should be removed as much as possible.