كيف يعمل

افهم أولًا. أصلح بجراحة دقيقة.

Codna يفصل فهم القاعدة البرمجية عن استدلال النموذج. الطبقة الحتمية ترسم خريطة المستودع. الوكيل يتصرف بأدلة مركّزة.

كيف يعمل

1

تحليل المستودع.

Codna يفحص الملفات والرموز والواردات والاختبارات وحواف التبعيات عبر 110 لغة. يعمل بدون LLM، لذا لا يكلف رموزًا ولا يُسرّب الكود إلى نموذج.

codna triage . --json
2

بناء رسم بياني لنطاق التأثير.

يُحدد الرسم البياني ما الذي يمكن أن ينكسر إذا تغيرت دالة أو ملف أو حزمة أو API. هذا يُتيح لـ Codna تضييق نطاق البحث قبل أن يبدأ الوكيل.

3

تعبئة حزمة الأدلة.

Codna يُسلّم الوكيل الملفات الدقيقة والاختبارات الفاشلة ومسارات الاستدعاء والسياق التاريخي الذي يحتاجه — لا مجرد إغراق هائل للسياق.

4

إنشاء الإصلاح والتحقق منه.

الوكيل يكتب تصحيحًا، Codna يُحاكي المخاطر، وتختبارك تُحقق. مع GitHub App، تتحول النتيجة إلى طلب سحب.

codna fix . --issue "checkout race condition" --pr

Under the hood

What Codna hands the agent.

البنية

محايد للنموذج بالتصميم.

استخدم مفتاحك الخاص أو مزود نموذجك الخاص أو خيار LLM المُدار. الخريطة الحتمية تبقى كما هي.

أحضر مفتاحك

مفتاح نموذجك. حدودك. سجل التدقيق الخاص بك.

خادم MCP

امنح Cursor و Claude فهمًا حتميًا للقاعدة البرمجية كأداة محلية.

أولوية CLI

شغّل Codna في أي مستودع أو مهمة CI أو حاوية.

GitHub App

حوّل المشكلات والفحوصات الفاشلة إلى طلبات سحب إصلاح.

Frequently asked

A deterministic engine builds a dependency and blast-radius graph of your repository in roughly 60ms, using zero LLM tokens. That graph captures which code affects which — no AI guesswork involved in the analysis step.

An evidence bundle is the minimal slice of context Codna assembles before calling the AI agent — about 600 tokens, measured at 162x less than reading the whole repo. The agent sees only what is relevant to the bug, so fixes are faster and cheaper.

Every fix is verified by your own tests before it is surfaced. If the tests do not pass, the fix is not delivered.

Benchmarked head-to-head against Cursor across 87 tasks, Codna used 5× fewer tokens and ran 1.7× faster — roughly $0.02 per verified fix.

No — Codna supports 250+ languages. It mapped 130 repositories in 9.2 seconds for zero tokens, and the deterministic engine is language-agnostic by design.

Codna ships as a CLI, an MCP server for Cursor and Claude, and a native GitHub App that opens verified fix pull requests. You can self-host, bring your own API key, and egress is fail-closed — your code is never used for training.