█

AI/TLDR

मुझे पिलाएं कॉफ़ी
मुझे एक कॉफ़ी पिलाएँ

Tracely

AI एजेंट्स के लिए ट्रेस-नेटिव CI/CD: विफल प्रोडक्शन ट्रेस बन जाते हैं रीप्ले होने योग्य रिग्रेशन टेस्ट, जो pull requests को रोकते हैं

Evaluation & Red-Teamingओपन सोर्स
भाषा
Python
लाइसेंस
MIT
संक्षेप में

Tracely क्या है?

Tracely AI एजेंट्स के लिए ट्रेस-नेटिव CI/CD: विफल प्रोडक्शन ट्रेस बन जाते हैं रीप्ले होने योग्य रिग्रेशन टेस्ट, जो pull requests को रोकते हैं. यह Evaluation & Production Ops टूल्स की Evaluation & Red-Teaming श्रेणी में आता है; ओपन सोर्स है, Python में लिखा गया है और MIT लाइसेंस के तहत है।

सारांश

Tracely एक ओपन सोर्स प्लेटफ़ॉर्म है, जो AI एजेंट्स के प्रोडक्शन फ़ेलियर को रिग्रेशन टेस्ट में बदल देता है। यह OTLP के ज़रिए एजेंट ट्रेस लेता है, हर run को आते ही structural checks और LLM जज से ग्रेड करता है, फ़ेलियर्स को issues में समूह बनाता है, और किसी फ़ेल हुए ट्रेस को hermetic टेस्ट केस में प्रमोट करने देता है, जो हर pull request पर फिर से रीप्ले होता है। इसका README इस विचार को इस तरह रखता है: “रिकॉर्ड किया गया run ही टेस्ट है।” यानी हाथ से eval डेटासेट लिखने की जगह, किसी असली फ़ेलियर का सटीक input, tool calls और model responses ही fixture बन जाते हैं।

Tracely dashboard with trace, failure-cluster, auto-failure and regression-case counts, last-24-hour latency and cost, the biggest failure clusters and recent regression cases
One workspace: what ran, what broke and what is already pinned as a test.Tracely README ↗

इसका वर्कफ़्लो पाँच चरणों में चलता है, और हर चरण ऐप का एक पेज है। Observe में ट्रेस conversation threads के रूप में दिखते हैं, जिनमें agent semantics (agent, conversation, turn, step) indexed columns में सहेजे जाते हैं, और ट्रेस टेबल पर evaluators कॉलम के रूप में दिखते हैं। Detect and triage फ़ेलियर्स को structural और semantic, दोनों तरीकों से क्लस्टर करता है। Test किसी फ़ेलियर को एक केस में बदलता है, जिसमें fail-to-pass contract होता है, या multi-turn या adversarial red-team scenario में। Ship, tracely CLI या GitHub Action के ज़रिए CI में suite चलाता है, जो commit status और PR comment पोस्ट करता है। Alerts को flows के रूप में बनाया जाता है, जो Slack, email या webhook पर भेज सकते हैं और इनमें एक LLM step शामिल हो सकता है।

पूरा प्रोडक्ट (FastAPI backend, Celery workers, Next.js UI, Python SDK और CI gate CLI) MIT लाइसेंस के तहत है और Docker Compose से सेल्फ़-होस्ट किया जा सकता है। इसके पीछे ClickHouse, pgvector वाला Postgres, Redis और MinIO हैं। प्रोजेक्ट बताता है कि इसका write path Langfuse के डिज़ाइन जैसा है, जिसे Python में दोबारा लिखा गया है। एक होस्टेड सर्विस tracely-ai.com पर मुफ़्त टियर के साथ उपलब्ध है, और हर backend एक MCP endpoint भी देता है, ताकि कोडिंग एजेंट traces पढ़ सके और evaluators बना सके।

यह क्या करता है

  • किसी भी भाषा से OTLP/HTTP ingestion, और Python SDK (tracely-ai) जो OpenAI, Anthropic, Google, Mistral और LangChain calls को अपने-आप इंस्ट्रुमेंट करता है
Tracely trace timeline showing agent, thinking, skill, generation, delegate and retriever spans for a conversation, with a nested researcher sub-agent and the selected span's input
A trace waterfall with a nested sub-agent and the selected span's input.
Tracely failure clusters page listing auto-detected failures grouped into open issues with occurrence counts
Failures grouped into issues with occurrence counts.
Tracely regression case page for a planner agent marked promoted and fail-to-pass validated, with assertions, a reference trajectory and replay results
A promoted regression case with its fail-to-pass contract, assertions and replay history.
  • ट्रेस टेबल पर evaluators कॉलम के रूप में दिखते हैं: बिना model वाले structural checks, और conversation, run या span स्तर पर LLM जज, जिनके scores लाइव स्ट्रीम होते हैं। साथ में एक judge-calibration स्क्रीन भी है, जहाँ verdicts की तुलना human labels से की जा सकती है
  • Structural signature और semantic embedding पर आधारित फ़ेलियर क्लस्टरिंग, सुझाए गए evaluators के साथ, और एक क्लिक में रिग्रेशन केस में प्रमोशन
  • Hermetic रिग्रेशन केस, जो रिकॉर्ड किए गए input और tool/LLM outputs को fail-to-pass contract के साथ fixtures के रूप में बांधते हैं, साथ में scripted और adversarial red-team scenarios
  • tracely simulate / replay / gate और GitHub Action से CI gating: non-zero exit, commit status और upsert होने वाली PR comment। रिकॉर्ड किए गए fixtures के विरुद्ध replay के लिए किसी API key की ज़रूरत नहीं
  • Alert flows (gate विफल, conversation विफल, नया फ़ेलियर मोड, रेट थ्रेशोल्ड) जो Slack, email या webhooks पर भेजे जाते हैं, एक in-app assistant और /mcp पर MCP endpoint
Tracely alert flow builder wiring a CI-gate-failed trigger through a condition and an LLM prompt step to a Slack message, with the step inspector and a rule assistant
Alerts drawn as a flow: gate failed, condition, LLM triage note, Slack.Tracely README ↗

शुरू करें

README के quickstart के लिए Docker और Docker Compose चाहिए। यह demo data के साथ पूरा स्टैक चालू करता है, फिर दिखाता है कि Python से traces कैसे भेजें और GitHub Actions में pull requests पर रोक कैसे लगाएं।

Demo data के साथ पूरा स्टैक चलाएं

यह ClickHouse, Postgres, Redis और MinIO शुरू करता है, migrations चलाता है, ingest key tracely_dev_key वाला एक डिफ़ॉल्ट project सीड करता है, और traces, clusters, cases और gates भरता है। Web app पोर्ट 3001 पर और backend पोर्ट 8000 पर है (इन्हें TRACELY_WEB_PORT / TRACELY_BACKEND_PORT से बदला जा सकता है)।

bashbash
git clone https://github.com/jwuthri-cloud/Tracely-ai && cd Tracely-ai
docker compose --profile demo up -d --build --wait
open http://localhost:3001

अपना पहला ट्रेस भेजें

अपने provider के लिए extra के साथ SDK इंस्टॉल करें ([openai], [anthropic], [langchain] या [all]), उसे एक बार initialize करें, और एक run को wrap करें। Block के अंदर के provider calls GENERATION spans के रूप में कैप्चर होते हैं, जिनमें model, messages, tokens, latency, tool calls और cost शामिल हैं। इसके बजाय कोई भी OTLP/HTTP exporter {endpoint}/v1/traces पर पोस्ट कर सकता है।

pythonpython
pip install "tracely-ai[openai]"

import tracely_sdk as tracely

tracely.init(
    endpoint="http://localhost:8000",
    api_key="tracely_dev_key",
    service_name="support-agent",
    env="prod",
    instrument="auto",
)

with tracely.trace(agent="support-agent", conversation="conv-1", user="u_42"):
    client.chat.completions.create(
        model="gpt-4o",
        messages=[{"role": "user", "content": "Where is order ORD-4471?"}],
    )
Tracely CI gate run marked FAIL for the planner agent on a pull request, with passed, failed and skipped counts and the failing case
A failing CI gate run for a pull request.Tracely README ↗

CI में pull requests पर रोक लगाएं

जब फ़ेलियर्स केस या scenarios में प्रमोट हो जाएं, तो GitHub Action जोड़ें। इस मोड में Tracely आपके रजिस्टर्ड agent endpoint को कॉल करता है और उसके scenarios चलाता है। README में यह भी लिखा है कि CI जो traces पहले से emit करता है उन्हें कैसे gate करें (mode: gate) और tracely replay के साथ hermetic replay कैसे करें।

yamlyaml
      - uses: jwuthri-cloud/Tracely-ai/.github/actions/tracely-gate@master
        with:
          api:   https://tracely.your-co.dev
          key:   ${{ secrets.TRACELY_KEY }}

या रिकॉर्ड किए गए केस को अपने कोड पर replay करें

Replay हर प्रमोट किए गए केस के रिकॉर्ड किए गए input पर आपके agent को दोबारा चलाता है और रिकॉर्ड किए गए tool और model outputs को fixtures के रूप में देता है। इसलिए यह deterministic है और कोई model call नहीं करता। इसके लिए tool और model calls को SDK के call_tool / call_llm seam से रूट करना होता है। असली calls करने के लिए --live जोड़ें।

bashbash
pip install tracely-ai
tracely replay planner --entrypoint my_pkg.agent:run

MCP के ज़रिए कोडिंग एजेंट कनेक्ट करें

हर backend एक MCP endpoint /mcp पर देता है, जो ingest key के workspace तक सीमित है। प्रोजेक्ट एक एजेंट स्किल भी प्रकाशित करता है: npx skills add https://github.com/jwuthri-cloud/Tracely-ai --skill tracely.

bashbash
claude mcp add --transport http tracely http://localhost:8000/mcp \
  --header "Authorization: Bearer tracely_dev_key"

कमांड और कोड प्रोजेक्ट के अपने दस्तावेज़ों से लिए गए हैं — हमेशा जांचें आधिकारिक repo ताज़ा जानकारी के लिए।

कब इस्तेमाल करें

  • किसी ज्ञात एजेंट फ़ेलियर को दोबारा प्रोडक्शन में जाने से रोकें: विफल प्रोडक्शन ट्रेस को रिग्रेशन केस में प्रमोट करें, जो उस pull request को रोक देता है जो उसे वापस लाती है
  • रिकॉर्ड किए गए tool और LLM outputs को replay करके, live APIs कॉल किए बिना, CI में agent रिग्रेशन suites चलाएं। इससे model का कोई खर्च नहीं होता
  • बड़ी संख्या में एजेंट फ़ेलियर्स को छाँटें: हर ट्रेस अलग-अलग पढ़ने के बजाय उन्हें गिनती के साथ issues में क्लस्टर करें
  • MIT लाइसेंस के तहत अपने ही infrastructure पर agent ट्रेसिंग, LLM-जज evaluation और alerting सेल्फ़-होस्ट करें

How Tracely compares

Tracely alongside other open-source evaluation & red-teaming tools AI/TLDR tracks, ranked by GitHub stars.

टूलस्टारयह क्या करता है
Strix★ 78.7kओपन सोर्स AI एजेंट जो आपके ऐप को हैक करके असली सिक्योरिटी कमज़ोरियाँ ढूंढते और उन्हें साबित करते हैं
iFixAi★ 47.6kऑडिट करें कि एजेंट को सौंपा गया काम वह सच में कर रहा है या नहीं
promptfoo★ 27.9kकमांड लाइन से अपने LLM प्रॉम्प्ट और ऐप्स की टेस्टिंग, तुलना और रेड-टीमिंग करें
DeepEval★ 19.8k50+ मूल्यांकन मेट्रिक्स के साथ अपने LLM ऐप्स की यूनिट-टेस्टिंग करें
OpenAI Evals★ 19.8kLLM और LLM-आधारित सिस्टम के मूल्यांकन के लिए एक फ़्रेमवर्क और ओपन रजिस्ट्री
Ragas★ 16.5kLLM और RAG एप्लिकेशन के लिए मेट्रिक-आधारित evaluation और टेस्ट-सेट जेनरेशन
Arize Phoenix★ 12.5kLLM और agent ऐप्स के लिए ओपन सोर्स ऑब्ज़र्वेबिलिटी और इवैल्यूएशन
Tracely★ 847AI एजेंट्स के लिए ट्रेस-नेटिव CI/CD: विफल प्रोडक्शन ट्रेस बन जाते हैं रीप्ले होने योग्य रिग्रेशन टेस्ट, जो pull requests को रोकते हैं