You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: CLAUDE.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -51,7 +51,7 @@ PYTHONPATH=src uv run context-profiler analyze tests/fixtures/cursor_transcript.
51
51
52
52
## Product Boundaries
53
53
54
-
Do not add provider-specific fetch clients to core. Agents can use Langfuse CLI, SDKs, Hugging Face tooling, or local transcript discovery to obtain data, then pass files or stdin to `context-profiler`.
54
+
Do not add provider-specific fetch clients to core. Agents can use Langfuse public API exports via `curl`, SDKs, Hugging Face tooling, or local transcript discovery to obtain data, then pass files or stdin to `context-profiler`. Prefer direct Langfuse public API exports over `langfuse-cli` for trace analysis because the CLI can omit fields needed for nested observations and generations.
55
55
56
56
Do not make Toolathlon a first-class multi-turn demo. Prefer genuinely multi-turn datasets such as `pagarsky/agent-trace`, `cx-cmu/agent_trajectories`, and SWE-agent trajectories for future research examples.
If validation fails, the JSON response includes `errors[].agent_action` and `next_steps` so the agent can convert the trace into `ContextTrace`.
@@ -139,7 +151,7 @@ If validation fails, the JSON response includes `errors[].agent_action` and `nex
139
151
140
152
This repository ships an `analyze-agent-context` skill for Cursor, Claude Code, and other Agent Skills / Open Plugins compatible tools.
141
153
142
-
The skill does not make `context-profiler` fetch traces itself. It teaches agents to use Langfuse tooling to fetch Langfuse trace ids, then route the fetched JSON into `context-profiler` for diagnosis whenever the user asks to analyze a trace, loop, transcript, agent run, context growth, stale context, or tool bloat.
154
+
The skill does not make `context-profiler` fetch traces itself. It teaches agents to fetch Langfuse trace ids with the Langfuse public API via `curl`, then route the fetched JSON into `context-profiler` for diagnosis whenever the user asks to analyze a trace, loop, transcript, agent run, context growth, stale context, or tool bloat. It intentionally avoids `langfuse-cli` for trace fetching because the CLI may omit fields needed for complete analysis.
`context-profiler` does not fetch Langfuse data. Use Langfuse's own CLI/API or any other tool to obtain the trace first.
76
+
`context-profiler` does not fetch Langfuse data. Use the Langfuse public API via `curl`or another external tool to obtain the trace first. Prefer the public API for complete trace analysis because CLI output can omit fields needed to inspect nested observations and generations.
Copy file name to clipboardExpand all lines: skills/analyze-agent-context/SKILL.md
+1-1Lines changed: 1 addition & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
---
2
2
name: analyze-agent-context
3
-
description: Analyze LLM agent traces, loops, transcripts, Langfuse exports, OpenTelemetry spans, or raw provider requests with context-profiler. Use when the user asks to analyze/debug/explain a trace, agent run, context growth, stale context, tool bloat, or a recently fetched trace from another CLI.
3
+
description: Analyze LLM agent traces, loops, transcripts, Langfuse exports, OpenTelemetry spans, or raw provider requests with context-profiler. Use when the user asks to analyze/debug/explain a trace, agent run, context growth, stale context, tool bloat, or recently fetched trace JSON.
common_sources=["Langfuse UI export", "Langfuse public API"],
73
73
analysis_scope=[
74
74
"Per-generation context growth",
75
75
"Visible generation input messages",
76
76
"Tool input/output if captured in generation inputs",
77
77
],
78
78
limitations=["Only GENERATION observations with analyzable input content are profiled in the current adapter."],
79
-
agent_conversion_guidance="Use langfuse-cli or API to fetch traces/observations, then pass the exported trace JSON directly.",
79
+
agent_conversion_guidance="Use the Langfuse public API via curl to fetch traces/observations, then pass the exported trace JSON directly. Avoid langfuse-cli for trace analysis because it may omit nested observation or generation fields.",
80
80
notes=["Current adapter extracts generation inputs and delegates to OpenAI parsing."],
0 commit comments