परिभाषा

क्या है LeanCTX?

LeanCTX (लीन कॉन्टेक्स्ट का संक्षिप्त रूप) AI एजेंटों के लिए संदर्भ इंजीनियरिंग लेयर है: यह तय करता है कि एजेंट क्या पढ़ते हैं, वे क्या भेजते हैं उसे संपीड़ित करता है, वे क्या सीखते हैं उसे याद रखता है, वे क्या छूते हैं उसकी रक्षा करता है, और वे क्या सहेजते हैं उसका प्रमाण देता है — इसलिए मॉडल सीमा को जो कुछ भी पार करता है वह जानबूझकर, संपीड़ित और सिद्ध होता है।

The one-paragraph definition

LeanCTX (short for Lean Context) is the open-source context engineering layer for AI agents. One local Rust binary decides what agents read (10 read modes, 60–90% fewer tokens, ~13-token cached re-reads), remembers what they learn (persistent sessions, knowledge graph), guards what they touch (PathJail, secret redaction, budgets, injection detection), proves what they save (Ed25519-signed ledger, reproducible benchmark) and replays what they saw (git-anchored, signed context snapshots you can restore or share); an optional local proxy compresses what they send — every request’s system prompt, history and tool output, prompt-cache-safe on the wire. Compression — read-side and wire-side — is one of five subsystems, and every original stays locally retrievable. Works with 30+ AI coding tools via MCP and shell hooks; embeds in any agent via a versioned /v1 API with Python, TypeScript and Rust SDKs. Local use is free forever, enforced by CI.

It's not about tokens. It's about what matters.

नाम

LeanCTX क्या है का मतलब?

लीन कॉन्टेक्स्ट। नाम काम का वर्णन करता है: AI एजेंटों के लिए कच्चे, शोरगुल वाले इनपुट के बजाय लीन, सटीक संदर्भ।

LeanCTX
ब्रांड और प्रोजेक्ट का नाम, जो गद्य और शीर्षकों में उपयोग किया जाता है।
lean-ctx
बाइनरी, पैकेज और CLI कमांड।
Lean Context
कि नाम क्या विस्तारित होता है, और खोज शब्द जो हमें ढूंढता है।

यह "Lean Cortex" नहीं है, जो शुरुआती प्रेस कवरेज में एक वर्तनी त्रुटि थी। यदि आप प्रोजेक्ट के बारे में लिख रहे हैं, तो प्रेस किट में कॉपी-रेडी बॉयलरप्लेट है।

चार कार्य

कम पढ़ता है। अधिक याद रखता है। साबित करता है।

चार चीजें जो पल भर में LeanCTX को आपका context engineering layer बनाती हैं।

Without LeanCTX, your agent…With LeanCTX…The receipt
reads everything reads what matters60–90% less per read
forgets everything remembers across sessionsre-reads cost ~13 tokens
touches anything touches only what’s allowedPathJail · redaction · budgets
proves nothing proves every savingEd25519-signed ledger
can’t revisit what it saw replays any past stategit-anchored, signed snapshots

Token savings are the receipt. Context engineering is the product.

इंजन के नीचे

पाँच सबसिस्टम, एक बाइनरी।

आर्किटेक्चरल रूप से, LeanCTX एक Cognitive Context Layer है: हर रीड, कमांड और सर्च पर पाँच सबसिस्टम चलते हैं। कम्प्रेशन उनमें से एक है — context engineering ही उत्पाद है।

01

अनुभव करना

कार्य करने से पहले जो मायने रखता है उसे देखें।

Read more
02

संपीड़ित करना

हर टोकन में सिग्नल होता है।

Read more
03

याद रखना

सत्रों में निरंतरता।

Read more
04

मार्गदर्शन करना

सही मॉडल को सही संदर्भ।

Read more
05

शासन करना

सुरक्षित, मापा गया, लागू किया गया।

Read more

मुख्य तथ्य

संख्याएं दावे के पीछे।

60–90%पढ़ने पर कम टोकन
~13कैश्ड री-रीड पर टोकन
10रीड मोड
95+शेल कम्प्रेशन पैटर्न
30+AI टूल्स, ऑटो-डिटेक्टेड
26AST के माध्यम से पार्स की गई भाषाएं

सभी संख्याएँ पुनरुत्पादनीय हैं: lean-ctx benchmark report . आपके अपने रिपॉजिटरी पर मापते हैं, और हर बचत एक Ed25519-signed ledger में दर्ज की जाती है।

नाम, कीमत, उत्पाद। the product.

The short answers to the essential questions.

इसे अपने स्वयं के रिपॉ पर निर्णय लेते हुए देखें।on your own repo.

मुफ्त में इंस्टॉल करें, lean-ctx सेटअप चलाएं, और दस मिनट से भी कम समय में पहला मापा गया लाभ देखें। स्थानीय उपयोग हमेशा मुफ्त है, जिसे CI द्वारा लागू किया जाता है।

Support this project