• v2.4.0 4aae61297f

    v2.4.0 Stable

    nntrivi2001 released this 2026-10-06 10:14:24 +00:00 | 87 commits to main since this release

    AgentHub 2.4.0 brings a much deeper Analytics: cost per AI tool, date ranges, spend budgets, a Query Explorer, scheduled reports, session replay and shareable snapshots, plus Cursor sessions, an MCP server, a statusline and Grafana boards.

    English

    Analytics

    • Date range. Analytics, its cost cards and the Workflow tab take a range: Today, This week (from Monday), This month (from the 1st), the last 7 / 30 / 90 days, All, or Custom.
    • Cost by AI tool. Pick one AI tool for every Analytics tab, and see a Cost by AI tool card. The Analytics total now matches the pricing total exactly.
    • Codex service tiers. Codex turns on the fast/priority tier are priced at priority rates, flex turns at half price.
    • Query Explorer (sidebar, under Sessions). Filter and sort sessions, events or agents, then export the result as CSV or JSON.
    • Scheduled reports (Settings → Reports). Daily or weekly HTML/JSON reports, saved under the data directory.

    Budgets and alerts

    • Spend budgets. A daily, weekly or monthly limit, for everything or for one AI tool, that alerts at your thresholds (80% / 100% by default) once per period. Create them with the other alert rules in Settings → Notifications. The status bar shows a budget that has crossed a threshold.
    • Cost alerts per session, and a Preview button that shows what a rule would have fired over recent history without saving it.
    • Spend pace card on Analytics → Cost: this month so far, carried to its end.

    Sessions

    • Replay tab on a session's page: scrub, play and step through its events.
    • Snapshots. Freeze a session into a read-only link (/snapshot/…), optionally hiding file paths. Manage them in Settings → Snapshots.

    Data sources and privacy

    • Cursor sessions appear in the dashboard (no cost: Cursor's transcripts record no tokens).
    • Remote Codex. A remote machine can also send its Codex history.
    • Push ingest (Settings → Data). Machines the dashboard cannot reach over SSH can push their hooks with a token.
    • Privacy (Settings → Data, both off by default). Redact secrets from new event data, and ignore folders whose sessions should not be recorded.

    Extras

    • agenthub mcp: a read-only MCP server for Claude Code and other clients.
    • agenthub statusline install: model, branch, context, session and today in Claude Code's status line.
    • Grafana dashboards and Prometheus rules in monitoring/.

    Also

    • The sidebar can be resized by dragging its edge (double-click resets it).
    • The pet runs when dragged and waves when hovered.
    • A half-typed prompt on a workspace home is kept when you leave.
    • For contributors: the pre-commit hook runs only the related tests for a small commit.

    Upgrading: the first start adds four tables and two columns and rebuilds the alert-rules table. Existing data and rules are kept. Going back to an older version afterwards is not supported.

    Tiếng Việt

    Analytics

    • Khoảng thời gian. Analytics, các card chi phí và tab Workflow lọc được theo: Hôm nay, Tuần này (từ thứ 2), Tháng này (từ ngày 1), 7 / 30 / 90 ngày qua, Toàn bộ hoặc Tùy chọn.
    • Chi phí theo AI tool. Chọn một AI tool cho mọi tab Analytics, kèm card Cost by AI tool. Tổng chi phí trên Analytics giờ khớp đúng với trang Pricing.
    • Gói dịch vụ của Codex. Lượt Codex ở gói fast/priority tính theo giá priority, gói flex tính nửa giá.
    • Query Explorer (thanh bên, dưới Sessions). Lọc, sắp xếp session, event hoặc agent rồi xuất ra CSV hoặc JSON.
    • Báo cáo định kỳ (Settings → Reports). Báo cáo HTML/JSON hằng ngày hoặc hằng tuần, lưu trong thư mục dữ liệu.

    Ngân sách và cảnh báo

    • Ngân sách chi tiêu. Giới hạn theo ngày, tuần hoặc tháng, cho tất cả hoặc cho một AI tool, cảnh báo khi chạm ngưỡng (mặc định 80% / 100%), mỗi ngưỡng một lần mỗi kỳ. Tạo cùng các alert rule khác trong Settings → Notifications. Status bar hiện ngân sách đã vượt ngưỡng.
    • Cảnh báo chi phí theo session, và nút Preview cho xem một rule lẽ ra đã báo những gì trong thời gian gần đây mà không cần lưu.
    • Card Nhịp chi tiêu trong Analytics → Cost: chi tiêu tháng này đến hiện tại, ước tính tới cuối tháng.

    Session

    • Tab Replay trên trang session: tua, phát và đi từng bước qua các event.
    • Snapshot. Đóng băng một session thành link chỉ đọc (/snapshot/…), có thể ẩn đường dẫn file. Quản lý trong Settings → Snapshots.

    Nguồn dữ liệu và quyền riêng tư

    • Session của Cursor hiện trên dashboard (không có chi phí, vì transcript của Cursor không ghi token).
    • Codex từ máy remote. Máy remote có thể gửi cả lịch sử Codex.
    • Push ingest (Settings → Data). Máy mà dashboard không SSH tới được có thể đẩy hook lên bằng token.
    • Quyền riêng tư (Settings → Data, cả hai tắt mặc định). Che secret trong dữ liệu event mới, và bỏ qua các thư mục không muốn ghi lại session.

    Thêm

    • agenthub mcp: MCP server chỉ đọc cho Claude Code và các client khác.
    • agenthub statusline install: model, branch, context, chi phí session và hôm nay trên status line của Claude Code.
    • Dashboard Grafana và rule Prometheus trong monitoring/.

    Khác

    • Kéo mép sidebar để đổi độ rộng (nhấp đúp để đặt lại).
    • Thú cưng chạy khi bị kéo và vẫy tay khi rê chuột vào.
    • Prompt đang gõ dở ở trang chủ workspace được giữ lại khi rời trang.
    • Cho người đóng góp: pre-commit hook chỉ chạy các test liên quan với commit nhỏ.

    Khi nâng cấp: lần khởi động đầu thêm bốn bảng, hai cột và dựng lại bảng alert rule. Dữ liệu và rule hiện có được giữ nguyên. Không hỗ trợ quay lại bản cũ sau đó.

    Downloads