trace-analysis

Analyze historical learning data to classify AI agent failure patterns.

Updated Apr 1, 2026
One-click install
npx skills add https://github.com/evanfang0054/agent-harness --skill trace-analysis-evanfang0054
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: trace-analysis
Source: https://github.com/evanfang0054/agent-harness/tree/main/skills/trace-analysis
Command: npx skills add https://github.com/evanfang0054/agent-harness --skill trace-analysis-evanfang0054

SYSTEM DOCUMENTATION & REQUIREMENTS

💡 This Skill includes scripts (resource) components.

What problem does it solve?

This Skill analyzes historical learning data to identify and address recurring failure patterns, enhancing the effectiveness of AI agents.

Core Features & Use Cases

  • Historical Learning Analysis: Analyzes .agent-harness/learnings.jsonl files to detect failure patterns.
  • Pattern Classification: Classifies failures into categories like loop, drift, oversight, etc.
  • Skill Improvement Recommendations: Recommends actions based on the analyzed patterns to improve agent performance.
  • Use Case: After an AI agent completes several tasks, use this Skill to review failure patterns and make adjustments to enhance future performance.

Quick Start

Run the trace analysis on the learnings from the current project using the command: bash "${CLAUDE_PLUGIN_ROOT}/scripts/trace-analyzer.sh" [project_root]

Frequently Asked Questions about trace-analysis

High-intent search queries and answers about installing and using this skill.

FAQPage Schema
How do I analyze historical learning data to identify AI agent failure patterns?

To analyze historical learning data for AI agent failure patterns, run the script-based trace analyzer against your project's learning logs to detect and classify recurring issues for targeted skill improvement.

What types of recurring failure patterns can be detected in AI agent performance?

AI agent performance failure patterns are classified into specific categories such as loop, drift, and oversight, allowing you to pinpoint exact behavioral issues and make targeted adjustments to enhance future tasks.

How do I run a trace analysis on learnings from my current AI agent project?

Run a trace analysis on current project learnings by executing the bash trace-analyzer script with your project root directory as the argument to process the historical learning data and output failure recommendations.

Can I use this trace analysis skill if my agent logs are not in JSONL format?

This trace analysis skill specifically parses the .agent-harness/learnings.jsonl file format to detect performance failure patterns, so JSONL formatted historical learning logs are required for proper analysis and classification.

What's the best way to improve AI agent performance after identifying failure patterns?

The best way to improve AI agent performance after identifying failure patterns is to apply the skill improvement recommendations generated by the trace analysis, which suggest targeted actions based on classified historical failures.

Why does my AI agent keep failing the same tasks and how can I review its history?

Your AI agent may be experiencing recurring failure patterns like loop or drift. Review its history by running a trace analysis on the learnings JSONL logs to classify failures and receive targeted skill improvement recommendations.