Bits AI Dev Agent

Ce produit n'est pas pris en charge par le site Datadog que vous avez sélectionné. ().
Cette page n'est pas encore disponible en français, sa traduction est en cours.
Si vous avez des questions ou des retours sur notre projet de traduction actuel, n'hésitez pas à nous contacter.

Overview

Bits AI Dev Agent is a generative AI coding assistant that uses Datadog observability data to automatically diagnose and fix issues in your code. It integrates with GitHub to create production-ready pull requests, then iterates on changes using CI logs and developer feedback.

A tab titled 'Code Sessions' shows a text field with suggestions underneath

Each time the Dev Agent investigates an issue or generates a fix, it creates a code session, which captures the agent’s analysis, actions, and any resulting code changes across supported Datadog products.

To get started with Bits AI Dev Agent, set up the GitHub integration and complete any additional configuration. Then, start your first code session.

Code sessions

A code session captures a segment of work with the Bits AI Dev Agent, including its analysis and code changes. Start, view, and manage your sessions at Bits AI > Dev Agent > Code Sessions.

A code session showing a Bits AI summary and task list on the left and a code diff on the right

Start a code session

After completing setup, do one of the following to start a code session:

A code session can also be created when another Bits AI agent (like Bits Assistant or Bits AI SRE) hands off a coding task to the Dev Agent.

View and manage code sessions

On Code Sessions, view your past sessions in the My Sessions panel. A session appears here if you initiated it or interacted with it in some way, like participating in the conversation or creating an associated PR.

Click a session to view its details and continue working with the Dev Agent. To remove a session from your My Sessions list, click (Archive for everyone) or (Unwatch session).

Supported Datadog products

Bits AI Dev Agent can suggest code improvements in the following Datadog products:

ProductCapabilities
APMProposes code changes for relevant APM Recommendations
Bits AI SREGenerates code remediations based on Bits AI SRE investigations
Bits AssistantSuggests code changes arising from Bits Assistant conversations
Cloud CostGenerates code changes for Cloud Cost Recommendations
Error TrackingDiagnoses issues and generates code fixes on-demand or autonomously
Code SecurityRemediates code vulnerabilities individually or in bulk
Test OptimizationProvides code fixes for flaky tests and verifies that tests remain stable
Continuous ProfilerProvides code changes for Automated Analysis insights
ContainersProvides code changes for Kubernetes Remediations

Note: Enabling Bits AI Dev Agent is product-specific. Even if it’s active for one Datadog product, it must be separately enabled for each additional product you use.

Key capabilities

The following sections detail how Bits AI Dev Agent integrates with Datadog products to generate contextual code fixes.

Pull request assistance

Bits AI Dev Agent integrates with GitHub to create pull requests, respond to comments, update commits, and fix CI failures.

  • Generates PR titles and descriptions based on your PR template.

  • Opens PRs as drafts, iterates using CI logs, and marks the PRs as ready for review when checks pass.

  • Continues iterating in response to chat messages and review feedback.

    Note: Comment @Datadog to prompt Bits for updates to the PR. Bits Dev never auto-merges PRs.

See all PRs the Dev Agent is working on in Bits AI > Dev Agent > Code Sessions.

Auto-push

Auto-push allows the Dev Agent to create branches, push code, and open PRs when it detects something it can help you with. For example, the Dev Agent can:

  • Auto-create PRs for high-impact errors (such as 500s or crashes).
  • Update PRs in response to your comments in GitHub.
  • Update PRs to address CI failures.

Auto-push only opens PRs and pushes changes; it never merges code. When auto-push is disabled, you must review code in Datadog before it gets pushed.

Auto-push is available for Error Tracking and Test Optimization.

Security considerations

Allowing any AI-based tool to read untrusted data can let attackers influence its output. Auto-push behavior depends on the type of data the Dev Agent works with: code-only workflows operate on source code the Agent can inspect directly, while telemetry-based workflows (such as errors or traces) may include untrusted runtime inputs.

To balance safety and automation, you can configure auto-push behavior in Datadog (for example, limiting auto-push to code-only workflows or requiring review when telemetry is involved). Datadog scans all Agent-generated code before pushing changes, but these safeguards are not foolproof.

Error tracking

In Error Tracking, Bits AI Dev Agent diagnoses and remediates code issues with context and unit-tested fixes:

  • Determines whether an error can be fixed through code and generates a fix with unit tests.
  • Provides links within the chat to relevant files and methods for streamlined navigation.
  • Analyzes errors asynchronously as they arrive.
  • Marks errors with a Fix available status and enables filtering to surface those issues.

Auto-push is available for this feature.

Flaky test management

Bits AI Dev Agent fixes flaky tests that are detected through Flaky Test Management in Test Optimization and attempts to verify that tests remain stable.

Auto-push is available for this feature.

In-product recommendations

Bits AI Dev Agent suggests code improvements and fixes in various Datadog products, such as CCM Recommendations, APM Recommendations, and Profiling Insights. See Supported Datadog products for a full list.

Code security

Bits AI Dev Agent remediates vulnerabilities at scale, from single issues to large backlogs. You can:

  • Create PR batches to fix multiple vulnerabilities at once.
  • Use the Campaign tool to push PRs incrementally and manage review workload across teams.

Datadog Code Security uses Bits AI to enhance static analysis and generate remediation suggestions, which can be reviewed and applied through the Bits AI Dev Agent. Learn more about AI-Enhanced Static Code Analysis.

Limitations

  • Bits Dev is an AI product, which means it can make mistakes. Use best practices when reviewing and testing agent-generated code.
  • Bits AI Dev Agent does not support multi-repository investigations.

Further reading