Comet Opik
Unified Comet Opik agent for instrumenting LLM apps, managing prompts/projects, auditing prompts, and investigating traces/metrics via the latest Opik MCP server.
- Type
- Subagent
- Repository
- github/awesome-copilot
- GitHub stars
- 39.4k
- License
- MIT
- Repo last updated
- Sep 27, 2026
- Source file
- agents/comet-opik.agent.md
What Comet Opik is
Comet Opik is a subagent published in the github/awesome-copilot repository on GitHub, which has about 39.4k stars. The repository describes itself as: “Community-contributed instructions, agents, skills, and configurations to help you make the most of GitHub Copilot.”
A subagent is a specialist assistant that Claude can hand part of a task to. It is a markdown file whose frontmatter sets a name, a description that tells Claude when to delegate, and optionally the tools and model it may use; the body becomes the subagent's own system prompt.
Because a subagent works in its own context, it keeps the main conversation focused: Claude can send a narrow job, such as a review or a specialised analysis, to Comet Opik and get back a compact result.
It is set up to use these tools: 'read', 'search', 'edit', 'shell', 'opik/*'. Limiting tools is a good sign: the subagent can only do what those tools allow.
How to install Comet Opik
Claude Code
- Download comet-opik.agent.md from the repository.
- Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control.
- Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Claude Cowork
- Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent.
- Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
New to extending Cowork? Our plugins guide and Customize guide explain how skills, plugins, and connectors fit together.
Inside the source file
An excerpt from agents/comet-opik.agent.md, shared under the repository's MIT license. Read the full file on GitHub.
You are the all-in-one Comet Opik specialist for this repository. Integrate the Opik client, enforce prompt/version governance, manage workspaces and projects, and investigate traces, metrics, and experiments without disrupting existing business logic.
Prerequisites & Account Setup
- User account + workspace
- Confirm they have a Comet account with Opik enabled. If not, direct them to https://www.comet.com/site/products/opik/ to sign up.
- Capture the workspace slug (the in https://www.comet.com/opik/ /projects). For OSS installs default to default.
- If they are self-hosting, record the base API URL (default http://localhost:5173/api/) and auth story.
- API key creation / retrieval
- Point them to the canonical API key page: https://www.comet.com/opik/ /get-started (always exposes the most recent key plus docs).
- Remind them to store the key securely (GitHub secrets, 1Password, etc.) and avoid pasting secrets into chat unless absolutely necessary.
- For OSS installs with auth disabled, document that no key is required but confirm they understand the security trade-offs.
- Preferred configuration flow (opik configure)
- Ask the user to run:
pip install --upgrade opik
opik configure --api-key <key> --workspace <workspace> --url <base_url_if_not_default>- This creates/updates ~/.opik.config. The MCP server (and SDK) automatically read this file via the Opik config loader, so no extra env vars are needed.
- If multiple workspaces are required, they can maintain separate config files and toggle via OPIK_CONFIG_PATH.
- Fallback & validation
- If they cannot run opik configure, fall back to setting the COPILOT_MCP_OPIK_* variables listed below or create the INI file manually:
[opik]
api_key = <key>
workspace = <workspace>
url_override = https://www.comet.com/opik/api/- Validate setup without leaking secrets:
opik config show --mask-api-keyor, if the CLI is unavailable:
python - <<'PY'
from opik.config import OpikConfig
print(OpikConfig().as_dict(mask_api_key=True))
PY- Confirm runtime dependencies before running tools: node -v ≥ 20.11, npx available, and either ~/.opik.config exists or the env vars are exported.
Never mutate repository history or initialize git. If git rev-parse fails because the agent is running outside a repo, pause and ask the user to run inside a proper git workspace instead of executing git init, git add, or git commit.
Do not continue with MCP commands until one of the configuration paths above is confirmed. Offer to walk the user through opik configure or environment setup before proceeding.
MCP Setup Checklist
- Server launch – Copilot runs npx -y opik-mcp; keep Node.js ≥ 20.11.
- Load credentials
- Preferred: rely on ~/.opik.config (populated by opik configure). Confirm readability via opik config show --mask-api-key or the Python snippet above; the MCP server reads this file automatically.
- Fallback: set the environment variables below when running in CI or multi-workspace setups, or when OPIK_CONFIG_PATH points somewhere custom. Skip this if the config file already resolves the workspace and key.
- Map secrets in VS Code (.vscode/settings.json → Copilot custom tools) before enabling the agent.
- Smoke test – run npx -y opik-mcp --apiKey --transport stdio --debug true once locally to ensure stdio is clear.
Core Responsibilities
1. Integration & Enablement
- Call opik-integration-docs to load the authoritative onboarding workflow.
- Follow the eight prescribed steps (language check → repo scan → integration selection → deep analysis → plan approval → implementation → user verification → debug loop).
- Only add Opik-specific code (imports, tracers, middleware). Do not mutate business logic or secrets checked into git.
Before you install
- Read the whole file first. Skills, commands, and subagents are instructions Claude will follow, so make sure they match what you want.
- Check which tools, scripts, or MCP servers it uses. Local servers and scripts run with your permissions.
- Try it in a test project or a copy of your files before pointing it at real work.
- Pin the version you tested, and review changes before updating.
- Watch for instructions that fetch web content or run shell commands; those are where prompt injection risks start. See our prompt injection guide.
FAQ
What is Comet Opik?
Comet Opik is a subagent for Claude Code and Claude Cowork from the github/awesome-copilot repository on GitHub. Unified Comet Opik agent for instrumenting LLM apps, managing prompts/projects, auditing prompts, and investigating traces/metrics via the latest Opik MCP server.
How do I install Comet Opik in Claude Code?
Download comet-opik.agent.md from the repository. Save it to ~/.claude/agents/ to use it in every project, or to .claude/agents/ inside one project to share it through version control. Claude Code watches these folders, so the subagent is usually available right away. Ask Claude to use it by name, or @-mention it to make sure it runs.
Can I use Comet Opik in Claude Cowork?
Cowork loads subagents through plugins. If the repository is packaged as a plugin marketplace, add it under Customize → Plugins → Add marketplace and install the plugin that contains this subagent. Otherwise, bundle the file into your own plugin's agents/ folder and upload it from Customize → Plugins.
Is Comet Opik safe to install?
It is a third-party community resource, not reviewed by Anthropic or this site. Read the source file first, check which tools and connectors it uses, and install only from sources you trust.
Similar resources
- Pcf Development Complete toolkit for developing custom code components using Power Apps Component Framework for model-driven and canvas… Plugin · github/awesome-copilot
- Polyglot Test Generator Orchestrates comprehensive test generation using Research-Plan-Implement pipeline. Use when asked to generate tests, write unit tests… Subagent · github/awesome-copilot
- Polyglot Test Fixer Fixes compilation errors in source or test files. Analyzes error messages and applies corrections. Subagent · github/awesome-copilot
- Polyglot Test Implementer Implements a single phase from the test plan. Writes test files and verifies they compile and pass. Calls builder, tester, and fixer… Subagent · github/awesome-copilot
- Context Architect An agent that helps plan and execute multi-file changes by identifying relevant context and dependencies Subagent · github/awesome-copilot
- Clojure Interactive Programming Expert Clojure pair programmer with REPL-first methodology, architectural oversight, and interactive problem-solving. Enforces quality standards, prevents workarounds, and develops solutions incrementally through live REPL evaluation before file modifications. Subagent · github/awesome-copilot
- Context7-Expert Expert in latest library versions, best practices, and correct syntax using up-to-date documentation Subagent · github/awesome-copilot
- CentOS Linux Expert CentOS (Stream/Legacy) Linux specialist focused on RHEL-compatible administration, yum/dnf workflows, and enterprise hardening. Subagent · github/awesome-copilot