Skip to content
Back to skills

Add Coding Agent Capture

ASecurity

Add or review live coding-agent event capture through blocking command hooks or an in-process plugin such as a JavaScript adapter. Use when forwarding native lifecycle, model, tool, permission, or subagent events into the Braintrust daemon, or when fixing ordering, failure, or flush behavior in an adapter.

  • 2 stars
  • 0 votes
  • 0 copies
  • 0 views
  • Added September 23, 2026
ai-agentsjavascriptrustjavaapi

Works with

  • terminal
  • cli
  • api

Security analysis

A100/100

Pro scans all 2 files and shows the line behind each finding

Scanned September 23, 2026

npx -y skills add braintrustdata/braintrust-coding-agent-plugins --skill add-coding-agent-capture --agent claude-code

Installs into .claude/skills of the current project.

Are you the author of Add Coding Agent Capture?

Add the live security badge to your README. It updates with every re-scan.

Security grade badge for Add Coding Agent Capture
[![Security: A — Skills Directory](https://www.skillsdirectory.com/api/skills/braintrustdata-add-coding-agent-capture/badge)](https://www.skillsdirectory.com/skills/braintrustdata-add-coding-agent-capture)

More formats (shields.io, HTML) on the badges page. Keep it an A: scan every change in CI with Pro.

Download with Pro
SKILL.md
---
name: add-coding-agent-capture
description: Add or review live coding-agent event capture through blocking command hooks or an in-process plugin such as a JavaScript adapter. Use when forwarding native lifecycle, model, tool, permission, or subagent events into the Braintrust daemon, or when fixing ordering, failure, or flush behavior in an adapter.
---

# Add coding-agent event capture

Confirm the canonical source identity and production translator exist. If not,
use `add-coding-agent-translator` first or include it earlier in the same plan.

## Choose the capture path

- Prefer blocking command hooks when the agent offers ordered lifecycle hooks.
- Prefer the shared long-lived daemon client for an in-process plugin API.
- Combine hooks with transcript paths only when hooks omit data required by the
  translator; keep trace construction out of the adapter.

## Implement a thin adapter

- Forward raw native payloads with source, session, event, capture timestamp,
  agent version, and adapter version. Add cwd or worktree only when supplied
  separately by the agent API.
- Preserve per-session ordering. Await daemon acknowledgement for blocking
  hooks; serialize requests on a long-lived connection for in-process plugins.
- Flush on terminal lifecycle events and close persistent clients cleanly.
- Fail open with bounded diagnostics when the daemon, host CLI, or network is
  unavailable. Never break an agent turn because tracing failed.
- Forward only non-secret route selections. Never handle Braintrust credentials
  or send spans directly to Braintrust.
- Capture every event required by the translator and quote commands safely on
  every supported platform.

## Verify completion

Test hook or plugin registration, payload mapping, ordering, reconnection,
failure behavior, terminal flush, configuration precedence, disablement, and
the exact source identity accepted by the production translator.

Files in this skill

  • SKILL.md1.9 KB
  • agents/openai.yaml214 B

Attribution

Is this your skill, or is something wrong with this listing? Request removal or report an issue. Author removals are honored within 72 hours.

Comments

Loading comments…

Newsletter

Get the weekly list of safe new skills, and the ones we pulled.