On this page
Read & shape context
Make context selection intentional.
Pin important sources, exclude distractions and inspect the state behind the next selection.
Inspect current controls
{"name":"ctx_control","arguments":{"action":"list"}}
Controls express choices such as include, exclude, pin, unpin, view and priority. They apply at the supported call, session or project scope. Inspect the schema before setting a target or value.
Pin a source for a reason
A pin is useful when a task depends on a particular contract or implementation. Add the narrowest relevant source, record why it matters and remove the pin when the task changes.
An exclusion can reduce irrelevant retrieval, but it is not a security boundary. Use PathJail or the appropriate policy when the requirement is to prevent access.
Distinguish control from delivery
A selection preference influences LeanCTX’s planning and retrieval paths. It does not guarantee that a host will follow a plan, that previously delivered text disappears, or that all external tools use the same control layer.
Inspect a resulting read or context plan after changing controls.
Manage retained pressure
ctx_ledger tracks retained context entries and supports status, pruning and eviction operations. Removing an entry from LeanCTX’s retained state does not remotely erase the model’s conversation.
Use memory and knowledge for durable facts, and caching and recovery for source representations and archives.
Sources & versions
- ctx_control.rsrust/src/tools/ctx_control.rsGitHub
- 07-context-engineering.mddocs/reference/07-context-engineering.mdReviewed checkout
- Core checkout
0ce2207ee4- Reviewed runtime
- 3.10.2
- SDK release
- 1.1.0
Separate baselines for source, CLI/configuration and SDK contracts. Review does not certify every platform or integration.
Versions & compatibility