The Context Engineering Process
Context engineering in XOOS follows a structured, repeatable process. This page explains each phase in detail.Process Overview
Phase 1: Knowledge Gathering
Goal: Collect all source materials in one centralized repository.What to Gather
- Training documents and manuals
- Standard Operating Procedures (SOPs)
- Policy documents
- Email templates and macros
- FAQ documents
- Reference materials
- Tribal knowledge (document it!)
Key Point
How to Do It
- Work with the client or team to identify all relevant materials
- Upload everything to the Knowledge section
- Categorize by type (SOP, Policy, Template, etc.)
- Don’t worry about perfection—completeness matters more
Phase 2: Define Hierarchy
Goal: Create a clear structure that organizes your domain.The Three Levels
| Level | Description | Example |
|---|---|---|
| Workstream | Broad operational area | ”Customer Support Chat” |
| Contact Driver | Category of inquiry | ”Order Issues” |
| Scenario | Specific situation | ”Cancel Order” |
Decision: Mimic or Create?
You have two approaches:- Mimic the client’s setup: If the client already has categories, queues, or structures, mirror them in XOOS
- Create from scratch: Design an optimal structure based on the knowledge gathered
Why Structure Matters
A good hierarchy:- Enables AI to quickly find the right guidance
- Makes maintenance manageable
- Scales without becoming chaotic
- Reduces confusion and overlap
Phase 3: Map Knowledge
Goal: Link raw materials to the scenarios where they’re relevant.Why Mapping?
Mapping creates the connection between your source materials and your scenarios. It answers: “What knowledge do we need to write this scenario’s step guide?”How to Map
For each scenario:- Identify which knowledge documents are relevant
- Link them to the scenario
- This creates your reference set for writing
Benefits
- Know exactly what sources to use per scenario
- Track knowledge coverage (are all docs mapped?)
- Future AI assistance can use mappings to auto-generate guides
Phase 4: Write Step Guides
Goal: Create one AI-ready step guide per scenario.What Makes a Step Guide?
Step guides are the finished product of context engineering:- Structured, step-by-step instructions
- Written for AI consumption
- Clear decision points and branches
- Consistent formatting
One Guide Per Scenario
Each scenario gets exactly one step guide. This 1:1 relationship ensures:- No ambiguity about which guide applies
- Easy updates and versioning
- Clear accountability
Currently Manual
Today, writing step guides is a manual process. You reference the mapped knowledge and write clear procedures.Future versions of XOOS will offer AI-assisted guide writing based on your mapped knowledge.
Phase 5: Maintain
Goal: Keep your context current through versioning.Versioning
Step guides support version control:- Create new versions when processes change
- Add version comments explaining changes
- Historical versions are preserved
Ongoing Process
Context engineering isn’t one-and-done. As processes change:- Update the relevant step guides
- Create new versions with clear notes
- AI agents automatically use the current version