inspect-agent-run-with-prefactor-cli

Analyze Prefactor span data to identify root causes of agent-run issues.

3|Updated Jan 20, 2026
One-click install
npx skills add https://github.com/prefactordev/typescript-sdk --skill inspect-agent-run-with-prefactor-cli
Or copy as Structured Prompt for Agent
Please help me install this Agent Skill.
Skill: inspect-agent-run-with-prefactor-cli
Source: https://github.com/prefactordev/typescript-sdk/tree/main/skills/inspect-agent-run-with-prefactor-cli
Command: npx skills add https://github.com/prefactordev/typescript-sdk --skill inspect-agent-run-with-prefactor-cli

SYSTEM DOCUMENTATION & REQUIREMENTS

What problem does it solve?

Root-cause analysis of Prefactor agent runs by inspecting span data and local code references to determine why a run produced unexpected results, high costs, or incomplete work without prescribing fixes.

Core Features & Use Cases

  • Build evidence-backed findings reports from Prefactor span data, including triggers, timelines, and potential root causes.
  • Correlate spans with local source code and prompts to identify where behavior diverged from expected outcomes.
  • Support safe post-mortem analysis by focusing on data and observations rather than prescribing remediation.

Quick Start

Provide the agent repository path, agent ID, and agent instance ID to generate a findings report for the specified run.

Frequently Asked Questions about inspect-agent-run-with-prefactor-cli

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

FAQPage Schema
How do I perform root-cause analysis on a Prefactor agent run?

To perform root-cause analysis on a Prefactor agent run, provide the agent repository path, agent ID, and agent instance ID. The Skill correlates span data with local source code to build a structured findings report.

Why did my agent run produce unexpected results or high costs?

Agent runs producing unexpected results or high costs are diagnosed by inspecting Prefactor span data. The Skill correlates spans with repository context to identify triggers and pinpoint where behavior diverged from expected outcomes.

What do I need to generate a post-mortem findings report for agent spans?

To generate a post-mortem findings report for agent spans, you need access to the agent's local repository, Prefactor CLI, and the specific span data. This context allows correlation of traces with source code locations.

Can I use span analysis to fix failing Prefactor agent runs?

Span analysis identifies the root causes of agent-run issues but does not prescribe fixes. It supports safe post-mortem analysis by focusing on evidence-backed observations, timelines, and source locations rather than remediation.

Does Prefactor CLI tracing work with local source code references?

Prefactor CLI tracing works with local source code references by correlating span data with the agent's repository context. This process maps timeline events to specific prompts and source locations to identify behavioral divergence.

What is span analysis for Prefactor agent instances?

Span analysis for Prefactor agent instances is the process of inspecting execution traces to understand run issues. It builds evidence-backed findings reports by correlating timeline events with local code references to determine root causes.