Context Engineering Cycle
A 7-phase pipeline for systematically preparing context before giving it to an AI
Main flow
G6 fail โ Phase 7 (verify)
Re-gather (Phase 7 โ 1)
Re-build (Phase 7 โ 4)
Phase Details
Sub-skills โ Direct Phase Entry
Phase 2 โ Source Determination
File / URL
Document provided
Read file in full or fetch URL. Confirm section split for sources over 10,000 words.
Codebase
Project or code mentioned
Scan directory structure, build files, and recent git log. Extract existing CLAUDE.md and spec if present.
Store
Save / remember request
Use the input text as-is. No external source scanning needed.
KB Query
Question or task request
Scan KB index.md โ keyword match โ tag expansion โ trace related entries by reliability.
Mixed
Multiple signals
Combine sources above. Run parallel sub-agents for independent source types.