feat: add opencode chainloop-trace plugin#3267
Merged
Merged
Conversation
Add opencode plugin for tracing file-writing tool executions and session lifecycle events via Chainloop hooks. Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>
There was a problem hiding this comment.
1 issue found and verified against the latest diff
Prompt for AI agents (unresolved issues)
Check if these issues are valid — if so, understand the root cause of each and fix them. If appropriate, use sub-agents to investigate and fix each issue separately.
<file name=".opencode/plugins/chainloop-trace.ts">
<violation number="1" location=".opencode/plugins/chainloop-trace.ts:14">
P2: File-write operations can fail when telemetry emission fails, because `fire()` errors are unhandled and propagated through `tool.execute.before`. Consider making tracing best-effort (catch/log in `fire`) so missing chainloop/runtime errors do not interrupt edit/write/apply_patch flows.</violation>
</file>
Reply with feedback, questions, or to request a fix.
Re-trigger cubic
Assisted-by: Claude Code Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev> Chainloop-Trace-Sessions: ses_0c830ab01ffeGQhnPohmihWjP5
Contributor
AI Session Analysis
|
| Status | Attribution | File | Lines |
|---|---|---|---|
| modified | ai | .opencode/plugins/chainloop-trace.ts |
+5 / -0 |
Policies (4, 1 failing)
| Status | Policy | Material | Messages |
|---|---|---|---|
ai-config-ai-agents-allowed |
ai-coding-session-ses-0c |
AI agent 'opencode' is not in the allowed list | |
| ✅ Passed | ai-config-no-dangerous-commands |
ai-coding-session-ses-0c |
- |
| ✅ Passed | ai-config-no-secrets |
ai-coding-session-ses-0c |
- |
| ✅ Passed | ai-config-mcp-servers-allowed |
ai-coding-session-ses-0c |
- |
Powered by Chainloop and Chainloop Trace
matiasinsaurralde
approved these changes
Jul 6, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add opencode plugin for tracing file-writing tool executions and session lifecycle events via Chainloop hooks.
🤖 Posted by Maximus bot (Claude Code) on behalf of @migmartri