send-agent-telemetry
Skill này làm gì
Skill này kết nối Claude Code hoặc Codex với Sazabi để mọi phiên làm việc đều có thể tìm kiếm. Dành cho nhóm muốn biết coding agent của họ đã làm gì và theo dõi việc dùng token và chi phí.
Khi nào nên dùng
- ✓Khi bạn muốn biết các coding agent của mình đã chạy gì tối qua.
- ✓Khi bạn muốn theo dõi việc dùng token hoặc chi phí cho các phiên coding agent.
- ✓Khi bạn cần kiểm toán hoạt động của agent trên toàn nhóm.
Liên kết skill
https://github.com/ParadevAI/Paradev/blob/main/plugins/sazabi/skills/send-agent-telemetry/SKILL.mdSao chép rồi dán vào AI của bạn (Claude, ChatGPT hoặc Cursor) và nhờ nó làm theo hướng dẫn.
Cách dùng
Cách dễ nhất: sao chép tin nhắn và dán vào AI của bạn. AI sẽ đọc skill và làm theo hướng dẫn.
Tin nhắn có sẵn để dán
Dành cho Claude Code, Codex hoặc Cursor: chạy lệnh trong thư mục dự án của bạn và skill sẽ được cài đặt.
Tải tệp SKILL.md về và thả vào thư mục skill của agent.
Ví dụ cách nhờ AI
“Gửi dữ liệu telemetry phiên Claude Code đến Sazabi, và không đưa nội dung prompt vào trừ khi tôi chọn chia sẻ.”
5 skill mới mỗi tuần. Đọc chỉ 1 phút.
Cách hoạt động
Agent hỏi trước những gì được phép rời khỏi máy, vì prompt và đầu vào công cụ có thể chứa dữ liệu nhạy cảm. Sau đó nó thiết lập một địa chỉ tiếp nhận cho mỗi agent. Mặc định không xuất prompt, trừ khi bạn chọn bao gồm.
Nội dung kỹ thuật (SKILL.md gốc)
Lấy nguyên văn từ GitHub, do tác giả viết bằng tiếng Anh.
See what your agents did
Claude Code and Codex have built-in OpenTelemetry exporters. Pointed at Sazabi,
every session becomes searchable: prompts, tool calls and results, model
requests with token counts and cost. Then "what did the agents run last night"
and "which sessions cost the most" are questions for sazabi/logs.ask.
0. How the tools work
The Sazabi MCP server lists only two tools, search and execute. Browse
Sazabi's operations with search and namespace: "sazabi" (an empty query
without a namespace lists connected connectors, not Sazabi operations). Before
calling one, repeat search with namespace: "sazabi", the hit's full name as
the query, and includeInputSchema: true to load its arguments. Then run it
with execute as { name, arguments }, the name copied from the hit (for
example sazabi/logs.ask).
1. Decide what may leave the machine
Ask before exporting prompt text. Prompts and tool inputs can contain code, customer data and credentials. Codex always exports tool-call arguments and truncated results, whatever the prompt setting, so say that plainly when the user picks Codex. Default to prompts off unless the user opts in.
2. Get an intake URL per agent
Run sazabi/logSources.list. If there is no source for this agent yet, create
one with sazabi/logSources.create in manual mode (one source per agent:
Claude Code, Codex) and use the intake endpoint it returns. Keep the URL out of
any committed file.
3. Configure the agent
Claude Code reads the env block of ~/.claude/settings.json (or a
project's .claude/settings.local.json, which must stay untracked):
{
"env": {
"CLAUDE_CODE_ENABLE_TELEMETRY": "1",
"OTEL_LOGS_EXPORTER": "otlp",
"OTEL_EXPORTER_OTLP_PROTOCOL": "http/protobuf",
"OTEL_EXPORTER_OTLP_ENDPOINT": "<intake URL>",
"OTEL_LOG_USER_PROMPTS": "0",
"OTEL_LOG_ASSISTANT_RESPONSES": "0"
}
}
Set OTEL_LOG_ASSISTANT_RESPONSES explicitly: unset, it follows the prompts
setting. Do not set a metrics exporter; Sazabi does not store Claude Code
metrics.
Codex reads ~/.codex/config.toml. Use one [otel] table with an inline
exporter, and the full logs URL including /v1/logs (Codex does not add it):
[otel]
log_user_prompt = false
exporter = { otlp-http = { endpoint = "<intake URL>/v1/logs", protocol = "binary" } }
If [otel] already exists, edit it in place. A second [otel] header is a
TOML error that stops Codex from starting.
Merge into existing files; never overwrite a user's settings.
4. Prove it
Agents load settings at startup, so start a new session and run one prompt.
Then ask sazabi/logs.ask for claude_code.api_request or codex.api_request
events in the last 15 minutes. Report what is flowing, what is excluded, and a
first useful question, such as cost per session today.
Anti-patterns
- Turning on prompt export without asking. It is the user's data, and sometimes their customers'.
- Committing the settings file. It holds the intake URL.
- Assuming it works. A session that started before the change exports nothing new.
Câu hỏi thường gặp
Prompt có được gửi mặc định không?
Không. Skill giữ tính năng xuất prompt tắt, trừ khi bạn đồng ý bật.
Codex có gửi chi tiết công cụ bất kể cài đặt prompt không?
Skill nói rằng Codex luôn xuất đối số của lệnh công cụ và kết quả đã cắt bớt, nên bạn cần biết điều này trước khi chọn.
Tôi có thể hỏi gì khi dữ liệu đã đến?
Bạn có thể hỏi phiên nào tốn nhiều chi phí nhất, hoặc agent đã chạy gì trong một khoảng thời gian nhất định.
Chi tiết
Mô tả gốc của tác giả
Stream coding-agent session telemetry (prompts, tool calls, model requests, tokens and cost) from Claude Code or Codex into Sazabi over OpenTelemetry, with privacy settings chosen on purpose. Use when the user wants observability for their coding agents or agent fleet, to track agent token usage or cost, to audit what agents ran, or to send agent telemetry to Sazabi.
repo: ParadevAI/Paradev
Độ phổ biến
- Sao GitHub
- 16k
- Vị trí xếp hạng
- #10845
- Giấy phép
- —
- Cập nhật
- 2/11/2026
Bình luận
- …
Thêm skill từ kho mã này
decide
16kHướng dẫn bạn từng quyết định về thiết kế hoặc code, mỗi lần một việc, có lựa chọn rõ ràng và khuyến nghị. Ghi lại mọi câu trả lời và đưa ra bản tóm tắt cuối.
mobile-demo-film
16kBiến video quay màn hình điện thoại thành video demo gọn gàng, có thẻ tiêu đề, khung điện thoại và thẻ kết thúc. Hợp với demo tính năng và clip ra mắt.
redesign
16kXem xét một thành phần giao diện và đề xuất cách sửa cụ thể về khoảng cách, độ tương phản, thứ bậc và bố cục. Cũng có thể áp dụng thay đổi.
superset-settings
16kCho phép agent xem và thay đổi cài đặt ứng dụng desktop Paradev, như giao diện, phông chữ và thông báo, từ dòng lệnh.
Skill tương tự
add-model-provider
394kGiúp agent của bạn kết nối nhà cung cấp mô hình AI mới với OpenClaw bằng lệnh an toàn, giữ API key khỏi văn bản thuần và chạy thử.
acp-router
394kGiúp agent của bạn gửi một tác vụ đến trợ lý lập trình như Claude Code hoặc Cursor qua OpenClaw, để công việc chạy ngay trong công cụ đó.
browser-automation
394kHướng dẫn agent của bạn điều khiển trang web từng bước, gồm đăng nhập, tab và cách khôi phục khi trang ngừng phản hồi.