Skip to content

feat: add opencode chainloop-trace plugin#3267

Merged
migmartri merged 2 commits into
chainloop-dev:mainfrom
migmartri:add-pr-mode-2
Jul 6, 2026
Merged

feat: add opencode chainloop-trace plugin#3267
migmartri merged 2 commits into
chainloop-dev:mainfrom
migmartri:add-pr-mode-2

Conversation

@migmartri

@migmartri migmartri commented Jul 6, 2026

Copy link
Copy Markdown
Member

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

Review in cubic

@migmartri migmartri requested a review from a team July 6, 2026 14:21
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>

@cubic-dev-ai cubic-dev-ai Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

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

Comment thread .opencode/plugins/chainloop-trace.ts
Assisted-by: Claude Code
Signed-off-by: Miguel Martinez Trivino <miguel@chainloop.dev>

Chainloop-Trace-Sessions: ses_0c830ab01ffeGQhnPohmihWjP5
@chainloop-platform

chainloop-platform Bot commented Jul 6, 2026

Copy link
Copy Markdown
Contributor

AI Session Analysis

Avg score Sessions Failing policies Attribution Files Lines Total Duration
- 1 ⚠️ 1 100% AI / 0% Human 1 +5 / -0 15m0s

100% AI — ⚠️ 1 policies failing

Jul 6, 2026 14:22 UTC · 15m0s · $0.13 · 287.3k in / 2.1k out · opencode 1.17.13 (deepseek/deepseek-v4-pro)

View session details ↗


File Attribution

████████████████████ 100% AI / 0% Human

Status Attribution File Lines
modified ai .opencode/plugins/chainloop-trace.ts +5 / -0

Policies (4, 1 failing)

Status Policy Material Messages
⚠️ Failed 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

@migmartri migmartri merged commit 9c48e5c into chainloop-dev:main Jul 6, 2026
14 of 15 checks passed
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.

2 participants