Logo Qualiloop

Qualiloop

Tổ chứcPhổ biến
kortix-ai
qualiloop

QualiLoop tests and traces the My Kortix agent from outside: it chats with it through POST /v1/qualiloop/chat on dev, reads each turn's trace, and judges the replies. Load WHENEVER you run, read or change QualiLoop tests, suites, problems or checks (`npx qualiloop ...`); touch apps/api/src/qualiloop or apps/api/src/projects/qualiloop; or change a system prompt, a tool or a managed skill of the agent, since QualiLoop's system knowledge must then be sent again.

Tổng quan

Nhà phát hànhkortix-ai
Kho mãCompanyOS
Tên kỹ năngqualiloop
Sao
20.8K
Bản fork
3.5K
Tệp đi kèm
2
Liên kết
  • Hướng dẫn bằng Markdown

    Tệp SKILL.md được mô hình tải khi cần, nên chỉ tốn token khi có yêu cầu thực sự phù hợp.

  • Dùng được với mọi LLM

    Kỹ năng AI dùng hướng dẫn viết bằng Markdown thay vì mã dành riêng cho một nhà cung cấp, nên dùng được với GPT, Claude, Gemini, Grok hoặc mô hình cục bộ.

  • 2 tệp đi kèm

    Các tập lệnh, mẫu và tài liệu tham khảo mà mô hình có thể đọc khi làm việc. Các tệp chỉ cho phép đọc và không bao giờ được thực thi.

  • Mã nguồn mở

    Được kortix-ai công bố trên GitHub. Hãy đọc các tệp nguồn trước khi cài đặt.

Cài đặt

Cài đặt kỹ năng AI Qualiloop trong TypingMind để dùng với bất kỳ LLM nào, hoặc thêm vào một tác nhân AI khác có thể đọc SKILL.md.

1

Cài đặt trong TypingMind

TypingMind cài đặt kỹ năng trực tiếp từ thư mục GitHub — đọc SKILL.md, đóng gói các tệp tài nguyên và lưu kết quả trên máy.

  1. Mở ứng dụng và vào Plugin → Kỹ năng.
  2. Chọn "Cài đặt từ GitHub".
  3. Dán URL của thư mục kỹ năng được hiển thị bên dưới rồi xác nhận.
    https://github.com/kortix-ai/CompanyOS/tree/dev/.agents/skills/qualiloop
  4. Bật kỹ năng trong từng cuộc trò chuyện mà bạn muốn sử dụng kỹ năng đó.
Plugin → Kỹ năng → Thêm kỹ năng → Từ URL GitHub, sau đó dán URL thư mục và nhấn Tiếp tục.
2

Cài đặt trong tác nhân AI khác

Bất kỳ tác nhân AI nào đọc được định dạng Agent Skills đều có thể dùng kỹ năng này — hãy sao chép thư mục vào thư mục kỹ năng của tác nhân AI đó.

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/.agents/skills/qualiloop .claude/skills/qualiloop
Khởi động lại Claude Code sau khi sao chép để ứng dụng nhận kỹ năng mới.

Sử dụng trong TypingMind

Bật Qualiloop trong bất kỳ cuộc trò chuyện nào trên TypingMind, mô hình sẽ tự xử lý phần còn lại. Tên và mô tả của kỹ năng nằm trong prompt hệ thống. Ngay khi có yêu cầu phù hợp, mô hình tự tải toàn bộ hướng dẫn — bạn không cần gọi thủ công và kỹ năng không tốn token cho đến khi thực sự được dùng.

Mô hình tự nạp Qualiloop ngay khi có yêu cầu phù hợp.

Dùng được với mọi mô hình AI

Kỹ năng AI là các hướng dẫn Markdown thuần túy, không phải mã dành riêng cho một nhà cung cấp, nên bạn có thể dùng Qualiloop với cả những mô hình khác ngoài mô hình ban đầu. Chỉ cần cài đặt một lần trong TypingMind rồi dùng với GPT-5, Claude, Gemini, Grok, DeepSeek, Mistral, Llama hoặc mô hình cục bộ do bạn tự chạy — tất cả đều dùng khóa API của riêng bạn.

  • Chỉ tải khi cần

    Prompt hệ thống chỉ chứa tên và mô tả. Hướng dẫn được tải khi có yêu cầu phù hợp đầu tiên, nên khi kỹ năng chưa được dùng, bạn không tốn token cho phần hướng dẫn.

  • Đổi mô hình ngay trong cuộc trò chuyện

    Vì kỹ năng là hướng dẫn chứ không phải mã, việc đổi mô hình không làm kỹ năng ngừng hoạt động — mô hình tiếp theo vẫn đọc cùng tệp SKILL.md.

Hướng dẫn của kỹ năng

Đây là nội dung SKILL.md mà mô hình tải. Hãy đọc trước khi cài đặt — kỹ năng là những hướng dẫn mà mô hình của bạn sẽ làm theo.

QualiLoop

QualiLoop (app.qualiloop.com) is an external test harness for AI agents. It sends the agent messages as a simulated user, reads the agent's trace, and judges each conversation against the agent's system knowledge. Kortix is QualiLoop project #1 "Kortix AI Corp".

How it reaches the agent

PieceWhere
EndpointPOST /v1/qualiloop/chat (apps/api/src/qualiloop/index.ts): {prompt, metadata.session_id, metadata.turn_index} in, {"reply"} out, X-Agent-Secret checked in constant time
Turnapps/api/src/projects/qualiloop/turn.ts: one QualiLoop conversation = one Kortix session (id = a hash of the conversation id), started or continued through the normal session lifecycle as the project's owner, source qualiloop (origin user: the owner's own private chat, with Drive and memory)
Traceapps/api/src/projects/qualiloop/spans.ts: after the turn, the session log becomes one OTLP/JSON trace (turn span, a chat span per model call with the system prompt and tokens, an execute_tool span per tool call), sent before the reply returns
Retrieseach turn_index claims its turn once (qualiloop_turns in the session's metadata): a resent turn after a network failure waits for the same answer and never sends the prompt twice
Replythe turn is answered when its prompt is in the session log and no turn is open. A prompt sent while a turn runs (a colleague's report woke the session) joins that turn, and the reply is that turn's text
Keep-alivethe route answers 200 at once and sends a space every 15 s until the JSON: Cloudflare cuts a response whose first byte takes over 100 s, and a turn with a sandbox boot can take minutes

The route answers 404 unless both QUALILOOP_AGENT_SECRET and QUALILOOP_KORTIX_PROJECT_ID are set. Only test turns are traced: real users' sessions send QualiLoop nothing, and live traffic is off. Turning live traffic on sends customer data to QualiLoop, which makes it a subprocessor: that needs the compliance skill first.

Where it runs

Only dev is configured (https://dev-api.kortix.com/v1/qualiloop/chat). The test sessions run in the project "QualiLoop tests" of a synthetic test account on dev. Its password is in the macOS Keychain of the machine that set it up (kortix/QUALILOOP_DEV_TEST_PASSWORD), and the endpoint secret in kortix/QUALILOOP_AGENT_SECRET_DEV. The four variables live in the AWS Secrets Manager blob kortix-dev-env (us-east-2), mirrored in apps/api/.env.dev:

VariableValue
QUALILOOP_AGENT_SECRETthe secret QualiLoop sends as X-Agent-Secret (saved on QualiLoop's side with the target)
QUALILOOP_KORTIX_PROJECT_IDthe Kortix project the test sessions run in
QUALILOOP_PROJECT_KEYQualiLoop's project key: npx qualiloop connect env --file <file> writes it
QUALILOOP_OTLP_TRACES_URLQualiLoop's traces address, written by the same command

Staging and prod stay unconfigured: leave the secret unset there.

  • ECS reads kortix-dev-env when a task starts. After you change it, roll the API service (aws ecs update-service --cluster kortix-dev-use2 --service kortix-dev-use2 --force-new-deployment, region us-east-2, kortix-mfa profile) and wait until the route answers 401 without the secret.
  • The test account is on the Credits plan with granted credits (admin routes POST /v1/admin/api/accounts/{id}/tier and /credits). On the Free plan every turn ends {"error":"No model: upgrade to the Credits plan or add your own provider key."}. A low balance does the same: grant more.
  • QualiLoop saves the target with max_parallel_conversations 4 (each conversation is one sandbox, and its hand-offs start more) and reply_timeout_seconds 600. At 8, dev's sandbox provider ran out of room (503 capacity) and sessions never started. The route gives up on a turn after 570 s, so QualiLoop always gets an answer first.

Run tests

npx qualiloop ... from any folder, signed in with npx qualiloop login (a browser approval). Every command names the project it acted on: check it is #1.

  1. Reset the test project. Test conversations make real things (agents, skills, crons, reminders, Apps, connectors, secrets, Drive files, memory, artifacts, invites). Left behind, crons fire and spend, and the next test sees another workspace. As the test account: KORTIX_TOKEN=<access token> QUALILOOP_KORTIX_PROJECT_ID=<id> .agents/skills/qualiloop/scripts/reset.sh. It deletes them, puts the repository back to the tag qualiloop-baseline (the tree the project had when it was created; set it once with git tag and git push origin qualiloop-baseline on a new test project) and exits 1 when anything is left. It refuses while a QualiLoop run is open (a reset then deletes the sessions of conversations still running), or when the QualiLoop CLI cannot say, for example after its sign-in expired.
  2. npx qualiloop connect check: one real turn plus its trace. Every required item passes, or the endpoint, the deploy or a variable is broken.
  3. npx qualiloop suites run core --wait --fail-on major: the Core suite (26 tests, one or two per area). suites run "My Kortix e2e" is the deep one (86 tests in 14 areas: first contact, delegation, agents, skills, connectors, secrets, models, follow-through, automations, goals, files and memory, people and billing, sessions, red team), about 2 hours at 4 at a time. suites run "Workspace configuration" (78 long conversations) covers setting a workspace up from the chat. Reset between suites. One conversation is one conversation credit on QualiLoop, and one sandbox plus model use on the dev test account.
  4. npx qualiloop problems categories, then the failed runs' problems: what to fix.
  5. One run proves little: the same tests on the same model gave 19 major problems, then 7. Compare a change on 3 runs of the tests it touches.
  6. To cover something new: npx qualiloop generate "<what to test>" --suite core --wait. QualiLoop writes the tests; do not write them by hand. Run reset.sh again after every run.

npx qualiloop guide prints QualiLoop's own loop for working on an agent.

Send the system knowledge

QualiLoop judges every reply against the agent's system prompt, tools and documents. Send them again after any change to a prompt (apps/kortix-sandbox-agent-server/src/harness/pi/, apps/api/src/projects/lib/my-kortix-prompt.ts), a tool, or a managed skill, once that change runs on dev:

  1. Save the system message of a fresh QualiLoop test session to a file: read the session's log (GET /v1/projects/<project_id>/sessions/<session_id>/log?limit=100 as the test account) and keep the text of the first role: system message. The session's id is the kortix.session_id attribute of its turn span.
  2. bun .agents/skills/qualiloop/scripts/knowledge.ts <file> > knowledge.json. The script replaces the session and project ids with placeholders and builds the tools and documents from the code. It fails when the prompt registers a tool it does not build: add that tool to the script.
  3. npx qualiloop connect knowledge --file knowledge.json, then delete the file. Every source reads new, unchanged or new version; skipped names what to fix.
  4. npx qualiloop connect check: prompts_seen passes and unmatched_prompts is empty.

Disconnect

Unset QUALILOOP_AGENT_SECRET in kortix-dev-env (the route then answers 404), then run npx qualiloop connect disconnect. The project, its tests and its knowledge stay in QualiLoop until someone deletes the project in its Settings.

Tệp đi kèm

Khi kỹ năng đã được tải, mô hình có thể đọc các tệp này nếu cần. Các tệp này chỉ dùng để đọc và không bao giờ được thực thi.

Câu hỏi thường gặp

Kỹ năng AI Qualiloop làm được gì?

QualiLoop tests and traces the My Kortix agent from outside: it chats with it through POST /v1/qualiloop/chat on dev, reads each turn's trace, and judges the replies. Load WHENEVER you run, read or change QualiLoop tests, suites, problems or checks (`npx qualiloop ...`); touch apps/api/src/qualiloop or apps/api/src/projects/qualiloop; or change a system prompt, a tool or a managed skill of the agent, since QualiLoop's system knowledge must then be sent again.

Vì sao nên dùng Qualiloop trên TypingMind?

Vì bạn chỉ cần cài một lần rồi dùng với bất kỳ mô hình nào. Qualiloop là nội dung Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên cùng một kỹ năng có thể chạy trên GPT-5, Claude, Gemini, Grok hoặc mô hình trên thiết bị — và bạn có thể đổi mô hình ngay trong cuộc trò chuyện mà kỹ năng vẫn hoạt động. TypingMind dùng khóa API riêng của bạn, nên bạn thanh toán trực tiếp cho nhà cung cấp thay vì trả phí thuê bao theo suất người dùng, đồng thời kỹ năng và các cuộc trò chuyện vẫn nằm trong bộ lưu trữ của bạn.

Làm thế nào để cài Qualiloop trong TypingMind?

Mở Plugin → Kỹ năng → Cài đặt từ GitHub trong TypingMind rồi dán https://github.com/kortix-ai/CompanyOS/tree/dev/.agents/skills/qualiloop. TypingMind đọc tệp SKILL.md, đóng gói các tệp đi kèm rồi cài đặt cả gói dưới dạng một kỹ năng mà bạn có thể bật cho từng cuộc trò chuyện.

Những mô hình AI nào có thể dùng Qualiloop?

Bất kỳ mô hình nào bạn kết nối trong TypingMind. Kỹ năng AI là các hướng dẫn bằng Markdown chứ không phải mã dành riêng cho từng nhà cung cấp, nên GPT, Claude, Gemini, Grok và các mô hình chạy trên thiết bị đều có thể tải kỹ năng này khi có yêu cầu phù hợp.

Có thể dùng Qualiloop với bao nhiêu mô hình AI?

Bao nhiêu cũng được. Miễn là mô hình hỗ trợ kỹ năng, bạn có thể dùng Qualiloop với mô hình đó — GPT, Claude, Gemini, Grok, DeepSeek, Mistral, Llama và nhiều mô hình khác — tất cả đều trên TypingMind với khóa API riêng của bạn.

Kỹ năng AI Qualiloop có miễn phí không?

Kỹ năng này được kortix-ai phát hành trên GitHub. Hãy xem điều khoản giấy phép trong kho mã. Bạn chỉ trả tiền cho nhà cung cấp AI của mình theo số token đã dùng.

Kỹ năng AI là gì?

Kỹ năng AI là một gói hướng dẫn có thể tái sử dụng, chỉ cho mô hình AI cách thực hiện một tác vụ cụ thể. Kỹ năng tuân theo định dạng mở Agent Skills: một tệp SKILL.md chứa tên và mô tả, cùng các tập lệnh, mẫu hoặc tệp tham khảo mà mô hình có thể cần. Mô hình chỉ đọc hướng dẫn khi yêu cầu của bạn phù hợp với kỹ năng, nên kỹ năng đã cài đặt không phát sinh chi phí cho đến khi được sử dụng.

Kỹ năng AI khác gì với plugin hoặc máy chủ MCP?

Plugin hoặc máy chủ MCP cung cấp các công cụ mới mà mô hình có thể gọi. Khi mô hình gọi một công cụ, mã của công cụ đó chạy ở đâu đó và trả về kết quả. Còn kỹ năng AI cung cấp kiến thức và quy trình: cách tiếp cận tác vụ, các bước cần thực hiện và những tiêu chí mà kết quả cần đáp ứng. Kỹ năng chỉ là nội dung Markdown, nên không cần máy chủ, khóa API hay môi trường thực thi và hoạt động với mọi mô hình.

Xem tất cả

Tạo ngay không gian làm việc AI riêng

Đăng ký bản tin của chúng tôi để nhận thông báo về tính năng mới và các đợt tặng quà sắp tới 👇