شعار Kortix Evals

Kortix Evals

مؤسسةشائع
kortix-ai
kortix-evals

Eval-driven development for agents: write tasks with a verifier that scores them, run an agent on them, read the score, change the agent, run again, and keep only changes that score better. Tasks use the Harbor format (instruction.md, task.toml, tests/test.sh writes the reward), suites live under `evals:` in kortix.yaml, `kortix evals` runs and compares them, and `kortix evals judge` scores open-ended work with a model. Load before you build or change an agent, its prompt, skills, tools or model; when someone asks whether an agent got better or worse; when asked to benchmark, eval, evalmaxx or benchmaxx; to run Terminal-Bench or another Harbor dataset; or to write an eval task or a grader.

نظرة عامة

الناشرkortix-ai
المستودعCompanyOS
اسم المهارةkortix-evals
النجوم
20.8K
التفريعات
3.5K
الملفات المرفقة
تعليمات فقط
الروابط
  • تعليمات بصيغة Markdown

    ملف SKILL.md يُحمّله النموذج عند الحاجة، فلا يستهلك توكنات إلا عندما يَرِد طلب ذو صلة فعلًا.

  • تعمل مع أي نموذج لغوي كبير

    مهارات الذكاء الاصطناعي مكتوبة بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا تعمل مع GPT أو Claude أو Gemini أو Grok أو نموذج محلي.

  • مكتفية بذاتها

    كل ما يحتاجه النموذج موجود في التعليمات — لا ملفات إضافية لمزامنتها.

  • مفتوحة المصدر

    نشرها kortix-ai على GitHub. اطّلع على المصدر قبل تثبيتها.

التثبيت

ثبّت مهارة الذكاء الاصطناعي Kortix Evals في TypingMind لاستخدامها مع أي نموذج لغوي كبير، أو أضفها إلى وكيل ذكاء اصطناعي آخر يقرأ SKILL.md.

1

التثبيت في TypingMind

يُثبّت TypingMind المهارة مباشرةً من مجلدها على GitHub — فيقرأ SKILL.md، ويجمع ملفات الموارد في حزمة، ويحفظ النتيجة محليًا.

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-evals
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

التثبيت في وكيل ذكاء اصطناعي آخر

يمكن لأي وكيل ذكاء اصطناعي يقرأ تنسيق Agent Skills استخدام هذه المهارة — انسخ المجلد إلى مجلد المهارات الخاص بذلك الوكيل.

Claude Code — .claude/skills
git clone --depth 1 https://github.com/kortix-ai/CompanyOS.git /tmp/CompanyOS
mkdir -p .claude/skills
cp -r /tmp/CompanyOS/packages/starter/templates/managed/skills/kortix-evals .claude/skills/kortix-evals
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

فعّل Kortix Evals في أي محادثة على TypingMind وسيتولى النموذج الباقي. تتضمن مطالبة النظام اسمها ووصفها، وبمجرد ورود طلب ذي صلة، يُحمّل النموذج التعليمات الكاملة تلقائيًا — فلا تحتاج إلى استدعائها يدويًا، ولا تستهلك أي توكنات حتى تُستخدم فعليًا.

يُحمّل النموذج مهارة Kortix Evals تلقائيًا بمجرد ورود طلب ذي صلة بها.

تعمل مع أي نموذج ذكاء اصطناعي

مهارات الذكاء الاصطناعي هي تعليمات بصيغة Markdown وليست شيفرة خاصة بمزوّد معيّن، لذا لا ترتبط Kortix Evals بالنموذج الذي كُتبت له. ثبّتها مرة واحدة في TypingMind واستخدمها مع GPT-5 أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو نموذج محلي تشغّله بنفسك — كل ذلك باستخدام مفاتيح API الخاصة بك.

  • تُحمَّل عند الحاجة فقط

    تتضمن مطالبة النظام الاسم والوصف فقط. وتُجلب التعليمات عند أول طلب ذي صلة، لذا لا تستهلك تعليمات المهارة أي توكنات ما دامت المهارة غير مستخدمة.

  • بدّل النماذج أثناء المحادثة

    لأن المهارة تعليمات وليست شيفرة، فإن تغيير النموذج لا يعطّلها — فالنموذج التالي يقرأ ملف SKILL.md نفسه.

تعليمات المهارة

هذا هو محتوى SKILL.md الذي يُحمّله النموذج. اقرأه قبل التثبيت — فالمهارة عبارة عن تعليمات سيتبعها نموذجك.

Kortix runs the Harbor task format unchanged (https://harborframework.com/docs/tasks). Names:

TermMeaning
taska folder: instruction.md, task.toml, environment/, tests/test.sh, optional solution/solve.sh
verifiertests/test.sh. It runs after the agent stops and writes the reward
reward/logs/verifier/reward.txt (one number) or /logs/verifier/reward.json (named numbers, 0 to 1)
trialone agent's attempt at one task, in its own session and sandbox
jobtasks × agents × attempts, run at one commit
suitea job config under evals: in kortix.yaml
passevery reward of a trial is 1 or more
pass@1the share of tasks passed on the first attempt: the headline score

The tests reach the sandbox only after the agent stops, so the agent never sees them. Results are in Files under /Evals/<job>/, in Harbor's jobs/ layout, and in the web app under Customize → Evals: Overview (the leaderboard), Datasets, Tasks and Jobs. Jobs → select two → Compare shows the same table kortix evals compare prints.

  1. Write the tasks. Each task is one thing the agent must do, with a verifier that checks the end state, not the transcript wording. Start with 5 to 20 tasks that cover the real uses, the hard cases and the ways the agent fails today. Add a task for every bug you fix. Tasks you just wrote run from your session branch: commit, git push, then run with --ref <branch> (and --path <dir> before the suite is in kortix.yaml). Do not merge first to measure: merging changes the workspace for everyone, so offer it after the baseline, when the person wants the tasks kept.
    bash
    kortix evals run --path evals/refunds --agent support-replies --ref "$(git rev-parse --abbrev-ref HEAD)" --wait
  2. Prove each task. Run oracle (it runs solution/solve.sh) and nop (it does nothing). Every task must score 1 with oracle and 0 with nop. A task that passes with nop is broken: its verifier checks nothing.
    bash
    kortix evals run smoke --agent oracle --agent nop --wait
  3. Baseline. Run the agent as it is, with 3 attempts or more: one attempt hides luck. Note the job id.
    bash
    kortix evals run <suite> --attempts 3 --wait
  4. Read the failures. kortix evals show <job> lists every trial. kortix evals trial <job> <trial> --file verifier/test-stdout.txt shows why a trial failed; --file agent/session-log.json (steps/<step>/agent/ for a multi-step task) holds what the agent did, also after a fresh workspace is gone. Find the cause, not the symptom.
  5. Change one thing. The prompt, a skill, a tool, the model. One change per run, or you cannot tell which change moved the score.
  6. Run again and compare, task by task.
    bash
    kortix evals run <suite> --attempts 3 --wait
    kortix evals compare <baseline_job> <new_job>
    Keep the change only when pass@1 rises and no task got worse. A task that got worse is a regression even when the total rose.
  7. Commit the change with its score in the commit message: the suite, both job ids, pass@1 before and after.

Do not tune the agent to the tasks' wording, and never read tests/ into the agent's prompt or skills: that raises the score and not the agent. Keep a few tasks out of the loop (a second suite) and check them at the end; a change that helps only the tasks you looked at is overfitting.

bash
kortix evals init            # writes evals/tasks/hello-world and prints the suite
text
evals/tasks/<task>/
├── instruction.md        the prompt. Name absolute paths and the exact output format
├── task.toml             [agent] timeout_sec, [verifier] timeout_sec, [environment]
├── environment/          optional: a Dockerfile, or [environment] docker_image
├── tests/test.sh         the verifier: check the end state, write the reward
├── tests/.harborignore   optional: files of tests/ the sandbox never gets
└── solution/solve.sh     the reference solution (oracle runs it)
toml
# task.toml
[agent]
timeout_sec = 600.0

[verifier]
timeout_sec = 120.0
environment_mode = "shared"     # Kortix runs the verifier in the trial's sandbox

[verifier.env]
EXPECTED_ROWS = "42"

[environment]
docker_image = "python:3.12-slim-bookworm"   # optional: the task's own image (Debian family)

A task without docker_image or a Dockerfile runs in the agent's own sandbox. A task with one gets a sandbox template built from it once; later trials reuse it. A Dockerfile builds without a build context: COPY or ADD of a local file cannot build (COPY --from= and ADD <url> can). Making a template needs project.sandbox.write from whoever starts the job.

Kortix runs these Harbor task features as Harbor does:

  • [environment.healthcheck]: checked before the agent starts; a failure is HealthcheckError.
  • artifacts = [...] and /logs/artifacts/: collected after the agent into the trial's artifacts/ folder, symlinks out of the tree and setuid bits removed.
  • A separate verifier ([verifier] environment_mode = "separate", [verifier.environment], or tests/Dockerfile): the tests run in a fresh sandbox that gets only the artifacts, never the agent's filesystem.
  • .harborignore in tests/ and solution/.

Kortix does not run yet, and says why instead of running it: multi-step tasks ([[steps]]), docker-compose environments, a restricted network (network_mode = "no-network"/allowlist, allow_internet = false: Kortix cannot enforce it, so the score would not be comparable), mcp_servers, Windows, GPUs. kortix evals tasks <suite> names each unsupported task and why.

KindHowUse for
deterministicrun the code, query the file, compare outputcoding, data, files, anything with one right end state
referencecompare with an expected answer kept in tests/extraction, numbers, "the answer is X"
model judgekortix evals judge scores against named criteriawriting, research, summaries, tone
agent judgea Kortix session inspects the result, then writes the scoreopen work that needs investigation to judge

Deterministic, with partial credit:

bash
#!/bin/bash
mkdir -p /logs/verifier
passed=0; total=3
[ "$(printf '1 2 3' | bash /app/sum.sh)" = 6 ] && passed=$((passed+1))
[ "$(printf '' | bash /app/sum.sh)" = 0 ] && passed=$((passed+1))
[ "$(printf -- '-1 1' | bash /app/sum.sh)" = 0 ] && passed=$((passed+1))
echo "{\"correctness\": $(awk "BEGIN{print $passed/$total}")}" > /logs/verifier/reward.json

Model judge, combined with a code check. The judge merges its scores into reward.json, and its reasoning lands in the trial's test-stdout.txt:

bash
#!/bin/bash
mkdir -p /logs/verifier
exists=0; [ -s /workspace/report.md ] && exists=1
echo "{\"exists\": $exists}" > /logs/verifier/reward.json
kortix evals judge \
  --criterion accurate="Every number in the report matches /tests/facts.json." \
  --criterion complete="The report covers revenue, churn and the three largest accounts." \
  --criterion concise="The report is under 400 words." \
  --input /workspace/report.md --input /tests/facts.json

Pin the judge model (--model <id>, or KORTIX_EVAL_JUDGE_MODEL in [verifier.env]): scores from two judge models do not compare. Judge one property per criterion, say what earns 1.0, and run 3 attempts or more.

Every trial of a job runs in the same workspace. A check of workspace state (triggers, invites, connectors, members) sees what other trials did, before and during this one. Check what this trial's session did instead: kortix sessions log "$KORTIX_SESSION_ID" --json, and read only the inputs of its tool calls, never their output (help text names commands too). Remove what a trial created in the verifier, after grading.

Never write a 0 when the judge fails (|| echo '{"accurate": 0}' > …). A missing CLI or a model outage then reads as a worse agent. Let the verifier fail instead: … --input <file> || { rm -f /logs/verifier/reward.json; exit 1; }. With no reward the trial counts as an error, not as a score. A judge also grades from what it knows: when a fact can change (a version, a price, a date), tell it not to rule on whether the fact is current.

Agent judge: start a session of a judge agent from the verifier with kortix sessions, give it the result and the rubric, and have it write the scores to a file the verifier copies into reward.json.

Rules for every grader:

  • Check the end state the instruction asks for, at the path it names.
  • Never let the reward depend on the agent's own claim ("I did it").
  • Write the reward on every path, including failure: no reward file is an error (RewardFileNotFoundError), not a 0.
  • Print what you checked: the output is the only explanation of a score.

The fields are Harbor's job config fields: tasks, datasets, agents (name, model_name, override_timeout_sec), n_attempts, n_concurrent_trials, timeout_multiplier, retry.max_retries, override_error_policy, metrics (mean, sum, min, max). An agent is an agent of kortix.yaml, oracle or nop. kortix evals datasets lists the Harbor Hub (org/name, the datasets of hub.harborframework.com) and the legacy Harbor registry (terminal-bench@2.0). A job pins every Hub task to its content hash, so a re-run runs the same tasks.

Every command takes --json. Each trial is a full session and costs what a session costs: start with few tasks and few attempts.

الأسئلة الشائعة

ماذا تفعل مهارة الذكاء الاصطناعي Kortix Evals؟

Eval-driven development for agents: write tasks with a verifier that scores them, run an agent on them, read the score, change the agent, run again, and keep only changes that score better. Tasks use the Harbor format (instruction.md, task.toml, tests/test.sh writes the reward), suites live under `evals:` in kortix.yaml, `kortix evals` runs and compares them, and `kortix evals judge` scores open-ended work with a model. Load before you build or change an agent, its prompt, skills, tools or model; when someone asks whether an agent got better or worse; when asked to benchmark, eval, evalmaxx...

لماذا تستخدم Kortix Evals على TypingMind؟

لأنك تثبّتها مرة واحدة وتستخدمها مع أي نموذج. مهارة Kortix Evals عبارة عن نص Markdown وليست شيفرة خاصة بمزود بعينه، لذا تعمل المهارة نفسها مع GPT-5 أو Claude أو Gemini أو Grok أو نموذج محلي، ويمكنك تبديل النموذج أثناء المحادثة دون تعطّل المهارة. يعمل TypingMind بمفاتيح API الخاصة بك، فتدفع للمزودين مباشرةً بدلًا من اشتراك لكل مقعد، وتبقى مهاراتك ومحادثاتك في مساحة التخزين الخاصة بك.

كيف أثبّت Kortix Evals في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/kortix-ai/CompanyOS/tree/dev/packages/starter/templates/managed/skills/kortix-evals. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

ما نماذج الذكاء الاصطناعي التي يمكنها استخدام Kortix Evals؟

أي نموذج تربطه في TypingMind. مهارات الذكاء الاصطناعي عبارة عن تعليمات Markdown وليست شيفرة خاصة بمزود بعينه، لذا يمكن لكل من GPT وClaude وGemini وGrok والنماذج المحلية تحميل هذه المهارة عندما يتوافق الطلب معها.

كم نموذج ذكاء اصطناعي يمكنني استخدامه مع Kortix Evals؟

أي عدد تريده. ما دام النموذج يدعم المهارات، يمكنك استخدام Kortix Evals معه، سواء كان GPT أو Claude أو Gemini أو Grok أو DeepSeek أو Mistral أو Llama أو غيرها، وكل ذلك على TypingMind باستخدام مفاتيح API الخاصة بك.

هل مهارة الذكاء الاصطناعي Kortix Evals مجانية؟

نشرها kortix-ai على GitHub. راجع المستودع للاطلاع على شروط الترخيص. لا تدفع إلا لمزود الذكاء الاصطناعي الخاص بك مقابل التوكنات التي تستخدمها.

ما هي مهارات الذكاء الاصطناعي؟

مهارة الذكاء الاصطناعي حزمة تعليمات قابلة لإعادة الاستخدام تعلّم نموذج الذكاء الاصطناعي كيفية تنفيذ مهمة محددة. وتتبع تنسيق Agent Skills المفتوح: ملف SKILL.md يتضمن اسمًا ووصفًا، إلى جانب أي نصوص برمجية أو قوالب أو ملفات مرجعية قد يحتاج إليها النموذج. لا يقرأ النموذج التعليمات إلا عندما يتوافق طلبك مع المهارة، لذا لا تترتب على المهارة المثبتة أي تكلفة حتى تُستخدم.

كيف تختلف مهارات الذكاء الاصطناعي عن الإضافات أو موصلات MCP؟

تمنح الإضافة أو موصل MCP النموذج أدوات جديدة يمكنه استدعاؤها، وهي شيفرة تُنفَّذ في مكان ما وتُرجع نتيجة. أما مهارة الذكاء الاصطناعي فتزوّد النموذج بالمعرفة ومنهجية العمل: كيفية التعامل مع مهمة، والخطوات التي ينبغي اتباعها، وما ينبغي أن تكون عليه المخرجات الجيدة. المهارات عبارة عن نصوص Markdown، لذا لا تحتاج إلى خادم أو مفتاح API أو بيئة تشغيل، وتعمل مع أي نموذج.

عرض الكل

أنشئ مساحة عملك للذكاء الاصطناعي الآن

اشترك في نشرتنا الإخبارية لتصلك أخبار الميزات الجديدة والهدايا القادمة 👇