شعار Refresh Metrics

Refresh Metrics

المجتمع
timwuhaotian
refresh-metrics

Re-measure killi's installed size, startup, memory and first-request tokens against Kimi Code and Claude Code, regenerate the docs/bench-*.svg, docs/eval-*.svg and combined docs/benchmarks-*.svg charts, and update the numbers README.md quotes. Use after a release, when Kimi Code or Claude Code updates, or when asked to refresh the benchmark charts or the size, memory and token claims.

نظرة عامة

الناشرtimwuhaotian
المستودعkilli
اسم المهارةrefresh-metrics
النجوم
49
التفريعات
9
الملفات المرفقة
تعليمات فقط
الترخيصMIT
الروابط
  • تعليمات بصيغة Markdown

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

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

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

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

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

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

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

التثبيت

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

1

التثبيت في TypingMind

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

  1. افتح التطبيق وانتقل إلى «الإضافات» ثم «المهارات».
  2. اختر «تثبيت من GitHub».
  3. الصق رابط مجلد المهارة الموضّح أدناه وأكّد التثبيت.
    https://github.com/timwuhaotian/killi/tree/main/.agents/skills/refresh-metrics
  4. فعّل المهارة في كل محادثة تريد إتاحتها فيها.
الإضافات ← المهارات ← إضافة مهارة ← من رابط GitHub، ثم الصق رابط المجلد واضغط على «متابعة».
2

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

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

Claude Code — .claude/skills
git clone --depth 1 https://github.com/timwuhaotian/killi.git /tmp/killi
mkdir -p .claude/skills
cp -r /tmp/killi/.agents/skills/refresh-metrics .claude/skills/refresh-metrics
أعد تشغيل Claude Code بعد النسخ ليتعرّف على المهارة الجديدة.

استخدمها في TypingMind

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

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

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

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

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

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

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

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

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

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

Refresh the metrics and charts

Four things come from the scripts, in this order: scripts/bench.py writes docs/bench.json, scripts/chart.py draws docs/bench-{light,dark}.svg, docs/eval-{light,dark}.svg and docs/benchmarks-{light,dark}.svg (both charts stacked in one image — the one at the top of the README, right under the screenshot), scripts/eval.py runs the capability tasks, and scripts/eval.py report writes docs/eval.{md,json} and redraws the eval and combined charts. The README quotes numbers from all of them, so it is the last thing to edit.

0. Before measuring

  • Apple silicon Mac, kimi and claude installed and signed in, and mimo/mimo-v2.6-pro configured in ~/.killi/config.toml (BENCH_MODEL and EVAL_MODEL change it).
  • opencode 2 is optional for bench.py: OPENCODE_BIN is the compiled binary, e.g. npm install --prefix <dir> --ignore-scripts @opencode/cli and <dir>/node_modules/@opencode/cli-darwin-arm64/bin/opencode (the npm launcher would hide the real process's memory). bench.py builds its config from killi's provider, runs it with --standalone (one process, no background service) and reads tokens from its sqlite database, because --format json carries no usage.
  • Measure the binary people install: releases/killi-arm64, built by scripts/release.sh (or cargo build --release). ~/.local/bin/killi can be a release behind. Pass it as KILLI_BIN="$PWD/releases/killi-arm64".
  • Look at uptime. Other agents and test suites on the machine raise the load; startup time jitters with it (0.2.16 measured 38, 13 and 17 ms in three runs, and 8 ms when timed directly).

1. Benchmark

sh
KILLI_BIN="$PWD/releases/killi-arm64" python3 scripts/bench.py

--tools killi,opencode measures only those and keeps the other rows (each row records the date it was measured). It runs each tool in an empty folder: startup (--version, median of 5), peak memory (maximum resident set size of a one-prompt run, median of 3) and the first request's input tokens. Run it at least twice. Size, memory and tokens agree within a few percent between runs; if they don't, something else was running. Quote startup as a round "under N ms" unless the load was low, and never as a single-digit figure from a loaded machine. killi runs with KILLI_NO_HOOKS=1 (bench.py sets it): hooks are the user's own programs in other processes, and time -l counts the whole tree's peak.

Things that change between runs for reasons that aren't killi:

  • Claude Code runs its default model; docs/bench.json records which. If it changed (it went from Opus 5.5 to Sonnet 5.5 when the default did), add the display name to MODELS in scripts/chart.py, and say so in the README: its token count moved with the model.
  • "Tokens sent before you type" include this machine's skills, AGENTS.md files and MCP servers, so they move when those do.

2. Charts

sh
python3 scripts/chart.py
rsvg-convert -w 960 docs/benchmarks-light.svg -o "$TMPDIR/benchmarks.png"   # a PNG of the whole combined chart to look at (qlmanage crops to a square)

The footnote names the chip and macOS from bench.json (machine), so it is always the machine that measured.

3. Capability tests (costs tokens: decide first)

  • python3 scripts/eval.py verify checks every task fails as given and passes with its solution.
  • killi alone, about 10 minutes and about 28k input tokens per task on MiMo: KILLI_BIN="$PWD/releases/killi-arm64" python3 scripts/eval.py run --tools killi
  • Kimi Code and Claude Code too: about 207k and 279k input tokens per task, so roughly 3M tokens of the MiMo plan for Kimi Code and a day's worth of Claude usage. Ask first.
  • python3 scripts/eval.py report merges the latest run of each tool. After a killi-only run the other two rows are older (their versions are in docs/eval.md); say so when reporting. It also adds the run to the "killi across versions" table.

Memory in the eval is the tool's own process per task, not the compilers it starts.

4. README

Update by hand, from docs/bench.json and docs/eval.json:

  • "Small and quick": size, startup, memory running a prompt, and the other two tools' memory.
  • "Few tokens": the N× fewer input tokens, which is Kimi Code's avg_input over killi's.
  • "Size and memory": which models and versions each tool ran.
  • The image alt texts if the headline changed.

docs/screenshot.svg, docs/menu.svg and docs/theme.svg are drawn by scripts/frames.py (the readme, slash and skin scenes): a scripted provider answers, so no model, account or clean HOME is needed and the shots come out the same every time. They wear the iced-coffee theme — the palette docs/icon.svg is drawn from; docs/icon.png is that SVG rendered at 512 (rsvg-convert -w 512). Redraw the shots when the UI changes, against the release binary so the banner's version is the one being shipped: the hero and the menu run inline at a tall size, the theme preview fullscreen where its specimen fits whole:

sh
scripts/frames.py /tmp/shots --killi releases/killi-arm64 --sizes 118x64 \
    --scenes readme slash --inline --ui-theme iced-coffee --frame
scripts/frames.py /tmp/shots --killi releases/killi-arm64 --sizes 118x36 \
    --scenes skin --ui-theme iced-coffee --frame
cp /tmp/shots/readme-118x64-night.svg docs/screenshot.svg
cp /tmp/shots/slash-118x64-night.svg docs/menu.svg
cp /tmp/shots/skin-118x36-night.svg docs/theme.svg

Look at PNGs of all three (rsvg-convert -w 1000) before committing. scripts/screenshot.py remains for shooting a real model's run.

Another number people ask for

Memory of the interactive UI at rest (default state, nothing typed): start each tool in a pty in an empty folder, wait about 10 s, and read ps -o rss= for its pid and its children. On 0.2.16 that was killi 6.9 MB, Kimi Code 319 MB (471 MB with children) and Claude Code 200 MB; it isn't in bench.py because the README's claim is memory running a prompt.

Commit

docs/bench.json, docs/bench-*.svg, docs/benchmarks-*.svg, docs/eval.*, evals/results.jsonl, README.md and any script change. evals/runs/ is ignored. These aren't part of a release; for that see RELEASING.md.

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

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

Re-measure killi's installed size, startup, memory and first-request tokens against Kimi Code and Claude Code, regenerate the docs/bench-*.svg, docs/eval-*.svg and combined docs/benchmarks-*.svg charts, and update the numbers README.md quotes. Use after a release, when Kimi Code or Claude Code updates, or when asked to refresh the benchmark charts or the size, memory and token claims.

لماذا تستخدم Refresh Metrics على TypingMind؟

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

كيف أثبّت Refresh Metrics في TypingMind؟

في TypingMind، افتح «الإضافات»، ثم «المهارات»، ثم اختر «التثبيت من GitHub» والصق https://github.com/timwuhaotian/killi/tree/main/.agents/skills/refresh-metrics. يقرأ TypingMind ملف SKILL.md الخاص بالمهارة ويثبّتها كمهارة يمكنك تفعيلها لكل محادثة على حدة.

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

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

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

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

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

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

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

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

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

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

عرض الكل

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

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