شركة Optimal AI تستخدم Gemini API لتقليل أوقات مراجعة الرموز البرمجية بنسبة %50
سيد أحمد
المؤسس المشارك ورئيس قسم التكنولوجيا
فيشال دارماديكاري
مهندس حلول المنتجات
على الرغم من أهمية مراجعات التعليمات البرمجية لضمان الجودة، إلا أنّها غالبًا ما تصبح عائقًا أمام التطوير السريع. Optimal AI ستغيّر ذلك. مهمتهم هي "إعادة الوقت إلى المهندسين" باستخدام الذكاء الاصطناعي لأتمتة الهندسة والامتثال. تشمل حلولها Optibot، وهو برنامج لمراجعة الرموز البرمجية يستند إلى الذكاء الاصطناعي ويركّز على الأمان والامتثال، بالإضافة إلى منصة إحصاءات تستند إلى Gemini API وتعمل على تحسين سرعة التطوير.
في السابق، واجهت أداة Optimal AI تحديات في السرعة والفهم السياقي اللازمين لمراجعة رموز الذكاء الاصطناعي بفعالية. يقول "سيّد أحمد"، الشريك المؤسس والمدير التنفيذي للتكنولوجيا: "كان التحدي الأكبر هو الفهم السياقي، إذ كنّا بحاجة إلى نموذج يمكنه الاطّلاع على مجموعات تغييرات الرموز البرمجية وفهم سياقها".
الاستفادة من أوجه الكفاءة
من خلال دمج Gemini API، حسّنت شركة Optimal AI عروضها بشكل كبير:
زيادة سرعة ودقة مراجعة الرموز: يراجع Optibot، المستند إلى Gemini API، طلبات الدمج تلقائيًا بحثًا عن ثغرات أمنية ومخاطر عدم الامتثال وأنماط الترميز، ويقدّم ملاحظات قابلة للتنفيذ ويقلّل بشكل كبير من أوقات المراجعة.
استخراج إحصاءات هندسية قابلة للتنفيذ: تحلّل نماذج Gemini البيانات من GitHub وJira لتحديد المشاكل وفهم الأداء الهندسي، ما يتيح التمييز بفعالية بين النشاط المثمر وتغيير الرمز.
موازنة السرعة والتطوّر: تستفيد ميزة "الذكاء الاصطناعي الأمثل" من نموذج Gemini 2.5 Pro لإجراء تحليلات معقّدة وفهم الرموز البرمجية بشكل معمّق، بينما يوفّر نموذج Gemini 2.0 Flash السرعة اللازمة للمهام التي تتطلّب استجابة سريعة، مثل تقديم ملخّصات سريعة.
طريقة استخدام Optimal AI لواجهة Gemini API
يُظهر تنفيذ Optimal AI مرونة Gemini API:
النماذج المستخدَمة::
Gemini 2.5 Pro: لتحليل الرموز البرمجية بشكل مفصّل، وإجراء عمليات التحقّق من الأمان، وتقديم ملاحظات تستند إلى السياق بشأن طلبات الدمج، وتحديد أنماط هندسية معقّدة للحصول على إحصاءات حول الأداء
Gemini 2.0 Flash: للمهام التي تتطلّب وقت استجابة قصيرًا، مثل فحص شجرة الملفات وإنشاء ملخّصات سريعة
الميزات الرئيسية وطريقة التنفيذ::
الفهم السياقي: إنّ قدرة الاستيعاب الكبيرة في نماذج Gemini ضرورية لتفسير مجموعات تغييرات الرموز البرمجية المعقّدة وفهم الأنماط الهندسية الأوسع نطاقًا.
التوافق مع لغات متعددة: شكّلت قدرة نماذج Gemini المحسّنة على التعامل مع لغات وأُطر برمجة متعددة إنجازًا كبيرًا لشركة Optimal AI.
Google AI Studio: يستخدم الفريق Google AI Studio بشكل كبير لإجراء اختبارات سريعة للطلبات وتقييم النماذج وتكرارها. يقول أحمد: "إنّ إمكانية الاطّلاع على النتائج إلى جانب رمز التنفيذ سهّلت على مهندسينا إجراء التجارب".
النتائج: مراجعات أسرع
كان لدمج Gemini تأثير كبير على شركة Optimal AI وعملائها. تشمل النتائج الرئيسية ما يلي:
انخفاض بنسبة% 50 في أوقات دورات طلبات السحب: يقضي المهندسون وقتًا أقل في انتظار المراجعات ووقتًا أطول في كتابة الرموز البرمجية.
الاستخدام السريع من قِبل العملاء والتوسّع: زادت شركات مثل MongoDB بشكلٍ كبير من استخدامها لأداة Optimal AI بعد تجربة مزاياها، إذ ارتفع عدد المهندسين من 5 إلى أكثر من 40 مهندسًا.
جولة تمويل ناجحة بقيمة 2.25 مليون دولار أمريكي في مرحلة ما قبل التأسيس: تم تحقيق ذلك في الإصدار التجريبي الخاص، ويرجع ذلك إلى حد كبير إلى الإقبال والنتائج التي تم تحقيقها باستخدام الميزات المستندة إلى Gemini API.
يقول أحمد: "تحبّ الفرق أنّ Optibot يساعدها في خفض أوقات مراجعة طلبات الدمج إلى النصف، ما يتيح للمهندسين قضاء المزيد من الوقت في كتابة الرموز البرمجية بدلاً من انتظار الموافقات".
العمل للمستقبل
تركّز شركة Optimal AI على توسيع حزمة وكلاء الذكاء الاصطناعي لأتمتة المزيد من المهام المتكررة. ويعملون حاليًا على تطوير "Code Radar"، وهو وكيل مصمَّم لمراقبة قواعد الرموز وتصحيحها وتأمينها بشكل مستقل. يقدّم "سيّد أحمد" هذه النصيحة للمطوّرين الآخرين استنادًا إلى تجربته مع Gemini API:
"انتقِل مباشرةً إلى Google AI Studio، فهو يوفّر أدوات أفضل ومستندات أفضل، ويجعل عملية التجربة أكثر فعالية". ويؤكّد أيضًا على "الاستفادة الكاملة من قدرة استيعاب نموذج Gemini. قدِّم للنماذج أكبر قدر ممكن من السياق ذي الصلة، فكلما قدّمنا سياقًا أكثر، أصبح استدلال الذكاء الاصطناعي أفضل".
يُظهر نجاح Optimal AI كيف يمكن لواجهة Gemini API أن تغيّر عملية تطوير البرامج، ما يتيح للفِرق إنشاء برامج أفضل بشكل أسرع.
[[["يسهُل فهم المحتوى.","easyToUnderstand","thumb-up"],["ساعَدني المحتوى في حلّ مشكلتي.","solvedMyProblem","thumb-up"],["غير ذلك","otherUp","thumb-up"]],[["لا يحتوي على المعلومات التي أحتاج إليها.","missingTheInformationINeed","thumb-down"],["الخطوات معقدة للغاية / كثيرة جدًا.","tooComplicatedTooManySteps","thumb-down"],["المحتوى قديم.","outOfDate","thumb-down"],["ثمة مشكلة في الترجمة.","translationIssue","thumb-down"],["مشكلة في العيّنات / التعليمات البرمجية","samplesCodeIssue","thumb-down"],["غير ذلك","otherDown","thumb-down"]],[],[],[],null,["[](/showcase) \nShare\nAPRIL 9, 2025 \n\nOptimal AI Uses the Gemini API to Cut Code Review Times by 50% \nSyed Ahmed\n\nCo-founder \\& CTO \nVishal Dharmadhikari\n\nProduct Solutions Engineer \n\nCode reviews, while crucial for quality, often become a bottleneck in fast-paced development. [Optimal AI](http://www.getoptimal.ai) is changing that. Their mission: \"give engineers back their time\" using AI to automate engineering and compliance. Their solutions include Optibot, an AI code reviewer focused on security and compliance, and an insights platform powered by the Gemini API that optimizes development velocity.\n\n\n\u003cbr /\u003e\n\n\nPreviously Optimal AI faced challenges with the speed and contextual understanding needed for truly effective AI code review. \"The biggest challenge was contextual understanding---we needed a model that could look at code changesets and actually contextualize them,\" explains Syed Ahmed, Co-founder \\& CTO.\n\nUnlocking Efficiency \n\nBy integrating the Gemini API, Optimal AI has significantly enhanced its offerings:\n\n\n\u003cbr /\u003e\n\n\n- **Boosted code review speed and accuracy**: Optibot, powered by the Gemini API, automatically reviews pull requests for security vulnerabilities, compliance risks, and coding patterns, providing actionable feedback and dramatically reducing review times.\n- **Extracted actionable engineering insights**: The Gemini models analyze data from GitHub and Jira to identify bottlenecks and understand engineering performance, effectively differentiating between productive activity and code churn.\n- **Balanced speed and sophistication**: Optimal AI leverages Gemini 2.5 Pro for complex analysis and in-depth code understanding, while Gemini 2.0 Flash provides the speed needed for low-latency tasks like quick summarizations.\n\n\u003cbr /\u003e\n\nHow Optimal AI Uses the Gemini API \n\nOptimal AI's implementation showcases the Gemini API's flexibility:\n\n\n\u003cbr /\u003e\n\n\n- **Models used:** :\n - Gemini 2.5 Pro: For in-depth code analysis, security checks, contextual feedback on pull requests, and identifying complex engineering patterns for performance insights.\n - Gemini 2.0 Flash: For low-latency tasks such as file tree scanning and generating quick summaries.\n- **Key features \\& implementation:** :\n - **Contextual understanding**: The Gemini models' large context window is crucial for interpreting complex code changesets and understanding broader engineering patterns.\n - **Multi-language support**: The Gemini models's improved ability to handle multiple programming languages and frameworks was a significant win for Optimal AI.\n - **[Google AI Studio](https://aistudio.google.com/)**: The team heavily uses Google AI Studio for rapid prompt testing, model evaluation, and iteration. \"The ability to see outputs alongside the implementation code has made it much easier for our engineers to experiment,\" notes Ahmed.\n\n\u003cbr /\u003e\n\nThe Results: Faster Reviews \n\nThe impact of integrating Gemini has been significant for Optimal AI and its customers. Key results include:\n\n\n\u003cbr /\u003e\n\n\n- **50% reduction in pull request cycle times**: Engineers spend less time waiting for reviews and more time coding.\n- **Rapid customer adoption and expansion**: Companies like MongoDB have significantly increased their usage of Optimal AI after experiencing its benefits, growing from 5 to over 40 engineers.\n- **Successful $2.25 million pre-seed funding round**: This was achieved in private beta, largely driven by the traction and results demonstrated with the Gemini API-powered features.\n\n\u003cbr /\u003e\n\n\u003cbr /\u003e\n\n\"Teams love that Optibot helps them cut PR review times in half, freeing up engineers to spend more time coding instead of waiting on approvals,\" shares Ahmed.\n\n\u003cbr /\u003e\n\nLooking Ahead \n\nOptimal AI is focused on expanding its suite of AI agents to automate even more repetitive tasks. They are currently developing \"Code Radar,\" an agent designed to autonomously monitor, patch, and secure codebases. Reflecting on their journey with the Gemini API, Syed Ahmed offers this advice to fellow developers:\n\n\n\u003cbr /\u003e\n\n\n\"Go straight to Google AI Studio---it has better tooling, better documentation, and makes experimentation a lot more efficient.\" He also emphasizes, \"Take full advantage of the Gemini model's context window. Feed the models as much relevant context as possible...the more context we provided, the better the AI's reasoning became.\"\n\n\n\u003cbr /\u003e\n\n\nOptimal AI's success demonstrates how the Gemini API can transform software development, enabling teams to build better software, faster.\n\n\n\u003cbr /\u003e\n\n\nReady to build? Explore the [Gemini API documentation](https://ai.google.dev/gemini-api) and get started with [Google AI Studio](https://aistudio.google.com/) today. \n\nRelated case studies \n[Langbase\nHigh-throughput, low-cost AI agents with Gemini Flash on Langbase](/showcase/langbase) [Calcam\nFast, accurate nutritional analysis with CalCam and Gemini 2.0 Flash](/showcase/calcam) [Wolf Games\nWolf Games uses Gemini API to boost content generation accuracy to 96% and slash latency to under 20 seconds for their daily crime stories.](/showcase/wolfgames)"]]