Context service
Prepare context. Keep your model call.
Let LeanCTX retrieve, shape and filter context. Your application receives the prepared result and decides how to use it.
You retain control of model execution.
Context Gateway for AI Systems
LeanCTX sits between AI and the systems it reads. It selects relevant context, applies supported controls, and records what the integration can observe.
Individual GitHub stars, not company endorsements.
LeanCTX in action
Useful context in. Sensitive details under your rules. Follow one task from source access to the information delivered to your AI.
Sources & rules
Relevant code
The implementation behind the task.
Filtered result
Email and customer ID masked by configured rules.
Access denied
Excluded by the source-access policy.
Prepared for the model
export function total(net: number, rate: number) {
return Math.round(net * (1 + rate) * 100) / 100;
}Filtered diagnostic context
event=invoice_total
email=[REDACTED]
customer_id=[REDACTED]Source: total.ts · relevant implementation
Rules in this example
Fictional source excerpt
event=invoice_total
[email protected]
customer_id=SAMPLE-042Source inspection and model delivery are separate. A permitted file may be read locally so its returned content can be filtered.
Sources & rules
Current source
The runbook marked current for this workflow.
Not selected
Superseded version retained as a reference.
Access denied
Outside this user’s permitted source scope.
Prepared for the model
Retry the sync once.
If the timeout returns, stop and escalate.Source reference
source=runbooks/sync-timeout
version=v3
status=currentSource: sync-timeout · v3 · recovery procedure
Rules in this example
Fictional source excerpt
v3 · Current: retry once, then escalate.
v2 · Superseded: continue retrying.Source inspection and model delivery are separate. A permitted file may be read locally so its returned content can be filtered.
Select. Control. Prove.
A clear path from task-relevant information to supported controls and the evidence your integration can observe.
Select
Select permitted information for the task, prepare the needed detail and keep references to its sources.
Explore the complete flowControl
Use the source permissions, configured content checks and budgets supported by the active integration.
Explore the complete flowProve
Review source references, policy outcomes and recorded usage; in context-only integrations, the host owns the model call.
Explore the complete flowKeep your systems. Add the Context Gateway.
Keep your application, agent loop and model. Use LeanCTX for context alone or extend control to supported model and tool requests.
Context service
Let LeanCTX retrieve, shape and filter context. Your application receives the prepared result and decides how to use it.
You retain control of model execution.
Supported model requests
Use the configured gateway for supported model requests. Enterprise adds organization identity, policy and reporting. Coverage depends on the selected release and integration.
Verify support for the selected release and integration.
Coding teams
Use the open-source Engine locally or through configured provider and proxy routes for supported requests. Context-only use needs no hosted service. Routing, proxy budgets and other controls depend on the configured integration; local processing does not mean local inference.
Start with the EngineAI product builders
Embed supported Engine capabilities through five stable SDK primitives and six Agent Tools language contracts. Preview operations stay in the Python namespace leanctx_sdk.preview. Production and OEM rights require a separate signed written agreement.
Explore SDK / OEMEnterprise buyers
Enterprise is the commercial offer for organization identity, policy and reporting across supported AI workflows. Deployment, retention and support depend on the licensed release and agreement.
Explore EnterpriseSecurity in the context flow
Relevant information is not automatically permitted information. Bound file access, inspect sensitive content and define how LeanCTX responds to detected matches.
PathJail
Keep reads within allowed directories. PathJail checks resolved paths, including symlinks and traversal attempts. It is an application-level check, not an OS sandbox, and cannot eliminate operating-system or race-condition limits.
Read-time checks
Enable checks for supported text results: known injection patterns and personal-data formats. Secret redaction and custom patterns add to your rules.
Filter rules & audit
Warn, redact or block detected content. Filter metadata reports categories and counts, without sensitive matched values. Audit detail depends on the call.
LeanCTX SDK
Build Context Intelligence into your application, copilot or agent. The SDK connects your code to a compatible LeanCTX Engine through supported interfaces. Use its capabilities inside your own product, locally or with a compatible remote deployment.
Explore the SDKWavect · In practice
Wavect used LeanCTX in its development workflow and reported less context and lower estimated token costs. A field report you can compare with your own work.
Read the field reportReported snapshot: July 26, 2026. Observations from this workflow; not audited provider invoices or a promised saving.
Start with LeanCTX
Connect your sources. Set your rules. See what LeanCTX changes in your own AI workflow.
Your application. Your sources. Your rules.
Cookie settings
Your privacy. Your choice.
We count public page requests without tracking cookies or visitor IDs. Essential only also disables this server statistic for future requests. With your permission, PostHog measures clicks and reading activity. Masked recordings need a separate choice. No advertising.
Essential
Theme, consent choice and account functionality.
Cookieless server statistics
Hourly request counts, without visitor recognition. Your refusal is stored as an essential preference.
Analytics
Optional page analytics · PostHog on our server. Off until you allow it.
Session recordings
Optional replay of public-page interactions, with text and inputs masked. Requires analytics.
Your browser requests privacy protection. Analytics and recordings stay off.
Change your choice anytime in Cookie settings.