التعريف

ما هو LeanCTX?

LeanCTX (اختصار لـ Lean Context) هي طبقة هندسة السياق لوكلاء الذكاء الاصطناعي: فهي تقرر ما يقرأه الوكلاء، وتضغط ما يرسلونه، وتتذكر ما يتعلمونه، وتحمي ما يلمسونه، وتثبت ما يحفظونه — بحيث يكون كل ما يعبر حدود النموذج مقصودًا ومضغوطًا وقابلاً للإثبات.

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 ؟

السياق الهزيل (Lean Context). يصف الاسم المهمة: سياق دقيق ومقتصد لوكلاء الذكاء الاصطناعي بدلاً من المدخلات الخام والمشوشة.

LeanCTX
اسم العلامة التجارية والمشروع، ويُستخدم في النصوص والعناوين.
lean-ctx
الثنائي، والحزمة وأمر سطر الأوامر (CLI).
Lean Context
ما يتوسع إليه الاسم، ومصطلح البحث الذي يجدنا.

ليس "Lean Cortex"، وهو خطأ إملائي ظهر في التغطية الصحفية المبكرة. إذا كنت تكتب عن المشروع، فإن مجموعة البيانات الصحفية تحتوي على نصوص جاهزة للاستخدام.

الوظائف الأربعة

يقرأ أقل. ويتذكر أكثر. يثبت ذلك.

أربعة أشياء تتغير في اللحظة التي يصبح فيها LeanCTX طبقة هندسة السياق الخاصة بك.

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 طبقة سياق معرفية: تعمل خمسة أنظمة فرعية على كل قراءة وأمر وبحث. يعتبر الضغط أحدها — هندسة السياق هي المنتج.

01

الإدراك

شاهد ما يهم قبل التصرف.

Read more
03

التذكر

استمرارية عبر الجلسات.

Read more
04

التوجيه

السياق المناسب للنموذج الصحيح.

Read more
05

الحوكمة

آمن، ومُقاس، ومُطبق.

Read more

حقائق رئيسية

الأرقام خلف الادعاء.

60–90%عدد أقل من التوكنات لكل قراءة
~13التوكنات لكل إعادة قراءة مخبأة مؤقتًا
10أوضاع القراءة
95+أنماط ضغط الـ shell
30+أدوات الذكاء الاصطناعي، مكتشفة تلقائيًا
26اللغات التي يتم تحليلها عبر AST

جميع الأرقام قابلة للاستنساخ: lean-ctx benchmark report . تقيسها على مستودعك الخاص، ويتم تسجيل كل توفير في سجل موقع بالـ Ed25519 التوقيع.

الاسم، السعر، المنتج. the product.

The short answers to the essential questions.

شاهد كيف يقرر في مستودعك الخاص.on your own repo.

قم بالتثبيت مجانًا، وقم بتشغيل إعداد lean-ctx، وشاهد أول مكسب مقاس في أقل من عشر دقائق. الاستخدام المحلي مجاني إلى الأبد، ويتم فرضه بواسطة CI.

Support this project