agenttrace-session-audit
Audit local AI coding-agent sessions with agenttrace for cost, tool failures, latency, anomalies, health, diffs, and CI gates.
Skill by z1439527767
Chalk Labs
Need help deploying agenttrace-session-audit?
Chalk Labs sets up agents like this inside real teams: connected to your tools, tested on your data, with a human in the loop where it matters.
Install
Works with Claude Code, Claude apps, Codex, Cursor, Gemini CLI, GitHub Copilot, VS Code, OpenCode, Goose, Windsurf. Read the repository before you give any tool access to your data.
npx agentmarket install skill/z1439527767-agenttrace-session-audit
Asks which of your tools to add it to (Claude Code, Codex, Cursor, VS Code, Windsurf, Gemini CLI, Claude Desktop) and shows the change first. See https://agentmart.dev/cli.
Get the weekly diff
The weekly diff: one email a week with new agent tools, notable updates and grade changes, plus security alerts for tools you follow. Double opt-in, one-click unsubscribe.
About
Use cases: devops, security, agent-building
Reviews
Write a reviewNo reviews yet. Installed it? Reviews come from verified installers only. How reviews work
Permissions: not checked yet.
What's inside
- Skill name
agenttrace-session-audit- Description
- Audit local AI coding-agent sessions with agenttrace for cost, tool failures, latency, anomalies, health, diffs, and CI gates.
- License
- MIT
- Instructions
- 144 lines in SKILL.md · view on GitHub
Files (1)
- SKILL.md
SKILL.md (first lines)
# agenttrace Session Audit ## Overview Use this skill to inspect local AI coding-agent sessions with [agenttrace](https://github.com/luoyuctl/agenttrace). It focuses on the process behind a run: token and cost spikes, tool failures, retry loops, latency gaps, anomalies, health scores, and session-to-session diffs. agenttrace is local-first and reads session logs from tools such as Claude Code, Claude CLI, Gemini CLI, Aider, Cursor exports, OpenCode, Qwen Code, Kimi, and generic JSON or JSONL traces. ## When to Use This Skill - Use when a user asks why an AI coding run was slow, expensive, shallow, or unreliable. - Use when reviewing local agent logs before retrying a failed or suspicious task. - Use when building a lightweight CI health gate for AI-assisted coding sessions. - Use when comparing two attempts and looking for changed tool paths, retries, or cost patterns. ## How It Works ### Step 1: Discover Available Sessions Prefer an installed `agenttrace` binary when it is available on `PATH`. If the current repository is `luoyuctl/agenttrace`, use `go run ./cmd/agenttrace` instead. ```bash agenttrace --doctor agenttrace --overview ``` If no sessions are detected, report the directories checked by `--doctor` and ask for the exported session file or log directory. ### Step 2: Produce a Human-Readable Audit Use Markdown when the user wants a concise report they can inspect or share. ```bash agenttrace --overview -f markdown -o agenttrace-overview.md ``` In the report, lead with the highest-risk sessions and explain why they matter: critical anomalies, repeated tool failures, token or cost waste, long latency gaps, low health scores, and suspiciously shallow sessions. ### Step 3: Inspect One Session or Directory Use the latest session for a quick check, or pass an explicit export path when the user provides one. ```bash agenttrace --latest agenttrace --latest -f json agenttrace path/to/session-or-export.json agenttrace --overview -d path/to/session-dir ``` ### Step 4: Compare Attempts When Semantics Matter Token and latency metrics can look healthy even when an agent confidently takes the wrong implementation path. When the risk is semantic drift, pair the trace audit with a diff against a previous or known-good attempt. Look for: - changed files or commands that diverge from the intended task - missing tests or verification steps compared with the reference attempt - repeated edits around the same files without a clear reason - lower cost that came from skipping necessary exploration ### Step 5: Add Automation Gates For CI or repeatable team workflows, use JSON output or health thresholds. ```bash agenttrace --overview -f json -o agenttrace-overview.json agenttrace --overview --fail-under-health 80 --fail-on-critical --max-tool-fail-rate 15 ``` Tune thresholds to the project. A strict gate is useful for critical workflows; a reporting-only command is better while the team is learning its baseline. ## Examples ### Quick Local Review ```bash agenttrace --overview agenttrace --latest ``` Use this after a long coding-agent run to decide whether the next prompt should split the task, avoid a failing tool path, add missing tests, or reset context. ### CI Health Check ```bash agenttrace --overview --fail-under-health 80 --fail-on-critical ``` Use this when agent session logs are available in CI and the team wants a simple guard against critical anomalies or unhealthy runs. ## Best Practices - Start with `--doctor` when session discovery is uncertain. - Report missing fields plainly; do not invent cost, model, latency, or health data. - Treat prompts, code, and session contents as private local data. - Prefer JSON output for automation and Markdown output for human review. - Use trace metrics for process failures and diff/reference review for semantic drift. ## Limitations - agenttrace can only analyze logs that are present locally or provided as exports. - Some agents do not expose enough fields to infer cost, model, cache use, or latency. - Healthy trace metrics do not prove the final code is correct; still run tests and review diffs.
From z1439527767/claude-config, MIT.
More from z1439527767/claude-config
- 0.467score
agentic-actions-auditor
z1439527767
Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Claude, and GitHub AI…
SkillCFreshness: CClaude Code +9 - 0.467score
audit-skills
z1439527767
Expert security auditor for AI Skills and Bundles.
SkillCFreshness: CClaude Code +9 - 0.467score
auto-learn
z1439527767
Autonomous web-based self-learning engine.
SkillCFreshness: CClaude Code +9 - 0.464score
context7-proactive
z1439527767
Proactive documentation lookup via Context7 MCP.
SkillCFreshness: CClaude Code +9 - 0.458score
autonomous-agent-patterns
z1439527767
Design patterns for building autonomous coding agents, inspired by [Cline](https://github.com/cline/cline) and [OpenAI…
SkillCFreshness: CClaude Code +9 - 0.247score
brain-intuition
z1439527767
No description from the publisher yet.
SkillCFreshness: CClaude Code +9 - 0.247score
brain-consolidate
z1439527767
No description from the publisher yet.
SkillCFreshness: CClaude Code +9 - 0.247score
brain-self-model
z1439527767
No description from the publisher yet.
SkillCFreshness: CClaude Code +9 - 0.247score
brain-curiosity
z1439527767
No description from the publisher yet.
SkillCFreshness: CClaude Code +9 - 0.247score
brain-dreams
z1439527767
No description from the publisher yet.
SkillCFreshness: CClaude Code +9 - 0.247score
brain-emotion
z1439527767
No description from the publisher yet.
SkillCFreshness: CClaude Code +9 - 0.247score
brain-heartbeat
z1439527767
No description from the publisher yet.
SkillCFreshness: CClaude Code +9
Signals
- Stars
- 0
- Forks
- 0
- Open issues
- 0
- Last commit (this folder)
- Jun 26, 2026 (4 months ago)
From GitHub (fetched Oct 24, 2026).
Details
- License
- MIT
- Repository
- github.com/z1439527767/claude-config
- First seen
- Oct 24, 2026
- Last checked
- Oct 24, 2026
- Source
- GitHubgithub-graphql
Same skill elsewhere
Copies of this SKILL.md published by others; search shows only one of them.
- 0.658score
agenttrace-session-audit
sickn33
Audit local AI coding-agent sessions with agenttrace for cost, tool failures, latency, anomalies, health, diffs, and CI gates.
SkillAFreshness: A★ 48.4KClaude Code +9 - 0.337score
agenttrace-session-audit
plurano
Audit local AI coding-agent sessions with agenttrace for cost, tool failures, latency, anomalies, health, diffs, and CI gates.
SkillAFreshness: AClaude Code +9
More from z1439527767
- 0.467score
agentic-actions-auditor
z1439527767
Audits GitHub Actions workflows for security vulnerabilities in AI agent integrations including Claude Code Action, Gemini CLI, OpenAI Claude, and GitHub AI…
SkillCFreshness: CClaude Code +9 - 0.467score
audit-skills
z1439527767
Expert security auditor for AI Skills and Bundles.
SkillCFreshness: CClaude Code +9 - 0.467score
auto-learn
z1439527767
Autonomous web-based self-learning engine.
SkillCFreshness: CClaude Code +9 - 0.464score
context7-proactive
z1439527767
Proactive documentation lookup via Context7 MCP.
SkillCFreshness: CClaude Code +9 - 0.458score
autonomous-agent-patterns
z1439527767
Design patterns for building autonomous coding agents, inspired by [Cline](https://github.com/cline/cline) and [OpenAI…
SkillCFreshness: CClaude Code +9
Done for you
Rather not set it up yourself?
Chalk Labs scopes, builds and runs agents for your team: the task audit, the eval harness, the integrations and the weekly ops report. Fixed scope, priced before we start.
See how we build AI agents →Read the case studies
Chalk Labs is a two-founder AI and growth studio. We build AI agents, CRMs and MVPs for Web3 and AI companies, and have shipped 50+ product and token launches.
- launches shipped
- 50+
- launches shipped
- media placements
- 500+
- media placements
- founders on every account
- 2
- founders on every account
Press we've placed: Forbes · CoinDesk · Decrypt · Cointelegraph · The Block
Rahil Jain, Co-founder, Chalk Labs. Ex-Goldman Sachs engineer. You talk to the person who builds it.
Get agenttrace-session-audit running in your business
Tell us what you want to automate. A founder replies within one working day with a plan, not a pitch deck.
Cite this page
agenttrace-session-audit skill. Agent Mart. https://agentmart.dev/skills/z1439527767-agenttrace-session-audit (last updated 2026-10-24)