Cortex
Documentation
Flashing context
A flash retrieves one requested Module and the knowledge it depends on as one agent-readable context bundle.
What a flash includes
Cortex walks the requested Module's transitive dependencies. It emits foundations before dependents and emits each Module once. A flash does not include Modules that depend on the requested Module.
Requesting more than one root creates a separate flash for each root. Cortex executes those flashes in request order.
When to flash
Flash a Module when the current task requires Account-specific knowledge that the agent cannot safely infer from general training or the repository alone. Choose the narrowest Module that owns the relevant decision.
Do not flash every Module at session start. Large unrelated context makes the deciding constraints harder for the agent to identify.
What a flash does not do
A flash supplies tool context. It does not change a repository, grant access, assign an Issue, or override the agent host's instruction hierarchy. The host decides how to present tool context and when to require approval.
Usage
Each successful root request creates one metered Flash. Cortex estimates the token contribution of the returned Module closure. Wrapper text is excluded from the estimate.