luoyuctl/agenttrace: Rust TUI/CLI for AI Agent Audits

Product Overview

agenttrace is a local-first terminal-based user interface (TUI) and report generator designed for auditing AI coding-agent sessions. This tool effectively tracks session history, costs, tokens, time, and identifies slow-running tasks by analyzing the logs generated by various AI coding agents including Claude Code, Codex CLI, and others. It serves primarily to help users understand the resource expenditure of their AI agents and diagnose performance issues.

Functionality and Features

The agenttrace tool operates with a simple command-line interface that allows users to either launch a TUI or generate CLI reports. It provides a comprehensive overview of costs accrued by multiple agents and highlights sessions that are costly or slow. Its main features include:

  • Cost Tracking: Users can analyze spending by comparing historical sessions across various parameters such as agent source, model, and token usage.
  • Performance Diagnosis: It helps identify long gaps, retry loops, and large parameter calls that may cause task delays.
  • Session Comparison: Allows users to compare performance against a local baseline and evaluate whether previous runs have regressed.
  • Data Privacy: All operations occur locally, ensuring that sensitive prompts, code, and logs do not leave the user’s machine.

How It Works

agenttrace processes the logs generated by AI coding agents and delivers actionable insights. The user can invoke specific commands to assess session details, audit costs, or categorize sessions based on multiple criteria, such as cost and duration.

Target Audience

This tool is ideal for developers and AI practitioners who utilize multiple coding agents and wish to optimize performance and expenditure. Its local execution ensures that it is suited for users concerned with data privacy.

Installation and Requirements

agenttrace can be installed on macOS, Linux, and Windows platforms using curl or PowerShell commands. For package management, it’s available through Homebrew and npm. Installation scripts verify the release binary against published checksums, ensuring security and integrity.

Limitations

While agenttrace provides valuable insights, it does not process external data; thus, performance issues stemming from external service failures might not be reflected in its diagnostics. Users are responsible for ensuring that the logs are correctly formatted and accessible for accurate auditing.

Source: github.com

Related Articles

The surge of public records requests, particularly driven by artificial intelligence (AI), is straining America’s open records systems. Companies such...
Overview of FigureLabs FigureLabs is an AI-powered tool designed to assist researchers in creating clear and informative...
Introduction Setting up light and dark mode in a Next.js project using the shadcn/ui framework is largely automated. This guide walks...