instrument-existing-agent-with-prefactor-sdk
OfficialAdd Prefactor tracing to an existing agent.
Authorprefactordev
Version1.0.0
Installs0
System Documentation
What problem does it solve?
Use when an existing agent already works without Prefactor and you need to add tracing for runs, llm calls, tool calls, and failures with minimal behavior changes.
Core Features & Use Cases
- Instrument boundaries, not business logic.
- Add a top-level run span and child spans around LLM/tool boundaries.
- Preserve context propagation and ensure proper finish paths for success and error cases.
- Capture error metadata and rethrow original errors.
Quick Start
Bootstrap Prefactor resources, install dependencies, and begin instrumenting the agent by wrapping run/llm/tool boundaries with the appropriate adapter.
Dependency Matrix
Required Modules
None requiredComponents
references
💻 Claude Code Installation
Recommended: Let Claude install automatically. Simply copy and paste the text below to Claude Code.
Please help me install this Skill: Name: instrument-existing-agent-with-prefactor-sdk Download link: https://github.com/prefactordev/typescript-sdk/archive/main.zip#instrument-existing-agent-with-prefactor-sdk Please download this .zip file, extract it, and install it in the .claude/skills/ directory.
Agent Skills Search Helper
Install a tiny helper to your Agent, search and equip skill from 510,000+ vetted skills library on demand.