Agent Skillslangwatch/langwatch › langwatch

langwatch

GitHub

通过 langwatch CLI 读取 LLM 生产环境追踪数据,用于调试失败或缓慢的模型调用、查询会话详情及验证代码活动捕获。

plugins/langwatch/skills/langwatch/SKILL.md langwatch/langwatch

Trigger Scenarios

调试失败的 LLM 运行 排查缓慢的 LLM 调用 查询特定 ID 的追踪或会话 检查编码会话的活动是否被捕获

Install

npx skills add langwatch/langwatch --skill langwatch -g -y
More Options

Non-standard path

npx skills add https://github.com/langwatch/langwatch/tree/main/plugins/langwatch/skills/langwatch -g -y

Use without installing

npx skills use langwatch/langwatch@langwatch

指定 Agent (Claude Code)

npx skills add langwatch/langwatch --skill langwatch -a claude-code -g -y

安装 repo 全部 skill

npx skills add langwatch/langwatch --all -g -y

预览 repo 内 skill

npx skills add langwatch/langwatch --list

SKILL.md

Frontmatter
{
    "name": "langwatch",
    "description": "Read LLM traces back from LangWatch with the langwatch CLI. Use when asked what an agent, prompt or model call actually did in production, when debugging a failed or slow LLM run, when looking up a trace or session by id, or when checking whether this coding session's own activity was captured."
}

LangWatch from a coding session

LangWatch stores the traces your application and your coding agent emit. The langwatch CLI reads them back. Every lookup below is read-only; the one command that writes anything is langwatch login, which stores credentials on this machine.

Check the CLI is there and signed in

langwatch --version
langwatch whoami

whoami prints the identity langwatch login persisted. If it reports nobody, run langwatch login and let the user complete it in the browser. Do not guess credentials.

Find a trace

Search the last 24 hours by default. Widen with --start-date / --end-date.

langwatch trace search -q "checkout agent" --limit 10 -o json

Useful flags: --limit <n>, --origin <origins> (comma-separated, e.g. application,evaluation,simulation).

Read one trace

langwatch trace get <traceId> -o json

For a coding-agent trace, the transcript is the readable form: what the agent did, in order.

langwatch trace transcript <traceId>

Add -o json to either when you want to parse the result rather than read it.

Read one coding-agent session

langwatch session events <sessionId>

Lists the session's model calls, compactions, rate limits and tool runs in time order. --kinds model_call,compaction narrows it.

How sessions get captured

langwatch ingest hook <tool> is the command a coding agent runs at the start and end of a session. It reports the repository, branch and worktree the session is working in, so the agent's traces can be joined to the code they touched. This plugin's hooks run that command from the installed langwatch CLI, so the capture needs the CLI installed and signed in, and a hook fix arrives with the next CLI release.

Nothing here sends the user's code anywhere. The hook reports repository identity, not file contents.

When a command fails

Read the error. A missing trace id, an expired session and a self-hosted endpoint the CLI was never pointed at all fail differently, and the CLI says which. Do not retry a failed read in a loop.

Version History

  • c106e86 Current 2026-09-22 23:38

    优化插件机制,从捆绑钩子改为运行已安装的 CLI,增强版本兼容性并修复测试环境问题。

  • 12615f1 2026-08-20 10:00

Same Skill Collection

.claude/skills/browser-pair/SKILL.md
.claude/skills/browser-test/SKILL.md
.claude/skills/code-review/SKILL.md
.claude/skills/feature-map/SKILL.md
.claude/skills/haven-setup/SKILL.md
.claude/skills/langwatch-kanban/SKILL.md
services/langy-agent/skills/github/SKILL.md
skills/_compiled/native/agent-best-practices/SKILL.md
skills/_compiled/native/agent-performance/SKILL.md
skills/_compiled/native/code-changes/SKILL.md
skills/_compiled/native/context-sweet-spot/SKILL.md
skills/_compiled/native/dashboard-widgets/SKILL.md
skills/_compiled/native/datasets/SKILL.md
skills/_compiled/native/debug-instrumentation/SKILL.md
skills/_compiled/native/debug-with-langwatch/SKILL.md
skills/_compiled/native/drive-the-ui/SKILL.md
skills/_compiled/native/eval-triage/SKILL.md
skills/_compiled/native/evaluate-multimodal/SKILL.md
skills/_compiled/native/evaluations/SKILL.md
skills/_compiled/native/experiments/SKILL.md
skills/_compiled/native/find-traces/SKILL.md
skills/_compiled/native/generate-rag-dataset/SKILL.md
skills/_compiled/native/github/SKILL.md
skills/_compiled/native/guided-onboarding/SKILL.md
skills/_compiled/native/level-up/SKILL.md
skills/_compiled/native/lwql-charts/SKILL.md
skills/_compiled/native/online-evaluations/SKILL.md
skills/_compiled/native/prompt-optimization/SKILL.md
skills/_compiled/native/prompts/SKILL.md
skills/_compiled/native/provider-cost-comparison/SKILL.md
skills/_compiled/native/setup-lw/SKILL.md
skills/_compiled/native/test-cli-usability/SKILL.md
skills/_compiled/native/test-compliance/SKILL.md
skills/_compiled/native/tracing/SKILL.md
skills/_compiled/native/connect-agent/SKILL.md
skills/_compiled/native/scenarios/SKILL.md

Metadata

Files
0
Version
c106e86
Hash
30ed7883
Indexed
2026-08-20 10:00

trang chủ - Wiki
Copyright © 2011-2026 iteam. Current version is 2.155.2. UTC+08:00, 2026-09-23 20:50
浙ICP备14020137号-1