Claude Code is an efficient tool for building AI agents directly in the terminal, allowing for rapid iteration and integration with a codebase, though traditional workflows are disrupted when debugging issues require context switching to Braintrust. To address this, a two-way integration has been established between Claude Code and Braintrust, facilitated by two plugins: trace-claude-code and braintrust. The first plugin automatically logs Claude Code sessions as structured traces in Braintrust, while the second enables developers to query logs and fetch experiment results directly from the terminal using natural language. This bidirectional flow, crucial for maintaining context during development, allows developers to retrieve past session data, monitor experiment outcomes, and log new data seamlessly from within their editor. This integration is particularly important as AI agents become increasingly complex, and understanding failures retrospectively poses a challenge. Once the plugins are installed and an API key is provided, trace capture begins automatically, enabling developers to access production data and experiment results on demand, thereby maintaining the full development context.