GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||
GeezerVison is showing docs.datadoghq.com — Bits Code Setup For AI agents: A markdown version of this page is available at https://docs.datadoghq.com/bits_ai/bits_code/setup.md.
A documentation index is available at /llms.txt.
Bits Code SetupThis product is not supported for your selected Datadog site. (). OverviewBits Code integrates with source code providers to open, update, and iterate on pull or merge requests based on issues detected in Datadog. After completing setup, you can start using Bits Code. PrerequisitesTo set up Bits Code, your Datadog user needs:
If your organization uses custom roles, an admin must add these permissions manually. For details, see Access Control. Setup
Additional configurationThese optional configurations help you get the most out of Bits Code. Configure telemetry taggingBits Code uses the To configure telemetry tagging, see Tag your APM telemetry with Git information. You can also configure service-to-repository mapping manually in Bits Code settings under Repositories > Service Repository Mapping. Enable auto-pushAuto-push allows Bits Code to create branches, push code, and open PRs or MRs when it detects something it can help you with. Auto-push only opens PRs or MRs and pushes changes; it never merges code. When auto-push is disabled, you must review code in Datadog (or in a Slack code channel) before it gets pushed. To enable auto-push, navigate to Bits Code > Settings > General. Security considerationsAllowing any AI-based tool to read untrusted data can let attackers influence its output. Auto-push behavior depends on the type of data Bits Code 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. Configure custom instructionsBits Code ingests custom instruction files from your repository, including:
You can also define global custom instructions that apply to all Bits Code sessions in Bits Code > Settings > General, in the Global Agent Instructions section. A custom instruction file is a good place to mention custom skills you’d like Bits Code to use. Environment setupConfigure Bits Code’s runtime environment, including network access policies and repository-specific tooling. Configure internet accessBy default, Bits Code has no internet access during agent execution. To configure which external domains agents can reach, navigate to Bits Code > Settings > General, and find the Internet Access section. Choose from the following access policies: No Internet Access, Default Allowlist, Custom + Default Allowlist, or Custom Allowlist. The default allowlist includes the following domains. This list will evolve over time based on user feedback and ecosystem changes. To avoid changes, configure a custom allowlist.
Use Docker and Docker ComposeBits Code sessions support Docker and Docker Compose commands. You can build images and run containers as part of repository setup, testing, and validation.
You do not need to install or start a Docker daemon. Images and builds share the sandbox’s available storage. Registry access follows your organization’s internet access policy. Allow the registry and any additional hosts used to download image layers. Private registries also require authentication. Publish container portsPublish individual TCP ports to make a container service reachable from other processes in the sandbox. For example, add this mapping under a service in your Compose file: Configure the application to listen on Omitting the host address, or specifying Docker limitations
Configure repository environmentConfigure a custom environment for Bits Code to install dependencies, formatters, linters, and build tools that are needed for your codebase. Each repository runs in its own isolated sandbox, and the environment defines the settings for that sandbox. To configure a repository environment:
Bits Code runs the setup command at startup and can use any tools installed in your environment. The setup command runs with network access enabled to download dependencies. After setup is complete, your internet access policy controls outbound network access during agent execution. Because setup commands execute against code in your repository, enable them only if you trust the repository’s code. Note: For best results, add a custom instructions file (like Configure organization environment variables and secretsDefine environment variables and secrets once for your organization instead of repeating them in each repository. Every repository environment inherits them. Organization environment variables are available during environment setup and Bits Code execution. Organization secrets are available as environment variables only during environment setup. A repository environment with no setup command still inherits organization environment variables, but not organization secrets. To configure them, go to Bits Code > Settings > Repositories, and find the Environments section. Names must be valid shell environment variable identifiers. A repository environment can also opt out of an inherited environment variable or secret, which makes that name unavailable in the repository. Remove the opt-out to inherit the value again. Managing organization environment variables and secrets requires one of the following permissions: TroubleshootingCreation of GitHub PRs fails unexpectedlyIn some cases, especially in repositories with many branches, GitHub does not run the permission check when creating a branch for the session. If you use a custom GitHub App, you can work around this issue by adding the Note: This permission allows Bits AI to create workflows in your repository and has security implications. Further readingAdditional helpful documentation, links, and articles: | ||||||||||||||||||||||||||||||||||||
| You are visitor 01402775 — GeezerVison does not store the pages you look up. Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required. |