Repository navigation
agents/hooks: report ide_harness metadata for Claude and Antigravity in IDEs - #587
Open
copybara-service[bot] wants to merge 1 commit into
Open
copybara-service[bot] wants to merge 1 commit into
copybara-service[bot] wants to merge 1 commit into
Conversation
…in IDEs Add an `ide_harness` event metadata field prefixed by `agent_runtime` so telemetry can distinguish CLI invocations running inside an IDE's integrated terminal from the IDE's native agent extension. `ide_harness` is only emitted when `editor_name` is an IDE (omitted for pure-terminal CLIs, Antigravity 2.0, and `unknown`): - Claude (`agent_runtime=claude`): `CLAUDE_CODE_ENTRYPOINT=cli` -> `claudecli`, `CLAUDE_CODE_ENTRYPOINT=claude-vscode` -> `claudevscodeextension`. - Antigravity (`agent_runtime=antigravity`): `PLUGIN_DATA` dir `antigravity-cli` -> `antigravitycli`, `antigravity` -> `antigravityvscodeextension`. - Codex and other runtimes omit `ide_harness` for now. PiperOrigin-RevId: 1029964013
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.
agents/hooks: report ide_harness metadata for Claude and Antigravity in IDEs
Add an
ide_harnessevent metadata field prefixed byagent_runtimesotelemetry can distinguish CLI invocations running inside an IDE's integrated
terminal from the IDE's native agent extension.
ide_harnessis only emittedwhen
editor_nameis an IDE (omitted for pure-terminal CLIs, Antigravity 2.0,and
unknown):agent_runtime=claude):CLAUDE_CODE_ENTRYPOINT=cli->claudecli,CLAUDE_CODE_ENTRYPOINT=claude-vscode->claudevscodeextension.agent_runtime=antigravity):PLUGIN_DATAdirantigravity-cli->antigravitycli,antigravity->antigravityvscodeextension.ide_harnessfor now.