The cross-harness, self-improving memory layer for AI agents. Join our community: https://discord.com/invite/zdNChS2fBu
Go agent-ai-cliagent-harnessesagent-securitybrowser-extensionciclaude-codecloudcodexcursordetection-engineeringjevknowledge-basememorymobile-device-managementobservabilitysecuritysecurity-information-and-event-managementsecurity-toolstelemetrytraces
Capture Claude tool details in OTLP
shukieshah3ceba0f0d705
diff --git a/cli/beacon/cmd/endpoint_test.go b/cli/beacon/cmd/endpoint_test.goindex dcd3bc6e..3cc31980 100644--- a/cli/beacon/cmd/endpoint_test.go+++ b/cli/beacon/cmd/endpoint_test.go@@ -159,6 +159,7 @@ func TestRepairInstalledEndpointUserConfigConfiguresNativeAndHooks(t *testing.T)for _, want := range []string{`"CLAUDE_CODE_ENABLE_TELEMETRY": "1"`,`"OTEL_EXPORTER_OTLP_ENDPOINT": "http://127.0.0.1:4317"`,+ `"OTEL_LOG_TOOL_DETAILS": "1"`,} {if !strings.Contains(string(claudeSettings), want) {t.Fatalf("Claude settings missing %q:\n%s", want, claudeSettings)diff --git a/cli/beacon/internal/ci/harness.go b/cli/beacon/internal/ci/harness.goindex 9543053f..f80b5954 100644--- a/cli/beacon/internal/ci/harness.go+++ b/cli/beacon/internal/ci/harness.go@@ -38,6 +38,7 @@ func ClaudeEnv(base []string, endpoint string) []string {delete(env, "OTEL_EXPORTER_OTLP_LOGS_ENDPOINT")delete(env, "OTEL_EXPORTER_OTLP_METRICS_ENDPOINT")delete(env, "OTEL_EXPORTER_OTLP_TRACES_ENDPOINT")+ env["OTEL_LOG_TOOL_DETAILS"] = "1"env["OTEL_LOG_USER_PROMPTS"] = "1"return flattenEnv(env)}diff --git a/cli/beacon/internal/ci/harness_test.go b/cli/beacon/internal/ci/harness_test.goindex cc5ac928..b7c5aa0f 100644--- a/cli/beacon/internal/ci/harness_test.go+++ b/cli/beacon/internal/ci/harness_test.go@@ -7,12 +7,13 @@ import ("testing")-func TestClaudeEnvIncludesPromptLogging(t *testing.T) {- env := strings.Join(ClaudeEnv([]string{"PATH=/bin", "OTEL_LOG_USER_PROMPTS=0"}, "http://127.0.0.1:4317"), "\n")+func TestClaudeEnvIncludesDetailedToolAndPromptLogging(t *testing.T) {+ env := strings.Join(ClaudeEnv([]string{"PATH=/bin", "OTEL_LOG_TOOL_DETAILS=0", "OTEL_LOG_USER_PROMPTS=0"}, "http://127.0.0.1:4317"), "\n")for _, want := range []string{"CLAUDE_CODE_ENABLE_TELEMETRY=1","OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4317","OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE=delta",+ "OTEL_LOG_TOOL_DETAILS=1","OTEL_LOG_USER_PROMPTS=1",} {if !strings.Contains(env, want) {diff --git a/cli/beacon/internal/ci/session_test.go b/cli/beacon/internal/ci/session_test.goindex 4202f2c2..1dff8a7b 100644--- a/cli/beacon/internal/ci/session_test.go+++ b/cli/beacon/internal/ci/session_test.go@@ -218,6 +218,7 @@ func TestRunChildInjectsClaudeEnvAndBeaconPaths(t *testing.T) {"OTEL_METRICS_EXPORTER=otlp","OTEL_EXPORTER_OTLP_PROTOCOL=grpc","OTEL_EXPORTER_OTLP_ENDPOINT=http://127.0.0.1:4317",+ "OTEL_LOG_TOOL_DETAILS=1","OTEL_LOG_USER_PROMPTS=1","BEACON_CI_LOG_PATH=" + session.LogPath,} {diff --git a/cli/beacon/internal/endpoint/harness/harness.go b/cli/beacon/internal/endpoint/harness/harness.goindex 58d2a9ba..fbe2e5fe 100644--- a/cli/beacon/internal/endpoint/harness/harness.go+++ b/cli/beacon/internal/endpoint/harness/harness.go@@ -311,6 +311,9 @@ func ConfigureClaude(opts ConfigureOptions) (string, error) {env["OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE"] = "delta"env["OTEL_EXPORTER_OTLP_PROTOCOL"] = "grpc"env["OTEL_EXPORTER_OTLP_ENDPOINT"] = opts.Endpoint+ // Tool details expose the command, file path, URL, search pattern, and MCP+ // identity/arguments needed to reconstruct agent activity from OTel events.+ env["OTEL_LOG_TOOL_DETAILS"] = "1"env["OTEL_LOG_USER_PROMPTS"] = "1"settings["env"] = envif err := os.MkdirAll(filepath.Dir(path), 0755); err != nil {diff --git a/cli/beacon/internal/endpoint/harness/harness_test.go b/cli/beacon/internal/endpoint/harness/harness_test.goindex 4aaa82c5..139e80df 100644--- a/cli/beacon/internal/endpoint/harness/harness_test.go+++ b/cli/beacon/internal/endpoint/harness/harness_test.go@@ -69,6 +69,7 @@ func TestConfigureClaudeWritesTelemetryEnvAndBackup(t *testing.T) {"OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE": "delta","OTEL_EXPORTER_OTLP_PROTOCOL": "grpc","OTEL_EXPORTER_OTLP_ENDPOINT": "http://127.0.0.1:4317",+ "OTEL_LOG_TOOL_DETAILS": "1","OTEL_LOG_USER_PROMPTS": "1",} {if got := env[key]; got != want {diff --git a/docs/runtimes/claude-code.mdx b/docs/runtimes/claude-code.mdxindex 81cccfe9..28340186 100644--- a/docs/runtimes/claude-code.mdx+++ b/docs/runtimes/claude-code.mdx@@ -57,7 +57,7 @@ Asymptote detects Claude Code through the `claude` executable and Claude setting## Install or configuration support-`beacon endpoint install` configures Claude telemetry settings so Claude Code sends OTLP data to the local collector.+`beacon endpoint install` configures Claude telemetry settings so Claude Code sends OTLP data to the local collector. It enables detailed tool logging so tool-result events include inputs such as Bash commands, file paths, URLs, search patterns, and MCP server/tool arguments. Claude bounds or truncates some input values; tool output content is not enabled by this setting.`beacon endpoint hooks install --harness claude` adds Asymptote-managed Claude Code hooks while preserving existing Claude settings and non-Asymptote hooks. `beacon endpoint hooks uninstall --harness claude` removes only Asymptote-managed Claude hook entries.@@ -66,7 +66,7 @@ Asymptote detects Claude Code through the `claude` executable and Claude setting| Area | Support ||------|---------|| Prompt telemetry | Supported when emitted through Claude Code OTLP or hooks |-| Command, tool, and file telemetry | Supported when emitted through Claude Code OTLP |+| Command, tool, and file telemetry | Supported through Claude Code OTLP with detailed tool inputs enabled || Token usage and cost | Supported through OTLP token and cost metrics, with per-model and per-session attribution || Hook lifecycle and tool telemetry | Optional through `beacon endpoint hooks install --harness claude` || Claude Code cloud agent sessions | Supported through cloud sandbox hooks with GCS upload |@@ -75,6 +75,8 @@ Asymptote detects Claude Code through the `claude` executable and Claude settingClaude Code hooks cover `SessionStart`, `UserPromptSubmit`, `PreToolUse`, `PostToolUse`, `PostToolUseFailure`, `Stop`, `SubagentStart`, `SubagentStop`, `PermissionRequest`, and `SessionEnd`. Pre-tool matching includes common Claude tools such as `Bash`, `Edit`, `Write`, `MultiEdit`, `Read`, `Glob`, `Grep`, `WebFetch`, `WebSearch`, `Agent`, and `mcp__.*`.+Detailed tool inputs can contain sensitive command arguments, paths, URLs, search terms, and MCP request data. Beacon sends this telemetry only to the configured local collector during normal endpoint execution; apply the same access, retention, and redaction controls used for other retained prompt and tool data.+## Deployment notesFor MDM deployments, use the signed and notarized macOS `.pkg` so endpoint events land in `/var/log/beacon-agent/runtime.jsonl`. The package installs the endpoint agent under `/opt/beacon`, creates system endpoint configuration, and loads the local collector LaunchDaemon.diff --git a/packaging/macos/jamf/scripts/full-cleanup.sh b/packaging/macos/jamf/scripts/full-cleanup.shindex 73b48960..c8f9c695 100755--- a/packaging/macos/jamf/scripts/full-cleanup.sh+++ b/packaging/macos/jamf/scripts/full-cleanup.sh@@ -356,6 +356,7 @@ for key in ["OTEL_EXPORTER_OTLP_METRICS_TEMPORALITY_PREFERENCE","OTEL_LOGS_EXPORTER","OTEL_METRICS_EXPORTER",+ "OTEL_LOG_TOOL_DETAILS","OTEL_LOG_USER_PROMPTS",]:env.pop(key, None)