Skip to content

feat: Opik 2.0 E2E integration — close 19 gaps#2

Draft
juanferrub wants to merge 1 commit intomainfrom
feat/opik-2.0-e2e-integration
Draft

feat: Opik 2.0 E2E integration — close 19 gaps#2
juanferrub wants to merge 1 commit intomainfrom
feat/opik-2.0-e2e-integration

Conversation

@juanferrub
Copy link
Copy Markdown

@juanferrub juanferrub commented Mar 24, 2026

Summary

Update the opik-claude-code-plugin (v0.1.0 → v0.2.0) to fully support Opik 2.0. Closes all 19 gaps identified in the E2E journey test plan.

What changed

  • /opik:instrument enhanced — now extracts config into AgentConfig dataclass, adds entrypoint=True with docstrings, and wires thread_id for conversational agents
  • 2 new commands: /opik:connect (Local Runner pairing), /opik:create-eval-suite (evaluation suite generator)
  • 6 new skills: instrument-python, instrument-typescript, agent-config, evaluation-suites, opik-connect, threads-conversations
  • Go binary updated — blueprint_id metadata, cost estimation per LLM span, turn counting per session, subagent span type fix
  • Existing skills updatedagent-ops and opik now cover Opik 2.0 APIs (AgentConfig, Blueprints, Evaluation Suites, thread_id)

Files changed (22 files, +1676/-71 lines)

Area Files Changes
Go binary src/main.go, api.go, config.go, state.go Blueprint ID, cost estimation, turn count, span type fix
Commands instrument.md, connect.md (new), create-eval-suite.md (new) Config extraction, entrypoint, thread_id, Local Runner, eval suites
Skills 6 new + 2 updated Full Opik 2.0 SDK coverage
Plugin plugin.json v0.2.0 bump

Testing

Tested E2E on a demo customer support chat agent:

  1. /opik:instrument agent.py — correctly detected OpenAI, extracted config, added entrypoint, wired thread_id
  2. Traces visible in local Opik instance with proper spans and thread grouping

References

🤖 Generated with Claude Code

…d_id, new commands & skills

Closes 19 gaps identified in the Opik 2.0 E2E journey test plan.

Key changes:
- /opik:instrument now extracts config into AgentConfig dataclass, adds entrypoint=True, and wires thread_id for chat agents
- New commands: /opik:connect (Local Runner pairing) and /opik:create-eval-suite
- 6 new skills: instrument-python, instrument-typescript, agent-config, evaluation-suites, opik-connect, threads-conversations
- Go binary: blueprint_id metadata, cost estimation per LLM span, turn counting, subagent span type fix
- Updated agent-ops and opik skills with Opik 2.0 content

Notion: https://www.notion.so/cometml/Claude-Code-Plugin-Opik-2-0-E2E-Journey-Test-Plan-Implementation-32c7124010a381f6be0edff5b6ac3939
Jira: OPIK-5210

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant