Skip to content

docs(ecosystem): add opencode-langsmith-tracing plugin#23609

Closed
Dramalf wants to merge 5 commits into
anomalyco:devfrom
Dramalf:patch-2
Closed

docs(ecosystem): add opencode-langsmith-tracing plugin#23609
Dramalf wants to merge 5 commits into
anomalyco:devfrom
Dramalf:patch-2

Conversation

@Dramalf
Copy link
Copy Markdown

@Dramalf Dramalf commented Apr 21, 2026

Issue for this PR

Closes #20168

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Adds the plugin opencode-langsmith-tracing to the Plugins table.

It streams the OpenCode session — conversation turns, individual LLM calls (including the continuation step after a tool call), tool invocations, reasoning blocks, token / cost accounting, and context compaction — into a LangSmith project as a single nested trace. The shape mirrors langsmith-claude-code-plugins on purpose, so people who already have LangSmith dashboards or evaluators built for Claude Code don't have to redo them.

How did you verify your code works?

Been running it locally on OpenCode 1.4.11 for the past few days against a LangSmith deployment. Things I specifically checked:

  • Single-turn replies (a plain "hi") show up as one Turn → one Assistant LLM run.
  • Tool-using turns (e.g. asking for a directory listing → model calls bash ls → continues with a written answer) come through as Turn → Assistant step 1 → bash tool → Assistant step 2, with the second step's text and tokens captured.
  • Token usage, cost, and reasoning blocks land on the right runs.
  • Interrupting a turn mid-response closes the trace as error: "Interrupted" instead of leaving it open.

For this PR specifically: it's a single line in a markdown table. I previewed the rendered docs locally (bun dev in packages/web) to make sure the table still parses.

Screenshots / recordings

A screenshot from Langsmith tracing page
image

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

@Dramalf
Copy link
Copy Markdown
Author

Dramalf commented May 7, 2026

The work is done and tested

@github-actions
Copy link
Copy Markdown
Contributor

Automated PR Cleanup

Thank you for contributing to opencode.

Due to the high volume of PRs from users and AI agents, we periodically close older PRs using automated criteria so maintainers can focus review time on the most active and community-supported contributions.

This PR was closed because it matched the following cleanup criteria:

  • The PR was created more than 1 month ago
  • The PR had fewer than 2 positive reactions
  • Positive reactions are counted as thumbs-up, heart, celebration, or rocket reactions on the PR

PRs created within the last month are not affected by this cleanup.

If you believe this PR was closed incorrectly, or if you are still actively working on it, please leave a comment explaining why it should be reopened. A maintainer can review and reopen it if appropriate.

Thanks again for taking the time to contribute.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

[FEATURE] Add real-time call trace visualization for debugging multi-agent workflows

1 participant