Skip to content
datadog-labsPublic

About

Bits in the Terminal

Resources

Contributing

Stars

7 stars

Watchers

0 watching

Forks

Repository files navigation

Bits CLI

Bits CLI brings Bits Chat and Datadog tools to your terminal. It can read and edit local code, run commands, and continue conversations started in Datadog.

Note

Bits CLI is in preview. Features and interfaces may change.

Install

On macOS or Linux, install with Homebrew:

brew tap datadog-labs/pack
brew install datadog-labs/pack/bits

Release archives are also available from GitHub Releases.

Windows

Download bits_<version>_windows_amd64.zip (or the arm64 archive) from GitHub Releases, extract it, and add its bin folder to your PATH.

Get started

Open your project and launch Bits:

cd your-project
bits
bits "why is checkout latency up?"   # start with a first message

On first launch, choose your Datadog site and sign in through your browser. You need a Datadog account with the Bits Chat Access permission.

Bits CLI running Bits Chat in the terminal

Use Datadog tools and conversations

Datadog tools are built in. Browser sign-in needs no API keys or separate tool server. Type @ to find services, monitors, incidents, and dashboards; in a wide terminal, a highlighted service, team, monitor, or incident shows its card beside the list. Click an entity in an answer, such as service:checkout-api, host:i-0a4f, or a monitor link, for a card with what Datadog knows about it. Host cards show reporting status and a 15-minute snapshot of CPU usage, I/O wait, and load when available. On a service or team card, expand the alerting monitor count to see up to ten matching monitors. Use ↑/↓ to select one and Enter to open it.

  • /resume selects a saved conversation.
  • /fork (or /branch) copies the conversation through a prompt you pick and continues in the copy. The original and your working directory are unchanged.
  • /rename [title] renames the current conversation. Without a title, Bits asks for one.
  • /web opens the current conversation in Datadog.
  • /share [30d|off] shares the conversation with your org; off unshares it.
  • /export copies the whole conversation to your clipboard as Markdown
  • /skills-library opens the Skills Library.

You can also resume by ID or by its Datadog link:

bits --conversation YOUR_CONVERSATION_ID
bits --conversation https://app.datadoghq.com/bits/chat/YOUR_CONVERSATION_ID

Run bits --help for CLI commands, or type / in chat to find chat commands.

See widget previews for inline image requirements and the BITS_GRAPHICS=auto|on|off override.

Permissions

By default, interactive Bits asks before reading files, editing files, or running commands. Choose Allow for one action or Allow for session to reuse approval:

  • A read approval covers reading, listing, and searching files in the workspace.
  • A write approval covers creating and editing files in the workspace.
  • A command approval covers that exact command and its execution settings.

Use /permissions to switch between manual (ask for approval) and skip-permissions (full access). To start with full access:

bits --permissions skip-permissions

Full access allows actions without asking for approval.

To use only Datadog data, disable local access. Bits keeps access to Datadog, but has no file or command tools and reads no project instructions, skills, or working-directory context:

bits --disable-local-access

Turbo mode

Turbo answers faster at the same quality, and costs more. Use /turbo to pick Standard or Turbo, or /turbo on and /turbo off. A change applies from the next turn, and the footer shows Turbo while it is on. To start in Turbo:

bits --turbo

Your organization must have Turbo enabled. When it does not, Bits runs Standard without an error, so the footer cannot tell. HIPAA-compliant organizations cannot use Turbo: their turns fail with an error until you switch it off.

Project instructions

Add an AGENTS.md to your project to give Bits shared instructions. Bits reads instruction files in parent directories and the working directory, from the filesystem root down, including directories outside the Git repository.

In each directory, Bits uses the first readable file in this order: AGENTS.override.md, AGENTS.md, AGENTS.MD, CLAUDE.md, CLAUDE.MD.

Skills

Skills are reusable instructions in a SKILL.md file. Bits looks in:

  • .agents/skills/ in the working directory and its parents, up to the repository root.
  • Extra directories passed with --skill.
  • ~/.agents/skills/ for skills shared across projects.

Outside a Git repository, only the working directory, extra directories, and home skills are searched. For duplicate names, the nearest project skill wins, then extra directories in flag order, then home skills.

Create .agents/skills/review-code/SKILL.md:

---
name: review-code
description: Review code changes for correctness and missing tests.
---

Read the diff and surrounding code. Report issues with file references and
explain their impact.

The header needs a nonempty description. If name is omitted, Bits uses the folder name. Names can contain lowercase letters and numbers separated by hyphens or colons, up to 64 characters.

Type / in chat to find a skill, or run it with optional arguments:

/skill:review-code focus on error handling

Bits shares skill names and descriptions with the assistant. Add disable-model-invocation: true to the header to leave a skill out of that list and invoke it yourself.

To add skill directories, repeat --skill:

bits --skill ./team-skills --skill ~/.claude/skills

Start a new conversation after adding or renaming skills to refresh the list.

Run without interactive chat

Sign in with bits login, then run one turn:

bits run --prompt "Summarize this conversation" --conversation YOUR_CONVERSATION_ID --delivery adeep

Omit --conversation to start a new conversation. Both --prompt and --delivery adeep are required. Pass the prompt as text in the flag; stdin and positional prompts are not supported. Output is JSONL (one JSON object per line).

Actions that need approval are denied by default. Add --permissions skip-permissions to allow them without prompts. See the noninteractive guide for output fields, exit codes, and authentication details.

Use Bits in your editor

bits acp serves the Agent Client Protocol on stdio, so editors such as Zed run Bits as an agent. In Zed, add it to your settings:

{
  "agent_servers": {
    "Bits": { "type": "custom", "command": "bits", "args": ["acp"] }
  }
}

Each editor thread is a Bits conversation in the thread's project folder, and reopening a thread restores it. The editor asks before gated actions, and its thread settings pick the permissions mode and the reasoning level, which the backend feature-flags. Sign in with bits login first, or from the editor, which offers it when you are signed out: Zed runs the login in a terminal, and other editors have Bits open your browser. To sign in from the editor to a site other than US1, add "--site", "datadoghq.eu" (your site) after "acp" in args. Questions Bits asks need an editor that renders forms, as Zed does. Editor MCP servers and listing past conversations are not supported yet.

Contributing

See CONTRIBUTING.md for setup, tests, and the contribution workflow.

License

Bits CLI uses the Apache-2.0 License. See LICENSE-3rdparty.csv for third-party licenses.

About

Bits in the Terminal

Resources

Contributing

Stars

7 stars

Watchers

0 watching

Forks

Releases

Packages

Used by

Contributors

Languages